|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.avalon.fortress.util.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(java.lang.Class clazz)
Provide a way to determine if a Class implements Poolable without requiring it to be in the classpath. |
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 |
| Method Detail |
public static java.util.Iterator providers(java.lang.Class klass,
java.lang.ClassLoader loader)
klass - the interface Classloader - the ClassLoader to be used.
Iterator for the providers.public static java.util.Iterator providers(java.lang.Class klass)
klass - the interface Class
Iterator for the providers.public static boolean isClassPoolable(java.lang.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 | ||||||||||