Class JodaBeanSimpleMapReader


  • public class JodaBeanSimpleMapReader
    extends Object
    Provides the ability for a Joda-Bean to read from a JSON-like in memory Map.

    The format is defined by JodaBeanSimpleMapWriter.

    This class contains mutable state and cannot be used from multiple threads. A new instance must be created for each message.

    • Constructor Detail

      • JodaBeanSimpleMapReader

        public JodaBeanSimpleMapReader​(JodaBeanSer settings)
        Creates an instance.
        Parameters:
        settings - the settings, not null
    • Method Detail

      • read

        public <T> T read​(Map<String,​Object> input,
                          Class<T> rootType)
        Reads and parses to a bean.
        Type Parameters:
        T - the root type
        Parameters:
        input - the map input, not null
        rootType - the root type, not null
        Returns:
        the bean, not null