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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
apply(Vault vault, Config vaultConfig, InjectionProvider.InstanceConfig instanceConfig)
Create a new instance in singleton scope (or Application for CDI).
-
-
-
Method Detail
-
apply
T apply(Vault vault, Config vaultConfig, InjectionProvider.InstanceConfig instanceConfig)
Create a new instance in singleton scope (or Application for CDI).- Parameters:
vault
- to usevaultConfig
- configuration located on the vault nodeinstanceConfig
- configuration of an instance- Returns:
- a new instance to be injected
-
-