Package org.jboss.errai.bus.client.framework

Examples of org.jboss.errai.bus.client.framework.Configuration$NotSpecified


public class LocationAwareClientMessageBus extends ClientMessageBusImpl {
  private static final Logger LOG = Logger.getLogger(LocationAwareClientMessageBus.class.getName());

  @Override
  public String getApplicationLocation(String serviceEntryPoint) {
    Configuration configuration = GWT.create(Configuration.class);
    if (configuration instanceof Configuration.NotSpecified) {
      throw new IllegalArgumentException("you need to implement Configuration in order to point to the server location");
    }

    LOG.info("url end point " + configuration.getRemoteLocation());

    return super.getApplicationLocation(serviceEntryPoint);
  }
View Full Code Here

TOP

Related Classes of org.jboss.errai.bus.client.framework.Configuration$NotSpecified

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.