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()
Construct outside the scope of an HTTP request.
|
Object |
construct(HttpRequest request,
HttpResponse httpResponse)
Construct inside the scope of an HTTP request.
|
Object[] |
injectableArguments()
Create an arguments list from injectable tings outside the scope of an HTTP request.
|
Object[] |
injectableArguments(HttpRequest input,
HttpResponse response)
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)
ConstructorInjector
injectableArguments
in interface ConstructorInjector
input
- http requestresponse
- http responsepublic Object[] injectableArguments()
ConstructorInjector
injectableArguments
in interface ConstructorInjector
public Object construct(HttpRequest request, HttpResponse httpResponse) throws Failure, ApplicationException, WebApplicationException
ConstructorInjector
construct
in interface ConstructorInjector
request
- http requesthttpResponse
- http responseFailure
- if failure occurredApplicationException
- if application exception occurredWebApplicationException
- if application exception occurredpublic Object construct()
ConstructorInjector
construct
in interface ConstructorInjector
Copyright © 2021 JBoss by Red Hat. All rights reserved.