Class DefaultAnnotationRuleProviderFactory
java.lang.Object
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
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends AnnotationRuleProvider<? extends Annotation, ? extends AnnotatedElement, ? extends Rule>>
TnewInstance(Class<T> type) Return anAnnotationRuleProviderinstance of the specified type.
-
Constructor Details
-
DefaultAnnotationRuleProviderFactory
public DefaultAnnotationRuleProviderFactory()
-
-
Method Details
-
newInstance
public <T extends AnnotationRuleProvider<? extends Annotation, ? extends AnnotatedElement, ? extends Rule>> T newInstance(Class<T> type) throws DigesterLoadingException Return anAnnotationRuleProviderinstance of the specified type.- Specified by:
newInstancein interfaceAnnotationRuleProviderFactory- Type Parameters:
T- theAnnotationRuleProvidertype.- 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 thetypeinstance.
-