Class BasicModule
- java.lang.Object
-
- org.jivesoftware.openfire.container.BasicModule
-
- All Implemented Interfaces:
Module
- Direct Known Subclasses:
ArchiveManager,AuditManagerImpl,CertificateStoreManager,ConnectionManagerImpl,DefaultFileTransferManager,EntityCapabilitiesManager,FileTransferProxy,FlashCrossDomainHandler,InternalComponentManager,IQHandler,IQRouter,MediaProxyService,MessageRouter,MulticastDNSService,MulticastRouter,MultiUserChatManager,OfflineMessageStore,OfflineMessageStrategy,PacketDelivererImpl,PacketRouterImpl,PacketTransporterImpl,PresenceManagerImpl,PresenceRouter,PresenceSubscribeHandler,PresenceUpdateHandler,PrivateStorage,PubSubModule,RosterManager,RoutingTableImpl,SessionManager,SoftwareServerVersionManager,SoftwareVersionManager,TransportHandler,UpdateManager,VCardManager
public class BasicModule extends Object implements Module
A default Module implementation that basically avoids subclasses having to implement the whole Module interface.- Author:
- Gaston Dombiak
-
-
Constructor Summary
Constructors Constructor Description BasicModule(String moduleName)Create a basic module with the given name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Destroys the module.StringgetName()Obtain the name of the module.voidinitialize(XMPPServer server)Initializes the basic module.voidstart()Starts the basic module.voidstop()Stops the basic module.
-
-
-
Constructor Detail
-
BasicModule
public BasicModule(String moduleName)
Create a basic module with the given name.
- Parameters:
moduleName- The name for the module or null to use the default
-
-
Method Detail
-
getName
public String getName()
Obtain the name of the module.
-
initialize
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.
- Specified by:
initializein interfaceModule- Parameters:
server- the server hosting this module.
-
start
public void start() throws IllegalStateExceptionStarts the basic module.
Inheriting classes that choose to override this method MUST call this start() method before accessing BasicModule resources.
- Specified by:
startin interfaceModule- Throws:
IllegalStateException- If start is called before initialize successfully returns
-
stop
public void stop()
Stops the basic module.
Inheriting classes that choose to override this method MUST call this stop() method before accessing BasicModule resources.
-
-