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

java.lang.Object
  extended by org.apache.commons.discovery.resource.names.ResourceNameDiscoverImpl
      extended by org.apache.commons.discovery.resource.names.DiscoverNamesInFile
          extended by 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.


Field Summary
protected static String SERVICE_HOME
           
 
Constructor Summary
DiscoverServiceNames()
          Construct a new service discoverer.
DiscoverServiceNames(ClassLoaders loaders)
          Construct a new resource discoverer.
DiscoverServiceNames(ClassLoaders loaders, String prefix, String suffix)
          Construct a new resource discoverer.
DiscoverServiceNames(ResourceDiscover discoverer)
          Construct a new service discoverer.
DiscoverServiceNames(ResourceDiscover discoverer, String prefix, String suffix)
          Construct a new service discoverer.
DiscoverServiceNames(String prefix, String suffix)
          Construct a new resource discoverer.
 
Method Summary
 
Methods inherited from class org.apache.commons.discovery.resource.names.DiscoverNamesInFile
findResourceNames, 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, findResourceNames
 

Field Detail

SERVICE_HOME

protected static final String SERVICE_HOME
See Also:
Constant Field Values
Constructor Detail

DiscoverServiceNames

public DiscoverServiceNames()
Construct a new service discoverer.


DiscoverServiceNames

public DiscoverServiceNames(String prefix,
                            String suffix)
Construct a new resource discoverer.

Parameters:
prefix - The resource name prefix
suffix - The resource name suffix

DiscoverServiceNames

public DiscoverServiceNames(ClassLoaders loaders)
Construct a new resource discoverer.

Parameters:
loaders - The class loaders holder

DiscoverServiceNames

public DiscoverServiceNames(ClassLoaders loaders,
                            String prefix,
                            String suffix)
Construct a new resource discoverer.

Parameters:
loaders - The class loaders holder
prefix - The resource name prefix
suffix - The resource name suffix

DiscoverServiceNames

public DiscoverServiceNames(ResourceDiscover discoverer)
Construct a new service discoverer.

Parameters:
discoverer - The discoverer to resolve resources

DiscoverServiceNames

public DiscoverServiceNames(ResourceDiscover discoverer,
                            String prefix,
                            String suffix)
Construct a new service discoverer.

Parameters:
discoverer - The discoverer to resolve resources
prefix - The resource name prefix
suffix - The resource name suffix


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