Class FromAnnotationsRuleModule
java.lang.Object
org.apache.commons.digester3.binder.AbstractRulesModule
org.apache.commons.digester3.annotations.FromAnnotationsRuleModule
- All Implemented Interfaces:
RulesModule
RulesModule implementation that allows loading rules from
annotated classes.- Since:
- 3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidbindRulesFrom(Class<?> type) Scan the input Class, looking for Digester rules expressed via annotations, and binds them.protected final voidConfigures aRulesBindervia the exposed methods.protected abstract voidConfigures aRulesBindervia the exposed methods.protected final voiduseAnnotationHandlerFactory(AnnotationHandlerFactory annotationHandlerFactory) Allows users plug a differentAnnotationHandlerFactoryto createAnnotationHandlerinstances.protected final voidAllows users to switch back to the defaultAnnotationHandlerFactoryimplementation.Methods inherited from class AbstractRulesModule
addError, addError, configure, forPattern, install, rulesBinder
-
Constructor Details
-
FromAnnotationsRuleModule
public FromAnnotationsRuleModule()
-
-
Method Details
-
configure
Configures aRulesBindervia the exposed methods.- Specified by:
configurein classAbstractRulesModule
-
configureRules
Configures aRulesBindervia the exposed methods. -
useAnnotationHandlerFactory
Allows users plug a differentAnnotationHandlerFactoryto createAnnotationHandlerinstances.- Parameters:
annotationHandlerFactory- A customAnnotationHandlerFactoryto createAnnotationHandlerinstances
-
useDefaultAnnotationHandlerFactory
Allows users to switch back to the defaultAnnotationHandlerFactoryimplementation. -
bindRulesFrom
Scan the input Class, looking for Digester rules expressed via annotations, and binds them.- Parameters:
type- the type has to be analyzed- See Also:
-