com.schlimm.springcdi.interceptor.strategies.impl
Class MethodLevelBindingsVisitor
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodLevelBindingsVisitor
public MethodLevelBindingsVisitor()
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.