Package org.trellisldp.dropwizard
Class AbstractTrellisApplication<T extends TrellisConfiguration>
- java.lang.Object
-
- io.dropwizard.Application<T>
-
- org.trellisldp.dropwizard.AbstractTrellisApplication<T>
-
- Direct Known Subclasses:
TrellisApplication
public abstract class AbstractTrellisApplication<T extends TrellisConfiguration> extends io.dropwizard.Application<T>
A base class for Dropwizard-based Trellis applications.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIG_DROPWIZARD_INITIALIZE_ROOT
The configuration key controlling whether an application should initialize its own root resource.
-
Constructor Summary
Constructors Constructor Description AbstractTrellisApplication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
void
initialize(io.dropwizard.setup.Bootstrap<T> bootstrap)
void
run(T config, io.dropwizard.setup.Environment environment)
-
-
-
Field Detail
-
CONFIG_DROPWIZARD_INITIALIZE_ROOT
public static final String CONFIG_DROPWIZARD_INITIALIZE_ROOT
The configuration key controlling whether an application should initialize its own root resource.- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
- Overrides:
getName
in classio.dropwizard.Application<T extends TrellisConfiguration>
-
initialize
public void initialize(io.dropwizard.setup.Bootstrap<T> bootstrap)
- Overrides:
initialize
in classio.dropwizard.Application<T extends TrellisConfiguration>
-
run
public void run(T config, io.dropwizard.setup.Environment environment) throws Exception
- Specified by:
run
in classio.dropwizard.Application<T extends TrellisConfiguration>
- Throws:
Exception
-
-