com.opensymphony.xwork2.factory

## Class DefaultActionFactory

- java.lang.Object
- - com.opensymphony.xwork2.factory.DefaultActionFactory

- All Implemented Interfaces:
    ActionFactory

      public class DefaultActionFactory
      extends Object
      implements ActionFactory

  Default implementation

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultActionFactory()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and 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 Detail

    - #### DefaultActionFactory

          public DefaultActionFactory()

  - ### Method Detail

    - #### 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

Copyright © 2000–2022 Apache Software Foundation. All rights reserved.