@Instantiator(value=STANDARD) public class UnsafeFactoryInstantiator<T> extends java.lang.Object implements ObjectInstantiator<T>
sun.misc.Unsafe.allocateInstance(). Unsafe and its methods are implemented by most
modern JVMs.ObjectInstantiator| Constructor and Description |
|---|
UnsafeFactoryInstantiator(java.lang.Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
T |
newInstance()
Returns a new instance of an object.
|
public UnsafeFactoryInstantiator(java.lang.Class<T> type)
public T newInstance()
ObjectInstantiatornewInstance in interface ObjectInstantiator<T>