@Component(value="ff.advisor") public class FeatureAdvisor extends Object implements org.aopalliance.intercept.MethodInterceptor
| Constructor and Description |
|---|
FeatureAdvisor() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
check(Flip ff,
org.aopalliance.intercept.MethodInvocation mi)
Call if Flipped based on different parameters of the annotation
|
protected String |
getExecutedBeanName(org.aopalliance.intercept.MethodInvocation mi)
Find bean name related to current method invocation.
|
protected Class<?> |
getExecutedClass(org.aopalliance.intercept.MethodInvocation pMInvoc)
Find current class based on the
MethodInvocation and passing throug AOP Proxies. |
FF4j |
getFf4j()
Getter accessor for attribute 'ff4j'.
|
protected Flip |
getFF4jAnnotation(org.aopalliance.intercept.MethodInvocation mi)
Pick annotation from method or class.
|
protected FlippingExecutionContext |
getFlippingContext(Flip ff,
org.aopalliance.intercept.MethodInvocation mi)
Retriveve
FlippingExecutionContext from FF4J or as parameter. |
Object |
invoke(org.aopalliance.intercept.MethodInvocation mi) |
protected Object |
invokeAlterBean(org.aopalliance.intercept.MethodInvocation mi,
String alterBeanName)
Invoke another Bean for the current Method.
|
protected Object |
invokeAlterClazz(org.aopalliance.intercept.MethodInvocation mi,
Flip ff)
Invoke alter class.
|
void |
setFf4j(FF4j ff4j)
Setter accessor for attribute 'ff4j'.
|
public Object invoke(org.aopalliance.intercept.MethodInvocation mi) throws Throwable
invoke in interface org.aopalliance.intercept.MethodInterceptorThrowableprotected boolean check(Flip ff, org.aopalliance.intercept.MethodInvocation mi)
ff - annotation over current methodcontext - protected Flip getFF4jAnnotation(org.aopalliance.intercept.MethodInvocation mi)
method - current methodprotected FlippingExecutionContext getFlippingContext(Flip ff, org.aopalliance.intercept.MethodInvocation mi)
FlippingExecutionContext from FF4J or as parameter.ff - current annotationmi - invocationprotected Class<?> getExecutedClass(org.aopalliance.intercept.MethodInvocation pMInvoc)
MethodInvocation and passing throug AOP Proxies.pMInvoc - current method invocationprotected String getExecutedBeanName(org.aopalliance.intercept.MethodInvocation mi)
pMInvoc - current method invocationprotected Object invokeAlterBean(org.aopalliance.intercept.MethodInvocation mi, String alterBeanName) throws Throwable
mi - current method invocationalterBean - target beanThrowable - erros occuredprotected Object invokeAlterClazz(org.aopalliance.intercept.MethodInvocation mi, Flip ff) throws Throwable
mi - method invocationff - ff4j annotationThrowable - error during invocationpublic FF4j getFf4j()
public void setFf4j(FF4j ff4j)
ff4j - new value for 'ff4j 'Copyright © 2013–2021 FF4J. All rights reserved.