Interface ICoreAction<T>
- Type Parameters:
T
- the result type of the action execution
- All Superinterfaces:
Callable<T>
- All Known Implementing Classes:
InternalCoreAction
,LoginAction
,UserAction
An action that can be executed within an
IContext
. It can be executed and scheduled using various methods of
Core
. Doing so instead of calling it directly has multiple benefits, in particular registered
action listeners
are executed.
Some behaviour of action execution, like using the action stack, is only implemented in
InternalCoreAction
. This interface should therefore not be implemented directly.
Its purpose is to reduce dependencies during testing.
-
Method Summary
Modifier and TypeMethodDescriptioncall()
Invokes the action handler for this action.Returns the name of this action.Returns the context of the action.Returns the event objects of this action.Returns the meta-info of this action, containing additional details about the action.
-
Method Details
-
getContext
IContext getContext()Returns the context of the action.- Returns:
- the context for executing the action
-
call
T call()Invokes the action handler for this action. -
getActionName
String getActionName()Returns the name of this action.- Returns:
- the action name
-
getMetaInfoJsonString
String getMetaInfoJsonString()Returns the meta-info of this action, containing additional details about the action.The contents will differ depending on the type of action.
- Returns:
- the meta-info
-
getEventObjects
List<IMendixObject> getEventObjects()Returns the event objects of this action.- Returns:
- the Mendix objects
-