Package net.sf.cglib.proxy
Class Mixin
- java.lang.Object
-
- net.sf.cglib.proxy.Mixin
-
public abstract class Mixin extends java.lang.ObjectMixinallows 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.- Version:
- $Id: Mixin.java,v 1.7 2005/09/27 11:42:27 baliuka Exp $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMixin.Generator(package private) static interfaceMixin.MixinKeyprivate static classMixin.Route
-
Field Summary
Fields Modifier and Type Field Description private static Mixin.MixinKeyKEY_FACTORYprivate static java.util.MapROUTE_CACHEstatic intSTYLE_BEANSstatic intSTYLE_EVERYTHINGstatic intSTYLE_INTERFACES
-
Constructor Summary
Constructors Constructor Description Mixin()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Mixincreate(java.lang.Class[] interfaces, java.lang.Object[] delegates)Helper method to create an interface mixin.static Mixincreate(java.lang.Object[] delegates)Helper method to create an interface mixin.static MixincreateBean(java.lang.ClassLoader loader, java.lang.Object[] beans)Helper method to create a bean mixin.static MixincreateBean(java.lang.Object[] beans)static java.lang.Class[]getClasses(java.lang.Object[] delegates)abstract MixinnewInstance(java.lang.Object[] delegates)private static Mixin.Routeroute(java.lang.Object[] delegates)
-
-
-
Field Detail
-
KEY_FACTORY
private static final Mixin.MixinKey KEY_FACTORY
-
ROUTE_CACHE
private static final java.util.Map ROUTE_CACHE
-
STYLE_INTERFACES
public static final int STYLE_INTERFACES
- See Also:
- Constant Field Values
-
STYLE_BEANS
public static final int STYLE_BEANS
- See Also:
- Constant Field Values
-
STYLE_EVERYTHING
public static final int STYLE_EVERYTHING
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
public abstract Mixin newInstance(java.lang.Object[] delegates)
-
create
public static Mixin create(java.lang.Object[] delegates)
Helper method to create an interface mixin. For finer control over the generated instance, use a new instance ofMixininstead of this static method. TODO
-
create
public static Mixin create(java.lang.Class[] interfaces, java.lang.Object[] delegates)
Helper method to create an interface mixin. For finer control over the generated instance, use a new instance ofMixininstead of this static method. TODO
-
createBean
public static Mixin createBean(java.lang.Object[] beans)
-
createBean
public static Mixin createBean(java.lang.ClassLoader loader, java.lang.Object[] beans)
Helper method to create a bean mixin. For finer control over the generated instance, use a new instance ofMixininstead of this static method. TODO
-
getClasses
public static java.lang.Class[] getClasses(java.lang.Object[] delegates)
-
route
private static Mixin.Route route(java.lang.Object[] delegates)
-
-