public interface ServiceRegistry
| Modifier and Type | Method and Description |
|---|---|
<SERVICE_INTERFACE> |
addService(Class<SERVICE_INTERFACE> serviceInterface,
SERVICE_INTERFACE serviceInstance)
Adds the given service using the fully qualified class name of the serviceInterface as service endpoint id.
|
<SERVICE_INTERFACE> |
addService(String serviceEndpointId,
Class<SERVICE_INTERFACE> serviceInterface,
SERVICE_INTERFACE serviceInstance) |
Collection<ServiceEndpoint> |
getActiveServiceEndpoints()
This method is intended for troubleshooting/debugging purposes only
|
<SERVICE_INTERFACE> |
getService(String serviceEndpointId,
Class<SERVICE_INTERFACE> serviceInterface) |
boolean |
removeService(String serviceEndpointId,
Object serviceInstance) |
Collection<ServiceEndpoint> getActiveServiceEndpoints()
<SERVICE_INTERFACE> ServiceProxy<SERVICE_INTERFACE> getService(String serviceEndpointId, Class<SERVICE_INTERFACE> serviceInterface)
<SERVICE_INTERFACE> boolean addService(Class<SERVICE_INTERFACE> serviceInterface, SERVICE_INTERFACE serviceInstance) throws IllegalArgumentException, IllegalStateException
true if the serviceInstance was added, false if the serviceInstance was added alreadyIllegalStateException - if another service was already registered for the given service IdIllegalArgumentException<SERVICE_INTERFACE> boolean addService(String serviceEndpointId, Class<SERVICE_INTERFACE> serviceInterface, SERVICE_INTERFACE serviceInstance) throws IllegalArgumentException, IllegalStateException
true if the serviceInstance was added, false if the serviceInstance was added alreadyIllegalArgumentException - if serviceEndpointId == null or serviceInstance == nullIllegalStateException - if another service was already registered for the given service Idboolean removeService(String serviceEndpointId, Object serviceInstance) throws IllegalArgumentException
true if the serviceInstance was removed successfully, false if the given serviceInstance was not registeredIllegalArgumentException - if serviceEndpointId == null or serviceInstance == nullCopyright © 2010–2021 Vegard IT GmbH, Germany. All rights reserved.