« Return to Thread: Override an IoC service

Re: Override an IoC service

by nille hammer :: Rate this Message:

Reply to Author | View in Thread

Hi Peter,

Isn't this a question of  disambiguation of Services either with ids or with the@Local annotation as described here: http://tapestry.apache.org/tapestry5.1/tapestry-ioc/service.html ? Or did I get lost somewhere?

Regards, nillehammer

==
http://www.winfonet.eu

----- original Nachricht --------

Betreff: Override an IoC service
Gesendet: Mo, 29. Jun 2009
Von: Peter Stavrinides<P.Stavrinides@...>

> Hi,
>
> I have recently introduced a multiple IoC module structure into my web
> applications, so I have a core web module and then application specific
> modules separately, and now I am getting the following error:
> ERROR - Service interface com.albourne.web.interfaces.ISiteError is matched
> by 2 services: CoreError, SiteError.
>
> I have introduced these changes mostly for testing purposes... its not a big
> problem as I can simply remove the offending service from the shared core
> and provide an implementation of it in each application specific module, but
> it got me wandering about this issue on a larger scale, is it possible to
> override a service? if not would such a feature be useful? How do others
> deal with this, using service decoration potentially?
>
> Kind regards,
> Peter
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

--- original Nachricht Ende ----


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

 « Return to Thread: Override an IoC service