public abstract class Mixin extends Object
Mixin
allows
multiple objects to be combined into a single larger object. The
methods in the generated object simply call the original methods in the
underlying "delegate" objects.Modifier and Type | Class and Description |
---|---|
static class |
Mixin.Generator |
Modifier and Type | Field and Description |
---|---|
static int |
STYLE_BEANS |
static int |
STYLE_EVERYTHING |
static int |
STYLE_INTERFACES |
Constructor and Description |
---|
Mixin() |
Modifier and Type | Method and Description |
---|---|
static Mixin |
create(Class[] interfaces,
Object[] delegates)
Helper method to create an interface mixin.
|
static Mixin |
create(Object[] delegates)
Helper method to create an interface mixin.
|
static Mixin |
createBean(ClassLoader loader,
Object[] beans)
Helper method to create a bean mixin.
|
static Mixin |
createBean(Object[] beans) |
static Class[] |
getClasses(Object[] delegates) |
abstract Mixin |
newInstance(Object[] delegates) |
public static final int STYLE_INTERFACES
public static final int STYLE_BEANS
public static final int STYLE_EVERYTHING
public static Mixin create(Object[] delegates)
Mixin
instead of this static method.
TODOpublic static Mixin create(Class[] interfaces, Object[] delegates)
Mixin
instead of this static method.
TODOpublic static Mixin createBean(ClassLoader loader, Object[] beans)
Mixin
instead of this static method.
TODOCopyright © 2018. All rights reserved.