Package org.jboss.resteasy.cdi
Class CdiInjectorFactory
- java.lang.Object
-
- org.jboss.resteasy.cdi.CdiInjectorFactory
-
- All Implemented Interfaces:
InjectorFactory
public class CdiInjectorFactory extends Object implements InjectorFactory
- Author:
- Jozef Hartinger
-
-
Field Summary
Fields Modifier and Type Field Description static String
BEAN_MANAGER_ATTRIBUTE_PREFIX
-
Constructor Summary
Constructors Constructor Description CdiInjectorFactory()
CdiInjectorFactory(javax.enterprise.inject.spi.BeanManager manager)
-
Method Summary
-
-
-
Field Detail
-
BEAN_MANAGER_ATTRIBUTE_PREFIX
public static final String BEAN_MANAGER_ATTRIBUTE_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
createParameterExtractor
public ValueInjector createParameterExtractor(Parameter parameter, ResteasyProviderFactory providerFactory)
- Specified by:
createParameterExtractor
in interfaceInjectorFactory
-
createMethodInjector
public MethodInjector createMethodInjector(ResourceLocator method, ResteasyProviderFactory factory)
- Specified by:
createMethodInjector
in interfaceInjectorFactory
-
createPropertyInjector
public PropertyInjector createPropertyInjector(ResourceClass resourceClass, ResteasyProviderFactory providerFactory)
- Specified by:
createPropertyInjector
in interfaceInjectorFactory
-
createConstructor
public ConstructorInjector createConstructor(ResourceConstructor constructor, ResteasyProviderFactory providerFactory)
- Specified by:
createConstructor
in interfaceInjectorFactory
-
createConstructor
public ConstructorInjector createConstructor(Constructor constructor, ResteasyProviderFactory factory)
- Specified by:
createConstructor
in interfaceInjectorFactory
-
cdiConstructor
protected ConstructorInjector cdiConstructor(Class<?> clazz)
-
createPropertyInjector
public PropertyInjector createPropertyInjector(Class resourceClass, ResteasyProviderFactory factory)
- Specified by:
createPropertyInjector
in interfaceInjectorFactory
-
createParameterExtractor
public ValueInjector createParameterExtractor(Class injectTargetClass, AccessibleObject injectTarget, String defaultName, Class type, Type genericType, Annotation[] annotations, ResteasyProviderFactory factory)
- Specified by:
createParameterExtractor
in interfaceInjectorFactory
-
createParameterExtractor
public ValueInjector createParameterExtractor(Class injectTargetClass, AccessibleObject injectTarget, String defaultName, Class type, Type genericType, Annotation[] annotations, boolean useDefault, ResteasyProviderFactory factory)
- Specified by:
createParameterExtractor
in interfaceInjectorFactory
-
lookupBeanManager
protected javax.enterprise.inject.spi.BeanManager lookupBeanManager()
Do a lookup for BeanManager instance. JNDI and ServletContext is searched.- Returns:
- BeanManager instance
-
lookupBeanManagerCDIUtil
public static javax.enterprise.inject.spi.BeanManager lookupBeanManagerCDIUtil()
-
-