The chart works at least for fortress(sorry, I checked those items only for fortress), and I have another question(I have mailed this question but no one answered ,since you answered my every question, I guess it is better for me to go to you asking for help), the questions is:
How should I understand the idea of hierarchial containers? my situation is the below.
I m wrting a 'block' which uses only one Container to hold all the configrations read from roles and xconf file, I did like this:
final FortressConfig config = new FortressConfig();
config.setContextDirectory(""); config.setWorkDirectory(""); config.setContainerConfiguration("system.xconf" ); config.setRoleManagerConfiguration("report.roles"); config.setLoggerManagerConfiguration("logkit.xconf");
ContainerManager cm = new DefaultContainerManager(config.getContext()); ContainerUtil.initialize( cm );
DefaultContainer container = (DefaultContainer) cm.getContainer(); ServiceManager manager = container.getServiceManager();
Using that manager, I can look up every service I need in my block. The question is , my block is supposed to be used in an uppper level block which has some configurations useful to my block.I guess it somehow has its own ServiceManager, so how can I use this ServiceManager(or what else) to get those configurations? I think this must have something to do with the hierarchical containers idea, Can anyone tell me how to achive this goal?
componentFrom: "Farr, Aaron" <[EMAIL PROTECTED]> Reply-To: "Avalon framework users" <[EMAIL PROTECTED]> To: "'Avalon framework users'" <[EMAIL PROTECTED]> Subject: RE: why I cant find this service Date: Sat, 10 Jan 2004 11:33:54 -0800
> -----Original Message-----
> From: Mu Mike [mailto:[EMAIL PROTECTED]
>
> then use that selector, I can select an expected implementation
> by passing the selector the value of the hints. So can fortress returnme
the> a > ServiceSelector with the configuration files I have at the beginging of > this text, and then I can select using the shorthands ?
In Fortress, if you want the ServiceSelector, you must add "Selector" to
name of the role.
Full semantics are now on: http://wiki.apache.org/avalon/ServiceManager
I'm fairly sure I got Merlin and Fortress down right. Not sure about Phoenix. Let me know if that chart doesn't make sense.
> And, what is the default handler class if I havent an explicit handler > class?
That's another one of those things I used to know but will now have to lookup. Berin might know off the top of his head. I think it's the ThreadSafe handler, but I'll still need to check.
J. Aaron Farr SONY ELECTRONICS DDP-CIM (724) 696-7653
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]