You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Joakim Olsson <ar...@lingonpaj.com> on 2009/06/13 18:31:52 UTC
Using AliasOverride for services which already are aliases?
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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org