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