Package org.jboss.resteasy.spi
Class ResourceCleaner
java.lang.Object
org.jboss.resteasy.spi.ResourceCleaner
A utility used to register resources to be cleaned with a
Cleaner.- Author:
- James R. Perkins
-
Method Summary
Modifier and TypeMethodDescriptionstatic Cleaner.CleanableRegister an object and an action to clean up resources associated with the object once the object instance becomes phantom unreachable.
-
Method Details
-
register
Register an object and an action to clean up resources associated with the object once the object instance becomes phantom unreachable.- Parameters:
instance- the instance to monitoraction- the action to run for the clean up- Returns:
- a cleanable instance
- See Also:
-