Interface AnnotationHandlerFactory
- All Known Implementing Classes:
DefaultAnnotationHandlerFactory
public interface AnnotationHandlerFactory
An object capable of providing instances of
AnnotationHandler
.- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescription<H extends AnnotationHandler<? extends Annotation,
? extends AnnotatedElement>>
HnewInstance
(Class<H> type) Return an instance of the specified type.
-
Method Details
-
newInstance
<H extends AnnotationHandler<? extends Annotation,? extends AnnotatedElement>> H newInstance(Class<H> type) throws Exception Return an instance of the specified type.- Type Parameters:
H
- 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.
-