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,
java.lang.String actionClassName) |
java.util.List |
matchActions(Pattern currentPattern) |
java.lang.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 void addRule(Pattern pattern, java.lang.String actionClassName)
public java.util.List matchActions(Pattern currentPattern)
matchActions in interface RuleStorepublic java.lang.String toString()
toString in class java.lang.Object