Class DigesterLoader
java.lang.Object
org.apache.commons.digester.annotations.DigesterLoader
This class manages the creation of Digester instances analyzing target classes
annotated with digester annotations.
- Since:
- 2.1
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDigesterLoader(AnnotationRuleProviderFactory annotationRuleProviderFactory, DigesterLoaderHandlerFactory digesterLoaderHandlerFactory) Creates a newDigesterLoaderinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd rules to an already created Digester instance, analyzing the digester annotations in the target class.voidaddRulesTo(Class<?> target, FromAnnotationsRuleSet ruleSet) Analyzes the target class and adds theAnnotationRuleProviders to the existingFromAnnotationsRuleSet.createDigester(Class<?> target) Creates a new digester which rules are defined by analyzing the digester annotations in the target class.protected AnnotationRuleProviderFactoryprotected DigesterLoaderHandlerFactorygetRuleSet(Class<?> target) Builds a newRuleSetanalyzing the digester annotations in the target class.
-
Constructor Details
-
DigesterLoader
protected DigesterLoader(AnnotationRuleProviderFactory annotationRuleProviderFactory, DigesterLoaderHandlerFactory digesterLoaderHandlerFactory) Creates a newDigesterLoaderinstance.- Parameters:
annotationRuleProviderFactory-digesterLoaderHandlerFactory-
-
-
Method Details
-
getAnnotationRuleProviderFactory
-
getDigesterLoaderHandlerFactory
-
createDigester
Creates a new digester which rules are defined by analyzing the digester annotations in the target class.- Parameters:
target- the class has to be analyzed.- Returns:
- a new Digester instance.
-
addRules
-
getRuleSet
-
addRulesTo
Analyzes the target class and adds theAnnotationRuleProviders to the existingFromAnnotationsRuleSet.- Parameters:
target- the class has to be analyzed.ruleSet- the RuleSet where adding the providers.
-