Interface ContextualConverter<SOURCE,​TARGET,​CONTEXT>

  • Type Parameters:
    SOURCE - type of source object
    TARGET - type of target object
    CONTEXT - type of context objec
    All Superinterfaces:
    Converter<SOURCE,​TARGET>, org.springframework.core.convert.converter.Converter<SOURCE,​TARGET>
    All Known Implementing Classes:
    AbstractContextualPopulatingConverter

    public interface ContextualConverter<SOURCE,​TARGET,​CONTEXT>
    extends Converter<SOURCE,​TARGET>
    Extends the ordinary Converter interface. Additionally provides convert methods that accept a context for the convert process.
    • Method Detail

      • convertWithContext

        TARGET convertWithContext​(SOURCE source,
                                  CONTEXT context)
        Converts the source object, creating a new instance of the destination type
        Parameters:
        source - the source object
        context - converting context
        Returns:
        the converted object