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.
  • Constructor Details

    • ViewSubscribeDependencyInjector

      public ViewSubscribeDependencyInjector(ReflectionCacheManager reflectionCacheManager)
  • Method Details

    • getEventTarget

      @Nullable protected Object getEventTarget(Subscribe annotation, com.vaadin.flow.component.Composite<?> composite)
      Specified by:
      getEventTarget in class AbstractSubscribeDependencyInjector
    • isApplicable

      public boolean isApplicable(DependencyInjector.AutowireContext<?> autowireContext)
      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