Interface Cleaner
public interface Cleaner
Wrapper for
Cleaner
providing registration support.- Since:
- 3.2.0
- Author:
- Phillip Webb
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionRegisters an object and the clean action to run when the object becomes phantom reachable.
-
Field Details
-
instance
Provides access to the default clean instance which delegates toCleaner
.
-
-
Method Details
-
register
Registers an object and the clean action to run when the object becomes phantom reachable.- Parameters:
obj
- the object to monitoraction
- the cleanup action to run- Returns:
- a
Cleaner.Cleanable
instance - See Also:
-