Package org.apache.openjpa.lib.meta
Class ClassAnnotationMetaDataFilter
- java.lang.Object
-
- org.apache.openjpa.lib.meta.ClassAnnotationMetaDataFilter
-
- All Implemented Interfaces:
MetaDataFilter
public class ClassAnnotationMetaDataFilter extends java.lang.Object implements MetaDataFilter
Filter that looks for classes with one of a set of annotations. See JDK 1.5 JVM spec for details on annotation bytecode:
java.sun.com/docs/books/vmspec/2nd-edition/ClassFileFormat-final-draft.pdf- Author:
- Abe White
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ClassAnnotationMetaDataFilter.MatchAnnotationScanner
-
Nested classes/interfaces inherited from interface org.apache.openjpa.lib.meta.MetaDataFilter
MetaDataFilter.Resource
-
-
Constructor Summary
Constructors Constructor Description ClassAnnotationMetaDataFilter(java.lang.Class<?> anno)
Constructor; supply annotation to match against.ClassAnnotationMetaDataFilter(java.lang.Class<?>[] annos)
Constructor; supply annotations to match against.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Log
getLog()
boolean
matches(MetaDataFilter.Resource rsrc)
Return whether the given resource passes the filter.void
setLog(Log _log)
-
-
-
Constructor Detail
-
ClassAnnotationMetaDataFilter
public ClassAnnotationMetaDataFilter(java.lang.Class<?> anno)
Constructor; supply annotation to match against.
-
ClassAnnotationMetaDataFilter
public ClassAnnotationMetaDataFilter(java.lang.Class<?>[] annos)
Constructor; supply annotations to match against.
-
-
Method Detail
-
matches
public boolean matches(MetaDataFilter.Resource rsrc) throws java.io.IOException
Description copied from interface:MetaDataFilter
Return whether the given resource passes the filter.- Specified by:
matches
in interfaceMetaDataFilter
- Throws:
java.io.IOException
-
getLog
public Log getLog()
-
setLog
public void setLog(Log _log)
-
-