Class ConstructorInjectorImpl

java.lang.Object
org.jboss.resteasy.core.ConstructorInjectorImpl
All Implemented Interfaces:
ConstructorInjector

public class ConstructorInjectorImpl extends Object implements ConstructorInjector
Version:
$Revision: 1 $
Author:
Bill Burke
  • Field Details

  • Constructor Details

  • Method Details

    • 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<Object[]> 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<Object[]> if args is async
    • construct

      public Object construct(HttpRequest request, HttpResponse httpResponse, boolean unwrapAsync) throws Failure, ApplicationException, jakarta.ws.rs.WebApplicationException
      Description copied from interface: ConstructorInjector
      Construct inside the scope of an HTTP request.
      Specified by:
      construct in interface ConstructorInjector
      Parameters:
      request - http request
      httpResponse - http response
      unwrapAsync - unwrap async
      Returns:
      constructed object or a CompletionStage if construction is async
      Throws:
      Failure - if failure occurred
      ApplicationException - if application exception occurred
      jakarta.ws.rs.WebApplicationException - if application exception occurred
    • constructInRequest

      protected Object constructInRequest(Object[] args)
    • construct

      public Object construct(boolean unwrapAsync)
      Description copied from interface: ConstructorInjector
      Construct outside the scope of an HTTP request. Useful for singleton factories.
      Specified by:
      construct in interface ConstructorInjector
      Parameters:
      unwrapAsync - unwrap async
      Returns:
      constructed object or a CompletionStage if construction is async
    • constructOutsideRequest

      protected Object constructOutsideRequest(Object[] args)