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 |
---|---|
Object |
construct(boolean unwrapAsync)
Construct outside the scope of an HTTP request.
|
Object |
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) |
Object |
injectableArguments(boolean unwrapAsync)
Create an arguments list from injectable tings outside the scope of an HTTP request.
|
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 Object injectableArguments(HttpRequest input, HttpResponse response, boolean unwrapAsync)
ConstructorInjector
injectableArguments
in interface ConstructorInjector
input
- http requestresponse
- http responseunwrapAsync
- unwrap asyncpublic Object injectableArguments(boolean unwrapAsync)
ConstructorInjector
injectableArguments
in interface ConstructorInjector
unwrapAsync
- unwrap asyncpublic 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 Object construct(boolean unwrapAsync)
ConstructorInjector
construct
in interface ConstructorInjector
unwrapAsync
- unwrap asyncCopyright © 2021 JBoss by Red Hat. All rights reserved.