|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.deployers.plugins.annotations.GenericAnnotationResourceVisitor
public class GenericAnnotationResourceVisitor
Generic annotation scanner deployer.
Constructor Summary | |
---|---|
GenericAnnotationResourceVisitor(ClassLoader classLoader)
|
|
GenericAnnotationResourceVisitor(javassist.ClassPool pool,
ClassLoader classLoader)
|
Method Summary | |
---|---|
protected List<org.jboss.deployers.plugins.annotations.CommitElement> |
createCommitList()
Create commit list. |
protected static org.jboss.metadata.spi.signature.Signature |
getBehaviorSignature(javassist.CtBehavior behavior,
int index)
Get parameters signature. |
AnnotationEnvironment |
getEnv()
Get the built environment. |
org.jboss.classloading.spi.visitor.ResourceFilter |
getFilter()
|
protected static void |
handleAnnotations(ElementType type,
javassist.CtMember member,
Object[] annotations,
String className,
List<org.jboss.deployers.plugins.annotations.CommitElement> commit)
Handle annotations. |
protected static void |
handleAnnotations(ElementType type,
org.jboss.metadata.spi.signature.Signature signature,
Object[] annotations,
String className,
List<org.jboss.deployers.plugins.annotations.CommitElement> commit)
Handle annotations. |
protected void |
handleCtClass(javassist.CtClass ctClass,
List<org.jboss.deployers.plugins.annotations.CommitElement> commit)
Handle CtClass for annotations. |
protected void |
handleCtMembers(ElementType type,
javassist.CtMember[] members,
String className,
List<org.jboss.deployers.plugins.annotations.CommitElement> commit)
Handle CtMembers for annotations. |
protected void |
logThrowable(org.jboss.classloading.spi.visitor.ResourceContext resource,
Throwable t)
Log throwable. |
void |
setCheckInterfaces(boolean checkInterfaces)
Should we check interfaces for annotations as well. |
void |
setCheckSuper(boolean checkSuper)
Should we check super class for annotations as well. |
void |
setForceAnnotations(boolean forceAnnotations)
Should we force all annotations to be available. |
void |
setKeepAnnotations(boolean keepAnnotations)
Set the keep annotations flag. |
void |
setResourceFilter(org.jboss.classloading.spi.visitor.ResourceFilter resourceFilter)
Set the resource filter. |
void |
visit(org.jboss.classloading.spi.visitor.ResourceContext resource)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericAnnotationResourceVisitor(ClassLoader classLoader)
public GenericAnnotationResourceVisitor(javassist.ClassPool pool, ClassLoader classLoader)
Method Detail |
---|
public org.jboss.classloading.spi.visitor.ResourceFilter getFilter()
getFilter
in interface org.jboss.classloading.spi.visitor.ResourceVisitor
public void visit(org.jboss.classloading.spi.visitor.ResourceContext resource)
visit
in interface org.jboss.classloading.spi.visitor.ResourceVisitor
protected List<org.jboss.deployers.plugins.annotations.CommitElement> createCommitList()
protected void logThrowable(org.jboss.classloading.spi.visitor.ResourceContext resource, Throwable t)
resource
- the resource we're visitingt
- the throwableprotected void handleCtClass(javassist.CtClass ctClass, List<org.jboss.deployers.plugins.annotations.CommitElement> commit) throws ClassNotFoundException, javassist.NotFoundException
ctClass
- the ct class instancecommit
- the commit list
ClassNotFoundException
- for any annotations lookup problems
javassist.NotFoundException
- for any annotations lookup problemsprotected void handleCtMembers(ElementType type, javassist.CtMember[] members, String className, List<org.jboss.deployers.plugins.annotations.CommitElement> commit) throws ClassNotFoundException
type
- where we found the annotationsmembers
- the ct member instancesclassName
- the classNamecommit
- the commit list
ClassNotFoundException
- for any annotations lookup problemsprotected static org.jboss.metadata.spi.signature.Signature getBehaviorSignature(javassist.CtBehavior behavior, int index) throws ClassNotFoundException
behavior
- the ct behaviorindex
- the index
ClassNotFoundException
- for any errorprotected static void handleAnnotations(ElementType type, javassist.CtMember member, Object[] annotations, String className, List<org.jboss.deployers.plugins.annotations.CommitElement> commit)
type
- where we found the annotationsmember
- the ct memberannotations
- the actual annotationsclassName
- the classNamecommit
- the commit listprotected static void handleAnnotations(ElementType type, org.jboss.metadata.spi.signature.Signature signature, Object[] annotations, String className, List<org.jboss.deployers.plugins.annotations.CommitElement> commit)
type
- where we found the annotationssignature
- the signatureannotations
- the actual annotationsclassName
- the classNamecommit
- the commit listpublic void setResourceFilter(org.jboss.classloading.spi.visitor.ResourceFilter resourceFilter)
resourceFilter
- the resource filterpublic void setForceAnnotations(boolean forceAnnotations)
forceAnnotations
- the force annotations flagpublic void setKeepAnnotations(boolean keepAnnotations)
keepAnnotations
- the keep annotations flagpublic void setCheckSuper(boolean checkSuper)
checkSuper
- the check super flagpublic void setCheckInterfaces(boolean checkInterfaces)
checkInterfaces
- the check interfaces flagpublic AnnotationEnvironment getEnv()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |