com.opensymphony.xwork2.factory

## Class DefaultUnknownHandlerFactory

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

- All Implemented Interfaces:
    UnknownHandlerFactory

      public class DefaultUnknownHandlerFactory
      extends Object
      implements UnknownHandlerFactory

  Default implementation

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultUnknownHandlerFactory()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `UnknownHandler` | `buildUnknownHandler(String unknownHandlerName, Map<String,Object> extraContext)` Builds unknown handler of given name
    `void` | `setContainer(Container container)`

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

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

- - ### Constructor Detail

    - #### DefaultUnknownHandlerFactory

          public DefaultUnknownHandlerFactory()

  - ### Method Detail

    - #### setContainer

          public void setContainer(Container container)

    - #### buildUnknownHandler

          public UnknownHandler buildUnknownHandler(String unknownHandlerName,
                                                    Map<String,Object> extraContext)
                                             throws Exception

      Description copied from interface: `UnknownHandlerFactory`
      Builds unknown handler of given name
      Specified by:
        `buildUnknownHandler` in interface `UnknownHandlerFactory`
      Parameters:
        `unknownHandlerName` - name of unknown handler defined in struts.xml
        `extraContext` - extra params
      Returns:
        instance of `UnknownHandler` with injected dependencies
      Throws:
        `Exception` - in case of any errors

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