Package io.jmix.flowui.impl
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 Summary
FieldsModifier and TypeFieldDescriptionprotected ActionsConfigurationSorterprotected org.springframework.context.ApplicationContextprotected ClassManagerprotected List<ActionsConfiguration>protected AnnotationScanMetadataReaderFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Action>
TCreates an instance of an action by its type identifier.<T extends Action>
TCreates an instance of a specified action type.protected ActioncreateAction(Class<? extends Action> actionClass) protected ActioncreateAction(Class<? extends Action> actionClass, String id) protected booleanisCandidateAction(org.springframework.core.type.classreading.MetadataReader metadataReader) voidloadActionClass(String className) Reloads an action class for hot-deploy.voidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) protected voidresolveActionClass(Class<? extends Action> actionClass) voidsetActionsConfigurationSorter(ActionsConfigurationSorter actionsConfigurationSorter) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetClassManager(ClassManager classManager) voidsetConfigurations(List<ActionsConfiguration> configurations) voidsetMetadataReaderFactory(AnnotationScanMetadataReaderFactory metadataReaderFactory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Field Details
-
configurations
-
classManager
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
actionsConfigurationSorter
-
metadataReaderFactory
-
classes
-
-
Constructor Details
-
ActionsImpl
public ActionsImpl()
-
-
Method Details
-
setConfigurations
-
setClassManager
-
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
Description copied from interface:ActionsCreates an instance of an action by its type identifier. -
create
Description copied from interface:ActionsCreates an instance of a specified action type.- Specified by:
createin interfaceActions- 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 createid- the identifier for the specific instance of the action- Returns:
- an instance of the specified action type
-
createAction
-
createAction
-
resolveActionClass
-
onApplicationEvent
public void onApplicationEvent(@Nonnull org.springframework.context.event.ContextRefreshedEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
loadActionClass
Reloads an action class for hot-deploy.- Parameters:
className- action class name
-
isCandidateAction
protected boolean isCandidateAction(org.springframework.core.type.classreading.MetadataReader metadataReader)
-