org.freecompany.util.multicaster
Class DefaultMulticaster
java.lang.Object
org.freecompany.util.multicaster.DefaultMulticaster
public class DefaultMulticaster
- extends Object
Default multicaster implementation using dynamic proxy instances. Since method
invocations on a dynamic proxy have a small but measurable performance penalty,
this implementation is not recommended for use in hot-path code.
|
Method Summary |
static
|
add(Class<T> clazz,
T a,
T b)
Uses the current classloader as the passed class may well be a core JVM interface, in which case
it's classloader can not see the Multicaster class. |
static
|
empty(Class<T> clazz)
Uses the current classloader as the passed class may well be a core JVM interface, in which case
the default classloader would not be able to see the Multicaster class. |
static
|
remove(Class<T> clazz,
T a,
T b)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NULL
public static InvocationHandler NULL
DefaultMulticaster
public DefaultMulticaster()
empty
public static <T> T empty(Class<T> clazz)
- Uses the current classloader as the passed class may well be a core JVM interface, in which case
the default classloader would not be able to see the
Multicaster class.
add
public static <T> T add(Class<T> clazz,
T a,
T b)
- Uses the current classloader as the passed class may well be a core JVM interface, in which case
it's classloader can not see the
Multicaster class.
remove
public static <T> T remove(Class<T> clazz,
T a,
T b)