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
- 関連項目:
- 直列化された形式
クラス 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)
- オブジェクトのトレース情報を追加します。
- パラメータ:
buf
- バッファarg
- オブジェクト
- 戻り値:
- 結果のバッファ
appendList
protected StringBuffer appendList(StringBuffer buf,
Collection collection)
- コレクションのトレース情報を追加します。
- パラメータ:
buf
- バッファcollection
- コレクション
- 戻り値:
- 結果のバッファ
Copyright ? 2004-2008 The Seasar Foundation. All Rights Reserved.