org.apache.commons.discovery.resource.classes
Class DiscoverClasses<T>
java.lang.Object
org.apache.commons.discovery.resource.names.ResourceNameDiscoverImpl
org.apache.commons.discovery.resource.ResourceDiscoverImpl
org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl<T>
org.apache.commons.discovery.resource.classes.DiscoverClasses<T>
- Type Parameters:
T
- The SPI type
- All Implemented Interfaces:
- ResourceClassDiscover<T>, ResourceDiscover, ResourceNameDiscover
public class DiscoverClasses<T>
- extends ResourceClassDiscoverImpl<T>
- implements ResourceClassDiscover<T>
The findResources() method will check every loader.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiscoverClasses
public DiscoverClasses()
- Construct a new resource discoverer
DiscoverClasses
public DiscoverClasses(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
findResourceClasses
public ResourceClassIterator<T> findResourceClasses(String className)
- Locate class resources that are bound to
className
.
- Specified by:
findResourceClasses
in interface ResourceClassDiscover<T>
- Specified by:
findResourceClasses
in class ResourceClassDiscoverImpl<T>
- Parameters:
className
- The class name has to be located
- Returns:
- The located resources iterator
Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.