Class SilverpeasJcrInitializationListener

  • All Implemented Interfaces:
    EventListener, javax.servlet.ServletContextListener

    public class SilverpeasJcrInitializationListener
    extends Object
    implements javax.servlet.ServletContextListener
    In order to initialize the JCR that can be used in integration tests, this listener MUST be defined into the web.xml of the archive built of an integration test with arquillian + Wildfly.

    At server starting, when the context of the integration is initialized, each implementation of Initialization interface that the class name contains the keyword "SilverpeasJcrSchemaRegistering" is performed.

    By default, this listener is added onto the war archive used in the integration tests by the BasicWarBuilder object.

    Author:
    silveryocha
    • Constructor Detail

      • SilverpeasJcrInitializationListener

        public SilverpeasJcrInitializationListener()
    • Method Detail

      • contextInitialized

        public void contextInitialized​(javax.servlet.ServletContextEvent sce)
        Specified by:
        contextInitialized in interface javax.servlet.ServletContextListener
      • contextDestroyed

        public void contextDestroyed​(javax.servlet.ServletContextEvent sce)
        Specified by:
        contextDestroyed in interface javax.servlet.ServletContextListener