@Instantiator(value=STANDARD) public class UnsafeFactoryInstantiator<T> extends Object implements ObjectInstantiator<T>
sun.misc.Unsafe.allocateInstance()
. Unsafe and its methods are implemented by most
modern JVMs.ObjectInstantiator
Constructor and Description |
---|
UnsafeFactoryInstantiator(Class<T> type) |
public T newInstance()
ObjectInstantiator
newInstance
in interface ObjectInstantiator<T>
Copyright © 2006–2024 Joe Walnes, Henri Tremblay, Leonardo Mesquita. All rights reserved.