Package net.sf.json.util
Class NewBeanInstanceStrategy
- java.lang.Object
-
- net.sf.json.util.NewBeanInstanceStrategy
-
public abstract class NewBeanInstanceStrategy extends Object
Base class for creating Bean instances.
- DEFAULT - calls Class.newInstance().
- Author:
- Andres Almiray
-
-
Field Summary
Fields Modifier and Type Field Description static NewBeanInstanceStrategy
DEFAULT
Calls Class.newInstance()
-
Constructor Summary
Constructors Constructor Description NewBeanInstanceStrategy()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Object
newInstance(Class target, JSONObject source)
Creates a new instance.
-
-
-
Field Detail
-
DEFAULT
public static final NewBeanInstanceStrategy DEFAULT
Calls Class.newInstance()
-
-
Method Detail
-
newInstance
public abstract Object newInstance(Class target, JSONObject source) throws InstantiationException, IllegalAccessException, SecurityException, NoSuchMethodException, InvocationTargetException
Creates a new instance.- Parameters:
target
- the source classsource
- additional properties that may be needed to create the instance- Throws:
InstantiationException
IllegalAccessException
SecurityException
NoSuchMethodException
InvocationTargetException
-
-