Class JavaResourceMethodDispatcherProvider
java.lang.Object
org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider
- All Implemented Interfaces:
ResourceMethodDispatcher.Provider
class JavaResourceMethodDispatcherProvider
extends Object
implements ResourceMethodDispatcher.Provider
An implementation of
ResourceMethodDispatcher.Provider
that
creates instances of ResourceMethodDispatcher
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static final class
private static final class
private static final class
private static final class
private static final class
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJavaResourceMethodDispatcherProvider
(Collection<ValueParamProvider> allValueProviders) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(Invocable resourceMethod, InvocationHandler invocationHandler, ConfiguredValidator validator) Create aresource method dispatcher
for a giveninvocable resource method
.
-
Field Details
-
allValueProviders
-
-
Constructor Details
-
JavaResourceMethodDispatcherProvider
JavaResourceMethodDispatcherProvider(Collection<ValueParamProvider> allValueProviders)
-
-
Method Details
-
create
public ResourceMethodDispatcher create(Invocable resourceMethod, InvocationHandler invocationHandler, ConfiguredValidator validator) Description copied from interface:ResourceMethodDispatcher.Provider
Create aresource method dispatcher
for a giveninvocable resource method
. If the provider supports the invocable resource method, it will return a new non-null dispatcher instance configured to invoke the supplied invocable resource method via the providedinvocation handler
whenever thedispatch(...)
method is called on that dispatcher instance.- Specified by:
create
in interfaceResourceMethodDispatcher.Provider
- Parameters:
resourceMethod
- the invocable resource method.invocationHandler
- invocation handler to be used for the resource method invocation.validator
- configured validator to be used for validation during resource method invocation- Returns:
- the resource method dispatcher, or
null
if it could not be created for the given resource method.
-