Class JavaResourceMethodDispatcherProvider
- java.lang.Object
-
- org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider
-
- All Implemented Interfaces:
ResourceMethodDispatcher.Provider
class JavaResourceMethodDispatcherProvider extends java.lang.Object implements ResourceMethodDispatcher.Provider
An implementation ofResourceMethodDispatcher.Providerthat creates instances ofResourceMethodDispatcher.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classJavaResourceMethodDispatcherProvider.AbstractMethodParamInvokerprivate static classJavaResourceMethodDispatcherProvider.ObjectOutInvokerprivate static classJavaResourceMethodDispatcherProvider.ResponseOutInvokerprivate static classJavaResourceMethodDispatcherProvider.SseEventSinkInvokerprivate static classJavaResourceMethodDispatcherProvider.TypeOutInvokerprivate static classJavaResourceMethodDispatcherProvider.VoidOutInvoker
-
Field Summary
Fields Modifier and Type Field Description private java.util.Collection<ValueParamProvider>allValueProviders
-
Constructor Summary
Constructors Constructor Description JavaResourceMethodDispatcherProvider(java.util.Collection<ValueParamProvider> allValueProviders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceMethodDispatchercreate(Invocable resourceMethod, java.lang.reflect.InvocationHandler invocationHandler, ConfiguredValidator validator)Create aresource method dispatcherfor a giveninvocable resource method.
-
-
-
Field Detail
-
allValueProviders
private final java.util.Collection<ValueParamProvider> allValueProviders
-
-
Constructor Detail
-
JavaResourceMethodDispatcherProvider
JavaResourceMethodDispatcherProvider(java.util.Collection<ValueParamProvider> allValueProviders)
-
-
Method Detail
-
create
public ResourceMethodDispatcher create(Invocable resourceMethod, java.lang.reflect.InvocationHandler invocationHandler, ConfiguredValidator validator)
Description copied from interface:ResourceMethodDispatcher.ProviderCreate aresource method dispatcherfor 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 handlerwhenever thedispatch(...)method is called on that dispatcher instance.- Specified by:
createin 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
nullif it could not be created for the given resource method.
-
-