org.apache.commons.digester.annotations.internal
Class DefaultAnnotationRuleProviderFactory

java.lang.Object
  extended by org.apache.commons.digester.annotations.internal.DefaultAnnotationRuleProviderFactory
All Implemented Interfaces:
AnnotationRuleProviderFactory

public final class DefaultAnnotationRuleProviderFactory
extends Object
implements AnnotationRuleProviderFactory

Default AnnotationRuleProviderFactory implementation.

Since:
2.1

Constructor Summary
DefaultAnnotationRuleProviderFactory()
           
 
Method Summary
<T extends AnnotationRuleProvider<? extends Annotation,? extends AnnotatedElement,? extends Rule>>
T
newInstance(Class<T> type)
          Return an AnnotationRuleProvider instance of the specified type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAnnotationRuleProviderFactory

public DefaultAnnotationRuleProviderFactory()
Method Detail

newInstance

public <T extends AnnotationRuleProvider<? extends Annotation,? extends AnnotatedElement,? extends Rule>> T newInstance(Class<T> type)
                                                                                                             throws DigesterLoadingException
Return an AnnotationRuleProvider instance of the specified type.

Specified by:
newInstance in interface AnnotationRuleProviderFactory
Type Parameters:
T - the AnnotationRuleProvider type.
Parameters:
type - the class of the object to be returned.
Returns:
an instance of the specified class.
Throws:
DigesterLoadingException - if any error occurs while creating the type instance.


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