Search in sources :

Example 1 with EntityManagerManagerImpl

use of org.apache.tapestry5.internal.jpa.EntityManagerManagerImpl in project tapestry-5 by apache.

the class JpaModule method buildEntityManagerManager.

@Scope(ScopeConstants.PERTHREAD)
public static EntityManagerManager buildEntityManagerManager(final EntityManagerSource entityManagerSource, final PerthreadManager perthreadManager, final Logger logger) {
    final EntityManagerManagerImpl service = new EntityManagerManagerImpl(entityManagerSource, logger);
    perthreadManager.addThreadCleanupListener(service);
    return service;
}
Also used : EntityManagerManagerImpl(org.apache.tapestry5.internal.jpa.EntityManagerManagerImpl) Scope(org.apache.tapestry5.ioc.annotations.Scope)

Aggregations

EntityManagerManagerImpl (org.apache.tapestry5.internal.jpa.EntityManagerManagerImpl)1 Scope (org.apache.tapestry5.ioc.annotations.Scope)1