• 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

Unable to understand output

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

I am just trying my hands on spring aop. I am confused with the output. In the MainApp class when I comment the setter then I get advice logs 2 times in the output. But when I use the setter in MainApp class I get advice log only once. I am not sure why it is coming only once whereas there are 2 getters which are called from MainApp?

Thanks for your help

Circle.java


LoggingAspect.java


ShapeService.java


Triangle.java


MainApp.java


Output when setter is commented in MainApp:
Logging advice run...get method called
Logging advice run...get method called

Output when setter is used in MainApp:
Logging advice run...get method called



 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic