public interface RulesBinder
Modifier and Type | Method and Description |
---|---|
void |
addError(String messagePattern,
Object... arguments)
Records an error message which will be presented to the user at a later time.
|
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.
|
LinkedRuleBuilder |
forPattern(String pattern)
Allows to associate the given pattern to one or more Digester rules.
|
ClassLoader |
getContextClassLoader()
Returns the context
ClassLoader . |
void |
install(RulesModule rulesModule)
Allows sub-modules inclusion while binding rules.
|
ClassLoader getContextClassLoader()
ClassLoader
.ClassLoader
void addError(String messagePattern, Object... arguments)
String.format(String, Object[])
to insert the arguments into the message.messagePattern
- The message string patternarguments
- Arguments referenced by the format specifiers in the format stringvoid addError(Throwable t)
t
- The exception has to be recorded.void install(RulesModule rulesModule)
rulesModule
- the sub-module has to be included.LinkedRuleBuilder forPattern(String pattern)
pattern
- The pattern that this rule should matchCopyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.