org.apache.commons.discovery.resource
Class DiscoverResources

java.lang.Object
  extended by org.apache.commons.discovery.resource.names.ResourceNameDiscoverImpl
      extended by org.apache.commons.discovery.resource.ResourceDiscoverImpl
          extended by org.apache.commons.discovery.resource.DiscoverResources
All Implemented Interfaces:
ResourceDiscover, ResourceNameDiscover

public class DiscoverResources
extends ResourceDiscoverImpl
implements ResourceDiscover


Constructor Summary
DiscoverResources()
          Construct a new resource discoverer.
DiscoverResources(ClassLoaders classLoaders)
          Construct a new resource discoverer.
 
Method Summary
 ResourceIterator findResources(String resourceName)
          Locate resources that are bound to resourceName.
static void setLog(org.apache.commons.logging.Log _log)
          Deprecated. This method is not thread-safe
 
Methods inherited from class org.apache.commons.discovery.resource.ResourceDiscoverImpl
addClassLoader, findResourceNames, findResourceNames, findResources, getClassLoaders, setClassLoaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.discovery.ResourceDiscover
findResources
 
Methods inherited from interface org.apache.commons.discovery.ResourceNameDiscover
findResourceNames, findResourceNames
 

Constructor Detail

DiscoverResources

public DiscoverResources()
Construct a new resource discoverer.


DiscoverResources

public DiscoverResources(ClassLoaders classLoaders)
Construct a new resource discoverer.

Parameters:
classLoaders - The class loaders holder
Method Detail

setLog

@Deprecated
public static void setLog(org.apache.commons.logging.Log _log)
Deprecated. This method is not thread-safe

Sets the Log for this class.

Parameters:
_log - This class Log

findResources

public ResourceIterator findResources(String resourceName)
Locate resources that are bound to resourceName.

Specified by:
findResources in interface ResourceDiscover
Specified by:
findResources in class ResourceDiscoverImpl
Parameters:
resourceName - The resource name has to be located
Returns:
The located resources iterator


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.