org.apache.commons.digester.annotations
Interface AnnotationRuleProvider<A extends Annotation,E extends AnnotatedElement,R extends Rule>

All Known Implementing Classes:
AttributeCallParamRuleProvider, BeanPropertySetterRuleProvider, CallMethodRuleProvider, CallParamRuleProvider, FactoryCreateRuleProvider, ObjectCreateRuleProvider, PathCallParamRuleProvider, SetNextRuleProvider, SetPropertiesRuleProvider, SetRootRuleProvider, SetTopRuleProvider, StackCallParamRuleProvider

public interface AnnotationRuleProvider<A extends Annotation,E extends AnnotatedElement,R extends Rule>

An object capable of providing instances of Rule.

Since:
2.1

Method Summary
 R get()
          Provides an instance of Rule.
 void init(A annotation, E element)
          Initializes the provider.
 

Method Detail

init

void init(A annotation,
          E element)
Initializes the provider.

Parameters:
annotation - the annotation instance.
element - the annotated element reference.

get

R get()
Provides an instance of Rule. Must never return null.

Returns:
an instance of Rule.


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.