public interface Module
In order to be hosted in the Jive server container, all modules must:
The Jive container will run all modules through a simple lifecycle:
constructor -> initialize() -> start() -> stop() -> destroy() -> finalizer |<-----------------------| ^ | | V----------------------------------->
The Module interface is intended to provide the simplest mechanism for creating, deploying, and managing server modules.
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Module should free all resources and prepare for deallocation.
|
String |
getName()
Returns the name of the module for display in administration interfaces.
|
void |
initialize(XMPPServer server)
Initialize the module with the container.
|
void |
start()
Start the module (must return quickly).
|
void |
stop()
Stop the module.
|
String getName()
void initialize(XMPPServer server)
server
- the server hosting this module.void start()
void stop()
void destroy()
Copyright © 2003-2008 Jive Software.