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
public static class InjectionProvider.InjectionType<T> extends Object
A single injection type. The provider creates one for each injectable it provides.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> InjectionProvider.InjectionType<T>
create(Class<T> type, InjectionProvider.CreateInstanceFunction<T> creator)
Create an injection type for the class and creator function.T
createInstance(Vault vault, Config vaultConfig, InjectionProvider.InstanceConfig instanceConfig)
Create a new instance of the injectable.Class<T>
injectedType()
Class of the injectable.
-
-
-
Method Detail
-
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
-
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
-
-