View Javadoc
1   package ch.qos.logback.core.joran.action;
2   
3   import org.xml.sax.Attributes;
4   
5   import ch.qos.logback.core.joran.spi.SaxEventInterpretationContext;
6   import ch.qos.logback.core.model.Model;
7   import ch.qos.logback.core.model.TopModel;
8   
9   /**
10   * Add a Model instance at the top of the InterpretationContext stack
11   * 
12   * @author Ceki Gulcu
13   */
14  public class TopElementAction extends BaseModelAction {
15  
16      @Override
17      protected Model buildCurrentModel(SaxEventInterpretationContext interpretationContext, String name,
18              Attributes attributes) {
19          TopModel topModel = new TopModel();
20          return topModel;
21      }
22  
23  }