BeanLifecycleStrategy to use when CDI compliance is required
(i.e. when the bean lifecycle is to be managed by the CDI runtime, not the JPA runtime).
The main characteristic of this strategy is that every create/destroy operation is delegated
to the CDI runtime.
In particular, @Singleton-scoped or @ApplicationScoped beans are retrieved from the CDI context,
and are not duplicated, in contrast to JpaCompliantLifecycleStrategy.
| Modifier and Type | Class and Description |
|---|---|
| private abstract static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final ContainerManagedLifecycleStrategy | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public <B> ContainedBeanImplementor | createBean(Class<B> beanClass, BeanInstanceProducer fallbackProducer, BeanContainer beanContainer)
Implements org. |
| public <B> ContainedBeanImplementor | createBean(String beanName, Class<B> beanClass, BeanInstanceProducer fallbackProducer, BeanContainer beanContainer)
Implements org. |
| INSTANCE | back to summary |
|---|---|
| public static final ContainerManagedLifecycleStrategy INSTANCE | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| ContainerManagedLifecycleStrategy | back to summary |
|---|---|
| private ContainerManagedLifecycleStrategy() | |
| createBean | back to summary |
|---|---|
| public <B> ContainedBeanImplementor Implements org.
| |
| createBean | back to summary |
|---|---|
| public <B> ContainedBeanImplementor Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv B | |
| pack-priv BeanManager | |
| pack-priv final Class | |
| pack-priv BeanInstanceProducer | |
| pack-priv Instance |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public B | getBeanInstance()
Implements org. |
| public void | initialize()
Implements org. |
| protected abstract B | |
| public void | release()
Implements org. |
| protected abstract Instance |
| beanInstance | back to summary |
|---|---|
| pack-priv B beanInstance | |
| beanManager | back to summary |
|---|---|
| pack-priv BeanManager beanManager | |
| beanType | back to summary |
|---|---|
| pack-priv final Class<B> beanType | |
| fallbackProducer | back to summary |
|---|---|
| pack-priv BeanInstanceProducer fallbackProducer | |
| instance | back to summary |
|---|---|
| pack-priv Instance<B> instance | |
| AbstractBeanImpl | back to summary |
|---|---|
| private AbstractBeanImpl(Class<B> beanType, BeanInstanceProducer fallbackProducer, BeanManager beanManager) | |
| getBeanInstance | back to summary |
|---|---|
| public B getBeanInstance() Implements org. Doc from org. Get the bean instance producer associated with this container-backed bean
| |
| initialize | back to summary |
|---|---|
| public void initialize() Implements org. Doc from org. Allow the container to force initialize the lifecycle-generated bean
| |
| produceFallbackInstance | back to summary |
|---|---|
| protected abstract B produceFallbackInstance() | |
| release | back to summary |
|---|---|
| public void release() Implements org. Doc from org. Release any resources
| |
| resolveContainerInstance | back to summary |
|---|---|
| protected abstract Instance | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected B | |
| protected Instance |
| BeanImpl | back to summary |
|---|---|
| private BeanImpl(Class<B> beanType, BeanInstanceProducer fallbackProducer, BeanManager beanManager) | |
| produceFallbackInstance | back to summary |
|---|---|
| protected B produceFallbackInstance() Implements abstract org.
| |
| resolveContainerInstance | back to summary |
|---|---|
| protected Instance Implements abstract org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String |
| Access | Constructor and Description |
|---|---|
| private | NamedBeanImpl(String beanName, Class<B> beanType, BeanInstanceProducer fallbackProducer, BeanManager beanManager)
|
| Modifier and Type | Method and Description |
|---|---|
| protected B | |
| protected Instance |
| beanName | back to summary |
|---|---|
| private final String beanName | |
| NamedBeanImpl | back to summary |
|---|---|
| private NamedBeanImpl(String beanName, Class<B> beanType, BeanInstanceProducer fallbackProducer, BeanManager beanManager) | |
| produceFallbackInstance | back to summary |
|---|---|
| protected B produceFallbackInstance() Implements abstract org.
| |
| resolveContainerInstance | back to summary |
|---|---|
| protected Instance Implements abstract org.
| |