Package org.jboss.errai.bus.client.framework

Examples of org.jboss.errai.bus.client.framework.Subscription


    List<MessageCallback> observerCallbacks = eventObservers.get(eventType);
    if (observerCallbacks == null) {
      eventObservers.put(eventType, observerCallbacks = new ArrayList<MessageCallback>());
    }
    observerCallbacks.add(callback);
    return new Subscription() {
      @Override
      public void remove() {
        unsubscribe(eventType, callback);
      }
    };
View Full Code Here


          .with(CDIProtocol.BeanType, eventType)
          .with(CDIProtocol.Qualifiers, callback.getQualifiers())
          .noErrorHandling().sendNowWith(ErraiBus.get());
    }

    return new Subscription() {
      @Override
      public void remove() {
        unsubscribe(eventType, callback);
      }
    };
View Full Code Here

TOP

Related Classes of org.jboss.errai.bus.client.framework.Subscription

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.