org.jboss.resteasy.cdi
Class CdiConstructorInjector
java.lang.Object
org.jboss.resteasy.cdi.CdiConstructorInjector
- All Implemented Interfaces:
- ConstructorInjector
public class CdiConstructorInjector
- extends Object
- implements ConstructorInjector
This ConstructorInjector implementation uses CDI's BeanManager to obtain
a contextual instance of a bean.
- Author:
- Jozef Hartinger
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CdiConstructorInjector
public CdiConstructorInjector(Type type,
javax.enterprise.inject.spi.BeanManager manager)
construct
public Object construct()
- Specified by:
construct
in interface ConstructorInjector
construct
public Object construct(HttpRequest request,
HttpResponse response)
throws Failure,
WebApplicationException,
ApplicationException
- Specified by:
construct
in interface ConstructorInjector
- Throws:
Failure
WebApplicationException
ApplicationException
injectableArguments
public Object[] injectableArguments()
- Specified by:
injectableArguments
in interface ConstructorInjector
injectableArguments
public Object[] injectableArguments(HttpRequest request,
HttpResponse response)
throws Failure
- Specified by:
injectableArguments
in interface ConstructorInjector
- Throws:
Failure
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.