Interface InjectionPoint

All Known Implementing Classes:
ConstructorInjectionPoint, FieldInjectionPoint, MethodInjectionPoint

public interface InjectionPoint
Describes a point with in a JDKTypeDescriptor in which Dependencys may be injected.
Since:
Oct-2024
Author:
brian.oliver
  • Method Details

    • typeDescriptor

      build.codemodel.jdk.descriptor.JDKTypeDescriptor typeDescriptor()
      The JDKTypeDescriptor in which the InjectionPoint is defined
      Returns:
      the JDKTypeDescriptor
    • dependencies

      Stream<Dependency> dependencies()
      The Dependencys for the parameters required to be injected at the InjectionPoint, in the order in which they are required.
      Returns:
      the TypeUsages
    • inject

      <T> T inject(Object target, Object[] actualParameters)
      Inject into the InjectionPoint with the necessary zero or more resolved actual parameter dependencies().
      Parameters:
      target - the optional target Object into which injection must occur
      actualParameters - the resolved TypeUsage values to be injected
      Returns:
      the result of the injection
      Throws:
      InjectionFailedException - when injection fails