Interface ContainerAnnotations
public interface ContainerAnnotations
Interface to check if a container has any classes using specific annotations
-
Method Summary
Modifier and TypeMethodDescriptiongetClassesWithSpecifiedInheritedAnnotations
(List<String> annotationTypeNames) Deprecated.getClassesWithSpecifiedInheritedAnnotations
(List<String> annotationTypeNames, boolean useJandex) Returns the names of any classes in the container which have any of the specified annotations.boolean
hasSpecifiedAnnotations
(List<String> annotationTypeNames) Deprecated.boolean
hasSpecifiedAnnotations
(List<String> annotationTypeNames, boolean useJandex) Returns true if the container has any classes directly annotated with the specified annotations.
-
Method Details
-
hasSpecifiedAnnotations
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
Set<String> getClassesWithSpecifiedInheritedAnnotations(List<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. -
getClassesWithSpecifiedInheritedAnnotations
@Deprecated Set<String> getClassesWithSpecifiedInheritedAnnotations(List<String> annotationTypeNames) Deprecated.
-