[bs-19] Medley of changes supporting integration apps

* Use file adapters in sample instead of internal flow
* Add Exception to signature of CommandLineRunner for
implementation convenience
* Updates for Security snapshots
This commit is contained in:
Dave Syer
2013-04-29 08:35:01 +01:00
parent 10c333ea10
commit 628a8c79aa
21 changed files with 206 additions and 121 deletions

View File

@@ -33,6 +33,6 @@ public interface CommandLineRunner {
* Callback used to run the bean.
* @param args incoming main method arguments
*/
void run(String... args);
void run(String... args) throws Exception;
}

View File

@@ -423,7 +423,11 @@ public class SpringApplication {
.getBeansOfType(CommandLineRunner.class).values());
AnnotationAwareOrderComparator.sort(runners);
for (CommandLineRunner runner : runners) {
runner.run(args);
try {
runner.run(args);
} catch (Exception e) {
throw new IllegalStateException("Failed to execute CommandLineRunner", e);
}
}
}