| java.lang.Object org.codehaus.aspectwerkz.AspectContext
AspectContext | final public class AspectContext implements Serializable(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)(Code) | | Creates a new cross-cutting info instance.
Parameters: uuid - Parameters: aspectClass - Parameters: deploymentModel - Parameters: aspectDef - Parameters: parameters - |
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 |
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 |
isPrototype | public boolean isPrototype()(Code) | | Return true if the AspectContext has not yet the AspectContainer set, that means this is the prototype init time
|
newInstance | public static AspectContext newInstance(AspectContext prototype)(Code) | | Copy constructor - creates a clone of the cross-cutting info.
Creates a new instance of the cross-cutting class it holds.
a clone of the cross-cutting info |
setContainer | public void setContainer(AspectContainer container)(Code) | | Sets the container.
Parameters: container - the container |
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 |
|
|