Interface ContainerAnnotations
-
public interface ContainerAnnotations
Interface to check if a container has any classes using specific annotations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getClassesWithSpecifiedInheritedAnnotations(java.util.List<java.lang.String> annotationTypeNames)
Deprecated.java.util.Set<java.lang.String>
getClassesWithSpecifiedInheritedAnnotations(java.util.List<java.lang.String> annotationTypeNames, boolean useJandex)
Returns the names of any classes in the container which have any of the specified annotations.boolean
hasSpecifiedAnnotations(java.util.List<java.lang.String> annotationTypeNames)
Deprecated.boolean
hasSpecifiedAnnotations(java.util.List<java.lang.String> annotationTypeNames, boolean useJandex)
Returns true if the container has any classes directly annotated with the specified annotations.
-
-
-
Method Detail
-
hasSpecifiedAnnotations
boolean hasSpecifiedAnnotations(java.util.List<java.lang.String> annotationTypeNames, boolean useJandex)
Returns true if the container has any classes directly annotated with the specified annotations. Uses a scan policy ofClassSource_Aggregate.ScanPolicy.SEED
. Inherited annotations are NOT included in the scan results.- Parameters:
annotationTypeNames
- the annotation type names- Returns:
- true if the container has any classes with the specified annotations
-
getClassesWithSpecifiedInheritedAnnotations
java.util.Set<java.lang.String> getClassesWithSpecifiedInheritedAnnotations(java.util.List<java.lang.String> annotationTypeNames, boolean useJandex)
Returns the names of any classes in the container which have any of the specified annotations. Uses a scan policy ofClassSource_Aggregate.ScanPolicy.SEED
. Inherited annotations are included in the scan results.- Parameters:
annotationTypeNames
- the annotation type names- Returns:
- the names of any classes which have any of the specified annotations (declared or inherited)
-
hasSpecifiedAnnotations
@Deprecated boolean hasSpecifiedAnnotations(java.util.List<java.lang.String> annotationTypeNames)
Deprecated.
-
getClassesWithSpecifiedInheritedAnnotations
@Deprecated java.util.Set<java.lang.String> getClassesWithSpecifiedInheritedAnnotations(java.util.List<java.lang.String> annotationTypeNames)
Deprecated.
-
-