Package net.sf.json.util
Class NewBeanInstanceStrategy.DefaultNewBeanInstanceStrategy
- java.lang.Object
-
- net.sf.json.util.NewBeanInstanceStrategy
-
- net.sf.json.util.NewBeanInstanceStrategy.DefaultNewBeanInstanceStrategy
-
- Enclosing class:
- NewBeanInstanceStrategy
private static final class NewBeanInstanceStrategy.DefaultNewBeanInstanceStrategy extends NewBeanInstanceStrategy
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.Object[]EMPTY_ARGSprivate static java.lang.Class[]EMPTY_PARAM_TYPES-
Fields inherited from class net.sf.json.util.NewBeanInstanceStrategy
DEFAULT
-
-
Constructor Summary
Constructors Modifier Constructor Description privateDefaultNewBeanInstanceStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectnewInstance(java.lang.Class target, JSONObject source)Creates a new instance.
-
-
-
Method Detail
-
newInstance
public java.lang.Object newInstance(java.lang.Class target, JSONObject source) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetExceptionDescription copied from class:NewBeanInstanceStrategyCreates a new instance.- Specified by:
newInstancein classNewBeanInstanceStrategy- Parameters:
target- the source classsource- additional properties that may be needed to create the instance- Throws:
java.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.SecurityExceptionjava.lang.NoSuchMethodExceptionjava.lang.reflect.InvocationTargetException
-
-