Class FactoryCreateRuleProvider
- java.lang.Object
-
- org.apache.commons.digester.annotations.providers.FactoryCreateRuleProvider
-
- All Implemented Interfaces:
AnnotationRuleProvider<FactoryCreate,java.lang.Class<?>,FactoryCreateRule>
public final class FactoryCreateRuleProvider extends java.lang.Object implements AnnotationRuleProvider<FactoryCreate,java.lang.Class<?>,FactoryCreateRule>
Provides instances ofFactoryCreateRule
.- Since:
- 2.1
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<?>
factoryClass
private boolean
ignoreCreateExceptions
-
Constructor Summary
Constructors Constructor Description FactoryCreateRuleProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FactoryCreateRule
get()
Provides an instance ofRule
.void
init(FactoryCreate annotation, java.lang.Class<?> element)
Initializes the provider.
-
-
-
Method Detail
-
init
public void init(FactoryCreate annotation, java.lang.Class<?> element)
Initializes the provider.- Specified by:
init
in interfaceAnnotationRuleProvider<FactoryCreate,java.lang.Class<?>,FactoryCreateRule>
- Parameters:
annotation
- the annotation instance.element
- the annotated element reference.
-
get
public FactoryCreateRule get()
Provides an instance ofRule
. Must never return null.- Specified by:
get
in interfaceAnnotationRuleProvider<FactoryCreate,java.lang.Class<?>,FactoryCreateRule>
- Returns:
- an instance of
Rule
.
-
-