|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmondrian.util.ServiceDiscovery<T>
public class ServiceDiscovery<T>
Utility functions to discover Java services.
Java services are described in the JAR File Specification.
Based on the suggested file format, this class reads the service entries in a JAR file and discovers implementors of an interface.
Method Summary | ||
---|---|---|
static
|
forClass(java.lang.Class<T> theInterface)
Creates a ServiceDiscovery. |
|
java.util.List<java.lang.Class<T>> |
getImplementor()
Returns a list of classes that implement the service. |
|
protected void |
parseImplementor(java.lang.String clazz,
java.lang.ClassLoader cLoader,
java.util.Set<java.lang.Class<T>> uniqueClasses)
Parses a list of classes that implement a service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> ServiceDiscovery<T> forClass(java.lang.Class<T> theInterface)
theInterface
- Interface for service
public java.util.List<java.lang.Class<T>> getImplementor()
protected void parseImplementor(java.lang.String clazz, java.lang.ClassLoader cLoader, java.util.Set<java.lang.Class<T>> uniqueClasses)
clazz
- Class name (or list of class names)cLoader
- Class loaderuniqueClasses
- Set of classes (output)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |