kr.co.hit.live.aop.auto
Class AbstractAutoProxy
java.lang.Object
kr.co.hit.live.aop.AbstractInterceptorProxy
kr.co.hit.live.aop.MethodInterceptorProxy
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:
- 김형도
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAutoProxy
public AbstractAutoProxy()
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.