Class Pointer.CustomDeallocator

All Implemented Interfaces:
Pointer.Deallocator, Pointer.ReferenceCounter
Enclosing class:
Pointer

protected static class Pointer.CustomDeallocator extends Pointer.DeallocatorReference
A Pointer.Deallocator that calls, during garbage collection, a method with signature static void deallocate() from the Pointer object passed to the constructor and that accepts it as argument. Uses reflection to locate and call the method.
See Also: