Package org.apache.qpid.server.plugin

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


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


    }


    public DurableConfigurationStore createMessageStore(String storeType)
    {
        DurableConfigurationStoreFactory factory = _factories.get(storeType.toLowerCase());
        if (factory == null)
        {
            throw new IllegalConfigurationException("Unknown store type: " + storeType
                                                    + ". Supported types: " + _factories.keySet());
        }
        return factory.createDurableConfigurationStore();
    }
View Full Code Here

TOP

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

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.