com.yammer.dropwizard.config.Configuration Java Examples

The following examples show how to use com.yammer.dropwizard.config.Configuration. 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: ExampleService.java    From rack-servlet with Apache License 2.0 5 votes vote down vote up
@Override public void run(Configuration config, Environment environment) {
  // Suppress the "THIS SERVICE HAS NO HEALTHCHECKS" warning.
  // A real service would have proper health checks.
  environment.addHealthCheck(new FakeHealthCheck());

  // Suppress the "ResourceConfig instance does not contain any root resource classes" error.
  // A real service would probably provide a Jersey resource or two.
  environment.addResource(EmptyResource.class);

  // Here's the interesting part:
  // Mount the Rack application defined in the config.ru file on the classpath at /rack.
  environment.addServlet(createRackServlet(), "/rack/*");
}
 
Example #2
Source File: AsyncPostDelivery.java    From socialite with Apache License 2.0 4 votes vote down vote up
@Override
public Configuration getConfiguration() {
    return wrappedService.getConfiguration();
}
 
Example #3
Source File: ExampleService.java    From rack-servlet with Apache License 2.0 4 votes vote down vote up
@Override public void initialize(Bootstrap<Configuration> bootstrap) {
  // Nothing to do here.
}
 
Example #4
Source File: DefaultAsyncService.java    From hvdf with Apache License 2.0 4 votes vote down vote up
@Override
public Configuration getConfiguration() {
    return this.config;
}
 
Example #5
Source File: DefaultChannelService.java    From hvdf with Apache License 2.0 4 votes vote down vote up
@Override
public Configuration getConfiguration() {
	return this.config;
}
 
Example #6
Source File: PizzaService.java    From jersey-hmac-auth with Apache License 2.0 4 votes vote down vote up
@Override
public void run(Configuration configuration, Environment environment) throws Exception {
    environment.addResource(new PizzaResource());
    environment.addHealthCheck(new PizzaHealthCheck());
    environment.addProvider(new HmacAuthProvider<>(new DefaultRequestHandler<>(new PizzaAuthenticator())));
}
 
Example #7
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 #8
Source File: DefaultAsyncService.java    From socialite with Apache License 2.0 4 votes vote down vote up
@Override
public Configuration getConfiguration() {
    return this.config;
}
 
Example #9
Source File: InMemoryUserService.java    From socialite with Apache License 2.0 4 votes vote down vote up
@Override
public Configuration getConfiguration() {
    
    // No configuration
    return null;
}
 
Example #10
Source File: FanoutOnWriteSizedBuckets.java    From socialite with Apache License 2.0 4 votes vote down vote up
@Override
public Configuration getConfiguration() {
    return this.config;
}
 
Example #11
Source File: FanoutOnRead.java    From socialite with Apache License 2.0 4 votes vote down vote up
@Override
public Configuration getConfiguration() {
    return this.config;
}
 
Example #12
Source File: FanoutOnWriteTimeBuckets.java    From socialite with Apache License 2.0 4 votes vote down vote up
@Override
public Configuration getConfiguration() {
    return this.config;
}
 
Example #13
Source File: FanoutOnWriteToCache.java    From socialite with Apache License 2.0 4 votes vote down vote up
@Override
public Configuration getConfiguration() {
    return this.config;
}
 
Example #14
Source File: InMemoryContentService.java    From socialite with Apache License 2.0 4 votes vote down vote up
@Override
public Configuration getConfiguration() {
    // no config
    return null;
}
 
Example #15
Source File: DefaultContentService.java    From socialite with Apache License 2.0 4 votes vote down vote up
@Override
public Configuration getConfiguration() {
    return this.config;
}
 
Example #16
Source File: DefaultUserService.java    From socialite with Apache License 2.0 4 votes vote down vote up
@Override
public Configuration getConfiguration() {
    return this.config;
}
 
Example #17
Source File: Service.java    From socialite with Apache License 2.0 2 votes vote down vote up
/**
 * Get the configuration for this service
 * @return the configuration object specific to the service implementation
 */
public Configuration getConfiguration();
 
Example #18
Source File: Service.java    From hvdf with Apache License 2.0 2 votes vote down vote up
/**
 * Get the configuration for this service
 * @return the configuration object specific to the service implementation
 */
public Configuration getConfiguration();
 
Example #19
Source File: DWAdapter.java    From wiztowar with MIT License 2 votes vote down vote up
/**
 * Retrieve the configuration class.
 *
 * @return the configuration class.
 */
protected Class<T> getConfigurationClass() {
    return Generics.getTypeParameter(getClass(), Configuration.class);
}