public class ServiceRegistryKF
extends ej.service.registry.SimpleServiceRegistry
implements ej.service.ServiceRegistry
| Constructor and Description |
|---|
ServiceRegistryKF()
Instantiates a new service registry KF.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getService(java.lang.Class<T> service) |
<T> void |
register(java.lang.Class<T> service,
T instance) |
<T> void |
register(java.lang.Class<T> service,
T instance,
boolean isKernelLocal)
Registers a Service Instance for the Kernel.
|
<T> void |
unregister(java.lang.Class<T> service,
T instance) |
<T> void |
unregister(java.lang.Class<T> service,
T instance,
boolean isKernelLocal)
Unregisters a Service Instance from the Kernel.
|
public ServiceRegistryKF()
public <T> T getService(java.lang.Class<T> service)
getService in interface ej.service.ServiceLoadergetService in class ej.service.loader.SimpleServiceLoaderpublic <T> void register(java.lang.Class<T> service,
T instance)
register in interface ej.service.ServiceRegistryregister in class ej.service.registry.SimpleServiceRegistrypublic <T> void register(java.lang.Class<T> service,
T instance,
boolean isKernelLocal)
service - the class type of the serviceinstance - the instance of the serviceisKernelLocal - if the service should be stored in the local context of
the Kernel or shared with other featurespublic <T> void unregister(java.lang.Class<T> service,
T instance)
unregister in interface ej.service.ServiceRegistryunregister in class ej.service.registry.SimpleServiceRegistrypublic <T> void unregister(java.lang.Class<T> service,
T instance,
boolean isKernelLocal)
service - the class type of the serviceinstance - the instance of the serviceisKernelLocal - if the service should be removed from the local context
of the Kernel or shared with other features