public abstract class NewBeanInstanceStrategy extends Object
Modifier and Type | Field and Description |
---|---|
static NewBeanInstanceStrategy |
DEFAULT
Calls Class.newInstance()
|
Constructor and Description |
---|
NewBeanInstanceStrategy() |
Modifier and Type | Method and 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
instanceInstantiationException
IllegalAccessException
SecurityException
NoSuchMethodException
InvocationTargetException