org.apache.qpid.server.cluster.util
Class InvokeMultiple<T>

java.lang.Object
  extended by org.apache.qpid.server.cluster.util.InvokeMultiple<T>
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class InvokeMultiple<T>
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Allows a method to be invoked on a list of listeners with one call


Constructor Summary
InvokeMultiple(java.lang.Class<? extends T> type)
           
 
Method Summary
 void addListener(T t)
           
 T getProxy()
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 void removeListener(T t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvokeMultiple

public InvokeMultiple(java.lang.Class<? extends T> type)
Method Detail

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

addListener

public void addListener(T t)

removeListener

public void removeListener(T t)

getProxy

public T getProxy()