ch.qos.logback.core.joran.action
Class IncludeAction

java.lang.Object
  extended by ch.qos.logback.core.spi.ContextAwareBase
      extended by ch.qos.logback.core.joran.action.Action
          extended by ch.qos.logback.core.joran.action.AbstractIncludeAction
              extended by ch.qos.logback.core.joran.action.IncludeAction
All Implemented Interfaces:
ContextAware
Direct Known Subclasses:
FindIncludeAction

public class IncludeAction
extends AbstractIncludeAction


Field Summary
 
Fields inherited from class ch.qos.logback.core.joran.action.Action
ACTION_CLASS_ATTRIBUTE, CLASS_ATTRIBUTE, FILE_ATTRIBUTE, KEY_ATTRIBUTE, NAME_ATTRIBUTE, PATTERN_ATTRIBUTE, SCOPE_ATTRIBUTE, VALUE_ATTRIBUTE
 
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
 
Constructor Summary
IncludeAction()
           
 
Method Summary
protected  SaxEventRecorder createRecorder(InputStream in, URL url)
          Creates a SAX event recorder based on given parameters.
protected  void processInclude(InterpretationContext ic, URL url)
          Processes an include
protected  void setEventOffset(int offset)
          Sets the list index into the event player's list, where the events from the processed include will be inserted
 
Methods inherited from class ch.qos.logback.core.joran.action.AbstractIncludeAction
begin, close, end, getAttributeInUse, getUrl, handleError
 
Methods inherited from class ch.qos.logback.core.joran.action.Action
body, getColumnNumber, getLineColStr, getLineNumber, toString
 
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IncludeAction

public IncludeAction()
Method Detail

setEventOffset

protected void setEventOffset(int offset)
Sets the list index into the event player's list, where the events from the processed include will be inserted

Parameters:
offset - the array index

createRecorder

protected SaxEventRecorder createRecorder(InputStream in,
                                          URL url)
Creates a SAX event recorder based on given parameters. Subclasses should override this as necessary.

Parameters:
in - input stream
url - URL to opened file/resource
Returns:
the newly created recorder

processInclude

protected void processInclude(InterpretationContext ic,
                              URL url)
                       throws JoranException
Processes an include

Specified by:
processInclude in class AbstractIncludeAction
Parameters:
ic - context
url - URL to file/resource being included
Throws:
JoranException


Copyright © 2005-2013 QOS.ch. All Rights Reserved.