Package de.espirit.firstspirit.agency
Interface ClientServiceRegistryAgent
public interface ClientServiceRegistryAgent
Definition of an agent offering ability to register client local service instances.
Service instances registered via
registerClientService(Class, Object)
will be reachable via
ServicesBroker.getService(Class)
as long as the connection of the belonging FirstSpirit
will be alive and if they won't be explicitly unregistered
- Since:
- 4.2.426
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SpecialistType<ClientServiceRegistryAgent>
An agent providing means to register client local service instances. -
Method Summary
Modifier and TypeMethodDescription<T> void
registerClientService
(Class<T> clientServiceType, T clientService) Register a client service to be reachable viaServicesBroker.getService(Class)
<T> void
unregisterClientService
(T clientService) Unregister the given client service.
-
Field Details
-
TYPE
An agent providing means to register client local service instances. The agent's techincal type to be used to request the agent from aSpecialistsBroker
.- Since:
- 4.2.426
-
-
Method Details
-
registerClientService
Register a client service to be reachable viaServicesBroker.getService(Class)
- Parameters:
clientServiceType
- the class specifying the type of the serviceclientService
- the instance of the client service to be registered- Since:
- 4.2.426
-
unregisterClientService
<T> void unregisterClientService(T clientService) Unregister the given client service.- Parameters:
clientService
- the client service to unregister- Since:
- 4.2.429
-