ObjectInstantiator<T>@Instantiator(STANDARD) public class MagicInstantiator<T> extends Object implements ObjectInstantiator<T>
MagicAccessorImpl which prevents
its children to be verified by the class loader| Constructor | Description |
|---|---|
MagicInstantiator(Class<T> type) |
| Modifier and Type | Method | Description |
|---|---|---|
ObjectInstantiator<T> |
getInstantiator() |
Get the underlying instantiator.
|
T |
newInstance() |
Returns a new instance of an object.
|
public ObjectInstantiator<T> getInstantiator()
MagicInstantiator is a wrapper around another object
which implements ObjectInstantiator interface.
This method exposes that instantiator.public T newInstance()
ObjectInstantiatornewInstance in interface ObjectInstantiator<T>Copyright © 2006–2018 Joe Walnes, Henri Tremblay, Leonardo Mesquita. All rights reserved.