public class BasicModule extends Object implements Module
Constructor and Description |
---|
BasicModule(String moduleName)
Create a basic module with the given name.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public BasicModule(String moduleName)
Create a basic module with the given name.
moduleName
- The name for the module or null to use the defaultpublic String getName()
Obtain the name of the 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.
Copyright © 2003-2008 Jive Software.