Class ResourceMethodInvoker.Builder
java.lang.Object
org.glassfish.jersey.server.model.ResourceMethodInvoker.Builder
- Enclosing class:
- ResourceMethodInvoker
Resource method invoker helper.
The builder API provides means for constructing a properly initialized
resource method invoker
instances.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(ResourceMethod method, ProcessingProviders processingProviders) Build a new resource method invoker instance.configuration
(Configuration configuration) Set global configuration.configurationValidator
(Supplier<ConfiguredValidator> configurationValidator) Set global configuration validator.injectionManager
(InjectionManager injectionManager) Set runtime DI injection manager.resourceMethodDispatcherFactory
(ResourceMethodDispatcherFactory resourceMethodDispatcherFactory) Set resource method dispatcher factory.resourceMethodInvocationHandlerFactory
(ResourceMethodInvocationHandlerFactory resourceMethodInvocationHandlerFactory) Set resource method invocation handler factory.
-
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
Set runtime DI injection manager.- Parameters:
injectionManager
- DI injection manager.- Returns:
- updated builder.
-
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
Build a new resource method invoker instance.- Parameters:
method
- resource method model.processingProviders
- Processing providers.- Returns:
- new resource method invoker instance.
-