Class ConstructorInjectorImpl

    • Method Detail

      • injectableArguments

        public Object injectableArguments​(HttpRequest input,
                                          HttpResponse response,
                                          boolean unwrapAsync)
        Description copied from interface: ConstructorInjector
        Create an argument list inside the scope of an HTTP request. Useful in cases where the resource factory wants to allocate the object itself, but wants resteasy to populate the arguments.
        Specified by:
        injectableArguments in interface ConstructorInjector
        Parameters:
        input - http request
        response - http response
        unwrapAsync - unwrap async
        Returns:
        array of arguments or a CompletionStage if args is async
      • injectableArguments

        public Object injectableArguments​(boolean unwrapAsync)
        Description copied from interface: ConstructorInjector
        Create an arguments list from injectable tings outside the scope of an HTTP request. Useful for singleton factories in cases where the resource factory wants to allocate the object itself, but wants resteasy to populate the arguments.
        Specified by:
        injectableArguments in interface ConstructorInjector
        Parameters:
        unwrapAsync - unwrap async
        Returns:
        array of arguments or a CompletionStage if args is async