Interface InjectionProvider.CreateInstanceFunction<T>
-
- Type Parameters:
T
- type of the instance to be created
- 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>
An interface to allow lambda for creating instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
apply(OciRestApi restApi, Config ociConfig)
Create a new instance in singleton scope (or Application for CDI).
-
-
-
Method Detail
-
apply
T apply(OciRestApi restApi, Config ociConfig)
Create a new instance in singleton scope (or Application for CDI).- Parameters:
restApi
- OCI rest API configured to the correct instanceociConfig
- configuration located on the oci node- Returns:
- a new instance to be injected
-
-