org.apache.myfaces.orchestra.conversation
Class MockAdvice

java.lang.Object
  extended by org.apache.myfaces.orchestra.conversation.MockAdvice
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class MockAdvice
extends Object
implements org.aopalliance.intercept.MethodInterceptor

A simple AOP advice that just logs a message before and after every method call to the target object.


Constructor Summary
MockAdvice()
           
 
Method Summary
 Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
           
 void setMessage(String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockAdvice

public MockAdvice()
Method Detail

invoke

public Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
              throws Throwable
Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Throws:
Throwable

setMessage

public void setMessage(String msg)


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.