public class ConstructorInjectorImpl extends Object implements ConstructorInjector
Modifier and Type | Field and Description |
---|---|
protected Constructor |
constructor |
protected ValueInjector[] |
params |
Constructor and Description |
---|
ConstructorInjectorImpl(Constructor constructor,
ResteasyProviderFactory factory) |
ConstructorInjectorImpl(ResourceConstructor constructor,
ResteasyProviderFactory factory) |
Modifier and Type | Method and Description |
---|---|
CompletionStage<Object> |
construct(boolean unwrapAsync)
Construct outside the scope of an HTTP request.
|
CompletionStage<Object> |
construct(HttpRequest request,
HttpResponse httpResponse,
boolean unwrapAsync)
Construct inside the scope of an HTTP request.
|
CompletionStage<Object[]> |
injectableArguments(boolean unwrapAsync)
Create an arguments list from injectable tings outside the scope of an HTTP request.
|
CompletionStage<Object[]> |
injectableArguments(HttpRequest input,
HttpResponse response,
boolean unwrapAsync)
Create an argument list inside the scope of an HTTP request.
|
protected Constructor constructor
protected ValueInjector[] params
public ConstructorInjectorImpl(ResourceConstructor constructor, ResteasyProviderFactory factory)
public ConstructorInjectorImpl(Constructor constructor, ResteasyProviderFactory factory)
public CompletionStage<Object[]> injectableArguments(HttpRequest input, HttpResponse response, boolean unwrapAsync)
ConstructorInjector
injectableArguments
in interface ConstructorInjector
input
- http requestresponse
- http responseunwrapAsync
- unwrap asyncpublic CompletionStage<Object[]> injectableArguments(boolean unwrapAsync)
ConstructorInjector
injectableArguments
in interface ConstructorInjector
unwrapAsync
- unwrap asyncpublic CompletionStage<Object> construct(HttpRequest request, HttpResponse httpResponse, boolean unwrapAsync) throws Failure, ApplicationException, javax.ws.rs.WebApplicationException
ConstructorInjector
construct
in interface ConstructorInjector
request
- http requesthttpResponse
- http responseunwrapAsync
- unwrap asyncFailure
- if failure occurredApplicationException
- if application exception occurredjavax.ws.rs.WebApplicationException
- if application exception occurredpublic CompletionStage<Object> construct(boolean unwrapAsync)
ConstructorInjector
construct
in interface ConstructorInjector
unwrapAsync
- unwrap asyncCopyright © 2019 JBoss by Red Hat. All rights reserved.