@ApplicationScoped public class ApplicationScopedProducer extends Object
| Constructor and Description |
|---|
ApplicationScopedProducer() |
| Modifier and Type | Method and Description |
|---|---|
void |
commitAndClose(javax.persistence.EntityManager em) |
javax.persistence.EntityManager |
getEntityManager() |
javax.persistence.EntityManagerFactory |
getEntityManagerFactory() |
org.kie.internal.task.api.UserGroupCallback |
produceUserGroupCallback() |
@ApplicationScoped @Produces public org.kie.internal.task.api.UserGroupCallback produceUserGroupCallback()
@Produces public javax.persistence.EntityManagerFactory getEntityManagerFactory()
@Produces @ApplicationScoped public javax.persistence.EntityManager getEntityManager()
@ApplicationScoped
public void commitAndClose(@Disposes
javax.persistence.EntityManager em)
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.