/** * Returns a {@link ListenerMap} for the component. A ListenerMap contains a number of * synthetic read-only properties that implement the {@link IActionListener}interface, but in * fact, cause public instance methods to be invoked. * * @since 1.0.2 */ public ListenerMap getListeners() { // This is what's called a violation of the Law of Demeter! // This should probably be converted over to some kind of injection, as with // getMessages(), etc. if (_listeners == null) _listeners = getPage().getEngine().getInfrastructure().getListenerMapSource().getListenerMapForObject(this); return _listeners; }
/** * Returns a {@link ListenerMap} for the component. A ListenerMap contains a number of * synthetic read-only properties that implement the {@link IActionListener}interface, but in * fact, cause public instance methods to be invoked. * * @since 1.0.2 */ public ListenerMap getListeners() { // This is what's called a violation of the Law of Demeter! // This should probably be converted over to some kind of injection, as with // getMessages(), etc. if (_listeners == null) _listeners = getPage().getEngine().getInfrastructure().getListenerMapSource().getListenerMapForObject(this); return _listeners; }