org.datanucleus.metadata.annotations
Class AnnotationManagerImpl

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

public class AnnotationManagerImpl
extends java.lang.Object
implements org.datanucleus.metadata.annotations.AnnotationManager

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

Version:
$Revision: 1.1 $

Field Summary
protected static org.datanucleus.util.Localiser LOCALISER
          Localiser for messages
protected  org.datanucleus.metadata.MetaDataManager metadataMgr
          MetaData Manager that we work for.
 
Constructor Summary
AnnotationManagerImpl(org.datanucleus.metadata.MetaDataManager metadataMgr)
          Constructor.
 
Method Summary
 org.datanucleus.metadata.AbstractClassMetaData getMetaDataForClass(java.lang.Class cls, org.datanucleus.metadata.PackageMetaData pmd, org.datanucleus.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 org.datanucleus.util.Localiser LOCALISER
Localiser for messages


metadataMgr

protected final org.datanucleus.metadata.MetaDataManager metadataMgr
MetaData Manager that we work for.

Constructor Detail

AnnotationManagerImpl

public AnnotationManagerImpl(org.datanucleus.metadata.MetaDataManager metadataMgr)
Constructor.

Parameters:
metadataMgr - Manager for MetaData
Method Detail

getMetaDataForClass

public org.datanucleus.metadata.AbstractClassMetaData getMetaDataForClass(java.lang.Class cls,
                                                                          org.datanucleus.metadata.PackageMetaData pmd,
                                                                          org.datanucleus.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 org.datanucleus.metadata.annotations.AnnotationManager
Parameters:
cls - The class
pmd - PackageMetaData to use as a parent
clr - ClassLoader resolver
Returns:
The ClassMetaData


Copyright © 2009. All Rights Reserved.