public abstract class NewBeanInstanceStrategy extends Object
| Modifier and Type | Field | Description |
|---|---|---|
static NewBeanInstanceStrategy |
DEFAULT |
Calls Class.newInstance()
|
| Constructor | Description |
|---|---|
NewBeanInstanceStrategy() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract Object |
newInstance(Class target,
JSONObject source) |
Creates a new instance.
|
public static final NewBeanInstanceStrategy DEFAULT
public abstract Object newInstance(Class target, JSONObject source) throws InstantiationException, IllegalAccessException, SecurityException, NoSuchMethodException, InvocationTargetException
target - the source classsource - additional properties that may be needed to create the
instanceInstantiationExceptionIllegalAccessExceptionSecurityExceptionNoSuchMethodExceptionInvocationTargetExceptionCopyright © 2006–2019 Json-lib. All rights reserved.