org.objenesis.instantiator.basic
Class AccessibleInstantiator
java.lang.Object
org.objenesis.instantiator.basic.ConstructorInstantiator
org.objenesis.instantiator.basic.AccessibleInstantiator
- All Implemented Interfaces:
- ObjectInstantiator
public class AccessibleInstantiator
- extends ConstructorInstantiator
Instantiates a class by grabbing the no-args constructor, making it accessible and then calling
Constructor.newInstance(). Although this still requires no-arg constructors, it can call
non-public constructors (if the security manager allows it).
- See Also:
ObjectInstantiator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccessibleInstantiator
public AccessibleInstantiator(Class type)
Copyright © 2011. All Rights Reserved.