Class ResourceMethodDispatcherFactory

java.lang.Object
org.glassfish.jersey.server.model.internal.ResourceMethodDispatcherFactory
All Implemented Interfaces:
ResourceMethodDispatcher.Provider

@Singleton public final class ResourceMethodDispatcherFactory extends Object implements ResourceMethodDispatcher.Provider
A resource method dispatcher provider factory.

This class is used by ResourceMethodInvoker to create a ResourceMethodDispatcher.Provider instance that will be used to provide a ResourceMethodDispatcher instances for all resource method invocations.

JAX-RS resource methods are invoked by resource method invoker. Whenever a new incoming request has been routed to a resource method and the method is being invoked by the resource method invoker, the invoker consults a registered ResourceMethodDispatcher.Provider instance to retrieve a ResourceMethodDispatcher that will be ultimately used to dispatch the resource method invocation. This mechanism is useful for implementing any resource method interception logic.

Author:
Paul Sandoz, Marek Potociar
  • Method Details