/** * Instructs Bootique to load any modules available on classpath that expose {@link io.bootique.BQModuleProvider} * provider. Auto-loaded modules will be used in default configuration. Factories within modules will of course be * configured dynamically from YAML. * * @return this instance of test runtime builder. */ public T autoLoadModules() { bootique.autoLoadModules(); return (T) this; }
/** * A generic main method that auto-loads available modules and runs Bootique stack. Useful for apps that don't * care to customize their "main()". * * @param args app arguments passed by the shell. * @since 0.17 */ public static void main(String[] args) { Bootique.app(args).autoLoadModules().exec().exit(); }
/** * A generic main method that auto-loads available modules and runs Bootique stack. Useful for apps that don't * care to customize their "main()". * * @param args app arguments passed by the shell. * @since 0.17 */ public static void main(String[] args) { Bootique.app(args).autoLoadModules().exec().exit(); }
/** Create the compiler runtime. * * @param args the command line arguments. * @return the runtime. */ @SuppressWarnings("static-method") protected BQRuntime createRuntime(String... args) { SARLStandaloneSetup.doPreSetup(); final BQRuntime runtime = Bootique.app(args).autoLoadModules().createRuntime(); SARLStandaloneSetup.doPostSetup(runtime.getInstance(Injector.class)); return runtime; }