public abstract class AbstractActionExecutor extends Object implements ActionExecutor
ActionExecutor
. Creates the Action
from the implementation class
using a ComponentProvider
and binds the ActionDefinition to the Action. Subclasses need only implement ActionExecutor.getActionDefinition(String)
.Action
,
ActionDefinition
,
ActionExecutor
ActionExecutor.Noop
Constructor and Description |
---|
AbstractActionExecutor(info.magnolia.objectfactory.ComponentProvider componentProvider) |
Modifier and Type | Method and Description |
---|---|
protected Action |
createAction(String actionName,
Object... args)
Creates an action using the implementation configured for the given action definition.
|
void |
execute(String actionName,
Object... args)
Creates a new instance of the action for the supplied name and executes it.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getActionDefinition
@Inject public AbstractActionExecutor(info.magnolia.objectfactory.ComponentProvider componentProvider)
public final void execute(String actionName, Object... args) throws ActionExecutionException
ActionExecutor
execute
in interface ActionExecutor
ActionExecutionException
- if the action encounters a problem during execution or if no action definition matches the nameprotected Action createAction(String actionName, Object... args) throws ActionExecutionException
ActionExecutionException
Copyright © 2020 Magnolia International Ltd.. All rights reserved.