You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Leo Simons <le...@apache.org> on 2003/07/28 00:02:35 UTC

Re: [merlin] concepts, embedding fortress

Anton Tagunov wrote:
> Hi, Leo!
> 
> LS> public class AbstractFortressServicable extends AbstractLogEnabled
> 
> Just for fun, what is this code doing? (i do not speak merlin, that's
>                                         the fun :-)

probably nothing as it was top-of-head-to-show-a-concept. I no longer 
have access to the actual code I wrote...

> I mean did I get it right that you bypass the limitation that
> you may lookup only those components on which the dependency
> has been declared, and instead you gain access to all the
> components hosted by your container?

not exactly. The AbstractFortressServicable here is sort of "wrapping" 
around a fortress instance. Fortress is a subcontainer inside your 
component. Of course, you can share that subcontainer component.

Everything is a component :D

(...)

you declare a dependency on a fortress instance, and this fortress 
instance exposes components you could lookup from it. So you use the 
fortress Container as a sort-of "service manager". Since most of your 
component doesn't care about where it gets the components from, 
basically join the services your fortress container provides with the 
ones in your servicemanager.

Useful if you embed something like fortress inside a phoenix block (for 
example).

cheers!

- Leo



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org