Interface AnnotationManager

  • All Known Implementing Classes:
    AnnotationManagerImpl

    public interface AnnotationManager
    Interface defining the access to MetaData derived from Annotations.
    • Method Detail

      • getMetaDataForClass

        AbstractClassMetaData getMetaDataForClass​(Class cls,
                                                  PackageMetaData pmd,
                                                  ClassLoaderResolver clr)
        Method to get the ClassMetaData for a class from its annotations.
        Parameters:
        cls - The class
        pmd - MetaData for the owning package (that this will be a child of)
        clr - Resolver for ClassLoader issues
        Returns:
        The ClassMetaData (unpopulated and uninitialised)
      • getClassAnnotationHasHandler

        boolean getClassAnnotationHasHandler​(String annotationName)
      • getMemberAnnotationHasHandler

        boolean getMemberAnnotationHasHandler​(String annotationName)
      • getHandlerForClassAnnotation

        ClassAnnotationHandler getHandlerForClassAnnotation​(String annotationName)
        Accessor for a handler for the specified class annotation.
        Parameters:
        annotationName - Annotation to be handled.
        Returns:
        The handler (if any). Takes the first one, so only register one handler
      • getHandlerForMemberAnnotation

        MemberAnnotationHandler getHandlerForMemberAnnotation​(String annotationName)
        Accessor for a handler for the specified member annotation.
        Parameters:
        annotationName - Annotation to be handled
        Returns:
        The handler (if any). Takes the first one, so only register one handler