org.springframework.boot
Interface CommandLineRunner


public interface CommandLineRunner

Interface used to indicate that a bean should run when it is contained within a SpringApplication. Multiple CommandLineRunner beans can be defined within the same application context and can be ordered using the Ordered interface or @Order annotation.

Author:
Dave Syer

Method Summary
 void run(String... args)
          Callback used to run the bean.
 

Method Detail

run

void run(String... args)
         throws Exception
Callback used to run the bean.

Parameters:
args - incoming main method arguments
Throws:
Exception - on error


Copyright © 2013. All Rights Reserved.