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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDependencyInjector.AutowireContext<T extends com.vaadin.flow.component.Composite<?>>Base injection context interface. -
Method Summary
Modifier and TypeMethodDescriptionvoidautowire(DependencyInjector.AutowireContext<?> autowireContext) The method is invoked when the component instance is created.booleanisApplicable(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:
trueif the passed injection context can be wired,falseotherwise
-