java.lang.Object
io.helidon.jersey.webserver.JaxRsService
- All Implemented Interfaces:
HttpService
,ServerLifecycle
WebServer
HttpService
that adds support for a JAX-RS application.-
Method Summary
Modifier and TypeMethodDescriptionvoid
After server stop.void
Before server start.static JaxRsService
create
(Config config, ResourceConfig resourceConfig) Create a new JAX-RS integration service with the default injection manager.static JaxRsService
create
(Config config, ResourceConfig resourceConfig, org.glassfish.jersey.internal.inject.InjectionManager injectionManager) Create a new JAX-RS integration service with a custom injection manager.void
Updates the routing to add handlers of this service.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.webserver.ServerLifecycle
afterStart
-
Method Details
-
create
Create a new JAX-RS integration service with the default injection manager.- Parameters:
config
- configuration, used to configure JerseyresourceConfig
- containing application resources- Returns:
- a new service to register with the WebServer
-
create
public static JaxRsService create(Config config, ResourceConfig resourceConfig, org.glassfish.jersey.internal.inject.InjectionManager injectionManager) Create a new JAX-RS integration service with a custom injection manager.- Parameters:
config
- configuration, used to configure JerseyresourceConfig
- containing application resourcesinjectionManager
- injection manager to use- Returns:
- a new service to register with the WebServer
- See Also:
-
routing
Description copied from interface:HttpService
Updates the routing to add handlers of this service.- Specified by:
routing
in interfaceHttpService
- Parameters:
rules
- to update
-
beforeStart
public void beforeStart()Description copied from interface:ServerLifecycle
Before server start.- Specified by:
beforeStart
in interfaceServerLifecycle
-
afterStop
public void afterStop()Description copied from interface:ServerLifecycle
After server stop.- Specified by:
afterStop
in interfaceServerLifecycle
-