public interface MpServiceContext
| Modifier and Type | Method and Description |
|---|---|
void |
addApplication(Application application)
Add a jersey application to the server.
|
void |
addApplication(java.lang.String contextRoot,
Application application)
Add a jersey application to the server with an explicit context path.
|
java.util.List<ResourceConfig> |
getApplications()
Access existing applications configured with the server.
|
SeContainer |
getCdiContainer()
The CDI container used by this server (Weld SE container).
|
Config |
getConfig()
The Microprofile config instance used to configure this server.
|
Config |
getHelidonConfig()
The Helidon config instance used to configure this server (will have same
properties as
getConfig()). |
ServerConfiguration.Builder |
getServerConfigBuilder()
Helidon web server configuration builder that can be used to re-configure the web server.
|
Routing.Builder |
getServerRoutingBuilder()
Helidon webserver routing builder that can be used to add routes to the webserver.
|
<U> void |
register(java.lang.Class<? extends U> key,
U instance)
Register an instance of a class for later use (e.g.
|
Config getConfig()
Config getHelidonConfig()
getConfig()).java.util.List<ResourceConfig> getApplications()
void addApplication(Application application)
ApplicationPath annotation.
You can also use addApplication(String, Application).application - configured as neededvoid addApplication(java.lang.String contextRoot,
Application application)
contextRoot - Context root to use for this application (ApplicationPath is ignored)application - configured as neededSeContainer getCdiContainer()
ServerConfiguration.Builder getServerConfigBuilder()
Routing.Builder getServerRoutingBuilder()
<U> void register(java.lang.Class<? extends U> key,
U instance)
U - type of the instancekey - class to registerinstance - instance of a classCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.