Interface InjectionProvider.CreateInstanceFunction<T>

Type Parameters:
T - type of the instance to be created
Enclosing interface:
InjectionProvider
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface InjectionProvider.CreateInstanceFunction<T>
An interface to allow lambda for creating instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(OciRestApi restApi, Config ociConfig)
    Create a new instance in singleton scope (or Application for CDI).
  • Method Details

    • apply

      T apply(OciRestApi restApi, Config ociConfig)
      Create a new instance in singleton scope (or Application for CDI).
      Parameters:
      restApi - OCI rest API configured to the correct instance
      ociConfig - configuration located on the oci node
      Returns:
      a new instance to be injected