Package org.puremvc.java.multicore.interfaces

Examples of org.puremvc.java.multicore.interfaces.IFunction


   * @param command
   *            an instance of <code>ICommand</code>
   */
  public void registerCommand(String notificationName, ICommand command) {
    if (null != this.commandMap.put(notificationName, command)) return;
    this.view.registerObserver(notificationName, new Observer(new IFunction() {
      public void onNotification(INotification notification) {
        executeCommand(notification);
      }
    }, this ) );
  }
View Full Code Here


      // Get Notification interests, if any.
      String[] noteInterests = mediator.listNotificationInterests();
      if (noteInterests.length != 0) {

        // Create java style function ref to mediator.handleNotification
        IFunction function = new IFunction() {

          public void onNotification(INotification notification) {
            mediator.handleNotification(notification);
          }
        };
View Full Code Here

TOP

Related Classes of org.puremvc.java.multicore.interfaces.IFunction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.