Class VoidVoidDispatcherProvider

  • All Implemented Interfaces:
    ResourceMethodDispatcher.Provider

    @Singleton
    final class VoidVoidDispatcherProvider
    extends java.lang.Object
    implements ResourceMethodDispatcher.Provider
    Specific resource method dispatcher for dispatching requests to a void Java method with no input arguments using a supplied Java method invocation handler.
    • Field Detail

      • resourceContext

        private final javax.ws.rs.container.ResourceContext resourceContext
    • Constructor Detail

      • VoidVoidDispatcherProvider

        VoidVoidDispatcherProvider​(javax.ws.rs.container.ResourceContext resourceContext)
    • 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.