Results 1 to 1 of 1

Thread: How to control a line of execution using spring AOP

Threaded View

  1. #1
    Join Date
    Jul 2012
    Posts
    6

    Default How to control a line of execution using spring AOP

    Hi,

    Is there any way not to execute a line in a method using spring AOP ?

    Scenario : I have an application where we have some unnecessary logging which are undesirable. The culprit is a class where I have bunch of logging statements such as log.info and in the prod environment I don't have access to this class but I have access to the spring config xml. Can I apply an aspect to the class/in particular a method to stop executing the log.info statements ?
    Thanks in advance

    Gourab
    Last edited by gourabp; Jan 11th, 2013 at 11:38 AM.

Posting Permissions

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