Package net.sf.json.util
Class NewBeanInstanceStrategy
java.lang.Object
net.sf.json.util.NewBeanInstanceStrategy
- Direct Known Subclasses:
NewBeanInstanceStrategy.DefaultNewBeanInstanceStrategy
Base class for creating Bean instances.
- DEFAULT - calls Class.newInstance().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Object
newInstance
(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:
InstantiationException
IllegalAccessException
SecurityException
NoSuchMethodException
InvocationTargetException
-