Examples of ConfigurationNotFoundException


Examples of br.net.woodstock.rockframework.domain.ConfigurationNotFoundException

  }

  private ApplicationContext getApplicationContext() {
    ClassLoader classLoader = ContextHelper.class.getClassLoader();
    if (classLoader.getResource(ContextHelper.APPLICATION_CONFIGURATION) == null) {
      throw new ConfigurationNotFoundException("File " + ContextHelper.APPLICATION_CONFIGURATION + " not found");
    }

    return new ClassPathXmlApplicationContext(new String[] { ContextHelper.APPLICATION_CONFIGURATION });
  }
View Full Code Here

Examples of br.net.woodstock.rockframework.domain.ConfigurationNotFoundException

  }

  private ApplicationContext getApplicationContext() {
    ClassLoader classLoader = ContextHelper.class.getClassLoader();
    if (classLoader.getResource(ContextHelper.APPLICATION_CONFIGURATION) == null) {
      throw new ConfigurationNotFoundException("File " + ContextHelper.APPLICATION_CONFIGURATION + " not found");
    }

    return new ClassPathXmlApplicationContext(new String[] { ContextHelper.APPLICATION_CONFIGURATION });
  }
View Full Code Here

Examples of com.codingcrayons.aspectfaces.exceptions.ConfigurationNotFoundException

  public Configuration getConfiguration(String name) throws ConfigurationNotFoundException,
    ConfigurationFileNotFoundException, ConfigurationParsingException {

    IConfigurationHolder configurationHolder = this.configurationHolders.get(name);
    if (configurationHolder == null) {
      throw new ConfigurationNotFoundException("Configuration with name: '" + name + "' not found in "
        + "configuration container.");
    }
    return configurationHolder.getConfiguration();
  }
View Full Code Here

Examples of net.jini.config.ConfigurationNotFoundException

        conf.setException(null);

        // 12
        final Throwable[] exceptionList2 = {
              new ConfigurationException(""),
              new ConfigurationNotFoundException(""),
              new NoSuchEntryException(""),
              new Error() };
        for (int e = 0; e < exceptionList2.length; ++e) {
            Throwable testException = exceptionList2[e];
            logger.log(Level.INFO, "-- subcase: " + testException);
View Full Code Here

Examples of net.jini.config.ConfigurationNotFoundException

    public ValidConfigurationWithoutDefaults(String[] options, ClassLoader cl)
            throws ConfigurationException {
        wasCalled = true;

        if (options == null) {
            throw new ConfigurationNotFoundException(
                    "default options are not supplied");
        }
    }
View Full Code Here

Examples of net.jini.config.ConfigurationNotFoundException

    /**
     * This method performs all actions mentioned in class description.
     */
    public void run() throws Exception {
        ConfigurationNotFoundException ce;
        ce = new ConfigurationNotFoundException(null);
        assertion(ce.getMessage() == null);

        ce = new ConfigurationNotFoundException("");
        assertion(ce.getMessage().equals(""));

        String message = "Some message";
        ce = new ConfigurationNotFoundException(message);
        assertion(ce.getMessage().equals(message));

        ce = new ConfigurationNotFoundException(null, null);
        assertion(ce.getMessage() == null);
        assertion(ce.getCause() == null);

        ce = new ConfigurationNotFoundException("", null);
        assertion(ce.getMessage().equals(""));
        assertion(ce.getCause() == null);

        ce = new ConfigurationNotFoundException(message, null);
        assertion(ce.getMessage().equals(message));
        assertion(ce.getCause() == null);

        Exception e = new Exception();
        ce = new ConfigurationNotFoundException(null, e);
        assertion(ce.getMessage() == null);
        assertion(ce.getCause().equals(e));

        ce = new ConfigurationNotFoundException("", e);
        assertion(ce.getMessage().equals(""));
        assertion(ce.getCause().equals(e));

        ce = new ConfigurationNotFoundException(message, e);
        assertion(ce.getMessage().equals(message));
        assertion(ce.getCause().equals(e));
    }
View Full Code Here

Examples of org.dcm4che3.conf.api.ConfigurationNotFoundException

        return PreferencesUtils.nodeExists(rootPrefs, DICOM_CONFIGURATION_ROOT);
    }

    public Preferences getDicomConfigurationRoot() throws ConfigurationException {
        if (!PreferencesUtils.nodeExists(rootPrefs, DICOM_CONFIGURATION_ROOT))
            throw new ConfigurationNotFoundException();

        return rootPrefs.node(DICOM_CONFIGURATION_ROOT);
    }
View Full Code Here

Examples of org.dcm4che3.conf.api.ConfigurationNotFoundException

    }

    public synchronized Device findDevice(String nodeName, String aet)
            throws ConfigurationException {
         if (!PreferencesUtils.nodeExists(rootPrefs, DICOM_DEVICES_ROOT))
            throw new ConfigurationNotFoundException();
       
        try {
            Preferences devicePrefs = rootPrefs.node(DICOM_DEVICES_ROOT);
            for (String deviceName : devicePrefs.childrenNames()) {
                Preferences deviceNode = devicePrefs.node(deviceName);
                for (String aet2 : deviceNode.node(nodeName).childrenNames())
                    if (aet.equals(aet2))
                        return loadDevice(deviceNode);
            }
        } catch (BackingStoreException e) {
            throw new ConfigurationException(e);
        }
        throw new ConfigurationNotFoundException(aet);
    }
View Full Code Here

Examples of org.dcm4che3.conf.api.ConfigurationNotFoundException

    }

    public synchronized Device loadDevice(String pathName) throws ConfigurationException,
            ConfigurationNotFoundException {
        if (!PreferencesUtils.nodeExists(rootPrefs, pathName))
            throw new ConfigurationNotFoundException("Device "+pathName+" not found in configuration");

        return loadDevice(rootPrefs.node(pathName));
    }
View Full Code Here

Examples of org.dcm4che3.conf.api.ConfigurationNotFoundException

    @Override
    public synchronized void merge(Device device) throws ConfigurationException {
        String pathName = deviceRef(device.getDeviceName());
        if (!PreferencesUtils.nodeExists(rootPrefs, pathName))
            throw new ConfigurationNotFoundException();
       
        Preferences devicePrefs = rootPrefs.node(pathName);
        Device prev = loadDevice(devicePrefs);
        try {
            storeDiffs(devicePrefs, prev, device);
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.