Class ResourceMethodDispatcherFactory

    • Method Detail

      • create

        public ResourceMethodDispatcher create​(Invocable resourceMethod,
                                               java.lang.reflect.InvocationHandler handler,
                                               ConfiguredValidator validator)
        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.
        validator - configured validator to be used for validation during resource method invocation
        Returns:
        the resource method dispatcher, or null if it could not be created for the given resource method.