Package org.jboss.resteasy.core
Class ConstructorInjectorImpl
- java.lang.Object
-
- org.jboss.resteasy.core.ConstructorInjectorImpl
-
- All Implemented Interfaces:
ConstructorInjector
public class ConstructorInjectorImpl extends java.lang.Object implements ConstructorInjector
- Version:
- $Revision: 1 $
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.reflect.Constructorconstructorprotected ValueInjector[]params
-
Constructor Summary
Constructors Constructor Description ConstructorInjectorImpl(java.lang.reflect.Constructor constructor, ResteasyProviderFactory factory)ConstructorInjectorImpl(ResourceConstructor constructor, ResteasyProviderFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectconstruct()construct outside the scope of an HTTP request.java.lang.Objectconstruct(HttpRequest request, HttpResponse httpResponse)construct inside the scope of an HTTP request.java.lang.Object[]injectableArguments()Create an arguments list from injectable tings outside the scope of an HTTP request.java.lang.Object[]injectableArguments(HttpRequest input, HttpResponse response)Create an argument list inside the scope of an HTTP request.
-
-
-
Field Detail
-
constructor
protected java.lang.reflect.Constructor constructor
-
params
protected ValueInjector[] params
-
-
Constructor Detail
-
ConstructorInjectorImpl
public ConstructorInjectorImpl(ResourceConstructor constructor, ResteasyProviderFactory factory)
-
ConstructorInjectorImpl
public ConstructorInjectorImpl(java.lang.reflect.Constructor constructor, ResteasyProviderFactory factory)
-
-
Method Detail
-
injectableArguments
public java.lang.Object[] injectableArguments(HttpRequest input, HttpResponse response)
Description copied from interface:ConstructorInjectorCreate 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:
injectableArgumentsin interfaceConstructorInjector- Returns:
-
injectableArguments
public java.lang.Object[] injectableArguments()
Description copied from interface:ConstructorInjectorCreate 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:
injectableArgumentsin interfaceConstructorInjector- Returns:
-
construct
public java.lang.Object construct(HttpRequest request, HttpResponse httpResponse) throws Failure, ApplicationException, javax.ws.rs.WebApplicationException
Description copied from interface:ConstructorInjectorconstruct inside the scope of an HTTP request.- Specified by:
constructin interfaceConstructorInjector- Returns:
- Throws:
FailureApplicationExceptionjavax.ws.rs.WebApplicationException
-
construct
public java.lang.Object construct()
Description copied from interface:ConstructorInjectorconstruct outside the scope of an HTTP request. Useful for singleton factories- Specified by:
constructin interfaceConstructorInjector- Returns:
-
-