Class ServerSerializerRegistrationsService
java.lang.Object
com.jme3.network.service.AbstractService<HostedServiceManager>
com.jme3.network.service.AbstractHostedService
com.jme3.network.service.serializer.ServerSerializerRegistrationsService
- All Implemented Interfaces:
ConnectionListener, HostedService, Service<HostedServiceManager>
Prepares and sends serializer registration data to connecting clients.
- Author:
- Paul Speed
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the serializer registration service. -
Method Summary
Modifier and TypeMethodDescriptionvoidconnectionAdded(Server server, HostedConnection hc) Default implementation does nothing.protected voidonInitialize(HostedServiceManager serviceManager) Called during initialize() for the subclass to perform implementation specific initialization.voidstart()Default implementation does nothing.Methods inherited from class AbstractHostedService
connectionRemoved, getServerMethods inherited from class AbstractService
getService, getServiceManager, initialize, stop, terminate, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface HostedService
initialize, stop, terminate
-
Constructor Details
-
ServerSerializerRegistrationsService
public ServerSerializerRegistrationsService()Creates the serializer registration service.
-
-
Method Details
-
onInitialize
Description copied from class:AbstractServiceCalled during initialize() for the subclass to perform implementation specific initialization.- Specified by:
onInitializein classAbstractService<HostedServiceManager>- Parameters:
serviceManager- the service manager initializing this service
-
start
public void start()Description copied from class:AbstractServiceDefault implementation does nothing. Implementations can override this to perform custom startup behavior.- Specified by:
startin interfaceHostedService- Specified by:
startin interfaceService<HostedServiceManager>- Overrides:
startin classAbstractService<HostedServiceManager>
-
connectionAdded
Description copied from class:AbstractHostedServiceDefault implementation does nothing. Implementations can override this to perform custom new connection behavior.- Specified by:
connectionAddedin interfaceConnectionListener- Overrides:
connectionAddedin classAbstractHostedService- Parameters:
server- the server that accepted the connectionhc- the newly connected client
-