@Singleton public final class ResourceMethodDispatcherFactory extends Object implements ResourceMethodDispatcher.Provider
| Modifier and Type | Method and Description |
|---|---|
ResourceMethodDispatcher |
create(Invocable resourceMethod,
InvocationHandler handler)
Create a
resource method dispatcher for
a given invocable resource method. |
public ResourceMethodDispatcher create(Invocable resourceMethod, InvocationHandler handler)
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.handler - invocation handler to be used for the resource method invocation.null if it could not be
created for the given resource method.Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.