public class CdiConstructorInjector extends Object implements ConstructorInjector
Constructor and Description |
---|
CdiConstructorInjector(Type type,
javax.enterprise.inject.spi.BeanManager manager) |
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 response,
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 request,
HttpResponse response,
boolean unwrapAsync)
Create an argument list inside the scope of an HTTP request.
|
public CdiConstructorInjector(Type type, javax.enterprise.inject.spi.BeanManager manager)
public CompletionStage<Object> construct(boolean unwrapAsync)
ConstructorInjector
construct
in interface ConstructorInjector
unwrapAsync
- unwrap asyncpublic CompletionStage<Object> construct(HttpRequest request, HttpResponse response, boolean unwrapAsync) throws Failure, javax.ws.rs.WebApplicationException, ApplicationException
ConstructorInjector
construct
in interface ConstructorInjector
request
- http requestresponse
- http responseunwrapAsync
- unwrap asyncFailure
- if failure occurredjavax.ws.rs.WebApplicationException
- if application exception occurredApplicationException
- if application exception occurredpublic CompletionStage<Object[]> injectableArguments(boolean unwrapAsync)
ConstructorInjector
injectableArguments
in interface ConstructorInjector
unwrapAsync
- unwrap asyncpublic CompletionStage<Object[]> injectableArguments(HttpRequest request, HttpResponse response, boolean unwrapAsync) throws Failure
ConstructorInjector
injectableArguments
in interface ConstructorInjector
request
- http requestresponse
- http responseunwrapAsync
- unwrap asyncFailure
- if failure occurredCopyright © 2019 JBoss by Red Hat. All rights reserved.