• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Is it easy to transform a non aspected project in an aspected one?

 
Ranch Hand
Posts: 701
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

If I have a non aspected project , how easy it is to make it aspected?


Thank you
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, it is two pronged.

But first this is what AOP is all about, to not upset all the code that is already written and having to recompile it.

But it is two pronged in that, if you are going to create an aspect to remove your tangled code. Like you have security code all over the place and you want to remove all that code into an Aspect, then you will have to remove all that code that your have for security in your classes and write it once in an Aspect class. But in the long run it is really worth it to detangle all that code.

Mark
 
Author
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I will add to Mark's reply...

From logistics point of view, introducing AOP is quite easy (in fact, trivial if you are already using Spring). All it takes is some modifications to your build system.

For introducing aspects, you may want to read my article series on AOP refactoring:
http://www.theserverside.com/tt/articles/article.tss?l=AspectOrientedRefactoringPart1
http://www.theserverside.com/tt/articles/article.tss?l=AspectOrientedRefactoringPart2

-Ramnivas
reply
    Bookmark Topic Watch Topic
  • New Topic