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

java.lang.Object
  extended by com.schlimm.springcdi.interceptor.strategies.impl.SimpleInterceptorResolutionStrategy
All Implemented Interfaces:
InterceptorResolutionStrategy

public class SimpleInterceptorResolutionStrategy
extends Object
implements InterceptorResolutionStrategy

Simple interceptor resolution strategy that assumes that interceptors are scanned on the class path using Spring's component scan. Interceptor BeanDefinition must be of type AnnotatedBeanDefinition.

Author:
Niklas Schlimm

Constructor Summary
SimpleInterceptorResolutionStrategy()
           
 
Method Summary
 InterceptorInfo resolveInterceptorTargets(org.springframework.beans.factory.BeanFactory beanFactory, InterceptorInfo interceptorInfo)
           
 List<InterceptorInfo> resolveRegisteredInterceptors(org.springframework.beans.factory.BeanFactory beanFactory)
          Resolve the available interceptors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleInterceptorResolutionStrategy

public SimpleInterceptorResolutionStrategy()
Method Detail

resolveRegisteredInterceptors

public List<InterceptorInfo> resolveRegisteredInterceptors(org.springframework.beans.factory.BeanFactory beanFactory)
Description copied from interface: InterceptorResolutionStrategy
Resolve the available interceptors.

Specified by:
resolveRegisteredInterceptors in interface InterceptorResolutionStrategy
Parameters:
beanFactory - the factory that contains the interceptor BeanDefinitions
Returns:
the resolved interceptors

resolveInterceptorTargets

public InterceptorInfo resolveInterceptorTargets(org.springframework.beans.factory.BeanFactory beanFactory,
                                                 InterceptorInfo interceptorInfo)


Copyright © 2011. All Rights Reserved.