Class | Description |
---|---|
AccessibleInstantiator<T> |
Instantiates a class by grabbing the no-args constructor, making it accessible and then calling
Constructor.newInstance().
|
ConstructorInstantiator<T> |
Instantiates a class by grabbing the no args constructor and calling Constructor.newInstance().
|
DelegatingToExoticInstantiator<T> |
Helper class extended by instantiators for which the implementation was moved to the exotic project.
|
FailingInstantiator<T> |
The instantiator that always throws an exception.
|
NewInstanceInstantiator<T> |
The simplest instantiator - simply calls Class.newInstance().
|
NullInstantiator<T> |
The instantiator that always return a null instance
|
ObjectInputStreamInstantiator<T> |
Instantiates a class by using a dummy input stream that always feeds data for an empty object of
the same kind.
|
ObjectStreamClassInstantiator<T> |
Instantiates a class by using reflection to make a call to private method
ObjectStreamClass.newInstance, present in many JVM implementations.
|
ProxyingInstantiator<T> |
Shell keeping compatibility but delegating to objenesis-exotic which contains the real implementation.
|
Copyright © 2006–2024 Joe Walnes, Henri Tremblay, Leonardo Mesquita. All rights reserved.