Class BaseApplication<T extends io.dropwizard.Configuration>
java.lang.Object
io.dropwizard.Application<T>
io.github.devlibx.easy.app.dropwizard.BaseApplication<T>
public class BaseApplication<T extends io.dropwizard.Configuration>
extends io.dropwizard.Application<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanSupport proto buffer support.voidinitialize(io.dropwizard.setup.Bootstrap<T> bootstrap) protected voidregisterPrometheus(io.dropwizard.setup.Environment environment) Register prometheus.voidMethods inherited from class io.dropwizard.Application
addDefaultCommands, bootstrapLogging, bootstrapLogLevel, getConfigurationClass, getName, onFatalError, onFatalError, run
-
Constructor Details
-
BaseApplication
public BaseApplication()
-
-
Method Details
-
initialize
- Overrides:
initializein classio.dropwizard.Application<T extends io.dropwizard.Configuration>
-
run
-
registerPrometheus
protected void registerPrometheus(io.dropwizard.setup.Environment environment) Register prometheus. It will register only if we have setup correct dependencies.NOTE - this method will not throw error, it will just log the error.
Dependency - We should have registered PrometheusMetrics as IMetrics.class
-
enableProtobufSupport
protected boolean enableProtobufSupport()Support proto buffer support. By default it is disabled.- Returns:
- if true then this dropwizard app will also support proto-buffer.
-