Class ConstructorInjectorImpl
java.lang.Object
org.jboss.resteasy.core.ConstructorInjectorImpl
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructorInjectorImpl
(Constructor constructor, ResteasyProviderFactory factory) ConstructorInjectorImpl
(ResourceConstructor constructor, ResteasyProviderFactory factory) -
Method Summary
Modifier 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 Object
constructInRequest
(Object[] args) protected Object
constructOutsideRequest
(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
-
injectableArguments
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 interfaceConstructorInjector
- Parameters:
input
- http requestresponse
- http responseunwrapAsync
- unwrap async- Returns:
- array of arguments or a CompletionStageinvalid input: '<'Object[]> if args is async
-
injectableArguments
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 interfaceConstructorInjector
- Parameters:
unwrapAsync
- unwrap async- Returns:
- array of arguments or a CompletionStageinvalid input: '<'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 interfaceConstructorInjector
- Parameters:
request
- http requesthttpResponse
- http responseunwrapAsync
- unwrap async- Returns:
- constructed object or a CompletionStage
- Throws:
Failure
- if failure occurredApplicationException
- if application exception occurredjakarta.ws.rs.WebApplicationException
- if application exception occurred
-
constructInRequest
-
construct
Description copied from interface:ConstructorInjector
Construct outside the scope of an HTTP request. Useful for singleton factories.- Specified by:
construct
in interfaceConstructorInjector
- Parameters:
unwrapAsync
- unwrap async- Returns:
- constructed object or a CompletionStage
-
constructOutsideRequest
-