public abstract class AbstractTrellisApplication<T extends TrellisConfiguration>
extends io.dropwizard.Application<T>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_DROPWIZARD_INITIALIZE_ROOT
The configuration key controlling whether an application should initialize its own root resource.
|
| Constructor and Description |
|---|
AbstractTrellisApplication() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<java.lang.Object> |
getComponents()
Get any additional components to register with Jersey.
|
protected java.lang.Object |
getLdpComponent(T config,
boolean initialize)
Get the TrellisHttpResource matcher.
|
java.lang.String |
getName() |
protected abstract org.trellisldp.http.core.ServiceBundler |
getServiceBundler()
Get the Trellis
ServiceBundler. |
void |
initialize(io.dropwizard.setup.Bootstrap<T> bootstrap) |
protected void |
initialize(T config,
io.dropwizard.setup.Environment environment)
Setup the trellis application.
|
void |
run(T config,
io.dropwizard.setup.Environment environment) |
public static final java.lang.String CONFIG_DROPWIZARD_INITIALIZE_ROOT
protected abstract org.trellisldp.http.core.ServiceBundler getServiceBundler()
ServiceBundler. This object collects the various
Trellis services used in an application.protected java.util.List<java.lang.Object> getComponents()
protected java.lang.Object getLdpComponent(T config, boolean initialize) throws java.lang.Exception
config - the configurationinitialize - true if the TrellisHttpResource object should be initialized; false otherwisejava.lang.Exception - if there was an error initializing the LDP componentprotected void initialize(T config, io.dropwizard.setup.Environment environment)
config - the configurationenvironment - the environmentApplication.run(T, io.dropwizard.setup.Environment) method. It can be used
to configure or register any of the Trellis-related services that an implementation instantiates.public java.lang.String getName()
getName in class io.dropwizard.Application<T extends TrellisConfiguration>public void initialize(io.dropwizard.setup.Bootstrap<T> bootstrap)
initialize in class io.dropwizard.Application<T extends TrellisConfiguration>public void run(T config, io.dropwizard.setup.Environment environment) throws java.lang.Exception
run in class io.dropwizard.Application<T extends TrellisConfiguration>java.lang.Exception