Class QuarkusManagedBeanRegistry

  • All Implemented Interfaces:
    Serializable, org.hibernate.resource.beans.spi.ManagedBeanRegistry, org.hibernate.service.Service

    public class QuarkusManagedBeanRegistry
    extends Object
    implements org.hibernate.resource.beans.spi.ManagedBeanRegistry
    A replacement for ManagedBeanRegistryImpl that:
    • forces the use of QuarkusManagedBeanRegistry, which works with Arc and respects configured scopes when instantiating CDI beans.
    • is not stoppable and leaves the release of beans to QuarkusArcBeanContainer, so that the bean container and its beans can be reused between static init and runtime init, even though we stop Hibernate ORM services after the end of static init.
    See Also:
    QuarkusArcBeanContainer, Serialized Form
    • Constructor Detail

      • QuarkusManagedBeanRegistry

        public QuarkusManagedBeanRegistry()
    • Method Detail

      • getBean

        public <T> org.hibernate.resource.beans.spi.ManagedBean<T> getBean​(Class<T> beanClass)
        Specified by:
        getBean in interface org.hibernate.resource.beans.spi.ManagedBeanRegistry
      • getBean

        public <T> org.hibernate.resource.beans.spi.ManagedBean<T> getBean​(String beanName,
                                                                           Class<T> beanContract)
        Specified by:
        getBean in interface org.hibernate.resource.beans.spi.ManagedBeanRegistry
      • getBeanContainer

        public org.hibernate.resource.beans.container.spi.BeanContainer getBeanContainer()
        Specified by:
        getBeanContainer in interface org.hibernate.resource.beans.spi.ManagedBeanRegistry