Examples of Callback


Examples of com.atlassian.jira.rest.client.api.Callback

  @Test
  public void testFetchingIssueWithWorklogWhenAuthorIsDeleted() {
    final String issueKey = "ANONEDIT-1";
    final String testUser = "testusertoremove";

    addUserThenExecuteCallbackAndRemoveUser(testUser, new Callback() {
      @Override
      public void execute() {
        navigation.issue().logWork(issueKey, "3m");
      }
    });
View Full Code Here

Examples of com.caucho.quercus.env.Callback

  }

  @SuppressWarnings("unchecked")
  public <T> T marshal(Env env, Value value, Class<T> expectedClass)
  {
    Callback cb = env.createCallback(value);

    return (T)cb;

    /*
    if (cb != null)
View Full Code Here

Examples of com.eclipsesource.restfuse.annotation.Callback

    }
    delegate.evaluate();
  }

  private boolean needsCallback() {
    Callback callbackAnnotation = method.getAnnotation( Callback.class );
    return callbackAnnotation != null;
  }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jetty.util.Callback

    /* ------------------------------------------------------------ */
    /** Call to signal that a read is now possible.
     */
    public void fillable()
    {
        Callback callback=_interested.get();
        if (callback!=null && _interested.compareAndSet(callback,null))
            callback.succeeded();
    }
View Full Code Here

Examples of com.foundationdb.server.service.transaction.TransactionService.Callback

            } finally {
                if(cursor != null && !cursor.isClosed()) {
                    cursor.close();
                }
            }
            transactionService.addCallback(session, CallbackType.COMMIT, new Callback() {
                @Override
                public void run(Session session, long timestamp) {
                    try {
                        indexInfo.commitIndexer();
                    } catch(IOException e) {
View Full Code Here

Examples of com.github.dandelion.datatables.core.callback.Callback

      // The callback hasn't been registered yet
      else {
        parent.getTable()
            .getTableConfiguration()
            .registerCallback(
                new Callback(callbackType, (callbackType.hasReturn() ? "return " : "") + function + "("
                    + StringUtils.join(callbackType.getArgs(), ",") + ");"));
      }
    }

    return EVAL_PAGE;
View Full Code Here

Examples of com.google.code.xmltool.CallBack

     */
    public AdditionalHeaderDefinition(XMLDocument doc) {
        if (doc == null) {
            throw new IllegalArgumentException("The header definition XML document cannot be null");
        }
        doc.gotoRoot().forEachChild(new CallBack() {
            public void execute(XMLDocument doc) {
                final String type = doc.getCurrentTagName().toLowerCase();
                HeaderDefinition definition = definitions.get(type);
                if (definition == null) {
                    definition = new HeaderDefinition(type);
View Full Code Here

Examples of com.google.collide.clientlibs.invalidation.InvalidationManager.Recoverer.Callback

    recoverer.recoverPayloads(
        EasyMock.eq(obj), EasyMock.eq(nextExpectedVersion - 1), EasyMock.anyObject(Callback.class));
    EasyMock.expectLastCall().andAnswer(new IAnswer<Void>() {
      @Override
      public Void answer() throws Throwable {
        Callback callback = (Callback) EasyMock.getCurrentArguments()[2];

        JsonArray<RecoveredPayload> recoveredPayloads = JsonCollections.createArray();
        for (int i = nextExpectedVersion; i < nextExpectedVersion + payloadCount; i++) {
          recoveredPayloads.add(new StubRecoveredPayload(i, PAYLOADS.get(i)));
        }
       
        callback.onPayloadsRecovered(recoveredPayloads, nextExpectedVersion);
        return null;
      }
    });
  }
View Full Code Here

Examples of com.google.gwt.dev.shell.CloseButton.Callback

        }
      });
      logButtons.add(clearRegexButton);
    }
    closeLogger = new CloseButton("Close this log window");
    closeLogger.setCallback(new Callback() {
      // TODO(jat): add support for closing active session when SWT is removed
      public void onCloseRequest() {
        if (disconnected && closeHandler != null) {
          closeHandler.onCloseRequest(SwingLoggerPanel.this);
        }
View Full Code Here

Examples of com.google.gwt.query.client.plugins.deferred.Callbacks.Callback

        result += s;
        return false;
      }
    };
   
    final Callback fn2 = new Callback() {
      public boolean f(Object... objects) {
        String s = " f2:";
        for (Object o: objects){
          s += " " + o;
        }
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.