Package org.apache.cayenne.resource
Interface Resource
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- URLResource
public interface Resource extends Serializable
An abstraction of a resource whose data can be accessed via a URL.
- Since:
- 3.1
- 
Method SummaryModifier and Type Method Description ResourcegetRelativeResource(String relativePath)Returns a resource resolved relatively to the current resource.URLgetURL()Returns a resource URL to read (and possibly write) the resource data.
- 
Method Details- 
getURLURL getURL()Returns a resource URL to read (and possibly write) the resource data.
- 
getRelativeResourceReturns a resource resolved relatively to the current resource. E.g. DataMap files can be resolved relatively to cayenne.xml.
 
-