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
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
getSupplyTargetInstance
(com.vaadin.flow.component.Composite<?> controller, Supply annotation) boolean
isApplicable
(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:
getSupplyTargetInstance
in classAbstractSupplyDependencyInjector
-
isApplicable
Description copied from interface:DependencyInjector
Checks whether this injector can wire the passed injection context.- Parameters:
autowireContext
- injection content that need to be checked- Returns:
true
if the passed injection context can be wired,false
otherwise
-