Package org.glassfish.jersey.internal
Class RuntimeDelegateImpl
- java.lang.Object
-
- jakarta.ws.rs.ext.RuntimeDelegate
-
- org.glassfish.jersey.internal.AbstractRuntimeDelegate
-
- org.glassfish.jersey.internal.RuntimeDelegateImpl
-
public class RuntimeDelegateImpl extends AbstractRuntimeDelegate
Default implementation of JAX-RSRuntimeDelegate. TheRuntimeDelegateclass looks for the implementations registered in META-INF/services. Server injection binder should override this (using META-INF/services) to provide an implementation that supportscreateEndpoint(jakarta.ws.rs.core.Application, java.lang.Class)method.- Author:
- Jakub Podlesak, Marek Potociar, Martin Matula
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jakarta.ws.rs.ext.RuntimeDelegate
RuntimeDelegate.HeaderDelegate<T>
-
-
Field Summary
-
Fields inherited from class jakarta.ws.rs.ext.RuntimeDelegate
JAXRS_RUNTIME_DELEGATE_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description RuntimeDelegateImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<SeBootstrap.Instance>bootstrap(Application application, SeBootstrap.Configuration configuration)Perform startup of the application in Java SE environments.CompletionStage<SeBootstrap.Instance>bootstrap(Class<? extends Application> applicationClass, SeBootstrap.Configuration configuration)Perform startup of the application in Java SE environments.SeBootstrap.Configuration.BuildercreateConfigurationBuilder()Create a new instance of aSeBootstrap.Configuration.Builder.<T> TcreateEndpoint(Application application, Class<T> endpointType)Create a configured instance of the supplied endpoint type.-
Methods inherited from class org.glassfish.jersey.internal.AbstractRuntimeDelegate
createEntityPartBuilder, createHeaderDelegate, createLinkBuilder, createResponseBuilder, createUriBuilder, createVariantListBuilder
-
Methods inherited from class jakarta.ws.rs.ext.RuntimeDelegate
getInstance, setInstance
-
-
-
-
Method Detail
-
createEndpoint
public <T> T createEndpoint(Application application, Class<T> endpointType) throws IllegalArgumentException, UnsupportedOperationException
Description copied from class:RuntimeDelegateCreate a configured instance of the supplied endpoint type. How the returned endpoint instance is published is dependent on the type of endpoint.- Specified by:
createEndpointin classRuntimeDelegate- Type Parameters:
T- endpoint type.- Parameters:
application- the application configuration.endpointType- the type of endpoint instance to be created.- Returns:
- a configured instance of the requested type.
- Throws:
IllegalArgumentException- if application is null or the requested endpoint type is not supported.UnsupportedOperationException- if the implementation supports no endpoint types.
-
createConfigurationBuilder
public SeBootstrap.Configuration.Builder createConfigurationBuilder()
Description copied from class:RuntimeDelegateCreate a new instance of aSeBootstrap.Configuration.Builder.This method is not intended to be invoked by applications. Call
SeBootstrap.Configuration.builder()instead.- Specified by:
createConfigurationBuilderin classRuntimeDelegate- Returns:
- new
SeBootstrap.Configuration.Builderinstance. - See Also:
SeBootstrap.Configuration.Builder
-
bootstrap
public CompletionStage<SeBootstrap.Instance> bootstrap(Application application, SeBootstrap.Configuration configuration)
Description copied from class:RuntimeDelegatePerform startup of the application in Java SE environments.This method is not intended to be invoked by applications. Call
SeBootstrap.start(Application, SeBootstrap.Configuration)instead.- Specified by:
bootstrapin classRuntimeDelegate- Parameters:
application- The application to start up.configuration- The bootstrap configuration.- Returns:
CompletionStageasynchronously producing handle of the running applicationinstance.
-
bootstrap
public CompletionStage<SeBootstrap.Instance> bootstrap(Class<? extends Application> applicationClass, SeBootstrap.Configuration configuration)
Description copied from class:RuntimeDelegatePerform startup of the application in Java SE environments.This method is not intended to be invoked by applications. Call
SeBootstrap.start(Class, SeBootstrap.Configuration)instead.- Specified by:
bootstrapin classRuntimeDelegate- Parameters:
applicationClass- The application class to instantiate and start.configuration- The bootstrap configuration.- Returns:
CompletionStageasynchronously producing handle of the running applicationinstance.
-
-