org.freecompany.util.multicaster

Class DefaultMulticaster

public class DefaultMulticaster extends Object

Nested Class Summary
static classDefaultMulticaster.Handler<T>
Field Summary
static InvocationHandlerNULL
Method Summary
static <T> Tadd(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 the default classloader would not be able to see the Multicaster class.
static <T> Tempty(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 <T> Tremove(Class<T> clazz, T a, T b)

Field Detail

NULL

public static InvocationHandler NULL

Method Detail

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 the default classloader would not be able to see the Multicaster class.

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.

remove

public static <T> T remove(Class<T> clazz, T a, T b)