org.apache.commons.digester.annotations.providers
Class FactoryCreateRuleProvider

java.lang.Object
  extended by org.apache.commons.digester.annotations.providers.FactoryCreateRuleProvider
All Implemented Interfaces:
AnnotationRuleProvider<FactoryCreate,Class<?>,FactoryCreateRule>

public final class FactoryCreateRuleProvider
extends Object
implements AnnotationRuleProvider<FactoryCreate,Class<?>,FactoryCreateRule>

Provides instances of FactoryCreateRule.

Since:
2.1

Constructor Summary
FactoryCreateRuleProvider()
           
 
Method Summary
 FactoryCreateRule get()
          Provides an instance of Rule.
 void init(FactoryCreate annotation, Class<?> element)
          Initializes the provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryCreateRuleProvider

public FactoryCreateRuleProvider()
Method Detail

init

public void init(FactoryCreate annotation,
                 Class<?> element)
Initializes the provider.

Specified by:
init in interface AnnotationRuleProvider<FactoryCreate,Class<?>,FactoryCreateRule>
Parameters:
annotation - the annotation instance.
element - the annotated element reference.

get

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

Specified by:
get in interface AnnotationRuleProvider<FactoryCreate,Class<?>,FactoryCreateRule>
Returns:
an instance of Rule.


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