|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lsst.ccs.utilities.dispatch.SynchronousDispatchProxy<I>
public class SynchronousDispatchProxy<I>
Instances of this class creates a dynamic proxy that dispatches method call to registered agents implementing an interface type.
beware : if the implemented interface is itself a parameterized type no type control is exercised on these type parameters.
| Field Summary | |
|---|---|
protected CopyOnWriteArrayList<Object> |
list
|
protected I |
proxy
|
| Constructor Summary | |
|---|---|
SynchronousDispatchProxy(Class<I> interfaceType)
prepares a generator able to deliver a Proxy object able to dispatch method calls to registered agents. |
|
SynchronousDispatchProxy(Class<I> interfaceType,
ClassLoader loader)
Same as previous but with a specified ClassLoader |
|
| Method Summary | ||
|---|---|---|
|
addExecutant(T executant)
Registers a code ready to receive "synchronous" commands |
|
I |
getProxy()
to be called once to get a dynamically generated proxy that will forward calls to registered agents. |
|
|
removeExecutant(T executant)
Remove the code from the listeners list |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CopyOnWriteArrayList<Object> list
protected I proxy
| Constructor Detail |
|---|
public SynchronousDispatchProxy(Class<I> interfaceType)
interfaceType -
public SynchronousDispatchProxy(Class<I> interfaceType,
ClassLoader loader)
interfaceType - loader - | Method Detail |
|---|
public <T extends I> void addExecutant(T executant)
executant - (should implement the interface)public <T extends I> void removeExecutant(T executant)
executant - public I getProxy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||