On Tuesday 23 November 2004 09:49, ixxus nexxus wrote: > How do I figgure out how they are tied together ?
You need to read these pages; http://avalon.apache.org/central/about/tutorials/basic/dependencies/index.html Merlin will resolve the dependencies that a component declares (typically in the Javadocs of the source as @avalon.dependency, which gets compiled into the .xinfo file), either by automatic resolution or manual assembly from the deployer. Automatic resolution works something like this; 1. First check if any component within the same level of the container, is of the type required. 2. Then check if any direct subcontainer exposes the service. 3. Then check if any supercontainers, either has a component or another container exposing the service. (Now, there might be some bugs in the above in older Merlin versions, which seemed to find services in other containers throughout the application even if they are not exposed, so that may be an uncalculated behaviour. The above is at least the intention.) Manual assembly is what I described in the previous mail, i.e. you explicitly tell Merlin which component should be used for which lookup() in the service() method. Cheers Niclas -- +------//-------------------+ / http://www.bali.ac / / http://niclas.hedhman.org / +------//-------------------+ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]