org.glassfish.jersey.server.model.internal
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
- Author:
- Paul Sandoz, Marek Potociar (marek.potociar at oracle.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
create
public ResourceMethodDispatcher create(Invocable resourceMethod,
InvocationHandler handler)
- Description copied from interface:
ResourceMethodDispatcher.Provider
- 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.
- Specified by:
create in interface ResourceMethodDispatcher.Provider
- Parameters:
resourceMethod - 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.