|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
---|---|
ResourceMethodDispatcher |
create(Invocable method,
InvocationHandler handler)
Create a resource method dispatcher for
a given invocable resource method . |
Method Detail |
---|
ResourceMethodDispatcher create(Invocable method, InvocationHandler handler)
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.
method
- the invocable resource method.handler
- invocation handler to be used for the resource method invocation.
null
if it could not be
created for the given resource method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |