-
- All Known Implementing Classes:
AnnotationManagerImpl
public interface AnnotationManagerInterface defining the access to MetaData derived from Annotations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetClassAnnotationHasHandler(String annotationName)ClassAnnotationHandlergetHandlerForClassAnnotation(String annotationName)Accessor for a handler for the specified class annotation.MemberAnnotationHandlergetHandlerForMemberAnnotation(String annotationName)Accessor for a handler for the specified member annotation.booleangetMemberAnnotationHasHandler(String annotationName)AbstractClassMetaDatagetMetaDataForClass(Class cls, PackageMetaData pmd, ClassLoaderResolver clr)Method to get the ClassMetaData for a class from its 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 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
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
-
-