Package org.jboss.resteasy.core
Class ConstructorInjectorImpl
java.lang.Object
org.jboss.resteasy.core.ConstructorInjectorImpl
- All Implemented Interfaces:
- ConstructorInjector
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionConstructorInjectorImpl(Constructor constructor, ResteasyProviderFactory factory) ConstructorInjectorImpl(ResourceConstructor constructor, ResteasyProviderFactory factory) 
- 
Method SummaryModifier and TypeMethodDescriptionconstruct(boolean unwrapAsync) Construct outside the scope of an HTTP request.construct(HttpRequest request, HttpResponse httpResponse, boolean unwrapAsync) Construct inside the scope of an HTTP request.protected ObjectconstructInRequest(Object[] args) protected ObjectconstructOutsideRequest(Object[] args) injectableArguments(boolean unwrapAsync) Create an arguments list from injectable tings outside the scope of an HTTP request.injectableArguments(HttpRequest input, HttpResponse response, boolean unwrapAsync) Create an argument list inside the scope of an HTTP request.
- 
Field Details- 
constructor
- 
params
 
- 
- 
Constructor Details- 
ConstructorInjectorImpl
- 
ConstructorInjectorImpl
 
- 
- 
Method Details- 
injectableArgumentsDescription copied from interface:ConstructorInjectorCreate 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:
- injectableArgumentsin interface- ConstructorInjector
- Parameters:
- input- http request
- response- http response
- unwrapAsync- unwrap async
- Returns:
- array of arguments or a CompletionStageinvalid input: '<'Object[]> if args is async
 
- 
injectableArgumentsDescription copied from interface:ConstructorInjectorCreate 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:
- injectableArgumentsin interface- ConstructorInjector
- Parameters:
- unwrapAsync- unwrap async
- Returns:
- array of arguments or a CompletionStageinvalid input: '<'Object[]> if args is async
 
- 
constructpublic Object construct(HttpRequest request, HttpResponse httpResponse, boolean unwrapAsync) throws Failure, ApplicationException, jakarta.ws.rs.WebApplicationException Description copied from interface:ConstructorInjectorConstruct inside the scope of an HTTP request.- Specified by:
- constructin interface- ConstructorInjector
- Parameters:
- request- http request
- httpResponse- http response
- unwrapAsync- unwrap async
- Returns:
- constructed object or a CompletionStage
- Throws:
- Failure- if failure occurred
- ApplicationException- if application exception occurred
- jakarta.ws.rs.WebApplicationException- if application exception occurred
 
- 
constructInRequest
- 
constructDescription copied from interface:ConstructorInjectorConstruct outside the scope of an HTTP request. Useful for singleton factories.- Specified by:
- constructin interface- ConstructorInjector
- Parameters:
- unwrapAsync- unwrap async
- Returns:
- constructed object or a CompletionStage
 
- 
constructOutsideRequest
 
-