> From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED]]
> > BTW there is not a chance that I would suggest that you directly
> > extract a
> > resource directly from a ComponentManager. That would suck
> unbelievably,
> > would never scale and lead to all sorts of design
> compromises. You aquire a
> > SocketManager who does the work.
>
> ?
>
> If my component is Composable, I get a ComponentManager, not a
> SocketManager.
> I don't want to make a SocketManager.
> I want to use a pre-built Manager.
Nicola, that is Peter's point.
Your example of
Socket sock = (Socket) cm.lookup("SSL");
was flawed.
The ComponentManager/ComponentLocater returns a SocketManager or
something along those lines. Therefore, the proper example would
be:
SocketManager sm = (SocketManager) cm.lookup("sockets");
Socket sock = sm.getSSLSocket();
Or something of that nature.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>