|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.CrossCuttingInfo
Contains information about and for classes that has been defined as cross-cutting.
Field Summary | |
static Object[] |
EMPTY_OBJECT_ARRAY
An empty Object array. |
Constructor Summary | |
CrossCuttingInfo(String uuid,
Class aspectClass,
String name,
int deploymentModel,
AspectDefinition aspectDef,
Map parameters)
Creates a new cross-cutting info instance. |
Method Summary | |
void |
addMetaData(Object key,
Object value)
Adds metadata. |
Class |
getAspectClass()
Returns the cross-cuttable class. |
AspectDefinition |
getAspectDefinition()
Returns the aspect definition. |
AspectContainer |
getContainer()
Returns the container. |
int |
getDeploymentModel()
Returns the deployment model. |
Object |
getMetaData(Object key)
Returns the metadata for a specific key. |
Class |
getMixinTargetClass(Object mixinImpl)
Returns the target class for the mixin of given name which is defined from within this aspect (mixin can have different deployment model from aspect) |
Class |
getMixinTargetClass(String mixinName,
Object mixinImpl)
Returns the target class for the mixin of given name which is defined from within this aspect (mixin can have different deployment model from aspect) |
Object |
getMixinTargetInstance(Object mixinImpl)
Returns the target instance for the mixin of given name which is defined from within this aspect (mixin can have different deployment model from aspect) |
Object |
getMixinTargetInstance(String mixinName,
Object mixinImpl)
Returns the target instance for the mixin of given name which is defined from within this aspect (mixin can have different deployment model from aspect) |
String |
getName()
Returns the name of the aspect. |
String |
getParameter(String name)
Returns the value of a parameter. |
AspectSystem |
getSystem()
Returns the AspectWerkz system housing this cross-cuttable class. |
String |
getUuid()
Returns the UUID for the system. |
boolean |
isPrototype()
Return true if the CrossCuttingInfo has not yet the AspectContainer set, that means this is the prototype init time |
static CrossCuttingInfo |
newInstance(CrossCuttingInfo prototype)
Copy constructor - creates a clone of the cross-cutting info. |
void |
setContainer(AspectContainer container)
Sets the container. |
void |
setDeploymentModel(int deploymentModel)
Changes the deployment model. |
void |
setParameter(String name,
String value)
Sets a parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Object[] EMPTY_OBJECT_ARRAY
Object
array.
Constructor Detail |
public CrossCuttingInfo(String uuid, Class aspectClass, String name, int deploymentModel, AspectDefinition aspectDef, Map parameters)
uuid
- aspectClass
- deploymentModel
- aspectDef
- parameters
- Method Detail |
public static CrossCuttingInfo newInstance(CrossCuttingInfo prototype)
public AspectSystem getSystem()
public String getUuid()
public String getName()
public int getDeploymentModel()
public void setDeploymentModel(int deploymentModel)
deploymentModel
- the new deployment modelpublic Class getAspectClass()
public void setContainer(AspectContainer container)
container
- the containerpublic AspectContainer getContainer()
public AspectDefinition getAspectDefinition()
public void setParameter(String name, String value)
name
- the name of the parametervalue
- the value of the parameterpublic String getParameter(String name)
name
- the name of the parameter
public void addMetaData(Object key, Object value)
key
- the keyvalue
- the valuepublic Object getMetaData(Object key)
key
- the key
public Object getMixinTargetInstance(Object mixinImpl)
mixinImpl
- miximImplementation aka "this" when called from within the mixin impl
public Class getMixinTargetClass(Object mixinImpl)
mixinImpl
- miximImplementation aka "this" when called from within the mixin impl
public Object getMixinTargetInstance(String mixinName, Object mixinImpl)
mixinName
- of the mixinmixinImpl
- miximImplementation aka "this" when called from within the mixin impl
public Class getMixinTargetClass(String mixinName, Object mixinImpl)
mixinName
- of the mixinmixinImpl
- miximImplementation aka "this" when called from within the mixin impl
public boolean isPrototype()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |