org.apache.commons.discovery.resource.classes
Class DiscoverClasses<T>

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.classes.ResourceClassDiscoverImpl<T>
              extended by 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.


Constructor Summary
DiscoverClasses()
          Construct a new resource discoverer
DiscoverClasses(ClassLoaders classLoaders)
          Construct a new resource discoverer.
 
Method Summary
 ResourceClassIterator<T> findResourceClasses(String className)
          Locate class resources that are bound to className.
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.classes.ResourceClassDiscoverImpl
findResourceClasses, findResourceNames, findResourceNames, findResources, findResources
 
Methods inherited from class org.apache.commons.discovery.resource.ResourceDiscoverImpl
addClassLoader, 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.ResourceClassDiscover
findResourceClasses
 
Methods inherited from interface org.apache.commons.discovery.ResourceDiscover
findResources, findResources
 
Methods inherited from interface org.apache.commons.discovery.ResourceNameDiscover
findResourceNames, findResourceNames
 

Constructor Detail

DiscoverClasses

public DiscoverClasses()
Construct a new resource discoverer


DiscoverClasses

public DiscoverClasses(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

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.