org.shiftone.jrat.util
Class CompositeInvocationHandler

java.lang.Object
  extended by org.shiftone.jrat.util.CompositeInvocationHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class CompositeInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Author:
jeff@shiftone.org (Jeff Drost)

Constructor Summary
CompositeInvocationHandler(java.lang.Class iface)
           
 
Method Summary
 void addTarget(java.lang.Object target)
           
 java.lang.Object getProxy()
           
 int getTargetCount()
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeInvocationHandler

public CompositeInvocationHandler(java.lang.Class iface)
Method Detail

getTargetCount

public int getTargetCount()

addTarget

public void addTarget(java.lang.Object target)

invoke

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

getProxy

public java.lang.Object getProxy()