Examples of DurableConfigurationStoreFactory


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

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

    }


    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
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.