Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A view can register to listen for view events from other views by view name, or by view name + version. When an event is fired from the source view, all registered listeners will receive the event.

Info

Typically, a view will register event listeners using a <view-class>this.is.my.view-clazz</view-class> on onDeploy().

 

https://github.com/apache/ambari/blob/trunk/ambari-views/src/main/java/org/apache/ambari/view/events/Listener.java

...

The framework will notify all registered listeners. The listener implementation can process the event as appropriate.

listener.notify(event)

 

 

...