Class AnnotationConfiguration.ContainerClassNameResolver

  • All Implemented Interfaces:
    ClassNameResolver
    Enclosing class:
    AnnotationConfiguration

    public class AnnotationConfiguration.ContainerClassNameResolver
    extends Object
    implements ClassNameResolver
    ContainerClassNameResolver Checks to see if a classname belongs to a hidden or visible package when scanning for annotations and thus whether it should be excluded from consideration or not. This is analogous to the management of classes that the WebAppClassLoader is doing, however we don't want to load the classes at this point so we are doing it on the name only.
    • Constructor Detail

      • ContainerClassNameResolver

        public ContainerClassNameResolver​(WebAppContext context)
    • Method Detail

      • isExcluded

        public boolean isExcluded​(String name)
        Description copied from interface: ClassNameResolver
        Based on the execution context, should the class represented by "name" be excluded from consideration?
        Specified by:
        isExcluded in interface ClassNameResolver
        Parameters:
        name - the name to test
        Returns:
        true if classname is excluded
      • shouldOverride

        public boolean shouldOverride​(String name)
        Description copied from interface: ClassNameResolver
        Based on the execution context, if a duplicate class represented by "name" is detected, should the existing one be overridden or not?
        Specified by:
        shouldOverride in interface ClassNameResolver
        Parameters:
        name - the name to test
        Returns:
        true if name should be overridden