improve documentation (Javadoc) of org.hibernate.cfg.AvailableSettings.CDI_BEAN_MANAGER

This commit is contained in:
Steve Ebersole 2017-09-07 12:01:51 -05:00
parent 6ba7420740
commit f653e26a49
1 changed files with 9 additions and 0 deletions

View File

@ -175,6 +175,15 @@ public interface AvailableSettings {
/**
* Used to pass along the CDI BeanManager, if any, to be used.
*
* According to JPA, strictly, the BeanManager should be passed in
* at boot-time and be ready for use at that time. However not all
* environments can do this (WildFly for one). To accommodate such
* environments, Hibernate provides an SPI via
* {@link org.hibernate.jpa.event.spi.jpa.ExtendedBeanManager} that
* can be used to provide delayed BeanManager access. Long story
* short, this setting could be typed as BeanManager or as
* {@link org.hibernate.jpa.event.spi.jpa.ExtendedBeanManager}.
*/
String CDI_BEAN_MANAGER = "javax.persistence.bean.manager";