On Wednesday 27 October 2004 03:50, Igor A. Deruga wrote:
> On Tuesday 26 October 2004 19:00, Stephen McConnell wrote:
> > Merlin maintains a registry of all of the components and a cross
> > reference to the services that each component is capable of providing
> > (and a bunch of other useful stuff).  When a lookup is invoked - what's
> > happening is that Merlin is providing a component that declares that it
> > supports the service in question (the actual binding happens during an
> > assembly phase that occurs way before any runtime activity).  This can
> > be overridden using dependency directives in you block.
>
> Ok, I almost got it. But still I don´t understand, how does Merlin know
> that it should search for DefaultSocketManager in the
> cornerstone-sockets-impl package in order to get SocketManager service? Is
> it written inside of Merlin ´s configuration?

Nope. If you look at the DefaultSocketManager.java file it has a 
@avalon.service tag;
@avalon.service 
type="org.apache.avalon.cornerstone.services.sockets.SocketManager"

which is written in to the DefaultSocketManager.xinfo file. Merlin reads that 
and by that knows the Type of the DefaultSocketManager.


Cheers
Niclas
-- 
   +------//-------------------+
  / http://www.bali.ac        /
 / http://niclas.hedhman.org / 
+------//-------------------+


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to