|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface Service<T>
FIRSTspirit service interface. Implementing classes must have a no-arg constructor.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface de.espirit.firstspirit.module.Component |
|---|
init, installed, uninstalling, updated |
| Method Detail |
|---|
void 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.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||