java.lang.Object
org.eclipse.yasson.internal.InstanceCreator
Creates instances for known types, caches constructors of unknown.
(Constructors of parsed types are stored in
ClassModel
).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
createInstance
(Class<T> tClass) Create an instance of the given class with its default constructor.
-
Field Details
-
CREATORS
-
-
Constructor Details
-
InstanceCreator
private InstanceCreator()
-
-
Method Details
-
createInstance
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
-