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.Configurationstatic CompletionStage<jakarta.ws.rs.SeBootstrap.Instance>create(jakarta.ws.rs.core.Application application, jakarta.ws.rs.SeBootstrap.Configuration configuration) Creates a newSeBootstrap.Instancebased 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.Instancebased on the application and configuration passed in.CompletionStage<jakarta.ws.rs.SeBootstrap.Instance.StopResult>stop()<T> TMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.Instancebased on the application and configuration passed in.Note that if your
Applicationdoes 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.idxor you provide an index with theConfigurationOption.JANDEX_INDEXconfiguration 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
CompletionStagewhich 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.Instancebased on the application and configuration passed in.Note that if your
Applicationdoes 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.idxor you provide an index with theConfigurationOption.JANDEX_INDEXconfiguration 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
CompletionStagewhich asynchronously produces andSeBootstrap.Instance
-
configuration
public jakarta.ws.rs.SeBootstrap.Configuration configuration()- Specified by:
configurationin interfacejakarta.ws.rs.SeBootstrap.Instance
-
stop
- Specified by:
stopin interfacejakarta.ws.rs.SeBootstrap.Instance
-
unwrap
- Specified by:
unwrapin interfacejakarta.ws.rs.SeBootstrap.Instance
-