org.glassfish.jersey.server.spi.internal
Interface ResourceMethodDispatcher.Provider

All Known Implementing Classes:
ResourceMethodDispatcherFactory
Enclosing interface:
ResourceMethodDispatcher

public static interface ResourceMethodDispatcher.Provider

Provider interface for creating a resource method dispatcher instances.

TODO describe registration.

A provider will examine the model of the Web resource method and determine if an invoker can be created for that Web resource method.

Multiple providers can specify the support for different Web resource method patterns, ranging from simple patterns (such as void return and input parameters) to complex patterns that take type URI and query arguments and HTTP request headers as typed parameters.

Author:
Paul Sandoz, Marek Potociar (marek.potociar at oracle.com)

Method Summary
 ResourceMethodDispatcher create(Invocable method, InvocationHandler handler)
          Create a resource method dispatcher for a given invocable resource method.
 

Method Detail

create

ResourceMethodDispatcher create(Invocable method,
                                InvocationHandler handler)
Create a 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.

Parameters:
method - the invocable resource method.
handler - invocation handler to be used for the resource method invocation.
Returns:
the resource method dispatcher, or null if it could not be created for the given resource method.


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.