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