|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.json.util.NewBeanInstanceStrategy
public abstract class NewBeanInstanceStrategy
Base class for creating Bean instances.
Field Summary | |
---|---|
static NewBeanInstanceStrategy |
DEFAULT
Calls Class.newInstance() |
Constructor Summary | |
---|---|
NewBeanInstanceStrategy()
|
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 |
Field Detail |
---|
public static final NewBeanInstanceStrategy DEFAULT
Constructor Detail |
---|
public NewBeanInstanceStrategy()
Method Detail |
---|
public abstract java.lang.Object newInstance(java.lang.Class target, JSONObject source) throws java.lang.InstantiationException, java.lang.IllegalAccessException
target
- the source classtarget
- additional properties that may be needed to create the
instance
java.lang.InstantiationException
java.lang.IllegalAccessException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |