|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.util.JBossObject
org.jboss.deployers.plugins.annotations.DefaultAnnotationEnvironment
public class DefaultAnnotationEnvironment
DefaultAnnotationEnvironment.
| Field Summary |
|---|
| Fields inherited from class org.jboss.util.JBossObject |
|---|
hashCode, toString |
| Constructor Summary | |
|---|---|
DefaultAnnotationEnvironment(ClassLoader classLoader)
|
|
| Method Summary | ||
|---|---|---|
|
classHasConstructorAnnotatedWith(Class<A> annotation)
Get all classes who have some constructor annotated with annotation param. |
|
Set<Element<Annotation,Constructor<?>>> |
classHasConstructorAnnotatedWith(String annotationName)
Get all classes who have some constructor annotated with annotation param. |
|
|
classHasFieldAnnotatedWith(Class<A> annotation)
Get all classes who have some field annotated with annotation param. |
|
Set<Element<Annotation,Field>> |
classHasFieldAnnotatedWith(String annotationName)
Get all classes who have some field annotated with annotation param. |
|
|
classHasMethodAnnotatedWith(Class<A> annotation)
Get all classes who have some method annotated with annotation param. |
|
Set<Element<Annotation,Method>> |
classHasMethodAnnotatedWith(String annotationName)
Get all classes who have some method annotated with annotation param. |
|
|
classHasParameterAnnotatedWith(Class<A> annotation)
Get all classes who have some method's/constructor's parameter annotated with annotation param. |
|
Set<Element<Annotation,AnnotatedElement>> |
classHasParameterAnnotatedWith(String annotationName)
Get all classes who have some method's/constructor's parameter annotated with annotation param. |
|
|
classIsAnnotatedWith(Class<A> annotation)
Get all classes annotated with annotation param. |
|
Set<Element<Annotation,Class<?>>> |
classIsAnnotatedWith(String annotationName)
Get all classes annotated with annotation param. |
|
protected Class<Annotation> |
getAnnotationClass(String annotationName)
Load the annotation class. |
|
protected ClassLoader |
getClassLoader()
Get the classloader from weak ref. |
|
protected Set<ClassSignaturePair> |
getCSPairs(Class<? extends Annotation> annClass,
ElementType type)
Get matching cs pairs. |
|
protected Map<Class<? extends Annotation>,Map<ElementType,Set<ClassSignaturePair>>> |
getEnv()
Get env map. |
|
boolean |
hasClassAnnotatedWith(Class<? extends Annotation> annotation)
Does this annotation environment contain a class which is annotated with annotation parameter. |
|
boolean |
hasClassAnnotatedWith(String annotationName)
Does this annotation environment contain a class which is annotated with annotation parameter. |
|
protected Class<?> |
loadClass(String className)
Load class from class name. |
|
void |
setKeepAnnotations(boolean keepAnnotations)
Set the keep annotations flag. |
|
protected
|
transformToElements(ElementType type,
Class<A> annClass,
Class<M> aoClass)
Transform class names into classes. |
|
| Methods inherited from class org.jboss.util.JBossObject |
|---|
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toShortString, toString, toString, toStringImplementation |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultAnnotationEnvironment(ClassLoader classLoader)
| Method Detail |
|---|
public void setKeepAnnotations(boolean keepAnnotations)
keepAnnotations - the keep annotations flagprotected Map<Class<? extends Annotation>,Map<ElementType,Set<ClassSignaturePair>>> getEnv()
protected Set<ClassSignaturePair> getCSPairs(Class<? extends Annotation> annClass,
ElementType type)
annClass - the annotation classtype - the annotation type
protected <A extends Annotation,M extends AnnotatedElement> Set<Element<A,M>> transformToElements(ElementType type,
Class<A> annClass,
Class<M> aoClass)
A - the annotation typeM - the annotated element typetype - the annotation typeannClass - the annotation classaoClass - the ao class
public boolean hasClassAnnotatedWith(Class<? extends Annotation> annotation)
AnnotationEnvironment
hasClassAnnotatedWith in interface AnnotationEnvironmentannotation - the annotation we're querying for
AnnotationEnvironment.hasClassAnnotatedWith(Class annotation)public <A extends Annotation> Set<Element<A,Class<?>>> classIsAnnotatedWith(Class<A> annotation)
AnnotationEnvironment
classIsAnnotatedWith in interface AnnotationEnvironmentA - the annotation typeannotation - the annotation we're querying for
public <A extends Annotation> Set<Element<A,Constructor<?>>> classHasConstructorAnnotatedWith(Class<A> annotation)
AnnotationEnvironment
classHasConstructorAnnotatedWith in interface AnnotationEnvironmentA - the annotation typeannotation - the annotation we're querying for
public <A extends Annotation> Set<Element<A,Field>> classHasFieldAnnotatedWith(Class<A> annotation)
AnnotationEnvironment
classHasFieldAnnotatedWith in interface AnnotationEnvironmentA - the annotation typeannotation - the annotation we're querying for
public <A extends Annotation> Set<Element<A,Method>> classHasMethodAnnotatedWith(Class<A> annotation)
AnnotationEnvironment
classHasMethodAnnotatedWith in interface AnnotationEnvironmentA - the annotation typeannotation - the annotation we're querying for
public <A extends Annotation> Set<Element<A,AnnotatedElement>> classHasParameterAnnotatedWith(Class<A> annotation)
AnnotationEnvironment
classHasParameterAnnotatedWith in interface AnnotationEnvironmentA - the annotation typeannotation - the annotation we're querying for
protected Class<Annotation> getAnnotationClass(String annotationName)
annotationName - the annoation class name
public boolean hasClassAnnotatedWith(String annotationName)
AnnotationEnvironment
hasClassAnnotatedWith in interface AnnotationEnvironmentannotationName - the annotation name we're querying for
AnnotationEnvironment.hasClassAnnotatedWith(Class annotation)public Set<Element<Annotation,Class<?>>> classIsAnnotatedWith(String annotationName)
AnnotationEnvironment
classIsAnnotatedWith in interface AnnotationEnvironmentannotationName - the annotation name we're querying for
public Set<Element<Annotation,Constructor<?>>> classHasConstructorAnnotatedWith(String annotationName)
AnnotationEnvironment
classHasConstructorAnnotatedWith in interface AnnotationEnvironmentannotationName - the annotation name we're querying for
public Set<Element<Annotation,Field>> classHasFieldAnnotatedWith(String annotationName)
AnnotationEnvironment
classHasFieldAnnotatedWith in interface AnnotationEnvironmentannotationName - the annotation name we're querying for
public Set<Element<Annotation,Method>> classHasMethodAnnotatedWith(String annotationName)
AnnotationEnvironment
classHasMethodAnnotatedWith in interface AnnotationEnvironmentannotationName - the annotation name we're querying for
public Set<Element<Annotation,AnnotatedElement>> classHasParameterAnnotatedWith(String annotationName)
AnnotationEnvironment
classHasParameterAnnotatedWith in interface AnnotationEnvironmentannotationName - the annotation name we're querying for
protected ClassLoader getClassLoader()
protected Class<?> loadClass(String className)
className - the class name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||