Package org.jboss.errai.bus.server.io

Examples of org.jboss.errai.bus.server.io.CommandBindingsCallback


  public MessageCallback getCallback(Object delegateInstance) {
    if (isCallback()) {
      return (MessageCallback) delegateInstance;
    }
    else if (hasCommandPoints()) {
      return new CommandBindingsCallback(getCommandPoints(), delegateInstance);
    }
    else {
      return null;
    }
  }
View Full Code Here


        if (commandPoints.isEmpty()) {
          bus.subscribe(subjectName, callback);
        }
        else {
          bus.subscribeLocal(subjectName, new CommandBindingsCallback(commandPoints, callback, bus));
        }
      }
    }
View Full Code Here

        rule = new RolesRequiredRule(new HashSet<Object>(), context.getBus());
      }

      if (!commandPoints.isEmpty()) {
        if (local) {
          context.getBus().subscribeLocal(svcName, new CommandBindingsCallback(commandPoints, svc, context.getBus()));
        }
        else {
          context.getBus().subscribe(svcName, new CommandBindingsCallback(commandPoints, svc, context.getBus()));
        }
      }

      if (rule != null) {
        context.getBus().addRule(svcName, rule);
View Full Code Here

  public MessageCallback getCallback(Object delegateInstance, MessageBus bus) {
    if (isCallback()) {
      return (MessageCallback) delegateInstance;
    }
    else if (hasCommandPoints()) {
      return new CommandBindingsCallback(getCommandPoints(), delegateInstance, bus);
    }
    else {
      return null;
    }
  }
View Full Code Here

  }

  @Override
  public MessageCallback getCallback(Object delegate, MessageBus bus) {
    if (hasCommandPoints()) {
      return new CommandBindingsCallback(getCommandPoints(), delegate, bus);
    }
    else {
      return new ServiceMethodCallback(delegate, method);
    }
  }
View Full Code Here

            log.info("Register MessageCallback: " + type);
            String subjectName = Util.resolveServiceName(type.getJavaClass());

            Object targetbean = Util.lookupCallbackBean(beanManager, type.getJavaClass());
            final MessageCallback invocationTarget = commandPoints.isEmpty() ?
                    (MessageCallback) targetbean : new CommandBindingsCallback(commandPoints, targetbean);


            // TODO: enable CommandBindings
            bus.subscribe(subjectName, new MessageCallback() {
                //private BeanLookup lookup = new BeanLookup(type,beanManager);
View Full Code Here

      if (commandPoints.isEmpty()) {
        bus.subscribe(subjectName, callback);
      }
      else {
        bus.subscribeLocal(subjectName, new CommandBindingsCallback(commandPoints, callback));
      }
    }

    for (final Class<?> rpcIntf : managedTypes.getRemoteInterfaces()) {
      createRPCScaffolding(rpcIntf, bus, beanManager);
View Full Code Here

  public MessageCallback getCallback(Object delegateInstance, MessageBus bus) {
    if (isCallback()) {
      return (MessageCallback) delegateInstance;
    }
    else if (hasCommandPoints()) {
      return new CommandBindingsCallback(getCommandPoints(), delegateInstance, bus);
    }
    else {
      return null;
    }
  }
View Full Code Here

  }

  @Override
  public MessageCallback getCallback(Object delegate, MessageBus bus) {
    if (hasCommandPoints()) {
      return new CommandBindingsCallback(getCommandPoints(), delegate, bus);
    }
    else {
      return new ServiceMethodCallback(delegate, method);
    }
  }
View Full Code Here

        if (commandPoints.isEmpty()) {
          bus.subscribe(subjectName, callback);
        }
        else {
          bus.subscribeLocal(subjectName, new CommandBindingsCallback(commandPoints, callback, bus));
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.jboss.errai.bus.server.io.CommandBindingsCallback

Copyright © 2018 www.massapicom. 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.