Package org.apache.geronimo.kernel.config

Examples of org.apache.geronimo.kernel.config.NoSuchConfigException


    }

    public Set<URL> resolve(Artifact configId, String moduleName, String pattern) throws NoSuchConfigException, MalformedURLException {
        File file = locations.get(configId);
        if (file == null) {
            throw new NoSuchConfigException(configId);
        }
        return IOUtil.search(file, pattern);
    }
View Full Code Here


                }
            } finally {
                in.close();
            }
        }
        throw new NoSuchConfigException(moduleId);
    }
View Full Code Here

        String id = configID.toString();
        File configDir;
        synchronized(this) {
            String storeID = index.getProperty(id);
            if (storeID == null) {
                throw new NoSuchConfigException();
            }
            configDir = new File(rootDir, storeID);
            File tempDir = new File(rootDir, storeID + ".tmp");
            if (configDir.renameTo(tempDir)) {
                configDir = tempDir;
View Full Code Here

    }

    private synchronized File getRoot(URI configID) throws NoSuchConfigException {
        String id = index.getProperty(configID.toString());
        if (id == null) {
            throw new NoSuchConfigException("No such config: " + configID);
        }
        return new File(rootDir, id);
    }
View Full Code Here

        delegate.uninstall(configId);
    }

    protected void ensureArtifactForMasterConfiguration(Artifact configId) throws NoSuchConfigException {
        if (!configNameBuilder.isMasterConfigurationName(configId)) {
            throw new NoSuchConfigException(configId);
        }
    }
View Full Code Here

   
    public void testStartConfigurationFailsUponStartAndIgnore() throws Exception {
        configurationManager.isLoaded(configurationId);
        modify().returnValue(true);
        configurationManager.startConfiguration(configurationId);
        modify().throwException(new NoSuchConfigException(configurationId));
       
        startVerification();

        BasicClusterConfigurationController controller = newController(true, true);
       
View Full Code Here

   
    public void testStartConfigurationFailsUponStart() throws Exception {
        configurationManager.isLoaded(configurationId);
        modify().returnValue(true);
        configurationManager.startConfiguration(configurationId);
        NoSuchConfigException expectedException = new NoSuchConfigException(configurationId);
        modify().throwException(expectedException);
       
        startVerification();

        BasicClusterConfigurationController controller = newController(true, false);
View Full Code Here

        return objectName.toString();
    }

    public synchronized ObjectName loadConfiguration(URI configId) throws NoSuchConfigException, IOException, InvalidConfigException {
        if (!repository.hasURI(configId)) {
            throw new NoSuchConfigException("Configuration not found: " + configId);
        }

        GBeanData config = new GBeanData();
        URL baseURL = new URL("jar:" + repository.getURL(configId).toString() + "!/");
        InputStream jis = null;
View Full Code Here

        String id = configID.toString();
        File configDir;
        synchronized(this) {
            String storeID = index.getProperty(id);
            if (storeID == null) {
                throw new NoSuchConfigException();
            }
            configDir = new File(rootDir, storeID);
            File tempDir = new File(rootDir, storeID + ".tmp");
            if (configDir.renameTo(tempDir)) {
                configDir = tempDir;
View Full Code Here

    }

    private synchronized File getRoot(URI configID) throws NoSuchConfigException {
        String id = index.getProperty(configID.toString());
        if (id == null) {
            throw new NoSuchConfigException("No such config: " + configID);
        }
        return new File(rootDir, id);
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.kernel.config.NoSuchConfigException

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.