Class ContainerInitializer


  • public class ContainerInitializer
    extends java.lang.Object
    • Field Detail

      • _target

        protected final javax.servlet.ServletContainerInitializer _target
      • _interestedTypes

        protected final java.lang.Class<?>[] _interestedTypes
      • _applicableTypeNames

        protected final java.util.Set<java.lang.String> _applicableTypeNames
      • _annotatedTypeNames

        protected final java.util.Set<java.lang.String> _annotatedTypeNames
    • Constructor Detail

      • ContainerInitializer

        public ContainerInitializer​(javax.servlet.ServletContainerInitializer target,
                                    java.lang.Class<?>[] classes)
      • ContainerInitializer

        public ContainerInitializer​(java.lang.ClassLoader loader,
                                    java.lang.String toString)
    • Method Detail

      • getTarget

        public javax.servlet.ServletContainerInitializer getTarget()
      • getInterestedTypes

        public java.lang.Class[] getInterestedTypes()
      • addAnnotatedTypeName

        public void addAnnotatedTypeName​(java.lang.String className)
        A class has been found that has an annotation of interest to this initializer.
        Parameters:
        className - the class name to add
      • getAnnotatedTypeNames

        public java.util.Set<java.lang.String> getAnnotatedTypeNames()
      • addApplicableTypeName

        public void addApplicableTypeName​(java.lang.String className)
      • getApplicableTypeNames

        public java.util.Set<java.lang.String> getApplicableTypeNames()
      • callStartup

        public void callStartup​(WebAppContext context)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • resolveClasses

        public void resolveClasses​(WebAppContext context,
                                   java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> classMap)