Top Description Methods
ch.qos.logback.core.joran.spi

public Interface RuleStore

Known Direct Implementers
ch.qos.logback.core.joran.spi.SimpleRuleStore
Imports
java.util.function.Supplier, ch.qos.logback.core.joran.action.Action

As its name indicates, a RuleStore contains 2-tuples consists of a ElementSelector and an Action.

As a joran configurator goes through the elements in a document, it asks the rule store whether there are rules matching the current pattern by invoking the matchActions(ElementPath) method.

Author
Ceki Gülcü

Method Summary

Modifier and TypeMethod and Description
public void
addRule(ElementSelector elementSelector, String actionClassStr)

Add a new rule, given by a pattern and an action class (String).

public void
addRule(ElementSelector elementSelector, Supplier<Action> actionSupplier)

Add a new rule, given by a pattern and an action instance.

public void
public Supplier<Action>

Returns:

list of matching actions
matchActions
(ElementPath
the path to match for
elementPath
)

Return a list of actions matching a pattern.

Method Detail

addRuleback to summary
public void addRule(ElementSelector elementSelector, String actionClassStr) throws ClassNotFoundException

Add a new rule, given by a pattern and an action class (String).

addRuleback to summary
public void addRule(ElementSelector elementSelector, Supplier<Action> actionSupplier)

Add a new rule, given by a pattern and an action instance.

addTransparentPathPartback to summary
public void addTransparentPathPart(String pathPart)
matchActionsback to summary
public Supplier<Action> matchActions(ElementPath elementPath)

Return a list of actions matching a pattern.

Parameters
elementPath:ElementPath

the path to match for

Returns:Supplier<Action>

list of matching actions