Top Description Interfaces Classes
[default module]

Package org.hibernate.resource.beans.spi


Defines an SPI for integration with CDI-like containers.

Because CDI may or may not be available, much of this support is directed toward abstracting/encapsulating CDI.

The central contracts here from a client point of view are org.hibernate.resource.beans.spi.ManagedBean and org.hibernate.resource.beans.spi.ManagedBeanRegistry, which may or may not really be backed by CDI.

Interface Summary

Modifier and TypeInterface and Description
public interface
BeanInstanceProducer

Contract for producing a bean instance

public interface
ManagedBean<T>

Generalized contract for a (CDI or Spring) "managed bean" as seen by Hibernate

public interface
ManagedBeanRegistry

A registry for ManagedBean instances.

Class Summary

Modifier and TypeClass and Description
public class
ManagedBeanRegistryInitiator

Hibernate's standard initializer for the ManagedBeanRegistry service.

public class
ProvidedInstanceManagedBeanImpl<T>

ManagedBean implementation for cases where we have been handed an actual instance to use.