Class FragmentSupplyDependencyInjector

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

@Order(940) @Component("flowui_FragmentSupplyDependencyInjector") public class FragmentSupplyDependencyInjector extends AbstractSupplyDependencyInjector
An injection that autowires methods that are annotated by the Supply annotation. These can be suppliers for the components on the Fragment.
  • Constructor Details

    • FragmentSupplyDependencyInjector

      public FragmentSupplyDependencyInjector(ReflectionCacheManager reflectionCacheManager)
  • Method Details

    • getSupplyTargetInstance

      @Nullable protected Object getSupplyTargetInstance(com.vaadin.flow.component.Composite<?> composite, 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