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
ConstructorDescriptionViewInstallDependencyInjector
(ReflectionCacheManager reflectionCacheManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
getInstallTargetInstance
(com.vaadin.flow.component.Composite<?> component, Install 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.AbstractInstallDependencyInjector
autowire, doAutowiring
-
Constructor Details
-
ViewInstallDependencyInjector
-
-
Method Details
-
getInstallTargetInstance
@Nullable protected Object getInstallTargetInstance(com.vaadin.flow.component.Composite<?> component, Install annotation) - Specified by:
getInstallTargetInstance
in classAbstractInstallDependencyInjector
-
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
-