|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.aspect.management.Mixins
public class Mixins
Manages the mixins, registry for the mixin factories (one factory per mixin type).
Field Summary | |
---|---|
static String |
DEFAULT_MIXIN_FACTORY
The default mixin factory class. |
Method Summary | |
---|---|
static MixinFactory |
getFactory(Class mixinClass,
ClassLoader mixinCalledFromLoader)
Returns the mixin factory for the mixin with the given name. |
static MixinDefinition |
getMixinDefinition(Class mixinClass,
ClassLoader visibleFrom)
Lookups a mixin definition based on the mixin impl class and a classloader from where the mixin is visible. |
static Map |
getParameters(Class mixinClass,
ClassLoader loader)
Returns the parameter for a mixin based on the mixin implementation class and a classloader from where the mixin is visible (the classloader that owns the aop.xml with the "mixin" element, or a child of it). |
static Object |
mixinOf(Class mixinClass)
Returns the per jvm mixin instance for the mixin with the given implementation class deployed using the perJVM model. |
static Object |
mixinOf(Class mixinClass,
Class targetClass)
Returns the per class mixin instance for the mixin with the given implemnentation class deployed using the perClass model. |
static Object |
mixinOf(Class mixinClass,
Object targetInstance)
Returns the per class mixin instance for the mixin with the given implemnentation class deployed using the perClass model. |
static Object |
mixinOf(String name,
Class targetClass)
Returns the per class mixin instance for the mixin with the given name for the perClass model |
static Object |
mixinOf(String name,
ClassLoader loader)
Returns the per JVM mixin instance for the mixin with the given name |
static Object |
mixinOf(String name,
Object targetInstance)
Returns the per targetClass instance mixin instance for the mixin with the given name for the perInstance model. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_MIXIN_FACTORY
Method Detail |
---|
public static MixinFactory getFactory(Class mixinClass, ClassLoader mixinCalledFromLoader)
mixinClass
- the class of the mixinmixinCalledFromLoader
-
public static Object mixinOf(String name, ClassLoader loader)
name
- the name of the mixinloader
- target class classloader
public static Object mixinOf(Class mixinClass)
mixinClass
- the name of the mixin
public static Object mixinOf(String name, Class targetClass)
name
- the name of the mixintargetClass
- the targetClass class
public static Object mixinOf(Class mixinClass, Class targetClass)
mixinClass
- the name of the mixintargetClass
- the targetClass class
public static Object mixinOf(String name, Object targetInstance)
name
- the name of the mixintargetInstance
- the targetClass instance, can be null (static method, ctor call)
public static Object mixinOf(Class mixinClass, Object targetInstance)
mixinClass
- the name of the mixintargetInstance
- the targetClass instance, can be null
public static Map getParameters(Class mixinClass, ClassLoader loader)
mixinClass
-
public static MixinDefinition getMixinDefinition(Class mixinClass, ClassLoader visibleFrom)
mixinClass
- visibleFrom
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |