Examples of Configurable


Examples of org.jacorb.config.Configurable

            Class<?> clazz = ObjectUtil.classForName(className);
            Object instance = clazz.newInstance();

            if (instance instanceof Configurable)
            {
                Configurable configurable = (Configurable)instance;
                configurable.configure(configuration);
            }

            logger.debug("created org.omg.ETF.Factories: " + className);

            return (Factories)instance;
View Full Code Here

Examples of org.jboss.soa.esb.Configurable

              final IOException ioe = new IOException("Failed to instantiate Retry Handler") ;
              ioe.initCause(th) ;
              throw ioe ;
          }
          if (isConfigurable) {
              final Configurable configurable = Configurable.class.cast(handler) ;
              try {
                  configurable.setConfiguration(config) ;
              } catch (final ConfigurationException ce) {
                  final IOException ioe = new IOException("Failed to configure Retry Handler") ;
                  ioe.initCause(ce) ;
                  throw ioe ;
              }
View Full Code Here

Examples of org.jboss.soa.esb.Configurable

          throw new ConfigurationException("Unexpected exception querying contract provider", lre);
        }
       
        if ((provider != null) && (provider instanceof Configurable))
        {
          final Configurable configurable = Configurable.class.cast(provider) ;
          configurable.setConfiguration(config);
        }
      }
    }
  }
View Full Code Here

Examples of org.mokai.Configurable

   * @throws ExecutionException if the configure method throws an exception.
   */
  public static void configure(Object object) throws ExecutionException {
    try {
      if (Configurable.class.isInstance(object)) {
        Configurable configurable = (Configurable) object;
        configurable.configure();
      }
    } catch (Exception e) {
      throw new ExecutionException("Exception while configuring object: " + e.getMessage(), e);
    }
  }
View Full Code Here

Examples of org.uiautomation.ios.client.uiamodels.impl.augmenter.Configurable

      "-/:;()$&@\".,?!'[]{}#%^*+=_\\|~<>£€•àáâäæãåāìįíīïîiłńñõōøœóòöôßśšūúùüûŷÿžźżÀÁÂÄÆÃÅĀÌĮÍĪÏÎŁŃÑÕŌØŒÓÒÖÔŚŠŪÚÙÜÛŶŸŽŹŻcçćčCÇĆČeèéêëēėęEÈÉÊËĒĖĘ";

  @Test
  public void testShouldClickOnSubmitInputElements() {
    driver.get(pages.formPage);
    Configurable config = IOSDriverAugmenter.augment(driver);
    config.setConfiguration(WebDriverLikeCommand.CLICK, "nativeEvents", false);
    driver.findElement(By.id("submitButton")).click();
    waitFor(pageTitleToBe(driver, "We Arrive Here"));
    assertEquals(driver.getTitle(), ("We Arrive Here"));
  }
View Full Code Here

Examples of org.uiautomation.ios.client.uiamodels.impl.augmenter.Configurable

    assertEquals(AUXILIARY_KEYS, input.getAttribute("value"));
  }

  @Test
  public void testShouldBeAbleToSendKeysFromAuxiliaryKeyboardWithOutNativeEvents() {
    Configurable c = IOSDriverAugmenter.augment(driver);
    c.setConfiguration(WebDriverLikeCommand.SET_VALUE, "nativeEvents", false);
    driver.get(pages.formPage);
    WebElement input = driver.findElement(By.id("working"));
    input.sendKeys("1-800-FLOWERS");
    assertEquals("1-800-FLOWERS", input.getAttribute("value"));
    input.clear();
View Full Code Here

Examples of ptolemy.kernel.util.Configurable

                // close the skipping.
                _skipElement--;
            }
        } else if (elementName.equals("configure")) {
            try {
                Configurable castCurrent = (Configurable) _current;
                String previousSource = castCurrent.getConfigureSource();
                String previousText = castCurrent.getConfigureText();
                castCurrent.configure(_base, _configureSource, _currentCharData
                        .toString());

                // Propagate to derived classes and instances.
                try {
                    // This has the side effect of marking the value
                    // overridden.
                    _current.propagateValue();
                } catch (IllegalActionException ex) {
                    // Propagation failed. Restore previous value.
                    castCurrent.configure(_base, previousSource, previousText);
                    throw ex;
                }
            } catch (NoClassDefFoundError e) {
                // If we are running without a display and diva.jar
                // is not in the classpath, then we may get"
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.