org.apache.cayenne.resource
Class ClassLoaderResourceLocator

java.lang.Object
  extended by org.apache.cayenne.resource.ClassLoaderResourceLocator
All Implemented Interfaces:
ResourceLocator

public class ClassLoaderResourceLocator
extends java.lang.Object
implements ResourceLocator

A ResourceLocator that looks up resources is the application classpath based on the current thread ClassLoader.

Since:
3.1

Constructor Summary
ClassLoaderResourceLocator()
           
 
Method Summary
 java.util.Collection<Resource> findResources(java.lang.String name)
          Finds a collection of matching resources for a given name.
protected  java.lang.ClassLoader getClassLoader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLoaderResourceLocator

public ClassLoaderResourceLocator()
Method Detail

findResources

public java.util.Collection<Resource> findResources(java.lang.String name)
Description copied from interface: ResourceLocator
Finds a collection of matching resources for a given name. The name components must be separated by forward slashes.

Specified by:
findResources in interface ResourceLocator

getClassLoader

protected java.lang.ClassLoader getClassLoader()


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