Interface Module

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method 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.
    • Method Detail

      • getName

        String getName()
        Returns the name of the module for display in administration interfaces.
        Returns:
        The name of the module.
      • initialize

        void initialize​(XMPPServer server)
        Initialize the module with the container. Modules may be initialized and never started, so modules should be prepared for a call to destroy() to follow initialize().
        Parameters:
        server - the server hosting this module.
      • start

        void start()
        Start the module (must return quickly). Any long running operations should spawn a thread and allow the method to return immediately.
      • stop

        void stop()
        Stop the module. The module should attempt to free up threads and prepare for either another call to initialize (reconfigure the module) or for destruction.
      • destroy

        void destroy()
        Module should free all resources and prepare for deallocation.