Class ManagedBeanRegistryImpl
- java.lang.Object
-
- org.hibernate.resource.beans.internal.ManagedBeanRegistryImpl
-
- All Implemented Interfaces:
Serializable
,BeanContainer.LifecycleOptions
,ManagedBeanRegistry
,Service
,Stoppable
public class ManagedBeanRegistryImpl extends Object implements ManagedBeanRegistry, BeanContainer.LifecycleOptions, Stoppable
Abstract support (template pattern) forManagedBeanRegistry
implementations- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ManagedBeanRegistryImpl(BeanContainer beanContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canUseCachedReferences()
<T> ManagedBean<T>
getBean(Class<T> beanClass)
Get a bean reference by class.<T> ManagedBean<T>
getBean(Class<T> beanClass, BeanInstanceProducer fallbackBeanInstanceProducer)
Get a bean reference by class with an explicit fallback bean instance producer.<T> ManagedBean<T>
getBean(String beanName, Class<T> beanContract)
Get a bean reference by name and contract.<T> ManagedBean<T>
getBean(String beanName, Class<T> beanContract, BeanInstanceProducer fallbackBeanInstanceProducer)
Get a bean reference by name and contract with an explicit fallback bean instance producer.BeanContainer
getBeanContainer()
Get a reference to the underlying BeanContainer.void
stop()
Stop phase notificationboolean
useJpaCompliantCreation()
-
-
-
Constructor Detail
-
ManagedBeanRegistryImpl
public ManagedBeanRegistryImpl(BeanContainer beanContainer)
-
-
Method Detail
-
getBeanContainer
public BeanContainer getBeanContainer()
Description copied from interface:ManagedBeanRegistry
Get a reference to the underlying BeanContainer. May returnnull
indicating that no back-end container has been configured- Specified by:
getBeanContainer
in interfaceManagedBeanRegistry
-
canUseCachedReferences
public boolean canUseCachedReferences()
- Specified by:
canUseCachedReferences
in interfaceBeanContainer.LifecycleOptions
-
useJpaCompliantCreation
public boolean useJpaCompliantCreation()
- Specified by:
useJpaCompliantCreation
in interfaceBeanContainer.LifecycleOptions
-
getBean
public <T> ManagedBean<T> getBean(Class<T> beanClass)
Description copied from interface:ManagedBeanRegistry
Get a bean reference by class.- Specified by:
getBean
in interfaceManagedBeanRegistry
-
getBean
public <T> ManagedBean<T> getBean(Class<T> beanClass, BeanInstanceProducer fallbackBeanInstanceProducer)
Description copied from interface:ManagedBeanRegistry
Get a bean reference by class with an explicit fallback bean instance producer.- Specified by:
getBean
in interfaceManagedBeanRegistry
-
getBean
public <T> ManagedBean<T> getBean(String beanName, Class<T> beanContract)
Description copied from interface:ManagedBeanRegistry
Get a bean reference by name and contract.- Specified by:
getBean
in interfaceManagedBeanRegistry
-
getBean
public <T> ManagedBean<T> getBean(String beanName, Class<T> beanContract, BeanInstanceProducer fallbackBeanInstanceProducer)
Description copied from interface:ManagedBeanRegistry
Get a bean reference by name and contract with an explicit fallback bean instance producer.- Specified by:
getBean
in interfaceManagedBeanRegistry
-
-