Package org.apache.struts2.factory

# Class DefaultActionFactory

java.lang.Object
org.apache.struts2.factory.DefaultActionFactory

All Implemented Interfaces:
  `ActionFactory`

public class DefaultActionFactory extends Object implements ActionFactory
Default implementation

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DefaultActionFactory()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Object`
  `buildAction(String actionName, String namespace, ActionConfig config, Map<String,Object> extraContext)`
  Builds action instance
  `void`
  `setObjectFactory(ObjectFactory objectFactory)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DefaultActionFactory

    public DefaultActionFactory()

- ## Method Details

  - ### setObjectFactory

    public void setObjectFactory(ObjectFactory objectFactory)

  - ### buildAction

    public Object buildAction(String actionName, String namespace, ActionConfig config, Map<String,Object> extraContext) throws Exception
    Description copied from interface: `ActionFactory`
    Builds action instance
    Specified by:
      `buildAction` in interface `ActionFactory`
    Parameters:
      `actionName` - name of the action
      `namespace` - namespace for the action
      `config` - action config
      `extraContext` - extra context map
    Returns:
      action object
    Throws:
      `Exception` - in case of any errors