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) forManagedBeanRegistryimplementations- 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 booleancanUseCachedReferences()<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.BeanContainergetBeanContainer()Get a reference to the underlying BeanContainer.voidstop()Stop phase notificationbooleanuseJpaCompliantCreation()
-
-
-
Constructor Detail
-
ManagedBeanRegistryImpl
public ManagedBeanRegistryImpl(BeanContainer beanContainer)
-
-
Method Detail
-
getBeanContainer
public BeanContainer getBeanContainer()
Description copied from interface:ManagedBeanRegistryGet a reference to the underlying BeanContainer. May returnnullindicating that no back-end container has been configured- Specified by:
getBeanContainerin interfaceManagedBeanRegistry
-
canUseCachedReferences
public boolean canUseCachedReferences()
- Specified by:
canUseCachedReferencesin interfaceBeanContainer.LifecycleOptions
-
useJpaCompliantCreation
public boolean useJpaCompliantCreation()
- Specified by:
useJpaCompliantCreationin interfaceBeanContainer.LifecycleOptions
-
getBean
public <T> ManagedBean<T> getBean(Class<T> beanClass)
Description copied from interface:ManagedBeanRegistryGet a bean reference by class.- Specified by:
getBeanin interfaceManagedBeanRegistry
-
getBean
public <T> ManagedBean<T> getBean(Class<T> beanClass, BeanInstanceProducer fallbackBeanInstanceProducer)
Description copied from interface:ManagedBeanRegistryGet a bean reference by class with an explicit fallback bean instance producer.- Specified by:
getBeanin interfaceManagedBeanRegistry
-
getBean
public <T> ManagedBean<T> getBean(String beanName, Class<T> beanContract)
Description copied from interface:ManagedBeanRegistryGet a bean reference by name and contract.- Specified by:
getBeanin interfaceManagedBeanRegistry
-
getBean
public <T> ManagedBean<T> getBean(String beanName, Class<T> beanContract, BeanInstanceProducer fallbackBeanInstanceProducer)
Description copied from interface:ManagedBeanRegistryGet a bean reference by name and contract with an explicit fallback bean instance producer.- Specified by:
getBeanin interfaceManagedBeanRegistry
-
-