class JavaResourceMethodDispatcherProvider extends java.lang.Object implements ResourceMethodDispatcher.Provider
ResourceMethodDispatcher.Provider
that
creates instances of ResourceMethodDispatcher
.Modifier and Type | Class and Description |
---|---|
private static class |
JavaResourceMethodDispatcherProvider.AbstractMethodParamInvoker |
private static class |
JavaResourceMethodDispatcherProvider.ObjectOutInvoker |
private static class |
JavaResourceMethodDispatcherProvider.ResponseOutInvoker |
private static class |
JavaResourceMethodDispatcherProvider.SseEventSinkInvoker |
private static class |
JavaResourceMethodDispatcherProvider.TypeOutInvoker |
private static class |
JavaResourceMethodDispatcherProvider.VoidOutInvoker |
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<ValueParamProvider> |
allValueProviders |
Constructor and Description |
---|
JavaResourceMethodDispatcherProvider(java.util.Collection<ValueParamProvider> allValueProviders) |
Modifier and Type | Method and Description |
---|---|
ResourceMethodDispatcher |
create(Invocable resourceMethod,
java.lang.reflect.InvocationHandler invocationHandler,
ConfiguredValidator validator)
Create a
resource method dispatcher for
a given invocable resource method . |
private final java.util.Collection<ValueParamProvider> allValueProviders
JavaResourceMethodDispatcherProvider(java.util.Collection<ValueParamProvider> allValueProviders)
public ResourceMethodDispatcher create(Invocable resourceMethod, java.lang.reflect.InvocationHandler invocationHandler, ConfiguredValidator validator)
ResourceMethodDispatcher.Provider
resource method dispatcher
for
a given invocable 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 provided invocation handler
whenever the
dispatch(...)
method is called on that dispatcher instance.create
in interface ResourceMethodDispatcher.Provider
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 invocationnull
if it could not be
created for the given resource method.