|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.aspectwerkz.AspectContext
public final class AspectContext
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 | |
|---|---|
AspectContext(String uuid,
Class aspectClass,
String name,
DeploymentModel 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. |
DeploymentModel |
getDeploymentModel()
Returns the deployment model. |
Object |
getMetaData(Object key)
Returns the metadata for a specific key. |
String |
getName()
Returns the name of the aspect. |
String |
getParameter(String name)
Returns the value of a parameter. |
String |
getUuid()
Returns the UUID for the system. |
boolean |
isPrototype()
Return true if the AspectContext has not yet the AspectContainer set, that means this is the prototype init time |
static AspectContext |
newInstance(AspectContext prototype)
Copy constructor - creates a clone of the cross-cutting info. |
void |
setContainer(AspectContainer container)
Sets the container. |
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 AspectContext(String uuid,
Class aspectClass,
String name,
DeploymentModel deploymentModel,
AspectDefinition aspectDef,
Map parameters)
uuid - aspectClass - deploymentModel - aspectDef - parameters - | Method Detail |
|---|
public static AspectContext newInstance(AspectContext prototype)
public String getUuid()
public String getName()
public DeploymentModel getDeploymentModel()
public 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 boolean isPrototype()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||