Interface InjectionProvider.CreateInstanceFunction<T>

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

    Modifier and Type
    Method
    Description
    apply(Vault vault, Config vaultConfig, InjectionProvider.InstanceConfig instanceConfig)
    Create a new instance in singleton scope (or Application for CDI).
  • Method Details

    • apply

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