Examples of Event


Examples of org.apache.tuscany.sdo.api.Event

import org.eclipse.emf.common.notify.impl.AdapterImpl;

public abstract class ListenerBase extends AdapterImpl implements EventListener  {

  public void notifyChanged(Notification msg) {
    Event e = new EventImpl(msg);
    eventNotification(e);
  }
View Full Code Here

Examples of org.apache.tuscany.spi.event.Event

*/
public class AbstractSCAObjectTestCase extends TestCase {

    public void testFireListener() {
        SCAObject object = new TestSCAObject("foo", null);
        Event event = new TestEvent();
        RuntimeEventListener listener = EasyMock.createMock(RuntimeEventListener.class);
        listener.onEvent(EasyMock.same(event));
        EasyMock.expectLastCall();
        EasyMock.replay(listener);
        object.addListener(listener);
View Full Code Here

Examples of org.apache.xml.security.stax.securityEvent.SecurityEventConstants.Event

                    new XMLSecurityException("empty", "The request was not signed or encrypted");
                throwFault(ex.getMessage(), ex);
            }
           
            if (signatureRequired) {
                Event requiredEvent = SecurityEventConstants.SignatureValue;
                if (!isEventInResults(requiredEvent, incomingSecurityEventList)) {
                    LOG.warning("The request was not signed");
                    XMLSecurityException ex =
                        new XMLSecurityException("empty", "The request was not signed");
                    throwFault(ex.getMessage(), ex);
View Full Code Here

Examples of org.arch.event.Event

      content.write(resBuffer, chunkLength);
      try
      {
        while (content.readable())
        {
          Event ev = EventDispatcher.getSingletonInstance().parse(
                  content);
          ev = Event.extractEvent(ev);
          EventHeader header = Event.getHeader(ev);
          try
          {
            C4RemoteHandler session = C4RemoteHandler.getSession(ev
                    .getHash());
            if (null != session)
            {
              session.onEvent(header, ev);
            }
View Full Code Here

Examples of org.atmosphere.samples.client.Event

        Timer t = new Timer();
        t.schedule(new TimerTask() {
            @Override
            public void run() {
                try {
                    info.writeAndResume(new Event(milli, "Polling: Delayed event"));
                } catch (IOException e) {
                    logger.error("Failed to write and resume", e);
                }
            }
        }, milli);
View Full Code Here

Examples of org.atmosphere.wasync.Event

            // Could have been closed during the handshake.
            if (status.equals(Socket.STATUS.CLOSE) || status.equals(Socket.STATUS.ERROR)) return;

            closed.set(false);
            Event newStatus = status.equals(Socket.STATUS.INIT) ? OPEN : REOPENED;
            status = Socket.STATUS.OPEN;
            TransportsUtil.invokeFunction(newStatus,
                    decoders, functions, String.class, newStatus.name(), newStatus.name(), resolver);
        }
View Full Code Here

Examples of org.auraframework.instance.Event

    public TestModelToAttachEvents() throws Exception {
        Map<String, Object> attributes = new HashMap<>();
        attributes.put("strParam", "Go 49ers!");
        // Adding an event whose definition is in the client because of the
        // handler.
        Event evt = Aura.getInstanceService().getInstance("test:applicationEvent", EventDef.class, attributes);
        Aura.getContextService().getCurrentContext().addClientApplicationEvent(evt);
        // Adding an event that was not preloaded and without a handler. So the
        // definition is not in the client.
        evt = Aura.getInstanceService().getInstance("handleEventTest:unHandledEvent", EventDef.class, null);
        Aura.getContextService().getCurrentContext().addClientApplicationEvent(evt);
View Full Code Here

Examples of org.bladerunnerjs.plugin.Event

 
  @Test
  public void notifiesObserversListeningForEventsWhenNodeDeployedEventEmitted()
  {
    Class<? extends Event> listenForEvent = Event.class;
    Event theEvent = new NodeReadyEvent();

    ObserverList observers = new ObserverList();
    Node node = mock(Node.class);       
    EventObserver eventObserver = mock(EventObserver.class);
    observers.add(listenForEvent, eventObserver);
View Full Code Here

Examples of org.bnplusplus.model.bnpp.Event

  {   
    String labelText = n.getLabel();
   
    for (Role r : p.getPlaysRoleLnkVector())
    {
      Event event = r.getEventLnk();
      if (event != null)    
      {
        if (event.getPathwayLnkVector() != null)
        {                 
          for (Pathway pathway : event.getPathwayLnkVector())
          {           
            if (!isHuman(pathway))
              continue;
           
            Set<Pathway> keys = map.keySet();
View Full Code Here

Examples of org.bukkit.event.Event

   * Reload Permissions plugin by issuing an "/rp" chat command
   *
   * @param server
   */
  public static void reloadPermissions(Server server) {
    Event event = new PlayerChatEvent(Type.PLAYER_COMMAND, new FakePlayer(),
        "/rp");
    server.getPluginManager().callEvent(event);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.