Class AbstractBeanResolutionContext.ConstructorArgumentSegment

    • Constructor Detail

      • ConstructorArgumentSegment

        public ConstructorArgumentSegment​(BeanDefinition declaringType,
                                          java.lang.String methodName,
                                          io.micronaut.core.type.Argument argument,
                                          io.micronaut.core.type.Argument[] arguments)
    • Method Detail

      • requiresReflection

        public boolean requiresReflection()
        Specified by:
        requiresReflection in interface InjectionPoint
        Returns:
        Whether reflection is required to satisfy the injection point
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface BeanResolutionContext.Segment
        Specified by:
        getName in interface io.micronaut.core.naming.Named
        Returns:
        The name of the segment. For a field this is the field name, for a method the method name and for a constructor the type name
      • getArgument

        public io.micronaut.core.type.Argument getArgument()
        Specified by:
        getArgument in interface BeanResolutionContext.Segment
        Returns:
        The argument to create the type. For a field this will be empty
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object