Class AbstractCdiBeanContainer
- java.lang.Object
-
- org.hibernate.resource.beans.container.spi.AbstractCdiBeanContainer
-
- All Implemented Interfaces:
org.hibernate.resource.beans.container.internal.CdiBasedBeanContainer,BeanContainer,Stoppable
public abstract class AbstractCdiBeanContainer extends java.lang.Object implements org.hibernate.resource.beans.container.internal.CdiBasedBeanContainer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.resource.beans.container.spi.BeanContainer
BeanContainer.LifecycleOptions
-
-
Constructor Summary
Constructors Constructor Description AbstractCdiBeanContainer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract <B> ContainedBeanImplementor<B>createBean(java.lang.Class<B> beanType, BeanLifecycleStrategy lifecycleStrategy, BeanInstanceProducer fallbackProducer)protected abstract <B> ContainedBeanImplementor<B>createBean(java.lang.String name, java.lang.Class<B> beanType, BeanLifecycleStrategy lifecycleStrategy, BeanInstanceProducer fallbackProducer)protected voidforEachBean(java.util.function.Consumer<ContainedBeanImplementor<?>> consumer)<B> ContainedBean<B>getBean(java.lang.Class<B> beanType, BeanContainer.LifecycleOptions lifecycleOptions, BeanInstanceProducer fallbackProducer)<B> ContainedBean<B>getBean(java.lang.String beanName, java.lang.Class<B> beanType, BeanContainer.LifecycleOptions lifecycleOptions, BeanInstanceProducer fallbackProducer)voidstop()Stop phase notification
-
-
-
Method Detail
-
getBean
public <B> ContainedBean<B> getBean(java.lang.Class<B> beanType, BeanContainer.LifecycleOptions lifecycleOptions, BeanInstanceProducer fallbackProducer)
- Specified by:
getBeanin interfaceBeanContainer
-
createBean
protected abstract <B> ContainedBeanImplementor<B> createBean(java.lang.Class<B> beanType, BeanLifecycleStrategy lifecycleStrategy, BeanInstanceProducer fallbackProducer)
-
getBean
public <B> ContainedBean<B> getBean(java.lang.String beanName, java.lang.Class<B> beanType, BeanContainer.LifecycleOptions lifecycleOptions, BeanInstanceProducer fallbackProducer)
- Specified by:
getBeanin interfaceBeanContainer
-
createBean
protected abstract <B> ContainedBeanImplementor<B> createBean(java.lang.String name, java.lang.Class<B> beanType, BeanLifecycleStrategy lifecycleStrategy, BeanInstanceProducer fallbackProducer)
-
forEachBean
protected final void forEachBean(java.util.function.Consumer<ContainedBeanImplementor<?>> consumer)
-
-