org.apache.struts2.conversion

## Class StrutsConversionPropertiesProcessor

- java.lang.Object
- - org.apache.struts2.conversion.StrutsConversionPropertiesProcessor

- All Implemented Interfaces:
    ConversionPropertiesProcessor, EarlyInitializable, Initializable, UserConversionPropertiesProvider

      public class StrutsConversionPropertiesProcessor
      extends Object
      implements ConversionPropertiesProcessor, EarlyInitializable, UserConversionPropertiesProvider

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `StrutsConversionPropertiesProcessor()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `init()` Use this method to initialise your bean, the whole dependency graph was already built
    `void` | `initUserConversions()` Process user conversion properties.
    `void` | `loadConversionProperties(String propsName, boolean require)`
    `void` | `process(String propsName)` Process given property to load converters as not required (Properties file doesn't have to exist)
    `void` | `processRequired(String propsName)` Process given property to load converters as required (Properties file must exist)
    `void` | `setTypeConverterCreator(TypeConverterCreator converterCreator)`
    `void` | `setTypeConverterHolder(TypeConverterHolder converterHolder)`

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

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

- - ### Constructor Detail

    - #### StrutsConversionPropertiesProcessor

          public StrutsConversionPropertiesProcessor()

  - ### Method Detail

    - #### setTypeConverterCreator

          public void setTypeConverterCreator(TypeConverterCreator converterCreator)

    - #### setTypeConverterHolder

          public void setTypeConverterHolder(TypeConverterHolder converterHolder)

    - #### init

          public void init()

      Description copied from interface: `Initializable`
      Use this method to initialise your bean, the whole dependency graph was already built
      Specified by:
        `init` in interface `Initializable`

    - #### initUserConversions

          public void initUserConversions()

      Process user conversion properties. Called during late initialization when SpringObjectFactory is available for bean name resolution.

      This allows users to reference Spring bean names in struts-conversion.properties instead of only fully qualified class names.

      Specified by:
        `initUserConversions` in interface `UserConversionPropertiesProvider`
      Since:
        7.2.0
      See Also:
        WW-4291

    - #### process

          public void process(String propsName)

      Description copied from interface: `ConversionPropertiesProcessor`
      Process given property to load converters as not required (Properties file doesn't have to exist)
      Specified by:
        `process` in interface `ConversionPropertiesProcessor`
      Parameters:
        `propsName` - Properties file name

    - #### processRequired

          public void processRequired(String propsName)

      Description copied from interface: `ConversionPropertiesProcessor`
      Process given property to load converters as required (Properties file must exist)
      Specified by:
        `processRequired` in interface `ConversionPropertiesProcessor`
      Parameters:
        `propsName` - Properties file name

    - #### loadConversionProperties

          public void loadConversionProperties(String propsName,
                                               boolean require)

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