I would like to override a method in an object that\'s handed to me by a factory that I have little control over.
My specific problem is that I want to override the
Using a decorator is the right way to go:
Some very similar code to the requirement you have with sockets is here:
http://www.javaspecialists.eu/archive/Issue058.html