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

java.lang.Object
  拡張org.seasar.framework.aop.interceptors.AbstractInterceptor
      拡張org.seasar.framework.aop.interceptors.TraceInterceptor
すべての実装インタフェース:
Advice, Interceptor, MethodInterceptor, Serializable
直系の既知のサブクラス:
ClassLoaderAwareTraceInterceptor

public class TraceInterceptor
extends AbstractInterceptor

トレース出力用のMethodInterceptorです。

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

フィールドの概要
protected  int maxLengthOfCollection
           
 
コンストラクタの概要
TraceInterceptor()
           
 
メソッドの概要
protected  StringBuffer appendList(StringBuffer buf, Collection collection)
           
protected  StringBuffer appendObject(StringBuffer buf, Object arg)
           
 Object invoke(MethodInvocation invocation)
           
 void setMaxLengthOfCollection(int maxLengthOfCollection)
          引数や戻り値がCollectionや配列だった場合Max何件出力するかどうか設定します。
 
クラス org.seasar.framework.aop.interceptors.AbstractInterceptor から継承したメソッド
createProxy, getComponentDef, getTargetClass
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

maxLengthOfCollection

protected int maxLengthOfCollection
コンストラクタの詳細

TraceInterceptor

public TraceInterceptor()
メソッドの詳細

setMaxLengthOfCollection

public void setMaxLengthOfCollection(int maxLengthOfCollection)
引数や戻り値がCollectionや配列だった場合Max何件出力するかどうか設定します。

パラメータ:
maxLengthOfCollection -

invoke

public Object invoke(MethodInvocation invocation)
              throws Throwable
例外:
Throwable

appendObject

protected StringBuffer appendObject(StringBuffer buf,
                                    Object arg)

appendList

protected StringBuffer appendList(StringBuffer buf,
                                  Collection collection)


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