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