On Thu, 08 Sep 2011 12:59:09 -0300, Wechsung, Wulf <wulf.wechs...@sap.com>
wrote:
Hello Guys,
Hi!
I'm wondering, in a Tapestry Webapp scenario, how is it possible to
obtain a reference to the IOC Registry for a (or all) currently loaded
module(s). I know about RegistryBuilder but build() says to only call it
once.
In a webapp, the Registry is available from the ServletContext as the
TapestryFilter.REGISTRY_CONTEXT_NAME attribute.
Looking at the source code, it does not seem to be caching the
Registries.
Why do you think that? TapestryFilter creates just one Registry instance
and uses it afterwards.
Here is some background on what I'm trying to do:
I need to make a class that implements some stateless validation logic
that uses a service that is bound and configured in my tapestry web
module. This class cannot be itself under tapestry control because it
's being instantiated by other, also non tapestry code.
You can turn it into a Tapestry-IoC service by creating a buildXXX method
in a Tapestry-IoC module.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org