Interface ContainerAnnotations


  • public interface ContainerAnnotations
    Interface to check if a container has any classes using specific 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 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

        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 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​(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.