Package de.espirit.firstspirit.module
Interface ServiceProxy<T>
public interface ServiceProxy<T>
A service proxy is an optional, client-side service implementation. It will be instantiated,
Dependant on the use case (see
initialized
and returned by
ServicesBroker.getService(Class)
. The proxy class must have
a no-arg constructor.Dependant on the use case (see
Service.getProxyClass()
) implementing classes must either implement the
related communication interface specified in Service.getServiceInterface()
(use case: caching) or an
additional interface (use case: e.g. serialization). To request the service instance via
ServicesBroker.getService(Class)
use that additional use case dependant interface.- Since:
- 4.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(T service, Connection connection) Initializes this service proxy.
-
Method Details
-
init
Initializes this service proxy. This method is called before the instance is used.- Parameters:
service
- service itself.connection
- current connection.- Since:
- 4.1
-