aspose file tools*
The moose likes Aspect Oriented Programming and the fly likes Get the code of the joinpoint Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Aspect Oriented Programming
Bookmark "Get the code of the joinpoint " Watch "Get the code of the joinpoint " New topic
Author

Get the code of the joinpoint

aroua doudou
Greenhorn

Joined: Sep 20, 2012
Posts: 1
Hi,
I work on java project and I intercept with AOP some java methods. I want the get the code of the intercepted method (joinpoint).
Now I can get the name and the arguments of the jointpoint but not the complete code inside. For example if my joinpont is the following method:
public void action() {
Etat = Etats.MEDECIN_MARCHE;
sousEtat_Marche = Marche.RECHERCHE_VICTIME;
Ontologie.ordreExplorer oE = (Ontologie.ordreExplorer) objet;
NZone = oE.getNumZone();
etape = param.getParam().etape;
Finished = true;
}

the result will be :
Etat = Etats.MEDECIN_MARCHE;
sousEtat_Marche = Marche.RECHERCHE_VICTIME;
Ontologie.ordreExplorer oE = (Ontologie.ordreExplorer) objet;
NZone = oE.getNumZone();
etape = param.getParam().etape;
Finished = true;

Thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Get the code of the joinpoint
 
Similar Threads
Spring aspects annotatted parameter question
Need some help, about synchronization topic
Maintaining join points as code changes
Getting method name on spring AOP @Before
Joinpoint and Pointcut