Package ch.qos.logback.core.joran.spi
Interface RuleStore
- All Known Implementing Classes:
SimpleRuleStore
public interface RuleStore
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 TypeMethodDescriptionvoidaddRule(ElementSelector elementSelector, String actionClassStr) Add a new rule, given by a pattern and an action class (String).voidaddRule(ElementSelector elementSelector, Supplier<Action> actionSupplier) Add a new rule, given by a pattern and an action instance.voidaddTransparentPathPart(String pathPart) matchActions(ElementPath elementPath) Return a list of actions matching a pattern.
-
Method Details
-
addRule
Add a new rule, given by a pattern and an action class (String).- Parameters:
elementSelector-actionClassStr-- Throws:
ClassNotFoundException
-
addRule
Add a new rule, given by a pattern and an action instance.- Parameters:
elementSelector-action-
-
matchActions
Return a list of actions matching a pattern.- Parameters:
elementPath- the path to match for- Returns:
- list of matching actions
-
addTransparentPathPart
-