org.hibernate.ejb.packaging
Class JavaElementFilter
java.lang.Object
org.hibernate.ejb.packaging.Filter
org.hibernate.ejb.packaging.JavaElementFilter
- Direct Known Subclasses:
- ClassFilter, PackageFilter
public abstract class JavaElementFilter
- extends Filter
Filter a Java element (class or package per fully qualified name and annotation existence)
At least 1 annotation has to annotate the element and the accept method must match
If none annotations are passed, only the accept method must pass.
- Author:
- Emmanuel Bernard
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaElementFilter
protected JavaElementFilter(boolean retrieveStream,
Class[] annotations)
- Parameters:
retrieveStream
- Give back an open stream to the matching element or notannotations
- Array of annotations that must be present to match (1 of them should annotate the element
getAnnotations
public Class[] getAnnotations()
accept
public abstract boolean accept(String javaElementName)
- Return true if the fully qualified name match
Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.