com.tirsen.angkor
Class Multicaster
java.lang.Object
|
+--com.tirsen.angkor.Multicaster
- public class Multicaster
- extends java.lang.Object
Implements a multicaster which enables one to invoke the methods of an interface and the invocation
is multicasted to several instances implementing the interface, also implements threadsafety making it
possible to modify the Multicaster instance while multicasting.
- Version:
- $Revision: 1.5 $
- Author:
- $Author: tirsen $
Method Summary |
static void |
add(java.lang.Object multicasterProxy,
java.lang.Object o)
|
static java.lang.Object |
create(java.lang.Class itf)
|
static java.lang.Object |
create(java.lang.Class itf,
boolean threadSafe)
|
static boolean |
isEmpty(java.lang.Object multicasterProxy)
|
static java.lang.Object |
remove(java.lang.Object multicasterProxy,
java.lang.Object o)
Adds an object to the multicaster returns the same instance or null if it was empty. |
static void |
throwRealException(java.lang.reflect.InvocationTargetException e)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Multicaster
public Multicaster()
throwRealException
public static void throwRealException(java.lang.reflect.InvocationTargetException e)
throws java.lang.Exception
java.lang.Exception
create
public static java.lang.Object create(java.lang.Class itf)
create
public static java.lang.Object create(java.lang.Class itf,
boolean threadSafe)
add
public static void add(java.lang.Object multicasterProxy,
java.lang.Object o)
remove
public static java.lang.Object remove(java.lang.Object multicasterProxy,
java.lang.Object o)
- Adds an object to the multicaster returns the same instance or null if it was empty.
- Returns:
- same instance or
null
.
isEmpty
public static boolean isEmpty(java.lang.Object multicasterProxy)
Copyright © 2002-2002 . All Rights Reserved.