Interface AnnotationHandlerFactory

    • 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>>
      H
      newInstance​(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 - The AnnotationHandler 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 the AnnotationHandler instance.