Interface ContainerAnnotations


public interface ContainerAnnotations
Interface to check if a container has any classes using specific annotations
  • Method Details

    • hasSpecifiedAnnotations

      boolean hasSpecifiedAnnotations(List<String> annotationTypeNames, boolean useJandex)
      Returns true if the container has any classes directly annotated with the specified annotations. Uses a scan policy of ClassSource_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 of ClassSource_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(List<String> annotationTypeNames)
      Deprecated.
    • getClassesWithSpecifiedInheritedAnnotations

      @Deprecated Set<String> getClassesWithSpecifiedInheritedAnnotations(List<String> annotationTypeNames)
      Deprecated.