org.jboss.resteasy.cdi
Class CdiInjectorFactory

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

public class CdiInjectorFactory
extends Object
implements InjectorFactory

Author:
Jozef Hartinger

Field Summary
static String BEAN_MANAGER_ATTRIBUTE_PREFIX
           
 
Constructor Summary
CdiInjectorFactory()
           
 
Method Summary
 ConstructorInjector createConstructor(Constructor constructor)
           
 MethodInjector createMethodInjector(Class root, Method method)
           
 ValueInjector createParameterExtractor(Class injectTargetClass, AccessibleObject injectTarget, Class type, Type genericType, Annotation[] annotations)
           
 ValueInjector createParameterExtractor(Class injectTargetClass, AccessibleObject injectTarget, Class type, Type genericType, Annotation[] annotations, boolean useDefault)
           
 PropertyInjector createPropertyInjector(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
 

Field Detail

BEAN_MANAGER_ATTRIBUTE_PREFIX

public static final String BEAN_MANAGER_ATTRIBUTE_PREFIX
See Also:
Constant Field Values
Constructor Detail

CdiInjectorFactory

public CdiInjectorFactory()
Method Detail

createConstructor

public ConstructorInjector createConstructor(Constructor constructor)
Specified by:
createConstructor in interface InjectorFactory

createMethodInjector

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

createPropertyInjector

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

createParameterExtractor

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

createParameterExtractor

public ValueInjector createParameterExtractor(Class injectTargetClass,
                                              AccessibleObject injectTarget,
                                              Class type,
                                              Type genericType,
                                              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 © 2011. All Rights Reserved.