org.apache.geronimo.osgi.registry.api
public interface ProviderRegistry
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getService(java.lang.String providerId)
Locate and instantiate an instance of a service provider
defined in the META-INF/services directory of tracked bundles.
|
java.lang.Class<?> |
getServiceClass(java.lang.String providerId)
Locate and return the class for a service provider
defined in the META-INF/services directory of tracked bundles.
|
java.util.List<java.lang.Class<?>> |
getServiceClasses(java.lang.String providerId)
Locate all services that match a given provider id and return the implementation
classes
|
java.util.List<java.lang.Object> |
getServices(java.lang.String providerId)
Locate all services that match a given provider id and create instances.
|
java.lang.Class<?> |
locate(java.lang.String factoryId)
Locate a class by its factory id indicator.
|
java.util.List<java.lang.Class<?>> |
locateAll(java.lang.String factoryId)
Locate all class files that match a given factory id.
|
java.lang.Class<?> locate(java.lang.String factoryId)
factoryId
- The factory id (generally, a fully qualified class name).java.util.List<java.lang.Class<?>> locateAll(java.lang.String factoryId)
factoryId
- The target factory identifier.java.lang.Object getService(java.lang.String providerId) throws java.lang.Exception
providerId
- The name of the target interface class.java.lang.Exception
- Any classloading or other exceptions thrown during
the process of creating this service instance.java.util.List<java.lang.Object> getServices(java.lang.String providerId)
providerId
- The target provider identifier.java.lang.Class<?> getServiceClass(java.lang.String providerId) throws java.lang.ClassNotFoundException
providerId
- The name of the target interface class.java.lang.Exception
- Any classloading or other exceptions thrown during
the process of loading this service provider class.java.lang.ClassNotFoundException
java.util.List<java.lang.Class<?>> getServiceClasses(java.lang.String providerId)
providerId
- The target provider identifier.