|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.digester3.binder.AbstractRulesModule
public abstract class AbstractRulesModule
A support class for RulesModule which reduces repetition and results in a more readable configuration.
Constructor Summary | |
---|---|
AbstractRulesModule()
|
Method Summary | |
---|---|
protected void |
addError(String messagePattern,
Object... arguments)
Records an error message which will be presented to the user at a later time. |
protected void |
addError(Throwable t)
Records an exception, the full details of which will be logged, and the message of which will be presented to the user at a later time. |
protected abstract void |
configure()
Configures a RulesBinder via the exposed methods. |
void |
configure(RulesBinder rulesBinder)
Configure the Digester rules binding via the given rules binder. |
protected LinkedRuleBuilder |
forPattern(String pattern)
Allows user binding one or more Digester rules to the input pattern. |
protected void |
install(RulesModule rulesModule)
Uses the given module to configure more bindings. |
protected RulesBinder |
rulesBinder()
Return the wrapped RulesBinder . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractRulesModule()
Method Detail |
---|
public final void configure(RulesBinder rulesBinder)
configure
in interface RulesModule
rulesBinder
- The binder instance used to configure rules bindings.protected abstract void configure()
RulesBinder
via the exposed methods.
protected void addError(String messagePattern, Object... arguments)
String.format(String, Object...)
to insert the arguments into the message.
messagePattern
- A
format stringarguments
- Arguments referenced by the format specifiers in the format stringRulesBinder.addError(String, Object...)
protected void addError(Throwable t)
t
- The exception has to be recordedRulesBinder.addError(Throwable)
protected void install(RulesModule rulesModule)
rulesModule
- The module used to configure more bindingsRulesBinder.install(RulesModule)
protected LinkedRuleBuilder forPattern(String pattern)
pattern
- The pattern used to bind rules
RulesBinder.forPattern(String)
protected RulesBinder rulesBinder()
RulesBinder
.
RulesBinder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |