On Mon, 10 Oct 2011 18:14:01 -0300, Tony Nelson <tnel...@starpoint.com>
wrote:
On Oct 10, 2011, at 4:58 PM, Thiago H. de Paula Figueiredo wrote:
On Mon, 10 Oct 2011 17:18:59 -0300, Tony Nelson <tnel...@starpoint.com>
wrote:
How is it possible to access a service registered in AppModule#bind
from an object created outside of Tapestry's control?
You can get the Registry from
servletContext.getAttribute(TapestryFilter.REGISTRY_CONTEXT_NAME) and
then use one of the getService() methods.
Forgive my ignorance, but in an object that was created either via "new"
or someClass.newInstance() how would I have access to the servletContext?
In this scenario, are you in a web app or not?
--
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