com.schlimm.springcdi.interceptor.model
Class InterceptorMetaDataBean

java.lang.Object
  extended by com.schlimm.springcdi.interceptor.model.InterceptorMetaDataBean

public class InterceptorMetaDataBean
extends Object

Top level model bean that stored the InterceptorInfos for all registered interceptors. This bean is registered with the application context and can be injected.

Author:
Niklas Schlimm

Constructor Summary
InterceptorMetaDataBean(List<InterceptorInfo> interceptors)
           
 
Method Summary
 List<InterceptorInfo> getInterceptors()
           
 List<InterceptorInfo> getMatchingInterceptors(String beanName, Method method)
          Return all interceptors that match the bean name (class level declarations) or the method (method level interceptor declarations).
 boolean isInterceptedBean(String beanName)
          Check if the bean is intercepted by any of the listed interceptors.
 void setInterceptors(List<InterceptorInfo> interceptors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterceptorMetaDataBean

public InterceptorMetaDataBean(List<InterceptorInfo> interceptors)
Method Detail

isInterceptedBean

public boolean isInterceptedBean(String beanName)
Check if the bean is intercepted by any of the listed interceptors.

Parameters:
beanName - the given bean name
Returns:
true, if the bean is intercepted

getMatchingInterceptors

public List<InterceptorInfo> getMatchingInterceptors(String beanName,
                                                     Method method)
Return all interceptors that match the bean name (class level declarations) or the method (method level interceptor declarations).

Parameters:
beanName - given bean name
method - given method name
Returns:
all interceptors for the given method

getInterceptors

public List<InterceptorInfo> getInterceptors()

setInterceptors

public void setInterceptors(List<InterceptorInfo> interceptors)


Copyright © 2011. All Rights Reserved.