org.apache.avalon.fortress.util
Class Service
java.lang.Object
org.apache.avalon.fortress.util.Service
- public final class Service
- extends java.lang.Object
This class handles looking up service providers on the class path. It implements the system described in: . Note that this interface is very similar to the one they describe whiehc seems to be missing in the JDK. This class adapted from org.apache.batik.util.Service
- Version:
- 1.0
- Author:
| Field Summary |
private static java.util.HashMap |
providers
|
private static java.lang.String |
SERVICES
|
| Constructor Summary |
private |
Service()
Private constructor to keep from instantiating this class |
| Method Summary |
static java.util.Iterator |
providers(java.lang.Class klass)
Get all the providers for the specified services. |
static java.util.Iterator |
providers(java.lang.Class klass, java.lang.ClassLoader loader)
Get all the providers for the specified services. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVICES
private static final java.lang.String SERVICES
-
- See Also:
- Constant Field Values
providers
private static final java.util.HashMap providers
-
Service
private Service()
-
Private constructor to keep from instantiating this class
providers
public static java.util.Iterator providers(java.lang.Class klass,
java.lang.ClassLoader loader)
-
Get all the providers for the specified services.
-
- Parameters:
klass - the interface Class
loader - the ClassLoader to be used.
- Returns:
- an
Iterator for the providers.
providers
public static java.util.Iterator providers(java.lang.Class klass)
-
Get all the providers for the specified services.
-
- Parameters:
klass - the interface Class
- Returns:
- an
Iterator for the providers.
Please see keelframework.org for information about new Keel releases.