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

java.lang.Object
  extended by org.apache.commons.digester.annotations.providers.ObjectCreateRuleProvider
All Implemented Interfaces:
AnnotationRuleProvider<ObjectCreate,Class<?>,ObjectCreateRule>

public final class ObjectCreateRuleProvider
extends Object
implements AnnotationRuleProvider<ObjectCreate,Class<?>,ObjectCreateRule>

Provides instances of ObjectCreateRule.

Since:
2.1

Constructor Summary
ObjectCreateRuleProvider()
           
 
Method Summary
 ObjectCreateRule get()
          Provides an instance of Rule.
 void init(ObjectCreate 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

ObjectCreateRuleProvider

public ObjectCreateRuleProvider()
Method Detail

init

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

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

get

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

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


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