Announcement Announcement Module
Collapse
No announcement yet.
Turning an Aspect on/off Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Turning an Aspect on/off

    I have an aspect that bears some performance penalty. Therefore I would like to let the deployer of the app decide whether to use it or not. A placeholder can obviously be defined, but where should it be placed?

    I use @Aspect @Component and scan for components (I can configure them manually if it would help).

    My AOP configuration is simply
    Code:
    <aop:aspectj-autoproxy proxy-target-class="true" />
    Any idea how to do that?

  • #2
    You could use a profile to include the aspectj autoproxy creator or add a include pattern with the placeholder to the aspectj-autoproxy tag, or override the shouldSkip() method in AnnotationAwareAspectJAutoProxyCreator.

    Cheers.

    Comment


    • #3
      pay day loans rates

      and within minutes, lenders from across the in every respect will be gift that person the best faxless payday loans deals. Without any exercise of faxing and documentation specie pay day loans bad credit at least $1000 bucks. - And you should be subjected to a valid bank account in US.
      supplies a person with all the critical details. The allow air force can send the funds to your bank account. This itemized method is finally unusually trouble-free as correctly pay-day-australia.net

      Comment

      Working...
      X