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(Pattern pattern,
Action action)
Add a new rule, i.e.
|
void |
addRule(Pattern pattern,
String actionClassName) |
List |
matchActions(Pattern currentPattern) |
String |
toString() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextpublic SimpleRuleStore(Context context)
public void addRule(Pattern pattern, Action action)
Note that the added action's LoggerRepository will be set in the process.
public List matchActions(Pattern currentPattern)
matchActions in interface RuleStoreCopyright © 2005-2013 QOS.ch. All Rights Reserved.