@Singleton final class VoidVoidDispatcherProvider extends java.lang.Object implements ResourceMethodDispatcher.Provider
Java method
with no input arguments
using a supplied Java method invocation handler
.Modifier and Type | Class and Description |
---|---|
private static class |
VoidVoidDispatcherProvider.VoidToVoidDispatcher |
Modifier and Type | Field and Description |
---|---|
private javax.ws.rs.container.ResourceContext |
resourceContext |
Constructor and Description |
---|
VoidVoidDispatcherProvider() |
Modifier and Type | Method and Description |
---|---|
ResourceMethodDispatcher |
create(Invocable resourceMethod,
java.lang.reflect.InvocationHandler handler,
ConfiguredValidator validator)
Create a
resource method dispatcher for
a given invocable resource method . |
public ResourceMethodDispatcher create(Invocable resourceMethod, java.lang.reflect.InvocationHandler handler, 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.handler
- 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.