Class InjectionProvider.InjectionType<T>
java.lang.Object
io.helidon.integrations.vault.spi.InjectionProvider.InjectionType<T>
- Type Parameters:
T
- type of the injectable
- Enclosing interface:
- InjectionProvider
A single injection type. The provider creates one for each injectable it provides.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> InjectionProvider.InjectionType<T>
create
(Class<T> type, InjectionProvider.CreateInstanceFunction<T> creator) Create an injection type for the class and creator function.createInstance
(Vault vault, Config vaultConfig, InjectionProvider.InstanceConfig instanceConfig) Create a new instance of the injectable.Class of the injectable.
-
Method Details
-
create
public static <T> InjectionProvider.InjectionType<T> create(Class<T> type, InjectionProvider.CreateInstanceFunction<T> creator) Create an injection type for the class and creator function.- Type Parameters:
T
- type of the injectable- Parameters:
type
- class of the injectablecreator
- function to create a new instance- Returns:
- a new injection type
-
injectedType
Class of the injectable.- Returns:
- class
-
createInstance
public T createInstance(Vault vault, Config vaultConfig, InjectionProvider.InstanceConfig instanceConfig) Create a new instance of the injectable.- Parameters:
vault
- vault to usevaultConfig
- vault configuration nodeinstanceConfig
- configuration of the instance- Returns:
- a new injectable instance
-