Class ActionsImpl

java.lang.Object
io.jmix.flowui.impl.ActionsImpl
All Implemented Interfaces:
Actions, EventListener, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>

@Component("flowui_Actions") public class ActionsImpl extends Object implements Actions, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
Implementation of the Actions interface that manages the creation and registration of action types annotated with ActionType. It initializes and resolves action classes, making them available for use within the application context.
  • Field Details

  • Constructor Details

    • ActionsImpl

      public ActionsImpl()
  • Method Details

    • setConfigurations

      @Autowired(required=false) public void setConfigurations(List<ActionsConfiguration> configurations)
    • setClassManager

      @Autowired public void setClassManager(ClassManager classManager)
    • setApplicationContext

      @Autowired public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
    • setActionsConfigurationSorter

      @Autowired public void setActionsConfigurationSorter(ActionsConfigurationSorter actionsConfigurationSorter)
    • setMetadataReaderFactory

      @Autowired public void setMetadataReaderFactory(AnnotationScanMetadataReaderFactory metadataReaderFactory)
    • postConstruct

      @PostConstruct protected void postConstruct()
    • create

      public <T extends Action> T create(String actionTypeId)
      Description copied from interface: Actions
      Creates an instance of an action by its type identifier.
      Specified by:
      create in interface Actions
      Type Parameters:
      T - the type of the action, extending Action
      Parameters:
      actionTypeId - the identifier of the action type
      Returns:
      an instance of the specified action type
    • create

      public <T extends Action> T create(String actionTypeId, String id)
      Description copied from interface: Actions
      Creates an instance of a specified action type.
      Specified by:
      create in interface Actions
      Type Parameters:
      T - the type of the action to be created, which must extend the Action class
      Parameters:
      actionTypeId - the unique identifier of the action type to create
      id - the identifier for the specific instance of the action
      Returns:
      an instance of the specified action type
    • createAction

      protected Action createAction(Class<? extends Action> actionClass)
    • createAction

      protected Action createAction(Class<? extends Action> actionClass, String id)
    • resolveActionClass

      protected Class<? extends Action> resolveActionClass(Class<? extends Action> actionClass)
    • onApplicationEvent

      public void onApplicationEvent(@Nonnull org.springframework.context.event.ContextRefreshedEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
    • loadActionClass

      public void loadActionClass(String className)
      Reloads an action class for hot-deploy.
      Parameters:
      className - action class name
    • isCandidateAction

      protected boolean isCandidateAction(org.springframework.core.type.classreading.MetadataReader metadataReader)