Module org.eclipse.persistence.core
Class InjectionManagerImpl<T>
java.lang.Object
org.eclipse.persistence.internal.sessions.cdi.InjectionManagerImpl<T>
- All Implemented Interfaces:
InjectionManager<T>
Manages calls to CDI to inject into managed beans
This class will be created reflectively to avoid dependencies on CDI classes in environments
that do not support CDI
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BeanManager
protected CreationalContext
<T> protected final Map
<T, InjectionTarget<T>> Fields inherited from interface org.eclipse.persistence.internal.sessions.cdi.InjectionManager
DEFAULT_CDI_INJECTION_MANAGER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanUp
(AbstractSession session) createManagedBeanAndInjectDependencies
(Class<T> managedBeanClass) Creates an instance of the CDI managed bean.
-
Field Details
-
beanManager
-
creationalContext
-
injectionTargets
-
-
Constructor Details
-
InjectionManagerImpl
- Throws:
NamingException
-
-
Method Details
-
createManagedBeanAndInjectDependencies
Creates an instance of the CDI managed bean. Calls CDI API to inject into the bean.- Specified by:
createManagedBeanAndInjectDependencies
in interfaceInjectionManager<T>
- Parameters:
managedBeanClass
- bean class to be instantiated.- Returns:
- New instance of bean class with injected content.
- Throws:
NamingException
-
cleanUp
- Specified by:
cleanUp
in interfaceInjectionManager<T>
-