|
Openfire 3.4.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.container.BasicModule
public class BasicModule
A default Module implementation that basically avoids subclasses having to implement the whole Module interface.
Constructor Summary | |
---|---|
BasicModule(String moduleName)
Create a basic module with the given name. |
Method Summary | |
---|---|
void |
destroy()
Destroys the module. |
String |
getName()
Obtain the name of the module. |
void |
initialize(XMPPServer server)
Initializes the basic module. |
void |
start()
Starts the basic module. |
void |
stop()
Stops the basic module. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicModule(String moduleName)
Create a basic module with the given name.
moduleName
- The name for the module or null to use the defaultMethod Detail |
---|
public String getName()
Obtain the name of the module.
getName
in interface Module
public void initialize(XMPPServer server)
Initializes the basic module.
Inheriting classes that choose to override this method MUST call this initialize() method before accessing BasicModule resources.
initialize
in interface Module
server
- the server hosting this module.public void start() throws IllegalStateException
Starts the basic module.
Inheriting classes that choose to override this method MUST call this start() method before accessing BasicModule resources.
start
in interface Module
IllegalStateException
- If start is called before initialize
successfully returnspublic void stop()
Stops the basic module.
Inheriting classes that choose to override this method MUST call this stop() method before accessing BasicModule resources.
stop
in interface Module
public void destroy()
Destroys the module.
Does nothing in the basic module.
destroy
in interface Module
|
Openfire 3.4.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |