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(java.lang.String annotationName)
ClassAnnotationHandler
getHandlerForClassAnnotation(java.lang.String annotationName)
Accessor for a handler for the specified class annotation.MemberAnnotationHandler
getHandlerForMemberAnnotation(java.lang.String annotationName)
Accessor for a handler for the specified member annotation.boolean
getMemberAnnotationHasHandler(java.lang.String annotationName)
AbstractClassMetaData
getMetaDataForClass(java.lang.Class cls, PackageMetaData pmd, ClassLoaderResolver clr)
Method to get the ClassMetaData for a class from its annotations.
-
-
-
Method Detail
-
getMetaDataForClass
AbstractClassMetaData getMetaDataForClass(java.lang.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(java.lang.String annotationName)
-
getMemberAnnotationHasHandler
boolean getMemberAnnotationHasHandler(java.lang.String annotationName)
-
getHandlerForClassAnnotation
ClassAnnotationHandler getHandlerForClassAnnotation(java.lang.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(java.lang.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
-
-