Package org.apache.qpid.server.plugin

Examples of org.apache.qpid.server.plugin.ConfigurationStoreFactory


        Iterable<ConfigurationStoreFactory> configurationStoreFactories = serviceLoader
                .instancesOf(ConfigurationStoreFactory.class);
        for (ConfigurationStoreFactory storeFactory : configurationStoreFactories)
        {
            String type = storeFactory.getType();
            ConfigurationStoreFactory factory = _factories.put(type.toLowerCase(), storeFactory);
            if (factory != null)
            {
                throw new IllegalStateException("ConfigurationStoreFactory with type name '" + type
                        + "' is already registered using class '" + factory.getClass().getName() + "', can not register class '"
                        + storeFactory.getClass().getName() + "'");
            }
        }
    }
View Full Code Here


     * @throws IllegalConfigurationException if store type is unknown
     */
    public ConfigurationEntryStore createStore(String storeLocation, String storeType, String initialConfigLocation, boolean overwrite, Map<String, String> configProperties)
    {
        ConfigurationEntryStore initialStore = new MemoryConfigurationEntryStore(initialConfigLocation, null, configProperties);
        ConfigurationStoreFactory factory = _factories.get(storeType.toLowerCase());
        if (factory == null)
        {
            throw new IllegalConfigurationException("Unknown store type: " + storeType);
        }
        return factory.createStore(storeLocation, initialStore, overwrite, configProperties);
    }
View Full Code Here

        Iterable<ConfigurationStoreFactory> configurationStoreFactories = serviceLoader
                .instancesOf(ConfigurationStoreFactory.class);
        for (ConfigurationStoreFactory storeFactory : configurationStoreFactories)
        {
            String type = storeFactory.getStoreType();
            ConfigurationStoreFactory factory = _factories.put(type.toLowerCase(), storeFactory);
            if (factory != null)
            {
                throw new IllegalStateException("ConfigurationStoreFactory with type name '" + type
                        + "' is already registered using class '" + factory.getClass().getName() + "', can not register class '"
                        + storeFactory.getClass().getName() + "'");
            }
        }
    }
View Full Code Here

     * @throws IllegalConfigurationException if store type is unknown
     */
    public ConfigurationEntryStore createStore(String storeLocation, String storeType, String initialConfigLocation, boolean overwrite, Map<String, String> configProperties)
    {
        ConfigurationEntryStore initialStore = new MemoryConfigurationEntryStore(initialConfigLocation, null, configProperties);
        ConfigurationStoreFactory factory = _factories.get(storeType.toLowerCase());
        if (factory == null)
        {
            throw new IllegalConfigurationException("Unknown store type: " + storeType);
        }
        return factory.createStore(storeLocation, initialStore, overwrite, configProperties);
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.plugin.ConfigurationStoreFactory

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.