org.apache.qpid.server.cluster.util
Class InvokeMultiple<T>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InvokeMultiple
public InvokeMultiple(java.lang.Class<? extends T> type)
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()