Package org.springframework.boot.builder

Examples of org.springframework.boot.builder.SpringApplicationBuilder.run()


    application.initializers(new ServletContextApplicationContextInitializer(servletContext));
    application.contextClass(AnnotationConfigEmbeddedWebApplicationContext.class);
    application = configure(application);
    // Ensure error pages are registered
    application.sources(ErrorFilter.class);
    return (WebApplicationContext) application.run();
  }

  protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    // entry point (WAR)
    printLogo();
View Full Code Here


        .listeners(bootstrapContext.commandLineListener())
        .child(SingleNodeOptions.class, AdminServerApplication.class)
        .main(AdminServerApplication.class)
        .listeners(bootstrapContext.commandLineListener());
    admin.showBanner(false);
    admin.run(args);

    SpringApplicationBuilder container = admin
        .sibling(SingleNodeOptions.class, ContainerServerApplication.class)
        .logStartupInfo(false)
        .profiles(XdProfiles.CONTAINER_PROFILE, XdProfiles.SINGLENODE_PROFILE)
View Full Code Here

        .child(ContainerConfiguration.class)
        .main(ContainerServerApplication.class)
        .listeners(bootstrapContext.commandLineListener())
        .web(false);
    container.showBanner(false);
    container.run(args);

    adminContext = admin.context();

    containerContext = container.context();
    pluginContext = (ConfigurableApplicationContext) containerContext.getParent();
View Full Code Here

        servletContext));
    application.contextClass(AnnotationConfigEmbeddedWebApplicationContext.class);
    application = configure(application);
    // Ensure error pages are registered
    application.sources(ErrorPageFilter.class);
    return (WebApplicationContext) application.run();
  }

  /**
   * Configure the application. Normally all you would need to do it add sources (e.g.
   * config classes) because other settings have sensible defaults. You might choose
View Full Code Here

  @Test
  public void testParent() {
    SpringApplicationBuilder builder = new SpringApplicationBuilder(Child.class);
    builder.parent(Parent.class);
    this.context = builder.run("--server.port=0");
  }

  @Test
  public void testChild() {
    this.context = new SpringApplicationBuilder(Parent.class).child(Child.class).run(
View Full Code Here

        SpringApplicationBuilder applicationBuilder = new SpringApplicationBuilder().
                sources(FabricSpringApplicationConfiguration.class);
        if (parent != null) {
            applicationBuilder.parent(parent);
        }
        return applicationBuilder.run(args);
    }

    // Main method

    public static void main(String[] args) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.