public interface Service<T> extends Component<ServiceDescriptor,ServerEnvironment>
| Modifier and Type | Method and Description |
|---|---|
Class<? extends ServiceProxy> |
getProxyClass()
A service proxy is an optional, client-side service implementation.
|
Class<? extends T> |
getServiceInterface()
Returns the service interface.
|
boolean |
isRunning()
Returns whether the service is running.
|
void |
start()
Starts the service.
|
void |
stop()
Stops the service.
|
init, installed, uninstalling, updatedvoid start()
void stop()
boolean isRunning()
true if the service is running.@Nullable Class<? extends T> getServiceInterface()
Service instances must
also implement this interface.@Nullable Class<? extends ServiceProxy> getProxyClass()
initialized and returned by
Connection.getService(String). The proxy class must have
a no-arg constructor and must implement the ServiceProxy interface, but has not to implement the
service-interface itself.null if no proxy is provided.Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500