public class JsonbCreator extends Object
| Constructor | Description |
|---|---|
JsonbCreator(Executable executable,
CreatorParam[] creatorParams) |
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.
|
CreatorParam |
findByName(String paramName) |
Find creator parameter by name.
|
CreatorParam[] |
getParams() |
Parameters of this creator.
|
public JsonbCreator(Executable executable, CreatorParam[] creatorParams)
executable - Executable.creatorParams - 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 CreatorParam findByName(String paramName)
paramName - parameter name as it appear in json document.public CreatorParam[] getParams()
Copyright © 2017 Oracle Corporation. All rights reserved.