Class ResteasySeInstance
- java.lang.Object
-
- org.jboss.resteasy.core.se.ResteasySeInstance
-
- All Implemented Interfaces:
jakarta.ws.rs.SeBootstrap.Instance
public class ResteasySeInstance extends Object implements jakarta.ws.rs.SeBootstrap.Instance
An implementation of aSeBootstrap.Instance.- Since:
- 6.1
- Author:
- James R. Perkins
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.SeBootstrap.Configurationconfiguration()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.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> Tunwrap(Class<T> nativeClass)
-
-
-
Method Detail
-
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
public CompletionStage<jakarta.ws.rs.SeBootstrap.Instance.StopResult> stop()
- Specified by:
stopin interfacejakarta.ws.rs.SeBootstrap.Instance
-
unwrap
public <T> T unwrap(Class<T> nativeClass)
- Specified by:
unwrapin interfacejakarta.ws.rs.SeBootstrap.Instance
-
-