kr.co.hit.live.aop.auto
Class AbstractAutoProxy

java.lang.Object
  extended by kr.co.hit.live.aop.AbstractInterceptorProxy
      extended by kr.co.hit.live.aop.MethodInterceptorProxy
          extended by kr.co.hit.live.aop.auto.AbstractAutoProxy
All Implemented Interfaces:
InvocationHandler, AutoProxy, InterceptorProxy
Direct Known Subclasses:
RegexpPatternAutoProxy

public abstract class AbstractAutoProxy
extends MethodInterceptorProxy
implements AutoProxy

MethodInterceptorProxy를 자동으로 적용해주는 AutoProxy의 추상 클래스이다. 하위 클래스는 isMatch()메소드를 구현해야한다.

Author:
김형도

Field Summary
 
Fields inherited from class kr.co.hit.live.aop.MethodInterceptorProxy
interceptorList
 
Fields inherited from class kr.co.hit.live.aop.AbstractInterceptorProxy
serviceName, serviceTarget
 
Constructor Summary
AbstractAutoProxy()
           
 
Method Summary
protected  MethodInterceptorProxy createInterceptorProxy()
          자신의 interceptor 목록을 동일하게 갖는 InterceptorProxy객체를 생성하여 반환한다.
protected abstract  boolean isMatch(ServiceDefinition svcDef)
          적용될 서비스 여부를 반환함.
 Object proxyProcess(Object svcObject, ServiceDefinition svcDef)
          svcObject를 감싸는 Proxy 객체를 생성하여 반환한다.
 
Methods inherited from class kr.co.hit.live.aop.MethodInterceptorProxy
invoke, setInterceptor
 
Methods inherited from class kr.co.hit.live.aop.AbstractInterceptorProxy
getServiceName, getServiceTarget, newProxyInstance, setTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface kr.co.hit.live.aop.InterceptorProxy
newProxyInstance, setTarget
 
Methods inherited from interface java.lang.reflect.InvocationHandler
invoke
 

Constructor Detail

AbstractAutoProxy

public AbstractAutoProxy()
Method Detail

proxyProcess

public Object proxyProcess(Object svcObject,
                           ServiceDefinition svcDef)
svcObject를 감싸는 Proxy 객체를 생성하여 반환한다.

Specified by:
proxyProcess in interface AutoProxy

isMatch

protected abstract boolean isMatch(ServiceDefinition svcDef)
적용될 서비스 여부를 반환함.

Parameters:
svcDef -
Returns:

createInterceptorProxy

protected MethodInterceptorProxy createInterceptorProxy()
자신의 interceptor 목록을 동일하게 갖는 InterceptorProxy객체를 생성하여 반환한다.

Returns:


Copyright © 2014. All Rights Reserved.