public class JsonbCreator extends Object
| Constructor | Description |
|---|---|
JsonbCreator(Executable executable,
CreatorModel[] creatorModels) |
Creates a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
<T> T |
call(Object[] params,
Class<T> on) |
Create instance by either constructor or factory method, with provided parameter values and a Class to call on.
|
boolean |
contains(String paramName) |
True if param name is one of creator params.
|
CreatorModel |
findByName(String paramName) |
Find creator parameter by name.
|
CreatorModel[] |
getParams() |
Parameters of this creator.
|
public JsonbCreator(Executable executable, CreatorModel[] creatorModels)
executable - Executable.creatorModels - Parameters.public <T> T call(Object[] params, Class<T> on)
T - Type of class / instanceparams - parameters to be passed into constructor / factory methodon - class to call ontopublic boolean contains(String paramName)
paramName - Param name to check.public CreatorModel findByName(String paramName)
paramName - parameter name as it appear in json document.public CreatorModel[] getParams()
Copyright © 2018 Oracle Corporation. All rights reserved.