Class AbstractClientService
java.lang.Object
com.jme3.network.service.AbstractService<ClientServiceManager>
com.jme3.network.service.AbstractClientService
- All Implemented Interfaces:
ClientService, Service<ClientServiceManager>
- Direct Known Subclasses:
ClientSerializerRegistrationsService, RmiClientService, RpcClientService
public abstract class AbstractClientService
extends AbstractService<ClientServiceManager>
implements ClientService
Convenient base class for ClientServices providing some default ClientService
interface implementations as well as a few convenience methods
such as getServiceManager() and getService(type). Subclasses
must at least override the onInitialize() method to handle
service initialization.
- Author:
- Paul Speed
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates an uninitialized client service. -
Method Summary
Methods inherited from class AbstractService
getService, getServiceManager, initialize, onInitialize, start, stop, terminate, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ClientService
initialize, start, stop, terminate
-
Constructor Details
-
AbstractClientService
protected AbstractClientService()Creates an uninitialized client service.
-
-
Method Details
-
getClient
Returns the client for this client service or null if the service is not yet attached.- Returns:
- the attached client, or null if the service is detached
-