Interface AnnotationHandlerFactory
-
- All Known Implementing Classes:
DefaultAnnotationHandlerFactory
public interface AnnotationHandlerFactory
An object capable of providing instances ofAnnotationHandler
.- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <H extends AnnotationHandler<? extends java.lang.annotation.Annotation,? extends java.lang.reflect.AnnotatedElement>>
HnewInstance(java.lang.Class<H> type)
Return an instance of the specified type.
-
-
-
Method Detail
-
newInstance
<H extends AnnotationHandler<? extends java.lang.annotation.Annotation,? extends java.lang.reflect.AnnotatedElement>> H newInstance(java.lang.Class<H> type) throws java.lang.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:
java.lang.Exception
- if any error occurs while creating theAnnotationHandler
instance.
-
-