|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.attribdef.aspect.Aspect
Abstract base class that all Aspect implementations must extend.
Field Summary | |
static java.lang.Object[] |
EMPTY_OBJECT_ARRAY
An empty Object array. |
Constructor Summary | |
Aspect()
Creates a new abstract advice. |
Method Summary | |
java.lang.Class |
___AW_getAspectClass()
Returns the aspect class. |
AspectDefinition |
___AW_getAspectDef()
Returns the aspect definition. |
AspectContainer |
___AW_getContainer()
Returns the container. |
ContainerType |
___AW_getContainerType()
Returns the container type. |
int |
___AW_getDeploymentModel()
Returns the deployment model. |
java.lang.Class |
___AW_getMixinTargetClass(java.lang.String mixinName,
java.lang.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) |
java.lang.Object |
___AW_getMixinTargetInstance(java.lang.String mixinName,
java.lang.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) |
java.lang.String |
___AW_getName()
Returns the name of the aspect. |
java.lang.String |
___AW_getParameter(java.lang.String name)
Returns the value of a parameter with the name specified. |
System |
___AW_getSystem()
Returns the AspectWerkz system housing this advice. |
java.lang.Object |
___AW_getTargetClass()
Returns the target class if aspect is deployed as 'perInstance' or 'perClass' otherwise null. |
java.lang.Object |
___AW_getTargetInstance()
Returns the target instance if aspect is deployed as 'perInstance' otherwise null. |
java.lang.Object |
___AW_invokeAdvice(int methodIndex,
JoinPoint joinPoint)
Invokes an introduced method with the index specified. |
void |
___AW_setAspectClass(java.lang.Class aspectClass)
Sets the aspect class. |
void |
___AW_setAspectDef(AspectDefinition aspectDef)
Sets the aspect definition. |
void |
___AW_setContainer(AspectContainer container)
Sets the container. |
void |
___AW_setDeploymentModel(int deploymentModel)
Sets the deployment model. |
void |
___AW_setName(java.lang.String name)
Sets the name of the aspect. |
void |
___AW_setParameter(java.lang.String name,
java.lang.String value)
Sets a parameter for the advice. |
void |
___AW_setTargetClass(java.lang.Object targetClass)
Sets the target class. |
void |
___AW_setTargetInstance(java.lang.Object targetInstance)
Sets the target instance. |
static Aspect |
newInstance(Aspect prototype)
Copy constructor - creates a clone of an advice. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.Object[] EMPTY_OBJECT_ARRAY
Object
array.
Constructor Detail |
public Aspect()
Method Detail |
public static Aspect newInstance(Aspect prototype)
public System ___AW_getSystem()
public java.lang.Object ___AW_invokeAdvice(int methodIndex, JoinPoint joinPoint)
methodIndex
- the method indexjoinPoint
- the join point
public void ___AW_setName(java.lang.String name)
name
- the name of the aspectpublic java.lang.String ___AW_getName()
public void ___AW_setDeploymentModel(int deploymentModel)
deploymentModel
- the deployment modelpublic int ___AW_getDeploymentModel()
public java.lang.Class ___AW_getAspectClass()
public void ___AW_setAspectClass(java.lang.Class aspectClass)
aspectClass
- the aspect classpublic void ___AW_setContainer(AspectContainer container)
container
- the containerpublic AspectContainer ___AW_getContainer()
public ContainerType ___AW_getContainerType()
public AspectDefinition ___AW_getAspectDef()
public void ___AW_setAspectDef(AspectDefinition aspectDef)
aspectDef
- the aspect definitionpublic java.lang.Object ___AW_getTargetInstance()
public void ___AW_setTargetInstance(java.lang.Object targetInstance)
targetInstance
- the target instancepublic java.lang.Object ___AW_getTargetClass()
public void ___AW_setTargetClass(java.lang.Object targetClass)
targetClass
- the target classpublic void ___AW_setParameter(java.lang.String name, java.lang.String value)
name
- the name of the parametervalue
- the value of the parameterpublic java.lang.String ___AW_getParameter(java.lang.String name)
name
- the name of the parameter
public java.lang.Object ___AW_getMixinTargetInstance(java.lang.String mixinName, java.lang.Object mixinImpl)
mixinName
- of the mixinmixinImpl
- miximImplementation aka "this" when called from within the mixin impl
public java.lang.Class ___AW_getMixinTargetClass(java.lang.String mixinName, java.lang.Object mixinImpl)
mixinName
- of the mixinmixinImpl
- miximImplementation aka "this" when called from within the mixin impl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |