Examples of callback()


Examples of org.apache.tuscany.sca.vtest.javaapi.conversation.callback.id.AServiceCallback.callBack()

        callback.getService().callBack(someState);
    }

    public void testCallBack2(String someState) {
        AServiceCallback callback = componentContext.getRequestContext().getCallback();
        callback.callBack(someState);
    }

}
View Full Code Here

Examples of org.conventionsframework.qualifier.BeanState.callback()

            return;
        } else {//only a state annotation is present
            BeanState beanState = AnnotationUtils.findStateAnnotation(getClass());
            if (beanState != null) {
                if (beanState.beanState().equals(this.getBeanState().getStateName())) {
                    statePushEvent.fire(new StatePushEvent(new StateItem(beanState.outcome(), getEntity(), getBeanState(), beanState.value(), beanState.title(), this.getClass(), beanState.ajax(), beanState.callback(), beanState.update(),beanState.global(),beanState.resetValues(),beanState.immediate(),beanState.oncomplete(),beanState.addEntityIdParam())));
                }
            }
        }
    }
View Full Code Here

Examples of org.conventionsframework.qualifier.BeanState.callback()

            } else {//only a state annotation is present
                BeanState state = AnnotationUtils.findStateAnnotation(getClass());
                if (states != null) {
                    if (state.beanState().equals(this.getBeanState().getStateName())) {
                        statePushEvent.fire(new StatePushEvent(new StateItem(state.outcome(), getEntity(), getBeanState(), state.value(), state.title(), this.getClass(), state.ajax(), state.callback(), state.update(),state.global(),state.resetValues(),state.immediate(),state.oncomplete(),state.addEntityIdParam())));
                    }
                }
            }
        }
    }
View Full Code Here

Examples of org.glassfish.jersey.server.JSONP.callback()

    private String getCallbackName(final InterceptorContext context) {
        String callback = JSONP.DEFAULT_CALLBACK;

        JSONP jsonp = getJsonpAnnotation(context);
        if (jsonp != null) {
            callback = jsonp.callback();

            if (!"".equals(jsonp.queryParam())) {
                final ContainerRequest containerRequest = containerRequestProvider.get();
                final UriInfo uriInfo = containerRequest.getUriInfo();
                final MultivaluedMap<String, String> queryParameters = uriInfo.getQueryParameters();
View Full Code Here

Examples of org.jboss.aophelper.annotation.Undoable.callback()

   public Object invoke(Invocation invocation) throws Throwable
   {
      MethodInvocation mi = (MethodInvocation) invocation;
      Undoable undoable = (Undoable) invocation.resolveAnnotation(org.jboss.aophelper.annotation.Undoable.class);
      System.out.println("callback: "+undoable.callback());
     
      System.out.println("Class: "+mi.getTargetObject().getClass().getName());
      System.out.println("Method: "+mi.getMethod().getName());
     
      Object[] args = mi.getArguments();
View Full Code Here

Examples of org.jboss.arquillian.spi.event.suite.EventHandler.callback()

               ie: a DeployableContainer adding a SessionLifecyle handler to be added to the @BeforeClass
            */
            for(int i = 0; i < handlers.size(); i++)
            {
               EventHandler handler = handlers.get(i);
               handler.callback(context, event);
            }
         }
         catch (Exception e)
         {
            throw new FiredEventException(context, event, e);
View Full Code Here

Examples of org.jboss.errai.bus.client.api.MessageCallback.callback()

      bus.subscribe(subjectName, new MessageCallback() {
        @Override
        public void callback(final Message message) {
          MessageCallback callback = (MessageCallback) CDIServerUtil.lookupBean(beanManager,
                  type.getJavaClass());
          callback.callback(message);
        }
      });

    }
View Full Code Here

Examples of org.jboss.errai.bus.client.api.MessageCallback.callback()

      bus.subscribe(subjectName, new MessageCallback() {
        @Override
        public void callback(final Message message) {
          MessageCallback callback = (MessageCallback) CDIServerUtil.lookupBean(beanManager,
                  type.getJavaClass());
          callback.callback(message);
        }
      });

    }
View Full Code Here

Examples of org.jboss.errai.bus.client.api.MessageCallback.callback()

                    contextManager.activateConversationContext(message);
                    try {
                        if (invocationTarget == null) {
                            ((MessageCallback) Util.lookupCallbackBean(beanManager, type.getJavaClass())).callback(message);
                        } else {
                            invocationTarget.callback(message);
                        }

                    } finally {
                        contextManager.deactivateRequestContext();
                        contextManager.deactivateConversationContext(message);
View Full Code Here

Examples of org.jboss.errai.bus.client.api.RemoteCallback.callback()

           
            if (remoteCallback instanceof ResponseCallback) {
              ((ResponseCallback) getRemoteCallback()).callback(response);
            }
            else if (response.getStatusCode() == 204) {
              remoteCallback.callback(null);
            }
            else {
              remoteCallback.callback(demarshallingCallback.demarshallResponse(response.getText()));
            }
          }
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.