Interface InjectionProvider.CreateInstanceFunction<T>

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

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

      • apply

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