Tabnine Logo
ContextEvent
Code IndexAdd Tabnine to your IDE (free)

How to use
ContextEvent
in
org.granite.tide.invocation

Best Java code snippets using org.granite.tide.invocation.ContextEvent (Showing top 6 results out of 315)

origin: org.graniteds/granite-client

  @Override
  public boolean equals(Object object) {
    if (object == null || !object.getClass().equals(ContextEvent.class))
      return false;
    
    ContextEvent event = (ContextEvent)object;
    if (!event.getEventType().equals(eventType))
      return false;
    
    return Arrays.equals(event.getParams(), params);
  }
}
origin: org.graniteds/granite-server

public static void raiseEvent(String name, Object... args) {
  AbstractContext instance = instance();
  Map<String, Set<Method>> observers = instance.observers;
  if (observers.containsKey(name)) {
    for (Method method : observers.get(name)) {
      try {
        instance.callMethod(method, args);
      }
      catch (Exception e) {
        log.error(e, "Could not call method: %s", method);
      }
    }
  }
  Set<String> remoteObservers = instance.getRemoteObservers();
  if (remoteObservers.contains(name))
    instance.remoteEvents.add(new ContextEvent(name, args));
}
 
origin: org.graniteds/granite-server-cdi

  /**
   * Add an event in the current context
   * 
   * @param event the event
   */
  public void processEvent(Object event) {
    // Add the event to the current invocation
    TideInvocation tideInvocation = TideInvocation.get();
    if (tideInvocation == null)
      return;
    
    if (userEvents != null) {
      String sessionId = getSessionId();
      if (sessionId != null && userEvents.hasEventType(event.getClass()))
        tideInvocation.addEvent(new ContextEvent(event.getClass().getName(), 
            new Object[] { event, null }));
    }
//        else if (Contexts.getSessionContext().isSet("org.granite.seam.login")) {
//            // Force send of all events raised during login
//            tideInvocation.addEvent(new ContextEvent(type, params));
//        }
  }
   
origin: org.graniteds/granite-server

  @Override
  public boolean equals(Object object) {
    if (object == null || !object.getClass().equals(ContextEvent.class))
      return false;
    
    ContextEvent event = (ContextEvent)object;
    if (!event.getEventType().equals(eventType))
      return false;
    
    return Arrays.equals(event.getParams(), params);
  }
}
origin: org.graniteds/granite-client-java

  @Override
  public boolean equals(Object object) {
    if (object == null || !object.getClass().equals(ContextEvent.class))
      return false;
    
    ContextEvent event = (ContextEvent)object;
    if (!event.getEventType().equals(eventType))
      return false;
    
    return Arrays.equals(event.getParams(), params);
  }
}
origin: org.graniteds/granite-client-javafx

  @Override
  public boolean equals(Object object) {
    if (object == null || !object.getClass().equals(ContextEvent.class))
      return false;
    
    ContextEvent event = (ContextEvent)object;
    if (!event.getEventType().equals(eventType))
      return false;
    
    return Arrays.equals(event.getParams(), params);
  }
}
org.granite.tide.invocationContextEvent

Most used methods

  • getEventType
  • getParams
  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • requestLocationUpdates (LocationManager)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • String (java.lang)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now