Class InjectionProvider.InjectionType<T>
java.lang.Object
io.helidon.integrations.oci.connect.spi.InjectionProvider.InjectionType<T>
- Type Parameters:
T- type to inject
- Enclosing interface:
- InjectionProvider
A single type that can be injected.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> InjectionProvider.InjectionType<T>create(Class<T> type, InjectionProvider.CreateInstanceFunction<T> creator) Create an injection type for a type and associated function to create an instance.createInstance(OciRestApi ociRestApi, Config vaultConfig) Create a new instance of the injectable.Get the 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 a type and associated function to create an instance.- Type Parameters:
T- type of the injectable- Parameters:
type- class that can be injectedcreator- function to create a new instance- Returns:
- a new injection type
-
injectedType
Get the class of the injectable.- Returns:
- class
-
createInstance
Create a new instance of the injectable.- Parameters:
ociRestApi- rest API to usevaultConfig- configuration of Vault (may be empty, never null)- Returns:
- a new instance
-