org.apache.commons.discovery.resource
Class DiscoverResources
java.lang.Object
org.apache.commons.discovery.resource.names.ResourceNameDiscoverImpl
org.apache.commons.discovery.resource.ResourceDiscoverImpl
org.apache.commons.discovery.resource.DiscoverResources
- All Implemented Interfaces:
- ResourceDiscover, ResourceNameDiscover
public class DiscoverResources
- extends ResourceDiscoverImpl
- implements ResourceDiscover
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiscoverResources
public DiscoverResources()
- Construct a new resource discoverer.
DiscoverResources
public DiscoverResources(ClassLoaders classLoaders)
- Construct a new resource discoverer.
- Parameters:
classLoaders
- The class loaders holder
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.