コード例 #1
0
 @Override
 public void run(String... arguments) throws Exception {
   if (arguments.length == 0) {
     super.run("server", "hook-consumer.yml");
   } else {
     super.run(arguments);
   }
 }
コード例 #2
0
 /** Runs lifecycle start and starts server. */
 public void start() throws Exception {
   application.initialize(bootstrap);
   bootstrap.run(builtConfig, environment);
   application.run(builtConfig, environment);
   toggleManagedObjects(true);
   jettyServer.start();
 }