Class ViewSupplyDependencyInjector

java.lang.Object
io.jmix.flowui.sys.autowire.AbstractSupplyDependencyInjector
io.jmix.flowui.sys.autowire.ViewSupplyDependencyInjector
All Implemented Interfaces:
DependencyInjector

@Order(990) @Component("flowui_ViewSupplyDependencyInjector") public class ViewSupplyDependencyInjector extends AbstractSupplyDependencyInjector
An injection that autowires methods that are annotated by the Supply annotation. These can be suppliers for the view or for the components on the view.
  • Constructor Details

    • ViewSupplyDependencyInjector

      public ViewSupplyDependencyInjector(ReflectionCacheManager reflectionCacheManager)
  • Method Details

    • getSupplyTargetInstance

      @Nullable protected Object getSupplyTargetInstance(com.vaadin.flow.component.Composite<?> controller, Supply annotation)
      Specified by:
      getSupplyTargetInstance in class AbstractSupplyDependencyInjector
    • 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