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 anAnnotationRuleProvider
instance of the specified type.
-
Constructor Details
-
DefaultAnnotationRuleProviderFactory
public DefaultAnnotationRuleProviderFactory()
-
-
Method Details
-
newInstance
public <T extends AnnotationRuleProvider<? extends Annotation,? extends AnnotatedElement, T newInstance? extends Rule>> (Class<T> type) throws DigesterLoadingException Return anAnnotationRuleProvider
instance of the specified type.- Specified by:
newInstance
in interfaceAnnotationRuleProviderFactory
- Type Parameters:
T
- theAnnotationRuleProvider
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 thetype
instance.
-