Class DefaultAnnotationHandlerFactory
- java.lang.Object
-
- org.apache.commons.digester3.annotations.DefaultAnnotationHandlerFactory
-
- All Implemented Interfaces:
AnnotationHandlerFactory
final class DefaultAnnotationHandlerFactory extends java.lang.Object implements AnnotationHandlerFactory
DefaultAnnotationHandlerFactoryimplementation.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description DefaultAnnotationHandlerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <L extends AnnotationHandler<? extends java.lang.annotation.Annotation,? extends java.lang.reflect.AnnotatedElement>>
LnewInstance(java.lang.Class<L> type)Return an instance of the specified type.
-
-
-
Method Detail
-
newInstance
public <L extends AnnotationHandler<? extends java.lang.annotation.Annotation,? extends java.lang.reflect.AnnotatedElement>> L newInstance(java.lang.Class<L> type) throws java.lang.Exception
Return an instance of the specified type.- Specified by:
newInstancein interfaceAnnotationHandlerFactory- Type Parameters:
L- TheAnnotationHandlertype has to be created- Parameters:
type- the class of the object to be returned.- Returns:
- an instance of the specified class.
- Throws:
java.lang.Exception- if any error occurs while creating theAnnotationHandlerinstance.
-
-