Class MagicInstantiator<T>
java.lang.Object
org.objenesis.instantiator.exotic.MagicInstantiator<T>
- All Implemented Interfaces:
org.objenesis.instantiator.ObjectInstantiator<T>
@Instantiator(STANDARD)
public class MagicInstantiator<T>
extends Object
implements org.objenesis.instantiator.ObjectInstantiator<T>
This instantiator will correctly bypass the constructors by instantiating the class using the default
constructor from Object. It will be allowed to do so by extending
MagicAccessorImpl which prevents
its children to be verified by the class loader- Author:
- Henri Tremblay
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.objenesis.instantiator.ObjectInstantiator<T> Get the underlying instantiator.
-
Constructor Details
-
MagicInstantiator
-
-
Method Details
-
getInstantiator
Get the underlying instantiator.MagicInstantiatoris a wrapper around another object which implementsObjectInstantiatorinterface. This method exposes that instantiator.- Returns:
- the underlying instantiator
-
newInstance
-