Package ej.rcommand.impl
Class AbstractRemoteService
- java.lang.Object
-
- ej.rcommand.impl.AbstractRemoteService
-
- All Implemented Interfaces:
RemoteCommandListener,RemoteService
public abstract class AbstractRemoteService extends Object implements RemoteService
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandSenderProvidercommandSenderProviderNull until this service is initialized.
-
Constructor Summary
Constructors Constructor Description AbstractRemoteService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(CommandSenderProvider connectionProvider)This method must be called before registering or using this service.voidstart()voidstop()-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ej.rcommand.RemoteCommandListener
commandReceived, getManagedCommands
-
-
-
-
Field Detail
-
commandSenderProvider
@Nullable protected CommandSenderProvider commandSenderProvider
Null until this service is initialized.
-
-
Method Detail
-
initialize
public void initialize(CommandSenderProvider connectionProvider)
This method must be called before registering or using this service.- Specified by:
initializein interfaceRemoteService
-
start
public void start()
- Specified by:
startin interfaceRemoteService
-
stop
public void stop()
- Specified by:
stopin interfaceRemoteService
-
-