|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.utils.ServiceFinder
public class ServiceFinder
Instances of this class look for and find services implemented via the Service Provider Interface (SPI).
This class is an alternative for the static methods found in ServiceRegistry.
| Constructor Summary | |
|---|---|
ServiceFinder()
|
|
| Method Summary | ||
|---|---|---|
|
findProviders(Class<T> providerClass)
Find all providers implementing or extending the specified provider interface or class, using the context class loader. |
|
|
findProviders(Class<T> providerClass,
ClassLoader cl)
Find all providers implementing or extending the specified provider interface or class, using the specified class loader. |
|
List<String> |
findServiceDefinitions(String path,
ClassLoader cl)
Find all service definitions in the classpath, that match the specified path. |
|
static
|
lookupProviders(Class<T> providerClass)
Find all providers implementing or extending the specified provider interface or class, using the context class loader. |
|
static
|
lookupProviders(Class<T> providerClass,
ClassLoader cl)
Find all providers implementing or extending the specified provider interface or class, using the specified class loader. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceFinder()
| Method Detail |
|---|
public <T> List<T> findProviders(Class<T> providerClass,
ClassLoader cl)
T - The type of provider implementations to find.providerClass - the provider class.cl - the class loader to user for the lookup.
public <T> List<T> findProviders(Class<T> providerClass)
T - The type of provider implementations to find.providerClass - the provider class.
public List<String> findServiceDefinitions(String path,
ClassLoader cl)
path - the path to the definition files to find.cl - the class loader to use for classpath lookup.
public static <T> Iterator<T> lookupProviders(Class<T> providerClass,
ClassLoader cl)
T - The type of provider implementations to find.providerClass - the provider class.cl - the class loader to user for the lookup.
public static <T> Iterator<T> lookupProviders(Class<T> providerClass)
T - The type of provider implementations to find.providerClass - the provider class.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||