Interface BeanContainer.LifecycleOptions

Enclosing interface:
BeanContainer

@SPI({USE,IMPLEMENT,SUPPLY}) public static interface BeanContainer.LifecycleOptions
Acquisition policy read by container implementations. Integrations calling this container directly may implement and supply their own options.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether a cached handle may be reused.
    boolean
    Whether instances have independent, Hibernate-managed lifetimes rather than the contextual lifetimes supplied by the backing container.
  • Method Details

    • canUseCachedReferences

      boolean canUseCachedReferences()
      Whether a cached handle may be reused. When false, bypass reference caches.
    • useJpaCompliantCreation

      boolean useJpaCompliantCreation()
      Whether instances have independent, Hibernate-managed lifetimes rather than the contextual lifetimes supplied by the backing container.