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.TypeOutInvoker |
private static class |
JavaResourceMethodDispatcherProvider.VoidOutInvoker |
| Modifier and Type | Field and Description |
|---|---|
private org.glassfish.hk2.api.ServiceLocator |
serviceLocator |
| Constructor and Description |
|---|
JavaResourceMethodDispatcherProvider() |
| 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. |
(package private) org.glassfish.hk2.api.ServiceLocator |
getServiceLocator()
Get the application-configured HK2 service locator.
|
public ResourceMethodDispatcher create(Invocable resourceMethod, java.lang.reflect.InvocationHandler invocationHandler, ConfiguredValidator validator)
ResourceMethodDispatcher.Providerresource 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.ProviderresourceMethod - 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.final org.glassfish.hk2.api.ServiceLocator getServiceLocator()