|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.aspectwerkz.advice.AbstractAdvice
Abstract base class for all advice classes. Is invoked after that a specific join point has been executed.
Supports four different deployment models: PER_JVM, PER_CLASS, PER_INSTANCE A PER_THREAD.
aspectwerkz.DeploymentModel,
Serialized Form| Constructor Summary | |
AbstractAdvice()
Creates a new abstract advice. |
|
| Method Summary | |
java.lang.Class |
getAdviceClass()
Returns the class for the advice. |
AdviceContainer |
getContainer()
Returns the container. |
int |
getDeploymentModel()
Returns the deployment model for the advice. |
ContainerType |
getMemoryType()
Returns the memory type. |
java.lang.String |
getName()
Returns the name of the advice. |
java.lang.String |
getParameter(java.lang.String name)
Returns the value of a parameter with the name specified. |
java.util.Map |
getParameters()
Returns parameters. |
java.lang.Object |
getPerJvmAdvice(JoinPoint joinPoint)
Returns the sole per JVM advice. |
AspectWerkz |
getSystem()
Returns the AspectWerkz system housing this advice. |
static Advice |
newInstance(AbstractAdvice prototype)
Copy constructor - creates a clone of an advice. |
void |
setAdviceClass(java.lang.Class adviceClass)
Sets the class for the advice. |
void |
setContainer(AdviceContainer container)
Sets the container. |
void |
setDeploymentModel(int deploymentModel)
Sets the deployment model for the advice. |
void |
setName(java.lang.String name)
Sets the name of the advice. |
void |
setParameter(java.lang.String name,
java.lang.String value)
Sets a parameter for the advice. |
void |
setParameters(java.util.Map parameters)
Sets the parameters for the advice. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.codehaus.aspectwerkz.advice.Advice |
doExecute |
| Constructor Detail |
public AbstractAdvice()
| Method Detail |
public static Advice newInstance(AbstractAdvice prototype)
public AspectWerkz getSystem()
public void setName(java.lang.String name)
setName in interface Advicename - the name of the advicepublic java.lang.String getName()
getName in interface Advicepublic void setDeploymentModel(int deploymentModel)
setDeploymentModel in interface AdvicedeploymentModel - the deployment model for the advicepublic int getDeploymentModel()
getDeploymentModel in interface Advicepublic void setContainer(AdviceContainer container)
setContainer in interface Advicecontainer - the containerpublic AdviceContainer getContainer()
getContainer in interface Advicepublic void setAdviceClass(java.lang.Class adviceClass)
setAdviceClass in interface AdviceadviceClass - the classpublic java.lang.Class getAdviceClass()
getAdviceClass in interface Advicepublic ContainerType getMemoryType()
getMemoryType in interface Advice
public void setParameter(java.lang.String name,
java.lang.String value)
setParameter in interface Advicename - the name of the parametervalue - the value of the parameterpublic java.lang.String getParameter(java.lang.String name)
getParameter in interface Advicename - the name of the parameter
public void setParameters(java.util.Map parameters)
setParameters in interface Adviceparameters - the parameters as a mappublic java.util.Map getParameters()
getParameters in interface Advicepublic java.lang.Object getPerJvmAdvice(JoinPoint joinPoint)
joinPoint - the joint point
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||