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.
|
javax.enterprise.inject.se.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)
Deprecated.
use
register(Object) or register(Object, Object) instead |
void |
register(Object instance)
Register an instance for later use.
|
void |
register(Object classifier,
Object instance)
Register an instance for later use.
|
ServerConfiguration.Builder |
serverConfigBuilder()
Helidon web server configuration builder that can be used to re-configure the web server.
|
Routing.Builder |
serverNamedRoutingBuilder(String name)
Helidon webserver routing builder that can be used to add routes to a named socket
of the webserver.
|
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 neededjavax.enterprise.inject.se.SeContainer cdiContainer()
ServerConfiguration.Builder serverConfigBuilder()
Routing.Builder serverRoutingBuilder()
Routing.Builder serverNamedRoutingBuilder(String name)
name - name of the named routing (should match a named socket configuration)@Deprecated <U> void register(Class<? extends U> key, U instance)
register(Object) or register(Object, Object) insteadU - type of the instancekey - class to registerinstance - instance of a classvoid register(Object instance)
Config.Context
throughout the application.instance - instance to registerContext.register(Object, Object)void register(Object classifier, Object instance)
Config.Context
throughout the application.classifier - an additional registered instance classifierinstance - instance to registerContext.register(Object, Object)Copyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.