Top Description Inners Fields Constructors Methods
org.hibernate.resource.beans.internal

public Class ManagedBeanRegistryImpl

extends Object
implements ManagedBeanRegistry, LifecycleOptions, Stoppable
Class Inheritance
All Implemented Interfaces
org.hibernate.service.spi.Stoppable, org.hibernate.resource.beans.container.spi.BeanContainer.LifecycleOptions, org.hibernate.resource.beans.spi.ManagedBeanRegistry, org.hibernate.service.Service, java.io.Serializable
Imports
java.util.HashMap, .Map, org.hibernate.resource.beans.container.spi.BeanContainer, .ContainedBean, .FallbackContainedBean, org.hibernate.resource.beans.spi.ManagedBean, .ManagedBeanRegistry, org.hibernate.service.spi.Stoppable

Abstract support (template pattern) for ManagedBeanRegistry implementations
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final BeanContainer
private Map<String, ManagedBean<?>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public <T> ManagedBean<T>
getBean(Class<T> beanClass)

Implements org.hibernate.resource.beans.spi.ManagedBeanRegistry.getBean.

Get a bean reference by class.
public <T> ManagedBean<T>
getBean(String beanName, Class<T> beanContract)

Implements org.hibernate.resource.beans.spi.ManagedBeanRegistry.getBean.

Get a bean reference by name and contract.
public BeanContainer
getBeanContainer()

Implements org.hibernate.resource.beans.spi.ManagedBeanRegistry.getBeanContainer.

Get a reference to the underlying BeanContainer.
public void
stop()

Implements org.hibernate.service.spi.Stoppable.stop.

Stop phase notification
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

beanContainerback to summary
private final BeanContainer beanContainer
registrationsback to summary
private Map<String, ManagedBean<?>> registrations

Constructor Detail

ManagedBeanRegistryImplback to summary
public ManagedBeanRegistryImpl(BeanContainer beanContainer)

Method Detail

canUseCachedReferencesback to summary
public boolean canUseCachedReferences()

Implements org.hibernate.resource.beans.container.spi.BeanContainer.LifecycleOptions.canUseCachedReferences.

Annotations
@Override
getBeanback to summary
public <T> ManagedBean<T> getBean(Class<T> beanClass)

Implements org.hibernate.resource.beans.spi.ManagedBeanRegistry.getBean.

Doc from org.hibernate.resource.beans.spi.ManagedBeanRegistry.getBean.

Get a bean reference by class.

Annotations
@Override
@SuppressWarnings:unchecked
getBeanback to summary
public <T> ManagedBean<T> getBean(String beanName, Class<T> beanContract)

Implements org.hibernate.resource.beans.spi.ManagedBeanRegistry.getBean.

Doc from org.hibernate.resource.beans.spi.ManagedBeanRegistry.getBean.

Get a bean reference by name and contract.

Annotations
@Override
@SuppressWarnings:unchecked
getBeanContainerback to summary
public BeanContainer getBeanContainer()

Implements org.hibernate.resource.beans.spi.ManagedBeanRegistry.getBeanContainer.

Doc from org.hibernate.resource.beans.spi.ManagedBeanRegistry.getBeanContainer.

Get a reference to the underlying BeanContainer. May return null indicating that no back-end container has been configured

Annotations
@Override
stopback to summary
public void stop()

Implements org.hibernate.service.spi.Stoppable.stop.

Doc from org.hibernate.service.spi.Stoppable.stop.

Stop phase notification

Annotations
@Override
useJpaCompliantCreationback to summary
public boolean useJpaCompliantCreation()

Implements org.hibernate.resource.beans.container.spi.BeanContainer.LifecycleOptions.useJpaCompliantCreation.

Annotations
@Override
org.hibernate.resource.beans.internal back to summary

private Class ManagedBeanRegistryImpl.ContainedBeanManagedBeanAdapter<B>

extends Object
implements ManagedBean<B>
Class Inheritance
  • java.lang.Object
  • org.hibernate.resource.beans.internal.ManagedBeanRegistryImpl.ContainedBeanManagedBeanAdapter
All Implemented Interfaces
org.hibernate.resource.beans.spi.ManagedBean

Field Summary

Modifier and TypeField and Description
private final Class<B>
private final ContainedBean<B>

Constructor Summary

AccessConstructor and Description
private
ContainedBeanManagedBeanAdapter(Class<B> beanClass, ContainedBean<B> containedBean)

Method Summary

Modifier and TypeMethod and Description
public Class<B>
public B
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

beanClassback to summary
private final Class<B> beanClass
containedBeanback to summary
private final ContainedBean<B> containedBean

Constructor Detail

ContainedBeanManagedBeanAdapterback to summary
private ContainedBeanManagedBeanAdapter(Class<B> beanClass, ContainedBean<B> containedBean)

Method Detail

getBeanClassback to summary
public Class<B> getBeanClass()

Implements org.hibernate.resource.beans.spi.ManagedBean.getBeanClass.

Doc from org.hibernate.resource.beans.spi.ManagedBean.getBeanClass.

The bean Java type

Annotations
@Override
getBeanInstanceback to summary
public B getBeanInstance()

Implements org.hibernate.resource.beans.spi.ManagedBean.getBeanInstance.

Doc from org.hibernate.resource.beans.spi.ManagedBean.getBeanInstance.

The bean reference

Annotations
@Override