|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implements the Advice concept.
I.e.a function object that can be defined to be invoked before,
after or instead of specific points in the execution flow of the program.
Method Summary | |
java.lang.Object |
doExecute(JoinPoint joinPoint)
Executes the current advice A then redirects to the next advice in the chain. Callback method for the framework. |
java.lang.Class |
getAdviceClass()
Returns the class for the advice. |
AdviceContainer |
getContainer()
Returns the distribution strategy. |
int |
getDeploymentModel()
Returns the deployment model for the advice. |
ContainerType |
getMemoryType()
Returns the distribution 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 the parameters for the advice. |
void |
setAdviceClass(java.lang.Class adviceClass)
Sets the class for the advice. |
void |
setContainer(AdviceContainer memoryStrategy)
Sets the memory strategy. |
void |
setDeploymentModel(int deploymentModel)
Sets the deployment model for the advice. Possible models are PER_JVM, PER_CLASS, PER_INSTANCE A PER_THREAD |
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. |
Method Detail |
public java.lang.Object doExecute(JoinPoint joinPoint) throws java.lang.Throwable
joinPoint
- the join point the advice is executing at
java.lang.Throwable
public void setName(java.lang.String name)
name
- the name of the advicepublic java.lang.String getName()
public void setDeploymentModel(int deploymentModel)
deploymentModel
- the deployment model for the advicepublic int getDeploymentModel()
public void setContainer(AdviceContainer memoryStrategy)
memoryStrategy
- the memory strategypublic AdviceContainer getContainer()
public ContainerType getMemoryType()
public void setAdviceClass(java.lang.Class adviceClass)
adviceClass
- the classpublic java.lang.Class getAdviceClass()
public void setParameter(java.lang.String name, java.lang.String value)
name
- the name of the parametervalue
- the value of the parameterpublic java.lang.String getParameter(java.lang.String name)
name
- the name of the parameter
public void setParameters(java.util.Map parameters)
parameters
- the parameters as a mappublic java.util.Map getParameters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |