Package org.apache.struts2.factory
Class DefaultUnknownHandlerFactory
java.lang.Object
org.apache.struts2.factory.DefaultUnknownHandlerFactory
- All Implemented Interfaces:
UnknownHandlerFactory
Default implementation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildUnknownHandler
(String unknownHandlerName, Map<String, Object> extraContext) Builds unknown handler of given namevoid
setContainer
(Container container)
-
Constructor Details
-
DefaultUnknownHandlerFactory
public DefaultUnknownHandlerFactory()
-
-
Method Details
-
setContainer
-
buildUnknownHandler
public UnknownHandler buildUnknownHandler(String unknownHandlerName, Map<String, Object> extraContext) throws ExceptionDescription copied from interface:UnknownHandlerFactory
Builds unknown handler of given name- Specified by:
buildUnknownHandler
in interfaceUnknownHandlerFactory
- Parameters:
unknownHandlerName
- name of unknown handler defined in struts.xmlextraContext
- extra params- Returns:
- instance of
UnknownHandler
with injected dependencies - Throws:
Exception
- in case of any errors
-