lombok
Annotation Type ListenerSupport
@Target(value=TYPE)
@Retention(value=SOURCE)
public @interface ListenerSupport
Swing and other frameworks make extensive use of event listeners (Observer pattern) which usually involves a fair
amount of boilerplate. With this annotation you just list the listeners you want to support and lombok-pg will
generate the methods to add and remove listeners as well as convenience methods to fire events.
|
Required Element Summary |
Class<?>[] |
value
List of the listeners you want to support. |
value
public abstract Class<?>[] value
- List of the listeners you want to support.
Copyright © 2010-2011 Philipp Eichhorn, licensed under the MIT licence.