Class MapFactory

java.lang.Object
com.cedarsoftware.util.io.factory.MapFactory
All Implemented Interfaces:
JsonReader.ClassFactory

@Deprecated public class MapFactory extends Object implements JsonReader.ClassFactory
Deprecated.
Use to create new instances of Map interfaces (needed for empty Maps). Used internally to handle Map, SortedMap when they are within parameterized types.
  • Constructor Details

    • MapFactory

      public MapFactory()
      Deprecated.
  • Method Details

    • newInstance

      public Object newInstance(Class<?> c, JsonObject jObj, ReaderContext context)
      Deprecated.
      Description copied from interface: JsonReader.ClassFactory
      Implement this method to return a new instance of the passed in Class. Use the passed in JsonObject to supply values to the construction of the object.
      Specified by:
      newInstance in interface JsonReader.ClassFactory
      Parameters:
      c - Map interface that was requested for instantiation.
      jObj - JsonObject
      context - ReaderContext
      Returns:
      a concrete Map type.