At 09:50  17/5/01 -0400, Berin Loritsch wrote:
>For instances where you will have one and only one connection available, yes.
>I know for Cocoon, we wanted the ability to have a reference to more than
>one database.  I can think of a number of applications where this is true.
>That's why I had the ROLE as the "Selector" version.

I don't think having ROLE refer to different things depending on particular
interface is a good thing. It they want to use Selectors (or flavored
versions) I believe something like

interface Foo
{
  String ROLE = "com.biz.Foo";
}

...
Selector s = (Selector)componentManager.lookup( Foo.ROLE + "Selector" );
...
Foo f = (Foo)componentManager.lookup( Foo.ROLE + "/Flavour" );
...
Foo f = (Foo)componentManager.lookup( Foo.ROLE );

may be simpler to use. What do you think ?

Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to