Package io.jmix.flowui.sys.autowire
Class ViewSubscribeDependencyInjector
java.lang.Object
io.jmix.flowui.sys.autowire.AbstractSubscribeDependencyInjector
io.jmix.flowui.sys.autowire.ViewSubscribeDependencyInjector
- All Implemented Interfaces:
DependencyInjector
@Order(970)
@Component("flowui_ViewSubscribeDependencyInjector")
public class ViewSubscribeDependencyInjector
extends AbstractSubscribeDependencyInjector
An injector that autowires method that are annotated by the
Subscribe annotation.
These can be subscriptions to view events or to components events 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.AbstractSubscribeDependencyInjector
reflectionCacheManager -
Constructor Summary
ConstructorsConstructorDescriptionViewSubscribeDependencyInjector(ReflectionCacheManager reflectionCacheManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectgetEventTarget(Subscribe annotation, com.vaadin.flow.component.Composite<?> composite) booleanisApplicable(DependencyInjector.AutowireContext<?> autowireContext) Checks whether this injector can wire the passed injection context.Methods inherited from class io.jmix.flowui.sys.autowire.AbstractSubscribeDependencyInjector
autowire, doAutowiring
-
Constructor Details
-
ViewSubscribeDependencyInjector
-
-
Method Details
-
getEventTarget
@Nullable protected Object getEventTarget(Subscribe annotation, com.vaadin.flow.component.Composite<?> composite) - Specified by:
getEventTargetin classAbstractSubscribeDependencyInjector
-
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
-