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

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

public class PooledTargetProxy
extends AbstractTargetProxy

여러개의 target 객체들을 생성하여 사용하는 TargetProxy의 구현 클래스이다.

Since:
5.0
Author:
kimhd

Field Summary
protected  int maxSize
           
protected  String targetName
           
 
Fields inherited from class kr.co.hit.live.aop.target.AbstractTargetProxy
targetInterface
 
Constructor Summary
PooledTargetProxy()
           
 
Method Summary
 Object invoke(Method method, Object[] args)
          실제 메소드 호출을 처리하는 로직을 구현한다.
 void setMaxSize(int n)
           
 void setTargetName(String name)
           
 
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
 

Field Detail

targetName

protected String targetName

maxSize

protected int maxSize
Constructor Detail

PooledTargetProxy

public PooledTargetProxy()
Method Detail

setTargetName

public void setTargetName(String name)

setMaxSize

public void setMaxSize(int n)

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.