Hi,

In my applications Module-class I have a method like below for creating
a specific kind of JPA EntityManager.

    @Scope(ScopeConstants.PERTHREAD)
    public static EntityManager buildWebshopEntityManager(
            @InjectService("WebshopEntityManagerFactory")
JPAEntityManagerFactory entityManagerFactory,
            PropertyShadowBuilder propertyShadowBuilder) {
        return propertyShadowBuilder.build(entityManagerFactory,
"entityManager", EntityManager.class);
    }

Is it possible to override this WebshopEntityManager with an
AliasOverride in any way for unit testing?

I'm using Tapestry 5.1.0.5.

Best regards,
Joakim



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to