public final class DigesterLoader extends java.lang.Object
| Modifier | Constructor | Description |
|---|---|---|
protected |
DigesterLoader(AnnotationRuleProviderFactory annotationRuleProviderFactory,
DigesterLoaderHandlerFactory digesterLoaderHandlerFactory) |
Creates a new
DigesterLoader instance. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addRules(java.lang.Class<?> target,
Digester digester) |
Add rules to an already created Digester instance, analyzing the digester
annotations in the target class.
|
void |
addRulesTo(java.lang.Class<?> target,
FromAnnotationsRuleSet ruleSet) |
Analyzes the target class and adds the
AnnotationRuleProviders to
the existing FromAnnotationsRuleSet. |
Digester |
createDigester(java.lang.Class<?> target) |
Creates a new digester which rules are defined by analyzing the digester
annotations in the target class.
|
protected AnnotationRuleProviderFactory |
getAnnotationRuleProviderFactory() |
|
protected DigesterLoaderHandlerFactory |
getDigesterLoaderHandlerFactory() |
|
RuleSet |
getRuleSet(java.lang.Class<?> target) |
Builds a new
RuleSet analyzing the digester annotations in the
target class. |
protected DigesterLoader(AnnotationRuleProviderFactory annotationRuleProviderFactory, DigesterLoaderHandlerFactory digesterLoaderHandlerFactory)
DigesterLoader instance.annotationRuleProviderFactory - digesterLoaderHandlerFactory - protected AnnotationRuleProviderFactory getAnnotationRuleProviderFactory()
protected DigesterLoaderHandlerFactory getDigesterLoaderHandlerFactory()
public Digester createDigester(java.lang.Class<?> target)
target - the class has to be analyzed.public void addRules(java.lang.Class<?> target, Digester digester)
target - the class has to be analyzed.digester - the Digester instance reference.public RuleSet getRuleSet(java.lang.Class<?> target)
RuleSet analyzing the digester annotations in the
target class.
It avoids iterate the annotations analysis for already analyzed classes,
using an in-memory LRU cache.target - the class has to be analyzed.RuleSet.public void addRulesTo(java.lang.Class<?> target, FromAnnotationsRuleSet ruleSet)
AnnotationRuleProviders to
the existing FromAnnotationsRuleSet.target - the class has to be analyzed.ruleSet - the RuleSet where adding the providers.