public class SimpleRuleStore extends ContextAwareBase implements RuleStore
RuleStore interface. It is the rule store
implementation used by default in Joran.context| Constructor and Description |
|---|
SimpleRuleStore(Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRule(ElementSelector elementSelector,
Action action)
Add a new rule, i.e.
|
void |
addRule(ElementSelector elementSelector,
String actionClassName)
Add a new rule, given by a pattern and a action class (String).
|
List<Action> |
matchActions(ElementPath elementPath)
Return a list of actions matching a pattern.
|
String |
toString() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextpublic SimpleRuleStore(Context context)
public void addRule(ElementSelector elementSelector, Action action)
Note that the added action's LoggerRepository will be set in the process.
public void addRule(ElementSelector elementSelector, String actionClassName)
RuleStorepublic List<Action> matchActions(ElementPath elementPath)
RuleStorematchActions in interface RuleStoreelementPath - the path to match forCopyright © 2005–2017 QOS.ch. All rights reserved.