Package io.jmix.flowui.sys.autowire
Interface DependencyInjector
- All Known Implementing Classes:
AbstractClickNotifierDependencyInjector
,AbstractElementsDependencyInjector
,AbstractInstallDependencyInjector
,AbstractSubscribeDependencyInjector
,AbstractSupplyDependencyInjector
,EventListenerDependencyInjector
,FragmentClickNotifierDependencyInjector
,FragmentElementsDependencyInjector
,FragmentInstallDependencyInjector
,FragmentSubscribeDependencyInjector
,FragmentSupplyDependencyInjector
,FullCalendarViewInstallDependencyInjector
,GeoMapViewElementsDependencyInjector
,GeoMapViewInstallDependencyInjector
,GeoMapViewSubscribeDependencyInjection
,SelectionListenerDependencyInjector
,ViewClickNotifierDependencyInjector
,ViewElementsDependencyInjector
,ViewInstallDependencyInjector
,ViewSubscribeDependencyInjector
,ViewSupplyDependencyInjector
public interface DependencyInjector
Implementations of the interface are used for wiring of fields/setters and additional dependency
injectors to the UI components.
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
DependencyInjector.AutowireContext<T extends com.vaadin.flow.component.Composite<?>>
Base injection context interface. -
Method Summary
Modifier and TypeMethodDescriptionvoid
autowire
(DependencyInjector.AutowireContext<?> autowireContext) The method is invoked when the component instance is created.boolean
isApplicable
(DependencyInjector.AutowireContext<?> autowireContext) Checks whether this injector can wire the passed injection context.
-
Method Details
-
autowire
The method is invoked when the component instance is created. Used to autowire dependencies to the UI component.- Parameters:
autowireContext
- injection context
-
isApplicable
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
-