|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.discovery.resource.names.ResourceNameDiscoverImpl org.apache.commons.discovery.resource.ResourceDiscoverImpl
public abstract class ResourceDiscoverImpl
Helper class for methods implementing the ResourceDiscover interface.
Constructor Summary | |
---|---|
ResourceDiscoverImpl()
Construct a new resource discoverer. |
|
ResourceDiscoverImpl(ClassLoaders classLoaders)
Construct a new resource discoverer. |
Method Summary | |
---|---|
void |
addClassLoader(ClassLoader loader)
Specify a new class loader to be used in searching. |
ResourceNameIterator |
findResourceNames(ResourceNameIterator resourceNames)
Locate names of resources that are bound to inputNames . |
ResourceNameIterator |
findResourceNames(String resourceName)
Locate names of resources that are bound to resourceName . |
ResourceIterator |
findResources(ResourceNameIterator inputNames)
Locate resources that are bound to resourceNames . |
abstract ResourceIterator |
findResources(String resourceName)
Locate resources that are bound to resourceName . |
protected ClassLoaders |
getClassLoaders()
Returns the class loaders holder. |
void |
setClassLoaders(ClassLoaders loaders)
Specify set of class loaders to be used in searching. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceDiscoverImpl()
public ResourceDiscoverImpl(ClassLoaders classLoaders)
classLoaders
- The class laoders holderMethod Detail |
---|
public void setClassLoaders(ClassLoaders loaders)
loaders
- The class laoders holderpublic void addClassLoader(ClassLoader loader)
loader
- The new class loader to be addedprotected ClassLoaders getClassLoaders()
public ResourceNameIterator findResourceNames(String resourceName)
resourceName
.
findResourceNames
in interface ResourceNameDiscover
findResourceNames
in class ResourceNameDiscoverImpl
resourceName
- The resource name to locate
ResourceNameIterator
public ResourceNameIterator findResourceNames(ResourceNameIterator resourceNames)
inputNames
.
findResourceNames
in interface ResourceNameDiscover
findResourceNames
in class ResourceNameDiscoverImpl
resourceNames
- The resource names to locate
ResourceNameIterator
public abstract ResourceIterator findResources(String resourceName)
resourceName
.
findResources
in interface ResourceDiscover
resourceName
- The resource name has to be located
public ResourceIterator findResources(ResourceNameIterator inputNames)
resourceNames
.
findResources
in interface ResourceDiscover
inputNames
- The resources name iterator has to be located
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |