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