kr.co.hit.live.aop
Class AbstractInterceptorProxy
java.lang.Object
kr.co.hit.live.aop.AbstractInterceptorProxy
- All Implemented Interfaces:
- InvocationHandler, InterceptorProxy
- Direct Known Subclasses:
- MethodInterceptorProxy
public abstract class AbstractInterceptorProxy
- extends Object
- implements InterceptorProxy
InterceptorProxy의 공통 기능을 구현한 클래스이다.
Service Container에 정의된 service들의 interceptor 용으로 구현되는 클래스는
이 클래스를 확장하여 구현하도록 한다.
- Since:
- 4.0
- Author:
- 김형도
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serviceName
protected String serviceName
- Proxy가 처리하는 서비스 객체의 서비스 명칭
serviceTarget
protected Object serviceTarget
- Proxy가 처리하는 서비스 객체
AbstractInterceptorProxy
public AbstractInterceptorProxy()
setTarget
public void setTarget(String svcName,
Object target)
- Proxy의 대상이 되는 서비스 객체를 설정한다.
- Specified by:
setTarget in interface InterceptorProxy
- Parameters:
target -
getServiceName
public String getServiceName()
getServiceTarget
public Object getServiceTarget()
newProxyInstance
public Object newProxyInstance(Class<?>[] inf,
ClassLoader classLoader)
- Description copied from interface:
InterceptorProxy
- 구현할 inf를 받아서 Proxy 객체를 생성하여 반환한다.
- Specified by:
newProxyInstance in interface InterceptorProxy
- Parameters:
inf - the list of interfaces for the proxy class to implementclassLoader - the class loader to define the proxy class
- Returns:
Copyright © 2014. All Rights Reserved.