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

java.lang.Object
  extended by kr.co.hit.live.aop.target.AbstractTargetProxy
      extended by kr.co.hit.live.aop.target.ServiceNameTargetProxy
All Implemented Interfaces:
InvocationHandler, TargetProxy

public class ServiceNameTargetProxy
extends AbstractTargetProxy

설정된 서비스명에 해당되는 서비스 객체를 동적으로 Lookup하여 가져온 후 해당 객체의 메소드를 reflection으로 호출하는 TargetProxy 객체이다.


Field Summary
 
Fields inherited from class kr.co.hit.live.aop.target.AbstractTargetProxy
targetInterface
 
Constructor Summary
ServiceNameTargetProxy()
           
 
Method Summary
 Object invoke(Method method, Object[] args)
          실제 메소드 호출을 처리하는 로직을 구현한다.
 void setServiceName(String svcName)
           
 
Methods inherited from class kr.co.hit.live.aop.target.AbstractTargetProxy
getInterface, getServiceContainer, invoke, setInterface, setServiceContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceNameTargetProxy

public ServiceNameTargetProxy()
Method Detail

setServiceName

public void setServiceName(String svcName)

invoke

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

Specified by:
invoke in class AbstractTargetProxy
Returns:
메소드 호출 반환 값
Throws:
Throwable


Copyright © 2014. All Rights Reserved.