This is already clear.
Stuff in org.apache.tapestry5.services,
org.apache.tapestry5.ioc.services, etc. can be injected. (For that
matter, org.apache.tapestry5.internal.services classes can be injected
as well, but that's not advised). Anything else can't be injected
into other services.
ComonentResources is in package org.apache.tapestry5. Clear /not/ a
service.
What's more is that it makes absolutely no sense to inject into a
service; ComponentResource for which component, in particular?
Robert
On Mar 21, 2009, at 3/216:05 AM , Ville Virtanen wrote:
It would be great if the documentation (javadoc) for an example
would state
this clearly in every service interface documentation IF the service
cannot
be used in another service.
Now you just need to know which services are "special".
- Ville
Thiago H. de Paula Figueiredo wrote:
On Fri, Mar 20, 2009 at 10:53 AM, Andreas Pardeike <a...@fsys.se>
wrote:
Thiago,
Hi!
Thinking further, ComponentResources is not a service, but something
that has special injection logic that only handles components, pages
and mixins. It is a way of a component, page or mixin to access all
the methods and properties Tapestry adds to them. Thus, I don't know
how to inject it in a service.
You can file a JIRA asking for some way of doing that.
--
Thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
--
View this message in context:
http://www.nabble.com/5.0.18---5.1.0.1-upgrade-problems-tp22619066p22634872.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org