Class ServletContainerInitializerHolder

    • Field Detail

      • _startupClassNames

        protected java.util.Set<java.lang.String> _startupClassNames
      • _startupClasses

        protected java.util.Set<java.lang.Class<?>> _startupClasses
      • __pattern

        public static final java.util.regex.Pattern __pattern
    • Constructor Detail

      • ServletContainerInitializerHolder

        protected ServletContainerInitializerHolder​(Source source)
      • ServletContainerInitializerHolder

        public ServletContainerInitializerHolder()
      • ServletContainerInitializerHolder

        public ServletContainerInitializerHolder​(java.lang.Class<? extends javax.servlet.ServletContainerInitializer> sciClass)
      • ServletContainerInitializerHolder

        public ServletContainerInitializerHolder​(java.lang.Class<? extends javax.servlet.ServletContainerInitializer> sciClass,
                                                 java.lang.Class<?>... startupClasses)
      • ServletContainerInitializerHolder

        public ServletContainerInitializerHolder​(javax.servlet.ServletContainerInitializer sci,
                                                 java.lang.Class<?>... startupClasses)
      • ServletContainerInitializerHolder

        public ServletContainerInitializerHolder​(Source source,
                                                 javax.servlet.ServletContainerInitializer sci,
                                                 java.lang.Class<?>... startupClasses)
    • Method Detail

      • addStartupClasses

        public void addStartupClasses​(java.lang.String... names)
        Parameters:
        names - the names of classes which should be passed to the SCI onStartup method
      • addStartupClasses

        public void addStartupClasses​(java.lang.Class<?>... clazzes)
        Parameters:
        clazzes - classes that should be passed to the SCI onStartup method
      • resolveStartupClasses

        protected java.util.Set<java.lang.Class<?>> resolveStartupClasses()
                                                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • doStart

        public void doStart()
                     throws java.lang.Exception
        Description copied from class: AbstractLifeCycle
        Method to override to start the lifecycle
        Overrides:
        doStart in class BaseHolder<javax.servlet.ServletContainerInitializer>
        Throws:
        AbstractLifeCycle.StopException - If thrown, the lifecycle will immediately be stopped.
        java.lang.Exception - If there was a problem starting. Will cause a transition to FAILED state
      • fromString

        public static ServletContainerInitializerHolder fromString​(java.lang.ClassLoader loader,
                                                                   java.lang.String string)
        Re-inflate a stringified ServletContainerInitializerHolder.
        Parameters:
        loader - the classloader to use to load the startup classes
        string - the stringified representation of the ServletContainerInitializerHolder
        Returns:
        a new ServletContainerInitializerHolder instance populated by the info in the string