/** 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();
 }
Beispiel #2
0
 @Override
 public void initialize(Bootstrap<GCMDemoConfiguration> bootstrap) {
   super.initialize(bootstrap);
   bootstrap.addBundle(
       new SwaggerBundle<GCMDemoConfiguration>() {
         @Override
         public SwaggerBundleConfiguration getSwaggerBundleConfiguration(
             GCMDemoConfiguration configuration) {
           return configuration.getSwaggerBundleConfiguration();
         }
       });
   bootstrap.addBundle(hibernateBundle);
 }