Interface Initialization

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default int getPriority()
      Gets the priority level of the execution of init() method.
      void init()
      Initializes some resources required by the services or performs some initialization processes at Silverpeas startup.
      default void release()
      Releases the previously initialized resources at Silverpeas shutdown.
    • Method Detail

      • init

        void init()
           throws Exception
        Initializes some resources required by the services or performs some initialization processes at Silverpeas startup.
        Throws:
        Exception - if an error occurs during the initialization process. In this case the Silverpeas startup fails.
      • getPriority

        default int getPriority()
        Gets the priority level of the execution of init() method.

        The less is the value of the priority the more the priority is high.

        Returns:
        an integer priority.
      • release

        default void release()
                      throws Exception
        Releases the previously initialized resources at Silverpeas shutdown. The implementation of this method is optional. By default it does nothing.
        Throws:
        Exception - if an error occurs during the shutdown process. In this case, a log will be outputed and the shutdown goes one.