| java.lang.Object org.apache.commons.discovery.tools.Service
Service | public class Service (Code) | | [this was ServiceDiscovery12... the 1.1 versus 1.2 issue
has been abstracted to org.apache.commons.discover.jdk.JDKHooks]
Implement the JDK1.3 'Service Provider' specification.
( http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html )
This class supports any VM, including JDK1.1, via
org.apache.commons.discover.jdk.JDKHooks.
The caller will first configure the discoverer by adding ( in the desired
order ) all the places to look for the META-INF/services. Currently
we support loaders.
The findResources() method will check every loader.
author: Richard A. Sitze author: Craig R. McClanahan author: Costin Manolache author: James Strachan |
Constructor Summary | |
protected | Service() |
Service | protected Service()(Code) | | Construct a new service discoverer
|
providers | public static Enumeration providers(Class spiClass)(Code) | | as described in
sun/jdk1.3.1/docs/guide/jar/jar.html#Service Provider,
Except this uses Enumeration
instead of Interator .
Enumeration of class instances (Object ) |
providers | public static Enumeration providers(SPInterface spi, ClassLoaders loaders)(Code) | | This version lets you specify constructor arguments..
Parameters: spi - SPI to look for and load. Parameters: loaders - loaders to use in search.If null then use ClassLoaders.getAppLoaders(). |
|
|