Top Description Fields Constructors Methods
org.eclipse.persistence.internal.sessions.cdi

public Class InjectionManagerImpl<T>

extends Object
implements InjectionManager<T>
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.internal.sessions.cdi.InjectionManager
Imports
java.util.HashMap, .HashSet, .Map, .Set, jakarta.enterprise.context.spi.CreationalContext, jakarta.enterprise.inject.spi.AnnotatedType, .BeanManager, .InjectionTarget, javax.naming.Context, .InitialContext, .NamingException, org.eclipse.persistence.internal.sessions.AbstractSession, org.eclipse.persistence.logging.SessionLog

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

Modifier and TypeField and Description
protected BeanManager
protected CreationalContext<T>
protected final Map<T, InjectionTarget<T>>

Constructor Summary

AccessConstructor and Description
public
InjectionManagerImpl(Object beanManagerInstance)

Method Summary

Modifier and TypeMethod and Description
public void
public T

Returns:

New instance of bean class with injected content.
createManagedBeanAndInjectDependencies
(final Class<T>
bean class to be instantiated.
managedBeanClass
)

Implements org.eclipse.persistence.internal.sessions.cdi.InjectionManager.createManagedBeanAndInjectDependencies.

Creates an instance of the CDI managed bean.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

beanManagerback to summary
protected BeanManager beanManager
creationalContextback to summary
protected CreationalContext<T> creationalContext
injectionTargetsback to summary
protected final Map<T, InjectionTarget<T>> injectionTargets

Constructor Detail

InjectionManagerImplback to summary
public InjectionManagerImpl(Object beanManagerInstance) throws NamingException

Method Detail

cleanUpback to summary
public void cleanUp(AbstractSession session)

Implements org.eclipse.persistence.internal.sessions.cdi.InjectionManager.cleanUp.

Annotations
@Override
createManagedBeanAndInjectDependenciesback to summary
public T createManagedBeanAndInjectDependencies(final Class<T> managedBeanClass) throws NamingException

Implements org.eclipse.persistence.internal.sessions.cdi.InjectionManager.createManagedBeanAndInjectDependencies.

Creates an instance of the CDI managed bean. Calls CDI API to inject into the bean.

Parameters
managedBeanClass:Class<T>

bean class to be instantiated.

Returns:T

New instance of bean class with injected content.

Annotations
@Override