View Javadoc

1   /**
2    * Logback: the generic, reliable, fast and flexible logging framework for Java.
3    * 
4    * Copyright (C) 2000-2006, QOS.ch
5    * 
6    * This library is free software, you can redistribute it and/or modify it under
7    * the terms of the GNU Lesser General Public License as published by the Free
8    * Software Foundation.
9    */
10  
11  package ch.qos.logback.core.joran.action;
12  
13  import org.xml.sax.Attributes;
14  
15  import ch.qos.logback.core.joran.action.Action;
16  import ch.qos.logback.core.joran.spi.InterpretationContext;
17  
18  
19  /**
20   * No operation (NOP) action that does strictly nothing. 
21   * Setting a rule to this pattern is sometimes useful in order
22   * to prevent implicit actions to kick in.
23   *  
24   * @author Ceki Gülcü
25   */
26  public class NOPAction extends Action {
27    
28    public void begin(InterpretationContext ec, String name, Attributes attributes) {
29    }
30  
31  
32    public void end(InterpretationContext ec, String name) {
33    }
34  }