org.ff4j.aop
Class FeatureAdvisor

java.lang.Object
  extended by org.ff4j.aop.FeatureAdvisor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.Aware, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.ApplicationContextAware

@Component(value="ff.advisor")
public class FeatureAdvisor
extends Object
implements org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.ApplicationContextAware

When Proxified, analyze bean to eventually invoke ANOTHER implementation (flip up).

Author:
Cedrick LUNVEN

Constructor Summary
FeatureAdvisor()
           
 
Method Summary
 Object invoke(org.aopalliance.intercept.MethodInvocation pMInvoc)
          
 Object postProcessAfterInitialization(Object bean, String beanName)
          
 Object postProcessBeforeInitialization(Object bean, String beanName)
          
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureAdvisor

public FeatureAdvisor()
Method Detail

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

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

invoke

public Object invoke(org.aopalliance.intercept.MethodInvocation pMInvoc)
              throws Throwable

Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Throws:
Throwable

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException

Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException


Copyright © 2013. All Rights Reserved.