Package org.openengsb.core.api.model

Examples of org.openengsb.core.api.model.ContextConfiguration


        return temporaryFolder.getRoot().list().length;
    }

    private ContextConfiguration getEmptyContextConfigurationWithId(String contextId) {
        Map<String, String> metaData = getMetaDataWithContextId(contextId);
        return new ContextConfiguration(metaData, null);
    }
View Full Code Here


    }

    private ConfigItem<Map<String, String>> loadContextConfigurationFromFile(File configurationFile) {
        String contextFileName = FilenameUtils.removeExtension(configurationFile.getName());
        ContextId contextId = new ContextId(contextFileName);
        ContextConfiguration contextConfig = new ContextConfiguration(contextId.toMetaData(), null);
        return contextConfig;
    }
View Full Code Here

    }

    @Override
    public void createContext(String contextId) {
        LOGGER.debug("Creating context %s", contextId);
        ContextConfiguration contextConfiguration =
            new ContextConfiguration(new ContextId(contextId).toMetaData(), null);
        try {
            getConfigPersistenceService().persist(contextConfiguration);
        } catch (InvalidConfigurationException e) {
            LOGGER.error("Error storing context " + contextId + ": Invalid configuration", e);
        } catch (PersistenceException e) {
View Full Code Here

TOP

Related Classes of org.openengsb.core.api.model.ContextConfiguration

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.