org.apache.commons.digester.annotations.spi
Interface AnnotationRuleProviderFactory

All Known Implementing Classes:
DefaultAnnotationRuleProviderFactory

public interface AnnotationRuleProviderFactory

An object capable of providing instances of AnnotationRuleProvider.

Since:
2.1

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

Method Detail

newInstance

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

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.