|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.digester.annotations.DigesterLoader
public final class DigesterLoader
This class manages the creation of Digester instances analyzing target classes annotated with digester annotations.
Constructor Summary | |
---|---|
protected |
DigesterLoader(AnnotationRuleProviderFactory annotationRuleProviderFactory,
DigesterLoaderHandlerFactory digesterLoaderHandlerFactory)
Creates a new DigesterLoader instance. |
Method Summary | |
---|---|
void |
addRules(Class<?> target,
Digester digester)
Add rules to an already created Digester instance, analyzing the digester annotations in the target class. |
void |
addRulesTo(Class<?> target,
FromAnnotationsRuleSet ruleSet)
Analyzes the target class and adds the AnnotationRuleProvider s to
the existing FromAnnotationsRuleSet . |
Digester |
createDigester(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(Class<?> target)
Builds a new RuleSet analyzing the digester annotations in the
target class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DigesterLoader(AnnotationRuleProviderFactory annotationRuleProviderFactory, DigesterLoaderHandlerFactory digesterLoaderHandlerFactory)
DigesterLoader
instance.
annotationRuleProviderFactory
- digesterLoaderHandlerFactory
- Method Detail |
---|
protected AnnotationRuleProviderFactory getAnnotationRuleProviderFactory()
protected DigesterLoaderHandlerFactory getDigesterLoaderHandlerFactory()
public Digester createDigester(Class<?> target)
target
- the class has to be analyzed.
public void addRules(Class<?> target, Digester digester)
target
- the class has to be analyzed.digester
- the Digester instance reference.public RuleSet getRuleSet(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(Class<?> target, FromAnnotationsRuleSet ruleSet)
AnnotationRuleProvider
s to
the existing FromAnnotationsRuleSet
.
target
- the class has to be analyzed.ruleSet
- the RuleSet where adding the providers.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |