Package net.sf.json.util
Class NewBeanInstanceStrategy
java.lang.Object
net.sf.json.util.NewBeanInstanceStrategy
Base class for creating Bean instances.
- DEFAULT - calls Class.newInstance().
- Author:
- Andres Almiray aalmiray@users.sourceforge.net
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ObjectnewInstance(Class target, JSONObject source) Creates a new instance.
-
Field Details
-
DEFAULT
Calls Class.newInstance()
-
-
Constructor Details
-
NewBeanInstanceStrategy
public NewBeanInstanceStrategy()
-
-
Method Details
-
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:
InstantiationExceptionIllegalAccessExceptionSecurityExceptionNoSuchMethodExceptionInvocationTargetException
-