kr.co.hit.live.aop.target
Class AbstractTargetProxy

java.lang.Object
  extended by kr.co.hit.live.aop.target.AbstractTargetProxy
All Implemented Interfaces:
InvocationHandler, TargetProxy
Direct Known Subclasses:
BypassTargetProxy, EJBDelegatorTargetProxy, EJBTargetProxy, PooledTargetProxy, ServiceNameTargetProxy, ThreadLocalTargetProxy

public abstract class AbstractTargetProxy
extends Object
implements TargetProxy


Field Summary
protected  Class<?> targetInterface
           
 
Constructor Summary
AbstractTargetProxy()
           
 
Method Summary
protected  Class<?> getInterface()
           
protected  ServiceContainer getServiceContainer()
           
abstract  Object invoke(Method method, Object[] args)
          실제 메소드 호출을 처리하는 로직을 구현한다.
 Object invoke(Object proxy, Method method, Object[] args)
           
 void setInterface(Class<?> inf)
          TargetProxy가 구현하는 interface 클래스 객체를 넘겨준다.
 void setServiceContainer(ServiceContainer svcContainer)
          TargetProxy를 생성한 ServiceContainer 객체를 넘겨준다.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetInterface

protected Class<?> targetInterface
Constructor Detail

AbstractTargetProxy

public AbstractTargetProxy()
Method Detail

setInterface

public void setInterface(Class<?> inf)
Description copied from interface: TargetProxy
TargetProxy가 구현하는 interface 클래스 객체를 넘겨준다.

Specified by:
setInterface in interface TargetProxy

getInterface

protected Class<?> getInterface()

setServiceContainer

public void setServiceContainer(ServiceContainer svcContainer)
Description copied from interface: TargetProxy
TargetProxy를 생성한 ServiceContainer 객체를 넘겨준다.

Specified by:
setServiceContainer in interface TargetProxy

getServiceContainer

protected ServiceContainer getServiceContainer()

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

invoke

public abstract Object invoke(Method method,
                              Object[] args)
                       throws Throwable
실제 메소드 호출을 처리하는 로직을 구현한다.

Parameters:
method -
args -
Returns:
메소드 호출 반환 값
Throws:
Throwable


Copyright © 2014. All Rights Reserved.