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

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


    final Object svc = injector.getInstance(type);

    final Map<String, MessageCallback> epts = new HashMap<String, MessageCallback>();

    final ServiceInstanceProvider genericSvc = new ServiceInstanceProvider() {
      @Override
      public Object get(Message message) {
        return svc;
      }
    };
View Full Code Here


    // beware of classloading issues. better reflect on the actual instance
    for (final Method method : remoteIface.getMethods()) {
      if (RebindUtils.isMethodInInterface(remoteIface, method)) {
        epts.put(RebindUtils.createCallSignature(remoteIface, method), new ConversationalEndpointCallback(
                new ServiceInstanceProvider() {
                  @SuppressWarnings("unchecked")
                  @Override
                  public Object get(Message message) {
                    if (message.hasPart(CDIProtocol.Qualifiers)) {
                      List<String> quals = message.get(List.class, CDIProtocol.Qualifiers);
View Full Code Here

  }

  private void createRPCScaffolding(final Class remoteIface, final MessageBus bus, final BeanManager beanManager) {
    final Map<String, MessageCallback> epts = new HashMap<String, MessageCallback>();

    final ServiceInstanceProvider genericSvc = new ServiceInstanceProvider() {
      @SuppressWarnings("unchecked")
      @Override
      public Object get(final Message message) {
        if (message.hasPart(CDIProtocol.Qualifiers)) {
          final List<String> quals = message.get(List.class, CDIProtocol.Qualifiers);
View Full Code Here

TOP

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

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.