avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leo Simons <leosim...@apache.org>
Subject Re: [merlin] concepts, embedding fortress
Date Sun, 27 Jul 2003 22:02:35 GMT
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 


- Leo

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

View raw message