org.apache.cayenne.conf
Interface ResourceFinder

All Known Implementing Classes:
ClasspathResourceFinder, ResourceLocator, WebApplicationResourceLocator

public interface ResourceFinder

An object that defines a strategy for locating stream resources.

Since:
3.0

Method Summary
 URL getResource(String name)
          Returns a single resource matching a given name.
 Collection<URL> getResources(String name)
          Returns a collection of resource URLs with a given name found in the environment using some lookup strategy.
 

Method Detail

getResources

Collection<URL> getResources(String name)
Returns a collection of resource URLs with a given name found in the environment using some lookup strategy.


getResource

URL getResource(String name)
Returns a single resource matching a given name. If more than one resource matches the name, it is implementation specific which one will be returned.



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