> thought that the lookup operation would be replaced by > casting, so that if I had a component that had a dependency on, say, > StoreService and ConnectionPool, I would do this:
> StoreService ss = (StoreService) locator; > ConnectionPool cp = (ConnectionPool) locator; <<over-acting dramatic sigh>> Please don't make me repeat the IS-A vs HAS-A explanation again. :-) Doing casts the way you show (and don't want) is a major part of the problem. --- Noel -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>