public interface Injector<T>
| Modifier and Type | Method and Description |
|---|---|
void |
clearSupplier()
Clears the currently set Supplier.
|
void |
inject(T instance)
Inject a value on the given instance.
|
void |
setSupplier(java.util.function.Supplier<?> supplier,
InjectionAttributes attributes)
Adds or updates the injector with a Supplier used to inject the pre-configured value.
|
void inject(T instance) throws org.fabric3.api.host.Fabric3Exception
instance - the instance to inject on.org.fabric3.api.host.Fabric3Exception - if an error is raised during injectionvoid setSupplier(java.util.function.Supplier<?> supplier,
InjectionAttributes attributes)
supplier - the Supplierattributes - the injection attributesvoid clearSupplier()