public class FinalizerService
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
log |
| Modifier and Type | Method and Description |
|---|---|
void |
addFinalizer(java.lang.Object referent,
java.lang.Runnable cleanup)
When referent is freed by the garbage collector, run cleanup.
|
static FinalizerService |
getInstance() |
public static FinalizerService getInstance()
public void addFinalizer(java.lang.Object referent,
java.lang.Runnable cleanup)
Note: cleanup must not contain a reference to the referent object.
Copyright © 2013-2019. All Rights Reserved.