Package org.eclipse.yasson.internal
Class InstanceCreator
- java.lang.Object
-
- org.eclipse.yasson.internal.InstanceCreator
-
public class InstanceCreator extends Object
Creates instances for known types, caches constructors of unknown. (Constructors of parsed types are stored inClassModel
).
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
createInstance(Class<T> tClass)
Create an instance of the given class with its default constructor.
-
-
-
Method Detail
-
createInstance
public static <T> T createInstance(Class<T> tClass)
Create an instance of the given class with its default constructor.- Type Parameters:
T
- Type of the class/instance- Parameters:
tClass
- class to create instance- Returns:
- crated instance
-
-