Class DefaultAnnotationHandlerFactory
java.lang.Object
org.apache.commons.digester3.annotations.DefaultAnnotationHandlerFactory
- All Implemented Interfaces:
AnnotationHandlerFactory
Default
AnnotationHandlerFactory
implementation.- Since:
- 3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<L extends AnnotationHandler<? extends Annotation,
? extends AnnotatedElement>>
LnewInstance
(Class<L> type) Return an instance of the specified type.
-
Constructor Details
-
DefaultAnnotationHandlerFactory
DefaultAnnotationHandlerFactory()
-
-
Method Details
-
newInstance
public <L extends AnnotationHandler<? extends Annotation,? extends AnnotatedElement>> L newInstance(Class<L> type) throws Exception Return an instance of the specified type.- Specified by:
newInstance
in interfaceAnnotationHandlerFactory
- Type Parameters:
L
- TheAnnotationHandler
type has to be created- Parameters:
type
- the class of the object to be returned.- Returns:
- an instance of the specified class.
- Throws:
Exception
- if any error occurs while creating theAnnotationHandler
instance.
-