org.seasar.framework.aop.interceptors
クラス MockInterceptor

java.lang.Object
  拡張org.seasar.framework.aop.interceptors.AbstractInterceptor
      拡張org.seasar.framework.aop.interceptors.MockInterceptor
すべての実装インタフェース:
Advice, Interceptor, MethodInterceptor, Serializable

public class MockInterceptor
extends AbstractInterceptor

作成者:
higa
関連項目:
直列化された形式

コンストラクタの概要
MockInterceptor()
           
MockInterceptor(Object value)
           
 
メソッドの概要
 Object[] getArgs(String methodName)
           
 Object invoke(MethodInvocation invocation)
           
 boolean isInvoked(String methodName)
           
 void setReturnValue(Object returnValue)
           
 void setReturnValue(String methodName, Object returnValue)
           
 void setThrowable(String methodName, Throwable throwable)
           
 void setThrowable(Throwable throwable)
           
 
クラス org.seasar.framework.aop.interceptors.AbstractInterceptor から継承したメソッド
createProxy, getComponentDef, getTargetClass
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

MockInterceptor

public MockInterceptor()

MockInterceptor

public MockInterceptor(Object value)
メソッドの詳細

setReturnValue

public void setReturnValue(Object returnValue)

setReturnValue

public void setReturnValue(String methodName,
                           Object returnValue)

setThrowable

public void setThrowable(Throwable throwable)

setThrowable

public void setThrowable(String methodName,
                         Throwable throwable)

isInvoked

public boolean isInvoked(String methodName)

getArgs

public Object[] getArgs(String methodName)

invoke

public Object invoke(MethodInvocation invocation)
              throws Throwable
例外:
Throwable
関連項目:
MethodInterceptor.invoke(org.aopalliance.intercept.MethodInvocation)


Copyright © 2004-2006 The Seasar Foundation. All Rights Reserved.