|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.deployment.annotations.helper.bean.InterceptorsClassResolver
public final class InterceptorsClassResolver
This class sets the EasyBeans interceptors used when invoking business methods and also for life cycle events.
Field Summary | |
---|---|
private static JMethod |
EASYBEANS_INTERCEPTOR
Signature of EasyBeans interceptors. |
Constructor Summary | |
---|---|
private |
InterceptorsClassResolver()
Helper class, no public constructor. |
Method Summary | |
---|---|
private static void |
addOnlyIfNotPresent(java.util.List<JClassInterceptor> interceptors,
JClassInterceptor jInterceptor)
Adds in the given interceptors list the interceptor object. |
private static java.util.Map<InterceptorType,java.util.List<JClassInterceptor>> |
getInterceptors(java.lang.String referencingName,
EjbJarAnnotationMetadata ejbJarAnnotationMetadata,
java.util.List<java.lang.String> interceptorsClasses)
Found interceptors method in the given class. |
private static java.util.LinkedList<ClassAnnotationMetadata> |
getInvertedSuperClassesMetadata(ClassAnnotationMetadata classAnnotationMetadata)
Gets the inverted list of metadata for a given class (super class is the first one in the list). |
static void |
resolve(ClassAnnotationMetadata classAnnotationMetadata)
Found all interceptors of the class (including business and lifecycle events) and also set EasyBeans interceptors. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final JMethod EASYBEANS_INTERCEPTOR
Constructor Detail |
---|
private InterceptorsClassResolver()
Method Detail |
---|
public static void resolve(ClassAnnotationMetadata classAnnotationMetadata) throws ResolverException
classAnnotationMetadata
- class to analyze
ResolverException
- if metadata is missingprivate static java.util.Map<InterceptorType,java.util.List<JClassInterceptor>> getInterceptors(java.lang.String referencingName, EjbJarAnnotationMetadata ejbJarAnnotationMetadata, java.util.List<java.lang.String> interceptorsClasses) throws ResolverException
referencingName
- name of the class/method that reference these interceptorsejbJarAnnotationMetadata
- root of all annotations (used to find the metadata)interceptorsClasses
- list of classes that contains interceptors
ResolverException
- if analyze failsprivate static void addOnlyIfNotPresent(java.util.List<JClassInterceptor> interceptors, JClassInterceptor jInterceptor)
interceptors
- the list of interceptors.jInterceptor
- the interceptor to add.private static java.util.LinkedList<ClassAnnotationMetadata> getInvertedSuperClassesMetadata(ClassAnnotationMetadata classAnnotationMetadata)
classAnnotationMetadata
- the class to analyze
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |