net.sf.json.util
public abstract class NewBeanInstanceStrategy extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static NewBeanInstanceStrategy |
DEFAULT
Calls Class.newInstance()
|
Constructor and Description |
---|
NewBeanInstanceStrategy() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
newInstance(java.lang.Class target,
JSONObject source)
Creates a new instance.
|
public static final NewBeanInstanceStrategy DEFAULT
public abstract java.lang.Object newInstance(java.lang.Class target, JSONObject source) throws java.lang.InstantiationException, java.lang.IllegalAccessException
target
- the source classtarget
- additional properties that may be needed to create the
instancejava.lang.InstantiationException
java.lang.IllegalAccessException
Copyright © 2006-2014 Json-lib. All Rights Reserved.