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.
 
Interface to enable lambdas as instance constructors.
- 
Method Summary
Modifier and TypeMethodDescriptionapply(Vault vault, Config vaultConfig, InjectionProvider.InstanceConfig instanceConfig) Create a new instance in singleton scope (or Application for CDI). 
- 
Method Details
- 
apply
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
 
 
 -