public interface MpServiceContext
| Modifier and Type | Method and Description |
|---|---|
void |
addApplication(Application application)
Add a jersey application to the server.
|
void |
addApplication(String contextRoot,
Application application)
Add a jersey application to the server with an explicit context path.
|
List<ResourceConfig> |
applications()
Access existing applications configured with the server.
|
SeContainer |
cdiContainer()
The CDI container used by this server (Weld SE container).
|
Config |
config()
The Microprofile config instance used to configure this server.
|
Config |
helidonConfig()
The Helidon config instance used to configure this server (will have same
properties as
config()). |
<U> void |
register(Class<? extends U> key,
U instance)
Register an instance of a class for later use (e.g.
|
ServerConfiguration.Builder |
serverConfigBuilder()
Helidon web server configuration builder that can be used to re-configure the web server.
|
Routing.Builder |
serverRoutingBuilder()
Helidon webserver routing builder that can be used to add routes to the webserver.
|
Config config()
Config helidonConfig()
config()).List<ResourceConfig> applications()
void addApplication(Application application)
ApplicationPath annotation.
You can also use addApplication(String, Application).application - configured as neededvoid addApplication(String contextRoot, Application application)
contextRoot - Context root to use for this application (ApplicationPath is ignored)application - configured as neededSeContainer cdiContainer()
ServerConfiguration.Builder serverConfigBuilder()
Routing.Builder serverRoutingBuilder()
<U> void register(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.