Results 1 to 3 of 3

Thread: Turning an Aspect on/off

  1. #1

    Question 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. #2
    Join Date
    Apr 2008
    Location
    Seville, Spain
    Posts
    133

    Default

    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.
    Jose Luis Martin
    Freelance Senior Consultant
    JDAL - Java Database Application Library

  3. #3
    Join Date
    Apr 2013
    Location
    Kazakhstan
    Posts
    2

    Default 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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •