Package org.apache.struts2.factory
Class StrutsConverterFactory
java.lang.Object
org.apache.struts2.factory.StrutsConverterFactory
- All Implemented Interfaces:
ConverterFactory
Default implementation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildConverter
(Class<? extends TypeConverter> converterClass, Map<String, Object> extraContext) Build converter of given typevoid
setContainer
(Container container)
-
Constructor Details
-
StrutsConverterFactory
public StrutsConverterFactory()
-
-
Method Details
-
setContainer
-
buildConverter
public TypeConverter buildConverter(Class<? extends TypeConverter> converterClass, Map<String, Object> extraContext) throws ExceptionDescription copied from interface:ConverterFactory
Build converter of given type- Specified by:
buildConverter
in interfaceConverterFactory
- Parameters:
converterClass
- to instantiateextraContext
- a Map of extra context which uses the same keys as theActionContext
- Returns:
- instance of converterClass with inject dependencies
- Throws:
Exception
- in case of any errors
-