public static class ImgPlusCtxCleaningProvider.ImgPlusCtxCleaner extends PhantomReference<net.imagej.ImgPlus> implements CleaningRef
PhantomReference implementation used to dispose a Context
when all ImgPlus references have been garbage collected. Create
this reference as new ImgPlus instances are generated with an anonymous
Context. This will ensure that when the ImgPlus instances go out of scope,
the Context is shut down properly.| Constructor and Description |
|---|
ImgPlusCtxCleaner(Object imgPlus,
ReferenceQueue queue,
Object... params) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Hook for cleaning up resources when this reference is removed from a
ReferenceQueue. |
getclear, clone, enqueue, isEnqueuedpublic ImgPlusCtxCleaner(Object imgPlus, ReferenceQueue queue, Object... params)
public void cleanup()
CleaningRefReferenceQueue.cleanup in interface CleaningRefCopyright © 2011–2026 SCIFIO. All rights reserved.