public abstract class FromAnnotationsRuleModule extends AbstractRulesModule
RulesModule
implementation that allows loading rules from
annotated classes.Constructor and Description |
---|
FromAnnotationsRuleModule() |
Modifier and Type | Method and Description |
---|---|
protected void |
bindRulesFrom(Class<?> type)
Scan the input Class, looking for Digester rules expressed via annotations, and binds them.
|
protected void |
configure()
Configures a
RulesBinder via the exposed methods. |
protected abstract void |
configureRules()
Configures a
RulesBinder via the exposed methods. |
protected void |
useAnnotationHandlerFactory(AnnotationHandlerFactory annotationHandlerFactory)
Allows users plug a different
AnnotationHandlerFactory to create AnnotationHandler instances. |
protected void |
useDefaultAnnotationHandlerFactory()
Allows users to switch back to the default
AnnotationHandlerFactory implementation. |
addError, addError, configure, forPattern, install, rulesBinder
public FromAnnotationsRuleModule()
protected final void configure()
RulesBinder
via the exposed methods.configure
in class AbstractRulesModule
protected abstract void configureRules()
RulesBinder
via the exposed methods.protected final void useAnnotationHandlerFactory(AnnotationHandlerFactory annotationHandlerFactory)
AnnotationHandlerFactory
to create AnnotationHandler
instances.annotationHandlerFactory
- A custom AnnotationHandlerFactory
to create
AnnotationHandler
instancesprotected final void useDefaultAnnotationHandlerFactory()
AnnotationHandlerFactory
implementation.protected final void bindRulesFrom(Class<?> type)
type
- the type has to be analyzedDigesterRule
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.