org.objenesis.instantiator.basic
Class NewInstanceInstantiator
java.lang.Object
org.objenesis.instantiator.basic.NewInstanceInstantiator
- All Implemented Interfaces:
- ObjectInstantiator
public class NewInstanceInstantiator
- extends Object
- implements ObjectInstantiator
The simplest instantiator - simply calls Class.newInstance(). This can deal with default public
constructors, but that's about it.
- See Also:
ObjectInstantiator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NewInstanceInstantiator
public NewInstanceInstantiator(Class type)
newInstance
public Object newInstance()
- Description copied from interface:
ObjectInstantiator
- Returns a new instance of an object. The returned object's class is defined by the
implementation.
- Specified by:
newInstance
in interface ObjectInstantiator
- Returns:
- A new instance of an object.
Copyright © 2011. All Rights Reserved.