| Constructor and Description |
|---|
Mixer() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
addInterceptors(Object master,
Object... interceptors)
Creates a proxy which routes invocations to master unless one of interceptors
has a method with matching signature.
|
static Object |
combine(Object[] objects,
Class<?>[] interfaces)
Creates a proxy which implements given interfaces and routes invocations
to appropriate object.
|
static Object |
mix(Object... objects)
Mixes interfaces from multiple objects into one proxy.
|
static Object |
mixIn(Object object,
Class<?>... interfaces)
Mixes-in implementation of interfaces into class.
|
public Mixer()
public static Object mixIn(Object object, Class<?>... interfaces)
object - interfaces - public static Object addInterceptors(Object master, Object... interceptors)
master - interceptors - public static Object combine(Object[] objects, Class<?>[] interfaces)
object - interfaces - public static Object mix(Object... objects)
objects -