com.schlimm.springcdi.interceptor.strategies.impl
Class MethodLevelBindingsVisitor

java.lang.Object
  extended by com.schlimm.springcdi.interceptor.strategies.impl.MethodLevelBindingsVisitor

public class MethodLevelBindingsVisitor
extends Object

Check is the given BeanDefinition is intercepted by the given interceptor on the method level. If yes store that information in InterceptorInfo. Assumes that BeanDefinition is of type AnnotatedBeanDefinition.

Author:
Niklas Schlimm

Constructor Summary
MethodLevelBindingsVisitor()
           
 
Method Summary
static
<A extends Annotation>
A
findBindingAnnotation(Class<?> clazz, Class<A> annotationType)
           
static boolean isInterceptorBinding(Class<? extends Annotation> candidate)
          Check if annotation is an interceptor binding.
static boolean isStereotype(Class<? extends Annotation> candidate)
           
static boolean matchBindingTypeMembers(Annotation beanAnnotation, Map<String,Object> beanAnnotationAttributes, Map<String,Object> interceptorAttributes)
           
 void visit(InterceptorInfo interceptorInfo, org.springframework.beans.factory.config.BeanDefinitionHolder definition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodLevelBindingsVisitor

public MethodLevelBindingsVisitor()
Method Detail

visit

public void visit(InterceptorInfo interceptorInfo,
                  org.springframework.beans.factory.config.BeanDefinitionHolder definition)

matchBindingTypeMembers

public static boolean matchBindingTypeMembers(Annotation beanAnnotation,
                                              Map<String,Object> beanAnnotationAttributes,
                                              Map<String,Object> interceptorAttributes)

findBindingAnnotation

public static <A extends Annotation> A findBindingAnnotation(Class<?> clazz,
                                                             Class<A> annotationType)

isInterceptorBinding

public static boolean isInterceptorBinding(Class<? extends Annotation> candidate)
Check if annotation is an interceptor binding.

Parameters:
candidate -
Returns:

isStereotype

public static boolean isStereotype(Class<? extends Annotation> candidate)


Copyright © 2011. All Rights Reserved.