Search in sources :

Example 1 with ProfileResolveListener

use of com.navercorp.pinpoint.common.server.env.ProfileResolveListener in project pinpoint by naver.

the class BasicStarter method start.

public void start(String[] args) {
    SpringApplicationBuilder builder = new SpringApplicationBuilder();
    builder.sources(sources);
    builder.web(WebApplicationType.SERVLET);
    builder.bannerMode(Banner.Mode.OFF);
    builder.listeners(new ProfileResolveListener());
    builder.listeners(new EnvironmentLoggingListener());
    builder.listeners(new ExternalEnvironmentListener(externalPropertySourceName, externalConfigurationKey));
    builder.listeners(new PinpointSpringBanner());
    SpringApplication springApplication = builder.build();
    springApplication.run(args);
}
Also used : ExternalEnvironmentListener(com.navercorp.pinpoint.common.server.env.ExternalEnvironmentListener) SpringApplication(org.springframework.boot.SpringApplication) SpringApplicationBuilder(org.springframework.boot.builder.SpringApplicationBuilder) EnvironmentLoggingListener(com.navercorp.pinpoint.common.server.env.EnvironmentLoggingListener) ProfileResolveListener(com.navercorp.pinpoint.common.server.env.ProfileResolveListener) PinpointSpringBanner(com.navercorp.pinpoint.common.server.banner.PinpointSpringBanner)

Aggregations

PinpointSpringBanner (com.navercorp.pinpoint.common.server.banner.PinpointSpringBanner)1 EnvironmentLoggingListener (com.navercorp.pinpoint.common.server.env.EnvironmentLoggingListener)1 ExternalEnvironmentListener (com.navercorp.pinpoint.common.server.env.ExternalEnvironmentListener)1 ProfileResolveListener (com.navercorp.pinpoint.common.server.env.ProfileResolveListener)1 SpringApplication (org.springframework.boot.SpringApplication)1 SpringApplicationBuilder (org.springframework.boot.builder.SpringApplicationBuilder)1