Class FragmentSubscribeDependencyInjector

java.lang.Object
io.jmix.flowui.sys.autowire.AbstractSubscribeDependencyInjector
io.jmix.flowui.sys.autowire.FragmentSubscribeDependencyInjector
All Implemented Interfaces:
DependencyInjector

@Order(920) @Component("flowui_FragmentSubscribeDependencyInjector") public class FragmentSubscribeDependencyInjector extends AbstractSubscribeDependencyInjector
An injector that autowires method that are annotated by the Subscribe annotation. These can be subscriptions to Fragment events or to components events in the fragment.
  • Constructor Details

    • FragmentSubscribeDependencyInjector

      public FragmentSubscribeDependencyInjector(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