Package org.apache.struts2.factory
Interface ConverterFactory
- All Known Implementing Classes:
StrutsConverterFactory
public interface ConverterFactory
Dedicated interface used by
ObjectFactory
to build TypeConverter
-
Method Summary
Modifier and TypeMethodDescriptionbuildConverter
(Class<? extends TypeConverter> converterClass, Map<String, Object> extraContext) Build converter of given type
-
Method Details
-
buildConverter
TypeConverter buildConverter(Class<? extends TypeConverter> converterClass, Map<String, Object> extraContext) throws ExceptionBuild converter of given type- 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
-