Class AbstractCdiBeanContainer
- java.lang.Object
-
- org.hibernate.resource.beans.container.spi.AbstractCdiBeanContainer
-
- All Implemented Interfaces:
CdiBasedBeanContainer
,BeanContainer
,Stoppable
- Direct Known Subclasses:
CdiBeanContainerDelayedAccessImpl
,CdiBeanContainerExtendedAccessImpl
,CdiBeanContainerImmediateAccessImpl
public abstract class AbstractCdiBeanContainer extends Object implements 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(Class<B> beanType, BeanLifecycleStrategy lifecycleStrategy, BeanInstanceProducer fallbackProducer)
protected abstract <B> ContainedBeanImplementor<B>
createBean(String name, Class<B> beanType, BeanLifecycleStrategy lifecycleStrategy, BeanInstanceProducer fallbackProducer)
protected void
forEachBean(Consumer<ContainedBeanImplementor<?>> consumer)
<B> ContainedBean<B>
getBean(Class<B> beanType, BeanContainer.LifecycleOptions lifecycleOptions, BeanInstanceProducer fallbackProducer)
<B> ContainedBean<B>
getBean(String beanName, Class<B> beanType, BeanContainer.LifecycleOptions lifecycleOptions, BeanInstanceProducer fallbackProducer)
void
stop()
Stop phase notification-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.resource.beans.container.internal.CdiBasedBeanContainer
getUsableBeanManager
-
-
-
-
Method Detail
-
getBean
public <B> ContainedBean<B> getBean(Class<B> beanType, BeanContainer.LifecycleOptions lifecycleOptions, BeanInstanceProducer fallbackProducer)
- Specified by:
getBean
in interfaceBeanContainer
-
createBean
protected abstract <B> ContainedBeanImplementor<B> createBean(Class<B> beanType, BeanLifecycleStrategy lifecycleStrategy, BeanInstanceProducer fallbackProducer)
-
getBean
public <B> ContainedBean<B> getBean(String beanName, Class<B> beanType, BeanContainer.LifecycleOptions lifecycleOptions, BeanInstanceProducer fallbackProducer)
- Specified by:
getBean
in interfaceBeanContainer
-
createBean
protected abstract <B> ContainedBeanImplementor<B> createBean(String name, Class<B> beanType, BeanLifecycleStrategy lifecycleStrategy, BeanInstanceProducer fallbackProducer)
-
forEachBean
protected final void forEachBean(Consumer<ContainedBeanImplementor<?>> consumer)
-
-