kr.co.hit.live.aop.intercept
Class CallTraceLogInterceptor

java.lang.Object
  extended by kr.co.hit.live.aop.intercept.CallTraceLogInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class CallTraceLogInterceptor
extends Object
implements org.aopalliance.intercept.MethodInterceptor

메소드 호출 관계를 추적하기 위한 로깅용 MethodInterceptor 구현

callno는 메소스 호출 시 마다 증가되는 번호이며, parentno는 호출한 메소드의 callno 이다.

Author:
김형도

Constructor Summary
CallTraceLogInterceptor()
           
 
Method Summary
 Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
           
 void setDelimeter(String dm)
          각 스택 트래이스 로그를 구별할 구분자를 지정한다.
 void setLogger(String name)
          Logger 객체 명을 지정한다.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallTraceLogInterceptor

public CallTraceLogInterceptor()
Method Detail

setLogger

public void setLogger(String name)
Logger 객체 명을 지정한다. 지정한 logger 를 사용하여 호출 스택을 남긴다.

Parameters:
name -

setDelimeter

public void setDelimeter(String dm)
각 스택 트래이스 로그를 구별할 구분자를 지정한다. 기본은 "@" 이다.

Parameters:
dm -

invoke

public Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
              throws Throwable
Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Throws:
Throwable


Copyright © 2014. All Rights Reserved.