Examples of SpringApplication


Examples of org.springframework.boot.SpringApplication

    return KmfMediaApi.createMediaPipelineFactoryFromSystemProps();
  }

  public static void main(String[] args) throws Exception {

    SpringApplication application = new SpringApplication(PhoneApp.class);
    application.run(args);
  }
View Full Code Here

Examples of org.springframework.boot.SpringApplication

    return KmfMediaApi.createMediaPipelineFactoryFromSystemProps();
  }

  public static void main(String[] args) throws Exception {

    SpringApplication application = new SpringApplication(GroupCall.class);
    application.run(args);
  }
View Full Code Here

Examples of org.springframework.boot.SpringApplication

  public static ConfigurableApplicationContext start() {

    Properties properties = new Properties();
    properties.put("server.port", getPort());

    SpringApplication application = new SpringApplication(
        BootApplication.class);

    application.setDefaultProperties(properties);

    return application.run();
  }
View Full Code Here

Examples of org.springframework.boot.SpringApplication

  public WebRtcHandler multipleJsonRpcHandler() {
    return new WebRtcHandler();
  }

  public static void main(String[] args) throws Exception {
    SpringApplication application = new SpringApplication(WebRtcApp.class);
    application.run(args);
  }
View Full Code Here

Examples of org.springframework.boot.SpringApplication

  }

  public static void main(String[] args) {
    // entry point (JAR)
    printLogo();
    SpringApplication app = new SpringApplication(Para.class);
    app.setWebEnvironment(true);
    app.setShowBanner(false);
    initialize();
    app.run(args);
  }
View Full Code Here

Examples of org.springframework.boot.SpringApplication

  }

  public static void main(String[] args) {
    // entry point (JAR)
    printLogo();
    SpringApplication app = new SpringApplication(Para.class);
    app.setWebEnvironment(true);
    app.setShowBanner(false);
    initialize();
    app.run(args);
  }
View Full Code Here

Examples of org.springframework.boot.SpringApplication

*/
public class LiquibaseServiceLocatorApplicationListenerTests {

  @Test
  public void replacesServiceLocator() throws Exception {
    SpringApplication application = new SpringApplication(Conf.class);
    application.setWebEnvironment(false);
    application.run();
    ServiceLocator instance = ServiceLocator.getInstance();
    Field field = ReflectionUtils.findField(ServiceLocator.class, "classResolver");
    field.setAccessible(true);
    Object resolver = field.get(instance);
    assertThat(resolver, instanceOf(SpringPackageScanClassResolver.class));
View Full Code Here

Examples of org.springframework.boot.SpringApplication

   * @param sources The sources
   * @return The {@link org.springframework.boot.SpringApplication} instance
   * @since 1.1.0
   */
  protected SpringApplication createSpringApplication(Object... sources) {
    return new SpringApplication(sources);
  }
View Full Code Here

Examples of org.springframework.boot.SpringApplication

  @Test
  public void orderedInitialize() throws Exception {
    EnvironmentTestUtils.addEnvironment(this.context, "context.listener.classes:"
        + MockInitB.class.getName() + "," + MockInitA.class.getName());
    this.listener.onApplicationEvent(new ApplicationEnvironmentPreparedEvent(
        new SpringApplication(), new String[0], this.context.getEnvironment()));
    this.context.getBeanFactory().registerSingleton("testListener", this.listener);
    this.context.refresh();
    assertThat(this.context.getBeanFactory().getSingleton("a"), equalTo((Object) "a"));
    assertThat(this.context.getBeanFactory().getSingleton("b"), equalTo((Object) "b"));
  }
View Full Code Here

Examples of org.springframework.boot.SpringApplication

  }

  @Test
  public void noInitializers() throws Exception {
    this.listener.onApplicationEvent(new ApplicationEnvironmentPreparedEvent(
        new SpringApplication(), new String[0], this.context.getEnvironment()));
  }
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.