Announcement Announcement Module
Collapse
No announcement yet.
Conditional AOP Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Conditional AOP

    Hello,

    I would like to enable or disable the execution based on a boolean.

    Is there a way to disable the execution of an advise based on a boolean flag?

    Something like this -

    @Around("enabled && methodPointcuts()") where enabled is a boolean flag?

    Or atleast way to disable the weaving based on some flag passed from application context?

    Thanks & Regards
    Surya
Working...
X