org.datanucleus.metadata.annotations
Interface AnnotationReader

All Known Implementing Classes:
AbstractAnnotationReader, JDOAnnotationReader, JPAAnnotationReader

public interface AnnotationReader

Interface defining the access to MetaData derived from Annotations. An annotation reader supports particular annotations packages.

Version:
$Revision: 1.1 $

Method Summary
 org.datanucleus.metadata.AbstractClassMetaData getMetaDataForClass(java.lang.Class cls, org.datanucleus.metadata.PackageMetaData pmd, org.datanucleus.ClassLoaderResolver clr)
          Method to get the ClassMetaData for a class from its annotations.
 java.lang.String[] getSupportedAnnotationPackages()
          Accessor for the annotations packages supported by this reader.
 

Method Detail

getSupportedAnnotationPackages

java.lang.String[] getSupportedAnnotationPackages()
Accessor for the annotations packages supported by this reader.

Returns:
The annotations packages that will be processed.

getMetaDataForClass

org.datanucleus.metadata.AbstractClassMetaData getMetaDataForClass(java.lang.Class cls,
                                                                   org.datanucleus.metadata.PackageMetaData pmd,
                                                                   org.datanucleus.ClassLoaderResolver clr)
Method to get the ClassMetaData for a class from its annotations.

Parameters:
cls - The class
pmd - MetaData for the owning package (that this will be a child of)
clr - ClassLoader resolver
Returns:
The ClassMetaData (unpopulated and unitialised)


Copyright © 2009. All Rights Reserved.