Package org.apache.cayenne.resource
Interface Resource
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
URLResource
An abstraction of a resource whose data can be accessed via a URL.
- Since:
- 3.1
-
Method Summary
Modifier and TypeMethodDescriptiongetRelativeResource
(String relativePath) Returns a resource resolved relatively to the current resource.getURL()
Returns a resource URL to read (and possibly write) the resource data.
-
Method Details
-
getURL
URL getURL()Returns a resource URL to read (and possibly write) the resource data. -
getRelativeResource
Returns a resource resolved relatively to the current resource. E.g. DataMap files can be resolved relatively to cayenne.xml.
-