public class AdminServletInstaller extends java.lang.Object implements FeatureInstaller<javax.servlet.http.HttpServlet>, InstanceInstaller<javax.servlet.http.HttpServlet>, Ordered
AdminServlet
and installs into admin context.Constructor and Description |
---|
AdminServletInstaller() |
Modifier and Type | Method and Description |
---|---|
void |
install(io.dropwizard.setup.Environment environment,
javax.servlet.http.HttpServlet instance)
Use
FeatureUtils.getInstanceClass(instance) to overcome proxies and get correct type. |
boolean |
matches(java.lang.Class<?> type)
NOTE: consider using
ru.vyarus.dropwizard.guice.module.installer.util.FeatureUtils to simplify checks
(for example, types most likely must be checks to be not abstract). |
void |
report()
Called to log registered endpoints in dropwizard log fashion.
|
public boolean matches(java.lang.Class<?> type)
FeatureInstaller
ru.vyarus.dropwizard.guice.module.installer.util.FeatureUtils
to simplify checks
(for example, types most likely must be checks to be not abstract).
When type accepted by any extension it's registered in guice module.
matches
in interface FeatureInstaller<javax.servlet.http.HttpServlet>
type
- type to checkpublic void install(io.dropwizard.setup.Environment environment, javax.servlet.http.HttpServlet instance)
InstanceInstaller
FeatureUtils.getInstanceClass(instance)
to overcome proxies and get correct type.install
in interface InstanceInstaller<javax.servlet.http.HttpServlet>
environment
- environment objectinstance
- extension instancepublic void report()
FeatureInstaller
Reporter
to simplify reporting.
Method may do nothing if reporting not required
report
in interface FeatureInstaller<javax.servlet.http.HttpServlet>