On Jun 18, 2009, at 8:21 PM, Thiago H. de Paula Figueiredo wrote:
Em Thu, 18 Jun 2009 20:45:39 -0300, Norman Franke <nor...@myasd.com>
escreveu:
I think I figured it out:
@InjectService("PageRenderQueue")
private PageRenderQueue pageRenderQueue;
By the way, very clever way to do it. :) Two comments:
You could just @Inject private PageRenderQueue pageRenderQueue;
@InjectService is meant to be used when there is more than one
service instance for a given type.
In addition, it is not advisable to use anything inside
org.apache.tapestry5.internal, because it was created by Howard
specifically to hold anything that Tapestry won't guarantee backward
compatibility. Some internal classes were even removed between
releases, but not a single not internal one. ;)
I had to do a lot of greping to find all that. Works, but seems like
it should be easier. I'd love to find a non-internal way of doing
this, but there doesn't appear to be one.
Norman Franke
Answering Service for Directors, Inc.
www.myasd.com