Examples of Callback


Examples of org.oasisopen.sca.annotation.Callback

        service.getInterfaceContract().setInterface(javaInterface);
        return service;
    }

    private void processCallback(Class<?> interfaze, Contract contract) throws InvalidServiceTypeException {
        Callback callback = interfaze.getAnnotation(Callback.class);
        if (callback != null && !Void.class.equals(callback.value())) {
            Class<?> callbackClass = callback.value();
            JavaInterface javaInterface;
            try {
                javaInterface = javaInterfaceFactory.createJavaInterface(callbackClass);
                contract.getInterfaceContract().setCallbackInterface(javaInterface);
            } catch (InvalidInterfaceException e) {
                throw new InvalidServiceTypeException("Invalid callback interface "+callbackClass, interfaze);
            }
        } else if (callback != null && Void.class.equals(callback.value())) {
            throw new InvalidServiceTypeException("No callback interface specified on annotation", interfaze);
        }
    }
View Full Code Here

Examples of org.osoa.sca.annotations.Callback

            scope = Scope.INSTANCE;
        } else {
            scope = ProcessorHelper.getScope(scopeAnnotation);
        }
        javaInterface.setScope(scope);
        Callback callback = serviceClass.getAnnotation(Callback.class);
        if (callback != null && !Void.class.equals(callback.value())) {
            javaInterface.setCallbackInterface(callback.value());
        }
        String name = JavaIntrospectionHelper.getBaseName(serviceClass);
        Service service = factory.createService();
        service.setName(name);
        service.setServiceContract(javaInterface);
View Full Code Here

Examples of org.pentaho.aggdes.ui.AlgorithmRunner.Callback

    try {
      XulDialog dialog = (XulDialog) document.getElementById("progressDialog");
      PrintWriter pw = new PrintWriter(System.out);
      try {
        // hard coded params for now
        algorithmRunner.start(algorithmUiExtension.getAlgorithmParameters(), new Callback() {
          public void algorithmDone() {
            algoDone();
          }
        });
      } finally {
View Full Code Here

Examples of org.ringojs.engine.Callback

        List<Callback> list = callbacks.get(type);
        if (list == null) {
            list = new LinkedList<Callback>();
            callbacks.put(type, list);
        }
        list.add(new Callback((Scriptable)function, engine, sync));
    }
View Full Code Here

Examples of org.rstudio.core.client.ExternalJavaScriptLoader.Callback

      load(null);
   }

   public static void load(final Command command)
   {
      aceLoader_.addCallback(new Callback()
      {
         public void onLoaded()
         {
            aceSupportLoader_.addCallback(new Callback()
            {
               public void onLoaded()
               {
                  if (command != null)
                     command.execute();
View Full Code Here

Examples of org.sgx.yuigwt.yui.util.Callback

    int l = url.lastIndexOf("#");
    if(l!=-1) {
      final String anchor = url.substring(l, url.length());
//      Node n = Y.one("#" + anchor);
//      Callback fn = ;
      timer = Y.later(2000, new Callback() {
       
        @Override
        public void call(JsArrayMixed args) {
          Node n = Y.one(anchor);
//          System.out.println("later: "+anchor+" - "+n);
View Full Code Here

Examples of org.springframework.cglib.proxy.Callback

    boolean exposeProxy = this.advised.isExposeProxy();
    boolean isFrozen = this.advised.isFrozen();
    boolean isStatic = this.advised.getTargetSource().isStatic();

    // Choose an "aop" interceptor (used for AOP calls).
    Callback aopInterceptor = new DynamicAdvisedInterceptor(this.advised);

    // Choose a "straight to target" interceptor. (used for calls that are
    // unadvised but can return this). May be required to expose the proxy.
    Callback targetInterceptor;
    if (exposeProxy) {
      targetInterceptor = isStatic ?
          new StaticUnadvisedExposedInterceptor(this.advised.getTargetSource().getTarget()) :
          new DynamicUnadvisedExposedInterceptor(this.advised.getTargetSource());
    }
    else {
      targetInterceptor = isStatic ?
          new StaticUnadvisedInterceptor(this.advised.getTargetSource().getTarget()) :
          new DynamicUnadvisedInterceptor(this.advised.getTargetSource());
    }

    // Choose a "direct to target" dispatcher (used for
    // unadvised calls to static targets that cannot return this).
    Callback targetDispatcher = isStatic ?
        new StaticDispatcher(this.advised.getTargetSource().getTarget()) : new SerializableNoOp();

    Callback[] mainCallbacks = new Callback[]{
      aopInterceptor, // for normal advice
      targetInterceptor, // invoke target without considering advice, if optimized
View Full Code Here

Examples of org.waveprotocol.box.webclient.search.SearchService.Callback

        return;
      }
    }
    previousQuery = query;
    previousSize = size;
    Callback callback = new Callback() {
      @Override
      public void onFailure(String message) {
        if (outstanding == this) {
          outstanding = null;
          previousRequest = null;
View Full Code Here

Examples of retrofit.Callback

    final String mifosEndpointUrl = System.getProperty("baseUrl");
    final WebHookService service = ProcessorHelper
        .createWebHookService(url);

    @SuppressWarnings("rawtypes")
    final Callback callback = ProcessorHelper.createCallback(url);

    if (contentType.equalsIgnoreCase("json")
        || contentType.contains("json")) {
      final JsonObject json = new JsonParser().parse(payload)
View Full Code Here

Examples of smack.down.Callback

    Action action = new Augmentation();
    action.setOwner(player1);
   
    assertEquals(2, m1.getStrength());
   
    action.play(m1, new Callback(){});
   
    assertEquals(6, m1.getStrength());
   
    player1.endTurn(new Callback(){});
   
    assertEquals(2, m1.getStrength());
  }
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.