Package org.geomajas.command.dto

Examples of org.geomajas.command.dto.RefreshConfigurationRequest


  @Test
  public void testRefreshConfiguration() throws Exception {
    Assert.assertEquals("", recorder.matches("test", "postConstruct"));
    recorder.clear();

    RefreshConfigurationRequest request = new RefreshConfigurationRequest();
    request.setConfigLocations(new String[] {});
    RefreshConfigurationResponse response = (RefreshConfigurationResponse) dispatcher.execute(
        RefreshConfigurationRequest.COMMAND, request, null, "en");
    /* @todo test commented because test runner does not build a ReconfigurableApplicationContext
    if (response.isError()) {
      response.getErrors().get(0).printStackTrace();
View Full Code Here


    SC.askforValue("Provide the context name", "Context file name ?", "applicationContext.xml",
        new ValueCallback() {

          public void execute(String value) {
            if (value != null) {
              RefreshConfigurationRequest request = new RefreshConfigurationRequest();
              request.setConfigLocations(value.trim().split("[ \\r\\t\\n,;]+"));
              GwtCommand command = new GwtCommand(RefreshConfigurationRequest.COMMAND);
              command.setCommandRequest(request);
              GwtCommandDispatcher.getInstance().execute(command, new CommandCallback() {

                public void execute(CommandResponse response) {
View Full Code Here

TOP

Related Classes of org.geomajas.command.dto.RefreshConfigurationRequest

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.