Java Code Examples for com.yammer.dropwizard.config.Bootstrap#setName()

The following examples show how to use com.yammer.dropwizard.config.Bootstrap#setName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SocialiteService.java    From socialite with Apache License 2.0 5 votes vote down vote up
@Override
public void initialize(Bootstrap<SocialiteConfiguration> configBootstrap) {
    configBootstrap.setName("status-feed");
    configBootstrap.addCommand( new LoadCommand() );
    configBootstrap.addCommand( new OutputGraphCommand() );
    configBootstrap.addCommand( new BenchmarkCommand() );
    configBootstrap.addCommand( new TimelineRampFollowers() );
    configBootstrap.addCommand( new SendRampFollowers() );
}
 
Example 2
Source File: SimulatorService.java    From tr069-simulator with MIT License 5 votes vote down vote up
@Override
public void initialize(Bootstrap<SimulatorConfiguration> bootstrap) {
	bootstrap.setName("TR069-Simulator");
	bootstrap.addBundle(new ConfiguredAssetsBundle("/assets/", "/dashboard/") );
	bootstrap.addBundle(new ViewBundle());
	bootstrap.addBundle(GuiceBundle.newBuilder()
			.addModule(new SimulatorModule())
			.enableAutoConfig(getClass().getPackage().getName())
			.build()
			);


}
 
Example 3
Source File: MyAppService.java    From dropwizard-spring-di-security-onejar-example with Apache License 2.0 5 votes vote down vote up
@Override
public void initialize(Bootstrap<MyAppConfiguration> bootstrap) {
    bootstrap.setName("my-app-service");
    bootstrap.getObjectMapperFactory().setSerializationInclusion(JsonInclude.Include.NON_NULL);

    //serve some HTML resources
    bootstrap.addBundle(new AssetsBundle("/assets/", "/myapp/"));
}
 
Example 4
Source File: DataService.java    From cognition with Apache License 2.0 4 votes vote down vote up
/**
 * Configures aspects of the application required before the
 * application is run.
 */
@Override
public void initialize(Bootstrap<DataConfiguration> bootstrap) {
  bootstrap.setName("Lens Service");
}
 
Example 5
Source File: SampleApplication.java    From cukes with Apache License 2.0 4 votes vote down vote up
@Override
public void initialize(Bootstrap<SampleConfiguration> bootstrap) {
    overrideLogging();
    bootstrap.setName("cukes-rest-sample-app");
}
 
Example 6
Source File: PizzaService.java    From jersey-hmac-auth with Apache License 2.0 4 votes vote down vote up
@Override
public void initialize(Bootstrap<Configuration> bootstrap) {
    bootstrap.setName("pizza-application");
}
 
Example 7
Source File: HVDFService.java    From hvdf with Apache License 2.0 4 votes vote down vote up
@Override
public void initialize(Bootstrap<HVDFConfiguration> configBootstrap) {
    configBootstrap.setName("hvdf");
    configBootstrap.addCommand( new ServerMonitoringSimulatorLoad() );

}
 
Example 8
Source File: ChanceryService.java    From chancery with Apache License 2.0 4 votes vote down vote up
@Override
public void initialize(Bootstrap<ChanceryConfig> bootstrap) {
    bootstrap.setName("chancery");
}
 
Example 9
Source File: ResourceSetup.java    From osiris with Apache License 2.0 2 votes vote down vote up
public void initialize(Bootstrap<OsirisConfiguration> bootstrap) {
	
	bootstrap.setName("ResourceSetup");		
}