Interface AnnotationManager
-
- All Known Implementing Classes:
AnnotationManagerImpl
public interface AnnotationManager
Interface defining the access to MetaData derived from Annotations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
getClassAnnotationHasHandler(String annotationName)
ClassAnnotationHandler
getHandlerForClassAnnotation(String annotationName)
Accessor for a handler for the specified class annotation.MemberAnnotationHandler
getHandlerForMemberAnnotation(String annotationName)
Accessor for a handler for the specified member annotation.boolean
getMemberAnnotationHasHandler(String annotationName)
AbstractClassMetaData
getMetaDataForClass(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
-
-