|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.fortress.util.Service
public final class Service
This class handles looking up service providers on the class path.
It implements the system described in:
File Specification Under Service Provider. 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
| Method Summary | |
|---|---|
static boolean |
isClassPoolable(Class clazz)
Provide a way to determine if a Class implements Poolable without requiring it to be in the classpath. |
static Iterator |
providers(Class klass)
Get all the providers for the specified services. |
static Iterator |
providers(Class klass,
ClassLoader loader)
Get all the providers for the specified services. |
static Iterator |
providers(Class klass,
ClassLoader loader,
org.apache.avalon.framework.logger.Logger logger)
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 |
| Method Detail |
|---|
public static Iterator providers(Class klass,
ClassLoader loader,
org.apache.avalon.framework.logger.Logger logger)
klass - the interface Classloader - the ClassLoader to be used.logger - logger to use if any problems are encountered.
Iterator for the providers.
public static Iterator providers(Class klass,
ClassLoader loader)
klass - the interface Classloader - the ClassLoader to be used.
Iterator for the providers.public static Iterator providers(Class klass)
klass - the interface Class
Iterator for the providers.public static boolean isClassPoolable(Class clazz)
clazz - the class to test
true if Poolable is in the classpath and the class implements Poolable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||