|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.meta.annotate.AnnotationManager
public class AnnotationManager
Provides access to registered AnnotationMaps and will create them on demand for previously unattached AnnotationTypes. AnnotationManagers can be registered per thread context in a way similar to MetaClassRegistry.
Constructor Summary | |
---|---|
protected |
AnnotationManager()
Creates a new annotation manager with no parent. |
|
AnnotationManager(AnnotationManager parent)
Creates a new annotation manager with the specified parent. |
Method Summary | |
---|---|
AnnotationMap |
getAnnotationMap(AnnotationType type)
Returns the AnnotationMap for the specified AnnotationType. |
static AnnotationManager |
getContextAnnotationManager()
Returns the current thread's default AnnotationManager. |
static AnnotationMap |
getContextAnnotationMap(AnnotationType type)
Convenience method that uses the context AnnoationManager to lookup an AnnotationMap for the specified type. |
AnnotationManager |
getParentManager()
Returns the parent annotation manager for this manager or null if this is a root AnnotationManager. |
static AnnotationManager |
getRootAnnotationManager()
Returns the root annotation manager. |
void |
registerAnnotationMap(AnnotationType type,
AnnotationMap map)
Registers an AnnotationMap instance for the specified AnnotationType. |
static void |
setContextAnnotationManager(AnnotationManager am)
Returns the current thread's default AnnotationManager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AnnotationManager()
public AnnotationManager(AnnotationManager parent)
Method Detail |
---|
public AnnotationManager getParentManager()
public void registerAnnotationMap(AnnotationType type, AnnotationMap map)
public AnnotationMap getAnnotationMap(AnnotationType type)
public static AnnotationManager getContextAnnotationManager()
public static void setContextAnnotationManager(AnnotationManager am)
public static AnnotationManager getRootAnnotationManager()
public static AnnotationMap getContextAnnotationMap(AnnotationType type)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |