public class Environment
extends java.lang.Object
| Constructor | Description |
|---|---|
Environment(java.lang.String name,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
javax.validation.Validator validator,
com.codahale.metrics.MetricRegistry metricRegistry,
java.lang.ClassLoader classLoader) |
Creates an environment with default health check registry
|
Environment(java.lang.String name,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
javax.validation.Validator validator,
com.codahale.metrics.MetricRegistry metricRegistry,
java.lang.ClassLoader classLoader,
com.codahale.metrics.health.HealthCheckRegistry healthCheckRegistry) |
Creates a new environment.
|
| Modifier and Type | Method | Description |
|---|---|---|
AdminEnvironment |
admin() |
Returns the application's
AdminEnvironment. |
io.dropwizard.jetty.MutableServletContextHandler |
getAdminContext() |
|
io.dropwizard.jetty.MutableServletContextHandler |
getApplicationContext() |
|
java.util.concurrent.ExecutorService |
getHealthCheckExecutorService() |
Returns an
ExecutorService to run time bound health checks |
javax.servlet.Servlet |
getJerseyServletContainer() |
|
java.lang.String |
getName() |
Returns the application's name.
|
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
Returns the application's
ObjectMapper. |
javax.validation.Validator |
getValidator() |
Returns the application's
Validator. |
com.codahale.metrics.health.HealthCheckRegistry |
healthChecks() |
Returns the application's
HealthCheckRegistry. |
io.dropwizard.jersey.setup.JerseyEnvironment |
jersey() |
Returns the application's
JerseyEnvironment. |
io.dropwizard.lifecycle.setup.LifecycleEnvironment |
lifecycle() |
Returns the application's
LifecycleEnvironment. |
com.codahale.metrics.MetricRegistry |
metrics() |
Returns the application's
MetricRegistry. |
io.dropwizard.jetty.setup.ServletEnvironment |
servlets() |
Returns the application's
ServletEnvironment. |
void |
setValidator(javax.validation.Validator validator) |
Sets the application's
Validator. |
public Environment(java.lang.String name,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
javax.validation.Validator validator,
com.codahale.metrics.MetricRegistry metricRegistry,
@Nullable
java.lang.ClassLoader classLoader,
com.codahale.metrics.health.HealthCheckRegistry healthCheckRegistry)
name - the name of the applicationobjectMapper - the ObjectMapper for the applicationpublic Environment(java.lang.String name,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
javax.validation.Validator validator,
com.codahale.metrics.MetricRegistry metricRegistry,
@Nullable
java.lang.ClassLoader classLoader)
public io.dropwizard.jersey.setup.JerseyEnvironment jersey()
JerseyEnvironment.public java.util.concurrent.ExecutorService getHealthCheckExecutorService()
ExecutorService to run time bound health checkspublic AdminEnvironment admin()
AdminEnvironment.public io.dropwizard.lifecycle.setup.LifecycleEnvironment lifecycle()
LifecycleEnvironment.public io.dropwizard.jetty.setup.ServletEnvironment servlets()
ServletEnvironment.public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
ObjectMapper.public java.lang.String getName()
public javax.validation.Validator getValidator()
Validator.public void setValidator(javax.validation.Validator validator)
Validator.public com.codahale.metrics.MetricRegistry metrics()
MetricRegistry.public com.codahale.metrics.health.HealthCheckRegistry healthChecks()
HealthCheckRegistry.public io.dropwizard.jetty.MutableServletContextHandler getApplicationContext()
@Nullable public javax.servlet.Servlet getJerseyServletContainer()
public io.dropwizard.jetty.MutableServletContextHandler getAdminContext()
Copyright © 2018. All rights reserved.