You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Nicolas Barrera <nb...@gmail.com> on 2013/02/04 16:08:53 UTC

@Inject or @InjectService?

Hi,

I was in trouble with an Alias service construction error due to recursion
and found in the list Howard saying that injecting the parameter using
@InjectService instead of @Inject would solve it... and in fact it did!

So now I find myself guessing which would be the difference between these
two annotations...

I think I would keep using @Inject except for special cases I need
@InjectService but I don't know which would be those special cases.

Thank you,

cheers...

Nicolás.-

Re: @Inject or @InjectService?

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Mon, 04 Feb 2013 13:08:53 -0200, Nicolas Barrera <nb...@gmail.com>  
wrote:

> Hi,

Hi!

> So now I find myself guessing which would be the difference between these
> two annotations...

@Inject is by service type, @InjectService is by service id.

-- 
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org