Interface AnnotationManager
- All Known Implementing Classes:
AnnotationManagerImpl
public interface AnnotationManager
Interface defining the access to MetaData derived from Annotations.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getClassAnnotationHasHandler
(String annotationName) getHandlerForClassAnnotation
(String annotationName) Accessor for a handler for the specified class annotation.getHandlerForMemberAnnotation
(String annotationName) Accessor for a handler for the specified member annotation.boolean
getMemberAnnotationHasHandler
(String annotationName) getMetaDataForClass
(Class cls, PackageMetaData pmd, ClassLoaderResolver clr) Method to get the ClassMetaData for a class from its annotations.
-
Method Details
-
getMetaDataForClass
Method to get the ClassMetaData for a class from its annotations.- Parameters:
cls
- The classpmd
- MetaData for the owning package (that this will be a child of)clr
- Resolver for ClassLoader issues- Returns:
- The ClassMetaData (unpopulated and uninitialised)
-
getClassAnnotationHasHandler
-
getMemberAnnotationHasHandler
-
getHandlerForClassAnnotation
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
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
-