public abstract class CommandLineRunnerSupport
extends java.lang.Object
implements org.springframework.core.Ordered
CommandLineRunner implementations.| Constructor and Description | 
|---|
| CommandLineRunnerSupport() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | countDownLatch()Count down current latch by one. | 
| void | exit(int status)Exit method wrapping handling through  SystemExiter. | 
| void | exit(java.lang.String status)Exit method wrapping handling through  SystemExiter. | 
| ExitCodeMapper | getExitCodeMapper()Gets the exit code mapper. | 
| int | getOrder() | 
| boolean | isWaitLatch()Checks if is wait latch. | 
| void | setExitCodeMapper(ExitCodeMapper exitCodeMapper)Sets the exit code mapper. | 
| void | setOrder(int order)Sets the order used for Ordered. | 
| void | setWaitLatch(boolean waitLatch)Sets the wait latch. | 
| protected void | waitLatch()Simply delegates to  CountDownLatch.await(). | 
| protected void | waitLatch(long timeout,
         java.util.concurrent.TimeUnit unit)Simply delegates to  CountDownLatch.await(long, TimeUnit). | 
public int getOrder()
getOrder in interface org.springframework.core.Orderedpublic void setOrder(int order)
Ordered. The order used in this
 class is Ordered.HIGHEST_PRECEDENCE.order - the new orderpublic void exit(int status)
SystemExiter.status - the exit codepublic void exit(java.lang.String status)
SystemExiter. As exist status
 for this method is given as String, status value is translated
 via ExitCodeMapper.status - the exit codepublic void setWaitLatch(boolean waitLatch)
waitLatch - the new wait latchpublic boolean isWaitLatch()
public void setExitCodeMapper(ExitCodeMapper exitCodeMapper)
exitCodeMapper - the new exit code mapperpublic ExitCodeMapper getExitCodeMapper()
protected void countDownLatch()
protected void waitLatch()
CountDownLatch.await().protected void waitLatch(long timeout,
             java.util.concurrent.TimeUnit unit)
CountDownLatch.await(long, TimeUnit).timeout - the timeoutunit - the unit