org.datanucleus.metadata.annotations
Class AnnotationManagerImpl

java.lang.Object
  extended by org.datanucleus.metadata.annotations.AnnotationManagerImpl
All Implemented Interfaces:
AnnotationManager

public class AnnotationManagerImpl
extends java.lang.Object
implements AnnotationManager

Manager for annotations. Acts as a registry of the available annotation readers and allows use of all types of registered annotations.


Field Summary
protected static Localiser LOCALISER
          Localiser for messages
protected  MetaDataManager metadataMgr
          MetaData Manager that we work for.
 
Constructor Summary
AnnotationManagerImpl(MetaDataManager metadataMgr)
          Constructor.
 
Method Summary
 AbstractClassMetaData getMetaDataForClass(java.lang.Class cls, PackageMetaData pmd, ClassLoaderResolver clr)
          Accessor for the MetaData for the specified class, read from annotations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCALISER

protected static Localiser LOCALISER
Localiser for messages


metadataMgr

protected final MetaDataManager metadataMgr
MetaData Manager that we work for.

Constructor Detail

AnnotationManagerImpl

public AnnotationManagerImpl(MetaDataManager metadataMgr)
Constructor.

Parameters:
metadataMgr - Manager for MetaData
Method Detail

getMetaDataForClass

public AbstractClassMetaData getMetaDataForClass(java.lang.Class cls,
                                                 PackageMetaData pmd,
                                                 ClassLoaderResolver clr)
Accessor for the MetaData for the specified class, read from annotations. The annotations can be of any supported type.

Specified by:
getMetaDataForClass in interface AnnotationManager
Parameters:
cls - The class
pmd - PackageMetaData to use as a parent
clr - ClassLoader resolver
Returns:
The ClassMetaData


Copyright © 2010. All Rights Reserved.