org.apache.commons.discovery.resource.names
Class DiscoverServiceNames

java.lang.Object
  |
  +--org.apache.commons.discovery.resource.names.ResourceNameDiscoverImpl
        |
        +--org.apache.commons.discovery.resource.names.DiscoverNamesInFile
              |
              +--org.apache.commons.discovery.resource.names.DiscoverServiceNames
All Implemented Interfaces:
ResourceNameDiscover

public class DiscoverServiceNames
extends DiscoverNamesInFile
implements ResourceNameDiscover

Provide JDK 1.3 style service discovery... The caller will first configure the discoverer by creating a root Discoverer for the files.

Author:
Richard A. Sitze, Craig R. McClanahan, Costin Manolache, James Strachan

Field Summary
protected static java.lang.String SERVICE_HOME
           
 
Constructor Summary
DiscoverServiceNames()
          Construct a new service discoverer
DiscoverServiceNames(ClassLoaders loaders)
          Construct a new resource discoverer
DiscoverServiceNames(ResourceDiscover discoverer)
          Construct a new service discoverer
 
Method Summary
 ResourceNameIterator findResourceNames(java.lang.String serviceName)
          Locate names of resources that are bound to resourceName.
 
Methods inherited from class org.apache.commons.discovery.resource.names.DiscoverNamesInFile
getDiscover, setDiscoverer, setLog
 
Methods inherited from class org.apache.commons.discovery.resource.names.ResourceNameDiscoverImpl
findResourceNames
 
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.ResourceNameDiscover
findResourceNames
 

Field Detail

SERVICE_HOME

protected static final java.lang.String SERVICE_HOME
Constructor Detail

DiscoverServiceNames

public DiscoverServiceNames()
Construct a new service discoverer

DiscoverServiceNames

public DiscoverServiceNames(ClassLoaders loaders)
Construct a new resource discoverer

DiscoverServiceNames

public DiscoverServiceNames(ResourceDiscover discoverer)
Construct a new service discoverer
Method Detail

findResourceNames

public ResourceNameIterator findResourceNames(java.lang.String serviceName)
Description copied from interface: ResourceNameDiscover
Locate names of resources that are bound to resourceName.
Specified by:
findResourceNames in interface ResourceNameDiscover
Overrides:
findResourceNames in class DiscoverNamesInFile
Returns:
Enumeration of ServiceInfo


Copyright (c) 2002 - Apache Software Foundation