org.jboss.resteasy.cdi
Class CdiInjectorFactory

java.lang.Object
  extended by org.jboss.resteasy.cdi.CdiInjectorFactory
All Implemented Interfaces:
InjectorFactory

public class CdiInjectorFactory
extends java.lang.Object
implements InjectorFactory

Author:
Jozef Hartinger

Constructor Summary
CdiInjectorFactory()
           
 
Method Summary
 ConstructorInjector createConstructor(java.lang.reflect.Constructor constructor)
           
 MethodInjector createMethodInjector(java.lang.Class root, java.lang.reflect.Method method)
           
 ValueInjector createParameterExtractor(java.lang.Class injectTargetClass, java.lang.reflect.AccessibleObject injectTarget, java.lang.Class type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations)
           
 ValueInjector createParameterExtractor(java.lang.Class injectTargetClass, java.lang.reflect.AccessibleObject injectTarget, java.lang.Class type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, boolean useDefault)
           
 PropertyInjector createPropertyInjector(java.lang.Class resourceClass)
           
protected  javax.enterprise.inject.spi.BeanManager lookupBeanManager()
          Do a lookup for BeanManager instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CdiInjectorFactory

public CdiInjectorFactory()
Method Detail

createConstructor

public ConstructorInjector createConstructor(java.lang.reflect.Constructor constructor)
Specified by:
createConstructor in interface InjectorFactory

createMethodInjector

public MethodInjector createMethodInjector(java.lang.Class root,
                                           java.lang.reflect.Method method)
Specified by:
createMethodInjector in interface InjectorFactory

createPropertyInjector

public PropertyInjector createPropertyInjector(java.lang.Class resourceClass)
Specified by:
createPropertyInjector in interface InjectorFactory

createParameterExtractor

public ValueInjector createParameterExtractor(java.lang.Class injectTargetClass,
                                              java.lang.reflect.AccessibleObject injectTarget,
                                              java.lang.Class type,
                                              java.lang.reflect.Type genericType,
                                              java.lang.annotation.Annotation[] annotations)
Specified by:
createParameterExtractor in interface InjectorFactory

createParameterExtractor

public ValueInjector createParameterExtractor(java.lang.Class injectTargetClass,
                                              java.lang.reflect.AccessibleObject injectTarget,
                                              java.lang.Class type,
                                              java.lang.reflect.Type genericType,
                                              java.lang.annotation.Annotation[] annotations,
                                              boolean useDefault)
Specified by:
createParameterExtractor in interface InjectorFactory

lookupBeanManager

protected javax.enterprise.inject.spi.BeanManager lookupBeanManager()
Do a lookup for BeanManager instance. JNDI and ServletContext is searched.

Returns:
BeanManager instance


Copyright © 2010. All Rights Reserved.