Package io.jmix.flowui.sys.autowire
Class ViewInstallDependencyInjector
java.lang.Object
io.jmix.flowui.sys.autowire.AbstractInstallDependencyInjector
io.jmix.flowui.sys.autowire.ViewInstallDependencyInjector
- All Implemented Interfaces:
DependencyInjector
@Order(980)
@Component("flowui_ViewInstallDependencyInjector")
public class ViewInstallDependencyInjector
extends AbstractInstallDependencyInjector
An injection that autowired methods that are annotated by the
Install annotation.
These can be installations to the view or to the components in 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.AbstractInstallDependencyInjector
reflectionCacheManager -
Constructor Summary
ConstructorsConstructorDescriptionViewInstallDependencyInjector(ReflectionCacheManager reflectionCacheManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectgetInstallTargetInstance(com.vaadin.flow.component.Composite<?> component, Install annotation) booleanisApplicable(DependencyInjector.AutowireContext<?> autowireContext) Checks whether this injector can wire the passed injection context.Methods inherited from class io.jmix.flowui.sys.autowire.AbstractInstallDependencyInjector
autowire, doAutowiring
-
Constructor Details
-
ViewInstallDependencyInjector
-
-
Method Details
-
getInstallTargetInstance
@Nullable protected Object getInstallTargetInstance(com.vaadin.flow.component.Composite<?> component, Install annotation) - Specified by:
getInstallTargetInstancein classAbstractInstallDependencyInjector
-
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
-