| java.lang.Object org.codehaus.aspectwerkz.aspect.management.Mixins
Method Summary | |
public static MixinFactory | getFactory(Class mixinClass, ClassLoader mixinCalledFromLoader) Returns the mixin factory for the mixin with the given name. | public 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. | public 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).
Note: the mixinClass classloader can be different, if you place the mixin in the system classpath, and reference
it only from a deployed application.
Note: you should not use a mixin more than once. | public static Object | mixinOf(String name, ClassLoader loader) | public static Object | mixinOf(Class mixinClass) Returns the per jvm mixin instance for the mixin with the given implementation class
deployed using the perJVM model. | public static Object | mixinOf(String name, Class targetClass) | public 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. | public 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. | public 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. |
DEFAULT_MIXIN_FACTORY | final public static String DEFAULT_MIXIN_FACTORY(Code) | | The default mixin factory class.
|
getFactory | public static MixinFactory getFactory(Class mixinClass, ClassLoader mixinCalledFromLoader)(Code) | | Returns the mixin factory for the mixin with the given name.
Parameters: mixinClass - the class of the mixin Parameters: mixinCalledFromLoader - the factory, put in cache based on mixin class as a key |
getMixinDefinition | public static MixinDefinition getMixinDefinition(Class mixinClass, ClassLoader visibleFrom)(Code) | | Lookups a mixin definition based on the mixin impl class and a classloader from where the mixin is
visible. The given classloader can be different from the mixin class classloader.
Parameters: mixinClass - Parameters: visibleFrom - |
getParameters | public static Map getParameters(Class mixinClass, ClassLoader loader)(Code) | | 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).
Note: the mixinClass classloader can be different, if you place the mixin in the system classpath, and reference
it only from a deployed application.
Note: you should not use a mixin more than once. Consider subclassing the mixin in this case. The returned parameters
are the one from the first mixin found.
Parameters: mixinClass - |
mixinOf | public static Object mixinOf(String name, ClassLoader loader)(Code) | | Returns the per JVM mixin instance for the mixin with the given name
Parameters: name - the name of the mixin Parameters: loader - target class classloader the per jvm mixin instance |
mixinOf | public static Object mixinOf(Class mixinClass)(Code) | | Returns the per jvm mixin instance for the mixin with the given implementation class
deployed using the perJVM model.
Parameters: mixinClass - the name of the mixin the per jvm mixin instance |
mixinOf | public static Object mixinOf(String name, Class targetClass)(Code) | | Returns the per class mixin instance for the mixin with the given name for the perClass model
Parameters: name - the name of the mixin Parameters: targetClass - the targetClass class the per class mixin instance |
mixinOf | public static Object mixinOf(Class mixinClass, Class targetClass)(Code) | | Returns the per class mixin instance for the mixin with the given implemnentation class
deployed using the perClass model.
Parameters: mixinClass - the name of the mixin Parameters: targetClass - the targetClass class the per class mixin instance |
mixinOf | public static Object mixinOf(String name, Object targetInstance)(Code) | | Returns the per targetClass instance mixin instance for the mixin with the given name for the perInstance model.
Parameters: name - the name of the mixin Parameters: targetInstance - the targetClass instance, can be null (static method, ctor call) the per instance mixin instance, fallback on perClass if targetInstance is null |
mixinOf | public static Object mixinOf(Class mixinClass, Object targetInstance)(Code) | | Returns the per class mixin instance for the mixin with the given implemnentation class
deployed using the perClass model.
Parameters: mixinClass - the name of the mixin Parameters: targetInstance - the targetClass instance, can be null the per targetClass instance mixin instance, fallback to perClass if targetInstance is null |
|
|