Class ResteasySeInstance
- All Implemented Interfaces:
jakarta.ws.rs.SeBootstrap.Instance
SeBootstrap.Instance
.- Since:
- 6.1
- Author:
- James R. Perkins
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.ws.rs.SeBootstrap.Instance
jakarta.ws.rs.SeBootstrap.Instance.StopResult
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.SeBootstrap.Configuration
static CompletionStage
<jakarta.ws.rs.SeBootstrap.Instance> create
(jakarta.ws.rs.core.Application application, jakarta.ws.rs.SeBootstrap.Configuration configuration) Creates a newSeBootstrap.Instance
based on the application and configuration passed in.static CompletionStage
<jakarta.ws.rs.SeBootstrap.Instance> create
(Class<? extends jakarta.ws.rs.core.Application> applicationClass, jakarta.ws.rs.SeBootstrap.Configuration configuration) Creates a newSeBootstrap.Instance
based on the application and configuration passed in.CompletionStage
<jakarta.ws.rs.SeBootstrap.Instance.StopResult> stop()
<T> T
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.ws.rs.SeBootstrap.Instance
stopOnShutdown
-
Method Details
-
create
public static CompletionStage<jakarta.ws.rs.SeBootstrap.Instance> create(jakarta.ws.rs.core.Application application, jakarta.ws.rs.SeBootstrap.Configuration configuration) Creates a newSeBootstrap.Instance
based on the application and configuration passed in.Note that if your
Application
does not override theApplication.getClasses()
orApplication.getSingletons()
a Jandex index is used to find resources and providers. It's suggested that your application has aMETA-INF/jandex.idx
or you provide an index with theConfigurationOption.JANDEX_INDEX
configuration option. If neither of those exist, the class path itself is indexed which could have significant performance impacts.- Parameters:
application
- the application to use for this instanceconfiguration
- the configuration used to configure the instance- Returns:
- a
CompletionStage
which asynchronously produces andSeBootstrap.Instance
-
create
public static CompletionStage<jakarta.ws.rs.SeBootstrap.Instance> create(Class<? extends jakarta.ws.rs.core.Application> applicationClass, jakarta.ws.rs.SeBootstrap.Configuration configuration) Creates a newSeBootstrap.Instance
based on the application and configuration passed in.Note that if your
Application
does not override theApplication.getClasses()
orApplication.getSingletons()
a Jandex index is used to find resources and providers. It's suggested that your application has aMETA-INF/jandex.idx
or you provide an index with theConfigurationOption.JANDEX_INDEX
configuration option. If neither of those exist, the class path itself is indexed which could have significant performance impacts.- Parameters:
applicationClass
- the application to use for this instanceconfiguration
- the configuration used to configure the instance- Returns:
- a
CompletionStage
which asynchronously produces andSeBootstrap.Instance
-
configuration
public jakarta.ws.rs.SeBootstrap.Configuration configuration()- Specified by:
configuration
in interfacejakarta.ws.rs.SeBootstrap.Instance
-
stop
- Specified by:
stop
in interfacejakarta.ws.rs.SeBootstrap.Instance
-
unwrap
- Specified by:
unwrap
in interfacejakarta.ws.rs.SeBootstrap.Instance
-