Interface ConstructorInjectionPoint<T>

  • Type Parameters:
    T - The constructed type
    All Superinterfaces:
    io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource, io.micronaut.core.beans.BeanConstructor<T>, CallableInjectionPoint<T>, io.micronaut.core.naming.Described, InjectionPoint<T>
    All Known Implementing Classes:
    AbstractConstructorInjectionPoint

    public interface ConstructorInjectionPoint<T>
    extends CallableInjectionPoint<T>, io.micronaut.core.beans.BeanConstructor<T>
    A constructor injection point.
    Since:
    1.0
    • Field Summary

      • Fields inherited from interface io.micronaut.core.annotation.AnnotationSource

        EMPTY
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default java.lang.Class<T> getDeclaringBeanType()  
      default T instantiate​(java.lang.Object... parameterValues)  
      T invoke​(java.lang.Object... args)
      Invoke the constructor.
      • Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider

        findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
      • Methods inherited from interface io.micronaut.core.annotation.AnnotationSource

        getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
      • Methods inherited from interface io.micronaut.core.beans.BeanConstructor

        getArguments, getDescription, getDescription
    • Method Detail

      • invoke

        T invoke​(java.lang.Object... args)
        Invoke the constructor.
        Parameters:
        args - The arguments
        Returns:
        The new value
      • getDeclaringBeanType

        @NonNull
        default java.lang.Class<T> getDeclaringBeanType()
        Specified by:
        getDeclaringBeanType in interface io.micronaut.core.beans.BeanConstructor<T>
      • instantiate

        @NonNull
        default T instantiate​(java.lang.Object... parameterValues)
        Specified by:
        instantiate in interface io.micronaut.core.beans.BeanConstructor<T>