Neeme Praks wrote:
-----Original Message-----
From: Berin Loritsch [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 27, 2001 8:24 PM
ComponentSelector. ComponentSelector was designed for this purpose.
Per the Developer's docs, if you use a selector, append the "Selector"
designator to the role name:
ComponentSelector selector = (ComponentSelector) manager.lookup(
Resource.ROLE + "Selector" );
Resource resource = selector.select( hint );
The hint can be any object (a Locale object if you wish, or any string).
This means that I need to write my own selector for that?
If you are using the ExcaliburComponentManager, then no. It is taken care
of by the configuration file. For example:
<resources>
<xml name="foo" file="/over/there.xml"/>
<file name="bar" rootdir="/over/here"/>
<file name="baz" rootdir="/over/hill"/>
<xml name="blah" file="/over/dale.xml"/>
</resources>
(with the proper entries in RoleManager) will allow you to get the resources
with the hint matching the name in the configuration file.
--
"They that give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety."
- Benjamin Franklin
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>