com.schlimm.springcdi.interceptor.model
Class InterceptorMetaDataBean
java.lang.Object
com.schlimm.springcdi.interceptor.model.InterceptorMetaDataBean
public class InterceptorMetaDataBean
- extends Object
Top level model bean that stored the InterceptorInfo
s for all registered interceptors. This bean is registered with the
application context and can be injected.
- Author:
- Niklas Schlimm
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InterceptorMetaDataBean
public InterceptorMetaDataBean(List<InterceptorInfo> interceptors)
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 namemethod
- 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.