Class JsonbCreator
java.lang.Object
org.eclipse.yasson.internal.model.JsonbCreator
Object holding reference to Constructor / Method for custom object creation.
-
Constructor Summary
ConstructorsConstructorDescriptionJsonbCreator(Executable executable, CreatorModel[] creatorModels) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescription<T> TCreate instance by either constructor or factory method, with provided parameter values and a Class to call on.booleanTrue if param name is one of creator params.findByName(String paramName) Find creator parameter by name.Parameters of this creator.
-
Constructor Details
-
JsonbCreator
Creates a new instance.- Parameters:
executable- Executable.creatorModels- Parameters.
-
-
Method Details
-
call
Create instance by either constructor or factory method, with provided parameter values and a Class to call on.- Type Parameters:
T- Type of class / instance- Parameters:
params- parameters to be passed into constructor / factory methodon- class to call onto- Returns:
- instance
-
contains
True if param name is one of creator params.- Parameters:
paramName- Param name to check.- Returns:
- True if found.
-
findByName
Find creator parameter by name.- Parameters:
paramName- parameter name as it appear in json document.- Returns:
- Creator parameter.
-
getParams
Parameters of this creator.- Returns:
- Parameters.
-