This is a quote from "Effective Java".i don't understand what bloch intended to say in these lines and what is a callback framework.
The disadvantages of wrapper classes are few. One caveat is that wrapper classes are not suited for use in callback frameworks, wherein objects pass selfreferences to other objects for subsequent invocations (“callbacks”).Because a wrapped object doesn't know of its wrapper, it passes a reference to itself(this) and callbacks elude the wrapper. This is known as the SELF problem [Lieberman86].
can anyone please elaborate with an example?
Any reply will be appreciated.