Package com.cedarsoftware.util.io
Interface JsonReader.ClassFactory
-
- All Superinterfaces:
JsonReader.Factory
- All Known Implementing Classes:
JsonReader.CollectionFactory
,JsonReader.MapFactory
- Enclosing class:
- JsonReader
public static interface JsonReader.ClassFactory extends JsonReader.Factory
Subclass this interface and create a class that will return a new instance of the passed in Class (c). Your subclass will be called when json-io encounters an the new to instantiate an instance of (c). Make json-io aware that it needs to call your class by calling the public JsonReader.assignInstantiator() API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
newInstance(Class c)
-