I want to provide a fa�ade service that simplifies the process of
pulling
information from connections.  Essentially, I am simplifying the process
of getting a valid Socket from a port we are listening on.

Instead of directly using the ConnectionManager and the SocketManager, I
want to encapsulate all that within another Block--a fa�ade so to speak.
I want the fa�ade to allow me to experiment with non-blocking sockets
without forcing me into a particular way of working with things.

What I would like to have happen is something like this:

-----------------------------------------------------------------------

package org.apache.infomover.connection;

// skipping imports for clarity

interface ConnectionManager
{
    void registerListener( ConnectionDescriptor descriptor );
}

interface ConnectionListener
{
    // I plan on having non-blocking stream wrappers eventually...
    void connection( InputStream is, OutputStream os );
}

class ConnectionDescriptor
{
    public int port;
    ConnectionListener listener;
    // anything else?
}

------------------------------------------------------------------------

What is everyone's oppinion on this?


"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]>

Reply via email to