|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Module
Logical, server-managed entities must implement this interface. A module represents an operational unit and may contain zero or more services and rely on zero or more services that may be hosted by the container.
In order to be hosted in the Jive server container, all modules must:constructor -> initialize() -> start() -> stop() -> destroy() -> finalizer |<-----------------------| ^ | | V----------------------------------->The Module interface is intended to provide the simplest mechanism for creating, deploying, and managing server modules.
Method Summary | |
---|---|
void |
destroy()
Module should free all resources and prepare for deallocation. |
String |
getName()
Obtain 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. |
Method Detail |
---|
String getName()
Obtain the name of the module for display in administration interfaces.
void initialize(XMPPServer server)
server
- the server hosting this module.void start()
void stop()
void destroy()
|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |