Skip to main content



      Home
Home » Language IDEs » AspectJ » Aspects in another jars
Aspects in another jars [message #1384709] Fri, 30 May 2014 11:28 Go to next message
Eclipse UserFriend
Hi everyone !

I have some questions about AspectJ comprehension, there is so much information and I'm getting lost in the middle of that.

To make it simple, I have an native aspect (aspect on custom annotation) defined in project A, it works fine, everybody's happy ! Now, I want to use it in project B by including a jar of A and putting an annotation on a method of the B project.
Note : The B project is running with Spring.


First of all, is it possible to do something like that ?
Secondly, does anyone have a good tutorial or article to help me with that ?

I don't necessarily ask for a complete reponse, just some advices, links or anything that could help me.
Thanks in advance.

MattU
Re: Aspects in another jars [message #1384741 is a reply to message #1384709] Sat, 31 May 2014 00:04 Go to previous message
Eclipse UserFriend
If running inside of Eclipse, you would put project A on project B's aspect path (project B must be converted to an aspect project) and everything should work. To do this, look at the aspectj builder tab of your project properties.

If you are using maven, then you should use the aspectj-maven-plugin http://mojo.codehaus.org/aspectj-maven-plugin/
Previous Topic:ajdt on luna?
Next Topic:Load-time weaving and java -jar
Goto Forum:
  


Current Time: Wed May 21 06:53:58 EDT 2025

Powered by FUDForum. Page generated in 0.07487 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top