Examples of EventImpl


Examples of org.apache.tapestry5.internal.services.EventImpl

        coreComponent = coreResources.getComponent();

        Logger logger = coreResources.getLogger();
        eventLogger = elementResources.getEventLogger(logger);

        sharedEvent = new EventImpl(sharedEventHandler, eventLogger);
    }
View Full Code Here

Examples of org.apache.xerces.dom.events.EventImpl

     * @since WD-DOM-Level-2-19990923
     */
    public Event createEvent(String type)
  throws DOMException {
      if (type.equalsIgnoreCase("Events") || "Event".equals(type))
          return new EventImpl();
      if (type.equalsIgnoreCase("MutationEvents") ||
                "MutationEvent".equals(type))
          return new MutationEventImpl();
      else {
            String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null);
View Full Code Here

Examples of org.apache.xerces.dom.events.EventImpl

    protected boolean dispatchEvent(NodeImpl node, Event event) {
        if (event == null) return false;
       
        // Can't use anyone else's implementation, since there's no public
        // API for setting the event's processing-state fields.
        EventImpl evt = (EventImpl)event;

        // VALIDATE -- must have been initialized at least once, must have
        // a non-null non-blank name.
        if(!evt.initialized || evt.type == null || evt.type.equals("")) {
            String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "UNSPECIFIED_EVENT_TYPE_ERR", null);
            throw new EventException(EventException.UNSPECIFIED_EVENT_TYPE_ERR, msg);
        }
       
        // If nobody is listening for this event, discard immediately
        LCount lc = LCount.lookup(evt.getType());
        if (lc.total == 0)
            return evt.preventDefault;

        // INITIALIZE THE EVENT'S DISPATCH STATUS
        // (Note that Event objects are reusable in our implementation;
View Full Code Here

Examples of org.apache.xerces.dom.events.EventImpl

    {
        if(event==null) return false;
       
        // Can't use anyone else's implementation, since there's no public
        // API for setting the event's processing-state fields.
        EventImpl evt=(EventImpl)event;

        // VALIDATE -- must have been initialized at least once, must have
        // a non-null non-blank name.
        if(!evt.initialized || evt.type==null || evt.type.equals(""))
            throw new EventException(EventException.UNSPECIFIED_EVENT_TYPE_ERR,
                                     "DOM010 Unspecified event type");
       
        // If nobody is listening for this event, discard immediately
        LCount lc=LCount.lookup(evt.getType());
        if(lc.captures+lc.bubbles+lc.defaults==0)
            return evt.preventDefault;

        // INITIALIZE THE EVENT'S DISPATCH STATUS
        // (Note that Event objects are reusable in our implementation;
View Full Code Here

Examples of org.auraframework.impl.root.event.EventImpl

                return (T) controllerDef.createAction(descriptor.getName(), attributes);
            } finally {
                context.popCallingDescriptor();
            }
        case EVENT:
            return (T) new EventImpl((DefDescriptor<EventDef>) descriptor, attributes);
        default:
            throw new AuraRuntimeException(String.format("Instances of %s cannot be created.", defType));
        }
    }
View Full Code Here

Examples of org.infinispan.notifications.cachelistener.event.EventImpl

                  }
                  try {
                     // Only run converter on events we can change and if it was keyed
                     if (!unKeyed && converter != null) {
                        if (event instanceof EventImpl) {
                           EventImpl eventImpl = (EventImpl)event;
                           eventImpl.setValue(converter.convert(eventImpl.getKey(), eventImpl.getValue(),
                                                                eventImpl.getMetadata()));
                        } else {
                           throw new IllegalArgumentException("Provided event should be EventImpl when a converter is" +
                                                                    "being used!");
                        }
                     }
View Full Code Here

Examples of org.infinispan.notifications.cachelistener.event.impl.EventImpl

         handler.transferComplete();
      }
   }

   private void raiseEventForInitialTransfer(UUID identifier, CacheEntry entry, boolean clustered) {
      EventImpl preEvent;
      if (clustered) {
         // In clustered mode we only send post event
         preEvent = null;
      } else {
         preEvent = EventImpl.createEvent(cache, CACHE_ENTRY_CREATED);
         preEvent.setKey(entry.getKey());
         preEvent.setPre(true);
      }

      EventImpl postEvent = EventImpl.createEvent(cache, CACHE_ENTRY_CREATED);
      postEvent.setKey(entry.getKey());
      postEvent.setValue(entry.getValue());
      postEvent.setMetadata(entry.getMetadata());
      postEvent.setPre(false);

      for (CacheEntryListenerInvocation<K, V> invocation : cacheEntryCreatedListeners) {
         // Now notify all our methods of the creates
         if (invocation.getIdentifier() == identifier) {
            if (preEvent != null) {
View Full Code Here

Examples of org.infinispan.notifications.cachemanagerlistener.event.EventImpl

      this.cacheManager = cacheManager;
   }

   public void notifyViewChange(List<Address> members, List<Address> oldMembers, Address myAddress, int viewId) {
      if (!viewChangedListeners.isEmpty()) {
         EventImpl e = new EventImpl();
         e.setLocalAddress(myAddress);
         e.setMergeView(false);
         e.setViewId(viewId);
         e.setNewMembers(members);
         e.setOldMembers(oldMembers);
         e.setCacheManager(cacheManager);
         e.setType(Event.Type.VIEW_CHANGED);
         for (ListenerInvocation listener : viewChangedListeners) listener.invoke(e);
      }
   }
View Full Code Here

Examples of org.infinispan.notifications.cachemanagerlistener.event.impl.EventImpl

   }

   @Override
   public void notifyViewChange(List<Address> members, List<Address> oldMembers, Address myAddress, int viewId) {
      if (!viewChangedListeners.isEmpty()) {
         EventImpl e = new EventImpl();
         e.setLocalAddress(myAddress);
         e.setMergeView(false);
         e.setViewId(viewId);
         e.setNewMembers(members);
         e.setOldMembers(oldMembers);
         e.setCacheManager(cacheManager);
         e.setType(Event.Type.VIEW_CHANGED);
         for (ListenerInvocation listener : viewChangedListeners) listener.invoke(e);
      }
   }
View Full Code Here

Examples of org.infoglue.cms.entities.workflow.impl.simple.EventImpl

      {
        logger.info("Changing creator from '" + currentModifier + "' to '" + newModifier + "' for number of Events: " + results.size());
      }
      while (results.hasMore())
      {
        EventImpl e = (EventImpl)results.nextElement();
        e.setCreator(newModifier);
        if (logger.isDebugEnabled())
        {
          logger.debug("Changing creator from '" + currentModifier + "' to '" + newModifier + "' for Event with ID: " + e.getEventId());
        }
      }

      results.close();
      oql.close();
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.