No, the Adapter classes are used to provide default implementations of listener 
interfaces so a caller isn't required to implement every method. AWT has 
similar adapters.


On Apr 21, 2010, at 5:32 PM, Alejandro Vilar wrote:

> Hi, just an observation but there are many places where this anti-pattern 
> appears, for example ComponentListener.Adapter, anybody aware of that?
>  
> Refs:
> http://en.wikipedia.org/wiki/Constant_interface
> http://java.sun.com/j2se/1.5.0/docs/guide/language/static-import.html
>  
> Cheers,
> -Alejandro
>  
>  

Reply via email to