Class UnsafeAllocator


  • public abstract class UnsafeAllocator
    extends java.lang.Object
    Do sneaky things to allocate objects without invoking their constructors.
    Author:
    Joel Leitch, Jesse Wilson
    • Constructor Detail

      • UnsafeAllocator

        public UnsafeAllocator()
    • Method Detail

      • newInstance

        public abstract <T> T newInstance​(java.lang.Class<T> c)
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception