Package org.eclipse.jetty.annotations
Class AnnotationConfiguration.ContainerClassNameResolver
- java.lang.Object
-
- org.eclipse.jetty.annotations.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 Summary
Constructors Constructor Description ContainerClassNameResolver(WebAppContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisExcluded(String name)Based on the execution context, should the class represented by "name" be excluded from consideration?booleanshouldOverride(String name)Based on the execution context, if a duplicate class represented by "name" is detected, should the existing one be overridden or not?
-
-
-
Constructor Detail
-
ContainerClassNameResolver
public ContainerClassNameResolver(WebAppContext context)
-
-
Method Detail
-
isExcluded
public boolean isExcluded(String name)
Description copied from interface:ClassNameResolverBased on the execution context, should the class represented by "name" be excluded from consideration?- Specified by:
isExcludedin interfaceClassNameResolver- Parameters:
name- the name to test- Returns:
- true if classname is excluded
-
shouldOverride
public boolean shouldOverride(String name)
Description copied from interface:ClassNameResolverBased on the execution context, if a duplicate class represented by "name" is detected, should the existing one be overridden or not?- Specified by:
shouldOverridein interfaceClassNameResolver- Parameters:
name- the name to test- Returns:
- true if name should be overridden
-
-