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