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 a 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 Type
    Method
    Description
    jakarta.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 new SeBootstrap.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 new SeBootstrap.Instance based on the application and configuration passed in.
    CompletionStage<jakarta.ws.rs.SeBootstrap.Instance.StopResult>
     
    <T> T
    unwrap(Class<T> nativeClass)
     

    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 new SeBootstrap.Instance based on the application and configuration passed in.

      Note that if your Application does not override the Application.getClasses() or Application.getSingletons() a Jandex index is used to find resources and providers. It's suggested that your application has a META-INF/jandex.idx or you provide an index with the ConfigurationOption.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 instance
      configuration - the configuration used to configure the instance
      Returns:
      a CompletionStage which asynchronously produces and SeBootstrap.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 new SeBootstrap.Instance based on the application and configuration passed in.

      Note that if your Application does not override the Application.getClasses() or Application.getSingletons() a Jandex index is used to find resources and providers. It's suggested that your application has a META-INF/jandex.idx or you provide an index with the ConfigurationOption.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 instance
      configuration - the configuration used to configure the instance
      Returns:
      a CompletionStage which asynchronously produces and SeBootstrap.Instance
    • configuration

      public jakarta.ws.rs.SeBootstrap.Configuration configuration()
      Specified by:
      configuration in interface jakarta.ws.rs.SeBootstrap.Instance
    • stop

      public CompletionStage<jakarta.ws.rs.SeBootstrap.Instance.StopResult> stop()
      Specified by:
      stop in interface jakarta.ws.rs.SeBootstrap.Instance
    • unwrap

      public <T> T unwrap(Class<T> nativeClass)
      Specified by:
      unwrap in interface jakarta.ws.rs.SeBootstrap.Instance