Misnamed Listener Helper
Legacy Issue Number: 16589
Source: ADLINK Technology Ltd ( Angelo Corsaro)
The name of the classes DataReaderAdapter/DataWriterAdapter are misleading since what
they are really providing are listeners with some default behaviour.
Rename the classes DataReaderAdapter/DataWriterAdapter to
SimpleDataReaderListener and SimpleDataWriterListener.
For the SimpleDataReaderListener one could implement trivially all
the method but the one that notifies the availability of data,
Reported: DDS-Java 1.0b1 — Tue, 11 Oct 2011 04:00 GMT
Disposition: Resolved — DDS-Java 1.0b2
This issue is closed without any changes. Providing no-op listener implementations, and replacing “Listener” with “Adapter” in the class name, is a common JDK idiom. You will see it throughput AWT and Swing, for example, which abound with listeners. The rationale for this pattern is described in section 220.127.116.11, “Listeners”.
Disposition: Closed, no change
Updated: Fri, 6 Mar 2015 20:58 GMT