|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProviderRegistry
The implementation of the factory registry used to store the bundle registrations.
| Method Summary | |
|---|---|
Object |
getService(String providerId)
Locate and instantiate an instance of a service provider defined in the META-INF/services directory of tracked bundles. |
Class<?> |
getServiceClass(String providerId)
Locate and return the class for a service provider defined in the META-INF/services directory of tracked bundles. |
List<Class<?>> |
getServiceClasses(String providerId)
Locate all services that match a given provider id and return the implementation classes |
List<Object> |
getServices(String providerId)
Locate all services that match a given provider id and create instances. |
Class<?> |
locate(String factoryId)
Locate a class by its factory id indicator. . |
List<Class<?>> |
locateAll(String factoryId)
Locate all class files that match a given factory id. |
| Method Detail |
|---|
Class<?> locate(String factoryId)
factoryId - The factory id (generally, a fully qualified class name).
List<Class<?>> locateAll(String factoryId)
factoryId - The target factory identifier.
Object getService(String providerId)
throws Exception
providerId - The name of the target interface class.
Exception - Any classloading or other exceptions thrown during
the process of creating this service instance.List<Object> getServices(String providerId)
providerId - The target provider identifier.
Class<?> getServiceClass(String providerId)
throws ClassNotFoundException
providerId - The name of the target interface class.
Exception - Any classloading or other exceptions thrown during
the process of loading this service provider class.
ClassNotFoundExceptionList<Class<?>> getServiceClasses(String providerId)
providerId - The target provider identifier.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||