Class 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>>
      L
      newInstance​(java.lang.Class<L> type)
      Return an instance of the specified type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultAnnotationHandlerFactory

        DefaultAnnotationHandlerFactory()
    • 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:
        newInstance in interface AnnotationHandlerFactory
        Type Parameters:
        L - 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.