Class ForkStarter.CloseableCloser
- java.lang.Object
-
- org.apache.maven.plugin.surefire.booterclient.ForkStarter.CloseableCloser
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Runnable
- Enclosing class:
- ForkStarter
private final class ForkStarter.CloseableCloser extends java.lang.Object implements java.lang.Runnable, java.io.Closeable
Closes stuff, with a shutdown hook to make sure things really get closed.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Thread
inputStreamCloserHook
private int
jvmRun
private java.util.Queue<java.io.Closeable>
testProvidingInputStream
-
Constructor Summary
Constructors Constructor Description CloseableCloser(int jvmRun, java.io.Closeable... testProvidingInputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
run()
-