Friday, April 20, 2012

use existing aspect in other java projects

I have a project containing a loging aspectJ-aspect using annotations (see this tutorial).



Is it possible to use that aspect in all other java projects?



I tried to import aspectJ project to a java project
-> it doesn't work



Added to this java project META-INF/aop.xml
-> it doesn't work



Added vm options -javaagent:lib\aspectjweaver.jar
-> it doesn't work



Has anybody of you managed to import aspects to exisiting java projects?





No comments:

Post a Comment