Class ActionHandler
- java.lang.Object
-
- com.mendix.core.actionmanagement.internal.ActionHandler
-
public class ActionHandler extends java.lang.ObjectProvides access to (internal) action handlers. This is an internal class that is not to be used and may change any time.
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.concurrent.ConcurrentHashMap<java.lang.String,HandlerFactory>handlerFactoriesAll action handlers by Mendix instance ID.
-
Constructor Summary
Constructors Constructor Description ActionHandler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringconvertToActionName(java.lang.String classOrActionName)Returns the name of a custom Java action from its name.static CoreActionHandlercreateCoreHandler(IContext context)Creates a new action handler for the specified context.static LoginActionHandlercreateLoginHandler(IContext context, java.util.Map<java.lang.String,? extends java.lang.Object> params)Creates a new action handler with parameters for the specified context.static voidsetHandlerFactory(HandlerFactory handlerFactory)Initializes the handler factory.
-
-
-
Field Detail
-
handlerFactories
public static final java.util.concurrent.ConcurrentHashMap<java.lang.String,HandlerFactory> handlerFactories
All action handlers by Mendix instance ID.
-
-
Method Detail
-
createCoreHandler
public static CoreActionHandler createCoreHandler(IContext context)
Creates a new action handler for the specified context.- Parameters:
context- the context for executing the action in
-
createLoginHandler
public static LoginActionHandler createLoginHandler(IContext context, java.util.Map<java.lang.String,? extends java.lang.Object> params)
Creates a new action handler with parameters for the specified context.- Parameters:
context- the context for executing the action inparams- the parameters for the action by name
-
convertToActionName
public static java.lang.String convertToActionName(java.lang.String classOrActionName)
Returns the name of a custom Java action from its name.- Parameters:
classOrActionName- the name of the action- Returns:
- the action name
-
setHandlerFactory
public static void setHandlerFactory(HandlerFactory handlerFactory)
Initializes the handler factory.- Parameters:
handlerFactory- the factory to set
-
-