com.schlimm.springcdi.interceptor.processor
Class InterceptorAwareBeanPostProcessor
java.lang.Object
com.schlimm.springcdi.interceptor.processor.InterceptorAwareBeanPostProcessor
- All Implemented Interfaces:
- org.springframework.beans.factory.config.BeanPostProcessor
public class InterceptorAwareBeanPostProcessor
- extends Object
- implements org.springframework.beans.factory.config.BeanPostProcessor
BeanPostProcessor
that applies the JSR-299 interceptor pattern to the Spring beans.
If the processed bean is an intercepted bean, then this BeanPostProcessor
returns a CGLIB proxy for that bean. Uses a
InterceptedBeanProxyAdvice
to delegate calls to interceptors for a specific method call.
- Author:
- Niklas Schlimm
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InterceptorAwareBeanPostProcessor
public InterceptorAwareBeanPostProcessor()
InterceptorAwareBeanPostProcessor
public InterceptorAwareBeanPostProcessor(InterceptorMetaDataBean metaData,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
postProcessAfterInitialization
public Object postProcessAfterInitialization(Object bean,
String beanName)
throws org.springframework.beans.BeansException
- Specified by:
postProcessAfterInitialization
in interface org.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.BeansException
postProcessBeforeInitialization
public Object postProcessBeforeInitialization(Object bean,
String beanName)
throws org.springframework.beans.BeansException
- Specified by:
postProcessBeforeInitialization
in interface org.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.BeansException
Copyright © 2011. All Rights Reserved.