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

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

public class DelegateInterceptor
extends AbstractInterceptor

あるオブジェクトへの呼び出しを別のオブジェクトに転送するMethodInterceptorです。

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

コンストラクタの概要
DelegateInterceptor()
          DelegateInterceptorを作成します。
DelegateInterceptor(java.lang.Object target)
          DelegateInterceptorを作成します。
 
メソッドの概要
 void addMethodNameMap(java.lang.String methodName, java.lang.String targetMethodName)
          転送するメソッドの組を追加します。
 java.lang.Object getTarget()
          ターゲットのオブジェクトを返します。
 java.lang.Object invoke(MethodInvocation invocation)
           
 void setTarget(java.lang.Object target)
          ターゲットのオブジェクトを設定します。
 
クラス org.seasar.framework.aop.interceptors.AbstractInterceptor から継承したメソッド
createProxy, getComponentDef, getTargetClass
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

DelegateInterceptor

public DelegateInterceptor()
DelegateInterceptorを作成します。


DelegateInterceptor

public DelegateInterceptor(java.lang.Object target)
DelegateInterceptorを作成します。

パラメータ:
target -
メソッドの詳細

getTarget

public java.lang.Object getTarget()
ターゲットのオブジェクトを返します。

戻り値:
target

setTarget

public void setTarget(java.lang.Object target)
ターゲットのオブジェクトを設定します。

パラメータ:
target -

addMethodNameMap

public void addMethodNameMap(java.lang.String methodName,
                             java.lang.String targetMethodName)
転送するメソッドの組を追加します。

パラメータ:
methodName -
targetMethodName -

invoke

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


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