kr.co.hit.live.aop.target
Class ServiceNameTargetProxy
java.lang.Object
kr.co.hit.live.aop.target.AbstractTargetProxy
kr.co.hit.live.aop.target.ServiceNameTargetProxy
- All Implemented Interfaces:
- InvocationHandler, TargetProxy
public class ServiceNameTargetProxy
- extends AbstractTargetProxy
설정된 서비스명에 해당되는 서비스 객체를 동적으로 Lookup하여 가져온 후
해당 객체의 메소드를 reflection으로 호출하는 TargetProxy 객체이다.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceNameTargetProxy
public ServiceNameTargetProxy()
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.