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 ClientServiceRegistryAgent.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
static SpecialistType<ClientServiceRegistryAgent> TYPE
          An agent providing means to register client local service instances.
 
Method Summary
<T> void
registerClientService(Class<T> clientServiceType, T clientService)
          Register a client service to be reachable via ServicesBroker.getService(Class)
<T> void
unregisterClientService(T clientService)
          Unregister the given client service.
 

Field Detail

TYPE

static final SpecialistType<ClientServiceRegistryAgent> TYPE
An agent providing means to register client local service instances. The agent's techincal type to be used to request the agent from a SpecialistsBroker.

Since:
4.2.426
Method Detail

registerClientService

<T> void registerClientService(Class<T> clientServiceType,
                               T clientService)
Register a client service to be reachable via ServicesBroker.getService(Class)

Parameters:
clientServiceType - the class specifying the type of the service
clientService - 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


Copyright © 2012 e-Spirit AG. All Rights Reserved. Build 4.2.480