Package br.ufsc.labsec.utils.cleaner
Class CleanRoutine
java.lang.Object
br.ufsc.labsec.utils.cleaner.CleanRoutine
- All Implemented Interfaces:
Runnable
public class CleanRoutine extends Object implements Runnable
A classe CleanRoutine serve para que adicionemos uma rotina de limpeza para variáveis do tipo AutoCloseable
que não tenham sido finalizadas corretamente pelo Garbage Collector
-
Constructor Summary
Constructors Constructor Description CleanRoutine(AutoCloseable... toClose)
-
Method Summary
Modifier and Type Method Description static AutoCloseable[]
closeablesFromObject(Object object)
void
run()