I'm working on a ServerSocket manager. When it accepts a socket it
determines the SocketHandler to be used and retrieves it from a
ServiceManger. As I need to fork the handling routine into a thread I
would like each concrete SocketHandler to be Runnable. The threading
model used by the concrete SocketHandler is at the implementation's
discretion. My current assumption is that implementations will be
Recyclable simply to avoid the create/gc cycle.

My question is how do I notify the ServiceManager that the SocketHandler
has finished it's task without violating IoC and SoC. Should each
SocketHandler simply implement Servicable and call
ServiceManager.release on itself?

Thanks.

Corey




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

Reply via email to