net.sf.json.util
Class NewBeanInstanceStrategy
java.lang.Object
net.sf.json.util.NewBeanInstanceStrategy
public abstract class NewBeanInstanceStrategy
- extends java.lang.Object
Base class for creating Bean instances.
- DEFAULT - calls Class.newInstance().
- Author:
- Andres Almiray
Method Summary |
abstract java.lang.Object |
newInstance(java.lang.Class target,
JSONObject source)
Creates a new instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT
public static final NewBeanInstanceStrategy DEFAULT
- Calls Class.newInstance()
NewBeanInstanceStrategy
public NewBeanInstanceStrategy()
newInstance
public abstract 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.InvocationTargetException
- Creates a new instance.
- Parameters:
target
- the source classsource
- additional properties that may be needed to create the
instance
- Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
Copyright © 2006-2010 Json-lib. All Rights Reserved.