RESTEasy CDI integration module 2.3.6.Final-redhat-1

org.jboss.resteasy.cdi
Class CdiPropertyInjector

java.lang.Object
  extended by org.jboss.resteasy.cdi.CdiPropertyInjector
All Implemented Interfaces:
PropertyInjector

public class CdiPropertyInjector
extends Object
implements PropertyInjector

JAX-RS property injection is performed twice on CDI Beans. Firstly by the JaxrsInjectionTarget wrapper and then again by RESTEasy (which operates on Weld proxies instead of the underlying instances). To eliminate this, we enabled the injector only for non-CDI beans (JAX-RS components outside of BDA) or CDI components that are not JAX-RS components (i.e. @Form objects).

Author:
Jozef Hartinger

Constructor Summary
CdiPropertyInjector(PropertyInjector delegate, Class<?> clazz, Map<Class<?>,Type> sessionBeanInterface, javax.enterprise.inject.spi.BeanManager manager)
           
 
Method Summary
 void inject(HttpRequest request, HttpResponse response, Object target)
           
 void inject(Object target)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CdiPropertyInjector

public CdiPropertyInjector(PropertyInjector delegate,
                           Class<?> clazz,
                           Map<Class<?>,Type> sessionBeanInterface,
                           javax.enterprise.inject.spi.BeanManager manager)
Method Detail

inject

public void inject(Object target)
Specified by:
inject in interface PropertyInjector

inject

public void inject(HttpRequest request,
                   HttpResponse response,
                   Object target)
            throws Failure,
                   WebApplicationException,
                   ApplicationException
Specified by:
inject in interface PropertyInjector
Throws:
Failure
WebApplicationException
ApplicationException

toString

public String toString()
Overrides:
toString in class Object

RESTEasy CDI integration module 2.3.6.Final-redhat-1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.