Class ResourceCleaner
java.lang.Object
org.jboss.resteasy.spi.ResourceCleaner
-
Method Summary
Modifier and TypeMethodDescriptionstatic Cleaner.Cleanable
Register 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:
-