| java.lang.Object com.tc.aspectwerkz.AspectContext
AspectContext | final public class AspectContext (Code) | | Contains information about and for classes that has been defined as cross-cutting.
author: Jonas BonŽr |
EMPTY_OBJECT_ARRAY | final public static Object[] EMPTY_OBJECT_ARRAY(Code) | | An empty Object array.
|
AspectContext | public AspectContext(String uuid, Class aspectClass, String name, DeploymentModel deploymentModel, AspectDefinition aspectDef, Map parameters, Object associated)(Code) | | Creates a new cross-cutting info instance.
Parameters: uuid - Parameters: aspectClass - Parameters: deploymentModel - Parameters: aspectDef - Parameters: parameters - Parameters: associated - instance (null/class/instance/thread) |
addMetaData | public void addMetaData(Object key, Object value)(Code) | | Adds metadata.
Parameters: key - the key Parameters: value - the value |
getAspectClass | public Class getAspectClass()(Code) | | Returns the cross-cuttable class.
the cross-cuttable class |
getAspectDefinition | public AspectDefinition getAspectDefinition()(Code) | | Returns the aspect definition.
Will return null after deserialization.
the aspect definition |
getAssociatedObject | public Object getAssociatedObject()(Code) | | Returns the associated object with the aspect beeing instantiated. This depend on the aspect deployment model.
It can be a null/class/instance/thread.
the associated object |
getDeploymentModel | public DeploymentModel getDeploymentModel()(Code) | | Returns the deployment model.
the deployment model |
getMetaData | public Object getMetaData(Object key)(Code) | | Returns the metadata for a specific key.
Parameters: key - the key the value |
getName | public String getName()(Code) | | Returns the name of the aspect.
the name of the aspect |
getParameter | public String getParameter(String name)(Code) | | Returns the value of a parameter.
Parameters: name - the name of the parameter the value of the parameter or null if not specified |
getUuid | public String getUuid()(Code) | | Returns the UUID for the system.
the UUID for the system |
setParameter | public void setParameter(String name, String value)(Code) | | Sets a parameter.
Parameters: name - the name of the parameter Parameters: value - the value of the parameter |
|
|