Class EntityManagerFactoryHolderImpl
- java.lang.Object
-
- com.blazebit.persistence.examples.showcase.runner.cdi.bean.EntityManagerFactoryHolderImpl
-
- All Implemented Interfaces:
com.blazebit.persistence.examples.showcase.base.bean.EntityManagerFactoryHolder
@ApplicationScoped public class EntityManagerFactoryHolderImpl extends Object implements com.blazebit.persistence.examples.showcase.base.bean.EntityManagerFactoryHolder
Workaround for WELD-2245 which prevents the use of @ApplicationScoped for EntityManagerFactory directly- Since:
- 1.2.0
- Author:
- Christian Beikov
-
-
Constructor Summary
Constructors Constructor Description EntityManagerFactoryHolderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()javax.persistence.EntityManagerFactorygetEntityManagerFactory()voidinit()
-
-
-
Method Detail
-
init
@PostConstruct public void init()
-
destroy
@PreDestroy public void destroy()
-
getEntityManagerFactory
@Produces public javax.persistence.EntityManagerFactory getEntityManagerFactory()
- Specified by:
getEntityManagerFactoryin interfacecom.blazebit.persistence.examples.showcase.base.bean.EntityManagerFactoryHolder
-
-