On Sat, Oct 19, 2013 at 5:15 PM, Martin Kersten <[email protected] > wrote:
> Cool. Thanks. I was looking for the documentation but did not found the > correct hint. I only remembered from the code reading. > You could infer that by thinking that, except for injection by service id, injection is done by type. > Do I also remember correctly that tapestry just do not throw an exception > when there are two possible matches but use the nearest matching one > (preferable that what is bind) > Everything said in the paragraph above is wrong. Tapestry-IoC (not Tapestry, which is the web framework) will always throw an exception when you try to do an injection and zero or more than one services match. Bind and build methods don't have any priority over the other, they are just two different ways of declaring services, which are all equal. -- Thiago
