Class ContainerManagedLifecycleStrategy

  • All Implemented Interfaces:

    public class ContainerManagedLifecycleStrategy
    extends Object
    implements BeanLifecycleStrategy
    A 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.