Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.resource
Interface Resource

All Superinterfaces:
  java.io.Serializable

All Known Implementing Classes:
  URLResource

    public interface Resource

extends java.io.Serializable

An abstraction of a resource whose data can be accessed via a URL.

Since:
  3.1

Method Summary
`Resource` | `getRelativeResource(java.lang.String relativePath)` Returns a resource resolved relatively to the current resource.
`java.net.URL` | `getURL()` Returns a resource URL to read (and possibly write) the resource data.

Method Detail

### getURL

    java.net.URL getURL()

  Returns a resource URL to read (and possibly write) the resource data.

### getRelativeResource

    Resource getRelativeResource(java.lang.String relativePath)

  Returns a resource resolved relatively to the current resource. E.g. DataMap files can be resolved relatively to cayenne.xml.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.