Interface InjectionProvider.CreateInstanceFunction<T>

  • Type Parameters:
    T - type of the constructed instance
    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>
    Interface to enable lambdas as instance constructors.
    • Method Detail

      • apply

        T apply​(Vault vault,
                Config vaultConfig,
                InjectionProvider.InstanceConfig instanceConfig)
        Create a new instance in singleton scope (or Application for CDI).
        vault - to use
        vaultConfig - configuration located on the vault node
        instanceConfig - configuration of an instance
        a new instance to be injected