Class ResourceMethodInvoker.Builder

java.lang.Object
org.glassfish.jersey.server.model.ResourceMethodInvoker.Builder
Enclosing class:
ResourceMethodInvoker

public static class ResourceMethodInvoker.Builder extends Object
Resource method invoker helper.

The builder API provides means for constructing a properly initialized resource method invoker instances.

  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • resourceMethodDispatcherFactory

      public ResourceMethodInvoker.Builder resourceMethodDispatcherFactory(ResourceMethodDispatcherFactory resourceMethodDispatcherFactory)
      Set resource method dispatcher factory.
      Parameters:
      resourceMethodDispatcherFactory - resource method dispatcher factory.
      Returns:
      updated builder.
    • resourceMethodInvocationHandlerFactory

      public ResourceMethodInvoker.Builder resourceMethodInvocationHandlerFactory(ResourceMethodInvocationHandlerFactory resourceMethodInvocationHandlerFactory)
      Set resource method invocation handler factory.
      Parameters:
      resourceMethodInvocationHandlerFactory - resource method invocation handler factory.
      Returns:
      updated builder.
    • injectionManager

      public ResourceMethodInvoker.Builder injectionManager(InjectionManager injectionManager)
      Set runtime DI injection manager.
      Parameters:
      injectionManager - DI injection manager.
      Returns:
      updated builder.
    • configuration

      public ResourceMethodInvoker.Builder configuration(Configuration configuration)
      Set global configuration.
      Parameters:
      configuration - global configuration.
      Returns:
      updated builder.
    • configurationValidator

      public ResourceMethodInvoker.Builder configurationValidator(Supplier<ConfiguredValidator> configurationValidator)
      Set global configuration validator.
      Parameters:
      configurationValidator - configuration validator.
      Returns:
      updated builder.
    • build

      public ResourceMethodInvoker build(ResourceMethod method, ProcessingProviders processingProviders)
      Build a new resource method invoker instance.
      Parameters:
      method - resource method model.
      processingProviders - Processing providers.
      Returns:
      new resource method invoker instance.