com.schlimm.springcdi.interceptor.processor
Class InterceptorAwareBeanPostProcessor

java.lang.Object
  extended by 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

Constructor Summary
InterceptorAwareBeanPostProcessor()
           
InterceptorAwareBeanPostProcessor(InterceptorMetaDataBean metaData, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
           
 
Method Summary
 Object postProcessAfterInitialization(Object bean, String beanName)
           
 Object postProcessBeforeInitialization(Object bean, String beanName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterceptorAwareBeanPostProcessor

public InterceptorAwareBeanPostProcessor()

InterceptorAwareBeanPostProcessor

public InterceptorAwareBeanPostProcessor(InterceptorMetaDataBean metaData,
                                         org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
Method Detail

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.