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
ConstructorDescriptionViewSubscribeDependencyInjector
(ReflectionCacheManager reflectionCacheManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
getEventTarget
(Subscribe annotation, com.vaadin.flow.component.Composite<?> composite) boolean
isApplicable
(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:
getEventTarget
in classAbstractSubscribeDependencyInjector
-
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
-