Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.heckmansoft.surjey.controller.action
Class ActionFactory

    java.lang.Object
      com.heckmansoft.surjey.controller.action.ActionFactory

public class ActionFactory
extends java.lang.Object

Constructs action instances using action.properties file. Based upon the "Factory" design pattern.

Method Summary
`Action` | `newAction(java.lang.String actionName)` Constructs the appropriate action object, given an action name.
`static ActionFactory` | `newInstance(javax.servlet.ServletConfig config)` Create an action factory for the given config.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### newInstance

    public static ActionFactory newInstance(javax.servlet.ServletConfig config)
                                     throws javax.servlet.ServletException

  Create an action factory for the given config.

  Parameters:
    `config` - used to find action.properties file.
  Throws:
    `javax.servlet.ServletException`

### newAction

    public Action newAction(java.lang.String actionName)
                     throws javax.servlet.ServletException

  Constructs the appropriate action object, given an action name.

  Parameters:
    `actionName` - Name of action to instantiate.
  Returns:
    an instance of a subclass of SurjeyAction.
  Throws:
    `javax.servlet.ServletException`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD