[prev in list] [next in list] [prev in thread] [next in thread]
List: avalon-users
Subject: Re[2]: Fotress: xconf/roles confusion
From: Anton Tagunov <atagunov () mail ! cnt ! ru>
Date: 2003-05-31 8:13:50
[Download RAW message or body]
Hello Berin!
JAF> you can declare your components in your xconf file like this (or at least you
JAF> used to):
BL> You still can.
JAF>
JAF> <component
JAF> role="org.apache.bizserver.docs.DocumentRepository"
JAF> class="org.apache.bizserver.docs.DatabaseDocumentRepository">
JAF> <dbpool>documents</dbpool>
JAF> </component>
Hmm... it seems like the DefaultContainer ingnores the 'role'
attribute, doesn't it? Instead only the 'class' is honoured and
the list of roles is extracted from the meta-info, isn't it?
BL> Just add the "handler" attribute to determine how the component is
BL> managed, and all will be well--except you won't have dependency
BL> checking.
And the "handler" attribute also seems to be ignored.
The handler type comes from the metadata too.
If the @(x-)avalon style metadata is missing for a class
the one from the roles file is used (if one is present).
BTW, that was the reason why I patched the inline documentation
in the DefaultContainer to remove role and handler from the
sample and the patch was accepted.
WBR, Anton
P.S.
Interesting enough, if the <component class='foo'/>
approach is used and a roles file is present then
the role and handler come from the roles file.
Did ECM have this feature?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@avalon.apache.org
For additional commands, e-mail: users-help@avalon.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic