Package io.jmix.flowui.sys.autowire
Class ViewSupplyDependencyInjector
java.lang.Object
io.jmix.flowui.sys.autowire.AbstractSupplyDependencyInjector
io.jmix.flowui.sys.autowire.ViewSupplyDependencyInjector
- All Implemented Interfaces:
DependencyInjector
@Order(990)
@Component("flowui_ViewSupplyDependencyInjector")
public class ViewSupplyDependencyInjector
extends AbstractSupplyDependencyInjector
An injection that autowires methods that are annotated by the
Supply annotation.
These can be suppliers for the view or for the components on the view.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.flowui.sys.autowire.DependencyInjector
DependencyInjector.AutowireContext<T extends com.vaadin.flow.component.Composite<?>> -
Field Summary
Fields inherited from class io.jmix.flowui.sys.autowire.AbstractSupplyDependencyInjector
reflectionCacheManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectgetSupplyTargetInstance(com.vaadin.flow.component.Composite<?> controller, Supply annotation) booleanisApplicable(DependencyInjector.AutowireContext<?> autowireContext) Checks whether this injector can wire the passed injection context.Methods inherited from class io.jmix.flowui.sys.autowire.AbstractSupplyDependencyInjector
autowire, createSupplierInstance, doAutowiring, getSupplyTargetSetterMethod
-
Constructor Details
-
ViewSupplyDependencyInjector
-
-
Method Details
-
getSupplyTargetInstance
@Nullable protected Object getSupplyTargetInstance(com.vaadin.flow.component.Composite<?> controller, Supply annotation) - Specified by:
getSupplyTargetInstancein classAbstractSupplyDependencyInjector
-
isApplicable
Description copied from interface:DependencyInjectorChecks whether this injector can wire the passed injection context.- Parameters:
autowireContext- injection content that need to be checked- Returns:
trueif the passed injection context can be wired,falseotherwise
-