类 ContainerManagedLifecycleStrategy
- java.lang.Object
-
- org.hibernate.resource.beans.container.internal.ContainerManagedLifecycleStrategy
-
- 所有已实现的接口:
BeanLifecycleStrategy
public class ContainerManagedLifecycleStrategy extends Object implements BeanLifecycleStrategy
ABeanLifecycleStrategyto 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 toJpaCompliantLifecycleStrategy.
-
-
字段概要
字段 修饰符和类型 字段 说明 static ContainerManagedLifecycleStrategyINSTANCE
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 <B> ContainedBeanImplementor<B>createBean(Class<B> beanClass, BeanInstanceProducer fallbackProducer, BeanContainer beanContainer)<B> ContainedBeanImplementor<B>createBean(String beanName, Class<B> beanClass, BeanInstanceProducer fallbackProducer, BeanContainer beanContainer)
-
-
-
字段详细资料
-
INSTANCE
public static final ContainerManagedLifecycleStrategy INSTANCE
-
-
方法详细资料
-
createBean
public <B> ContainedBeanImplementor<B> createBean(Class<B> beanClass, BeanInstanceProducer fallbackProducer, BeanContainer beanContainer)
- 指定者:
createBean在接口中BeanLifecycleStrategy
-
createBean
public <B> ContainedBeanImplementor<B> createBean(String beanName, Class<B> beanClass, BeanInstanceProducer fallbackProducer, BeanContainer beanContainer)
- 指定者:
createBean在接口中BeanLifecycleStrategy
-
-