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

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

public class TraceInterceptor
extends AbstractInterceptor

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

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

フィールドの概要
protected  int maxLengthOfCollection
          コレクションの最大サイズです。
 
コンストラクタの概要
TraceInterceptor()
           
 
メソッドの概要
protected  java.lang.StringBuffer appendList(java.lang.StringBuffer buf, java.util.Collection collection)
          コレクションのトレース情報を追加します。
protected  java.lang.StringBuffer appendObject(java.lang.StringBuffer buf, java.lang.Object arg)
          オブジェクトのトレース情報を追加します。
 java.lang.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 java.lang.Object invoke(MethodInvocation invocation)
                        throws java.lang.Throwable
例外:
java.lang.Throwable

appendObject

protected java.lang.StringBuffer appendObject(java.lang.StringBuffer buf,
                                              java.lang.Object arg)
オブジェクトのトレース情報を追加します。

パラメータ:
buf - バッファ
arg - オブジェクト
戻り値:
結果のバッファ

appendList

protected java.lang.StringBuffer appendList(java.lang.StringBuffer buf,
                                            java.util.Collection collection)
コレクションのトレース情報を追加します。

パラメータ:
buf - バッファ
collection - コレクション
戻り値:
結果のバッファ


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