Package org.apache.qpid.server.plugin

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


        Iterable<GroupManagerFactory> factories = groupManagerFactoryServiceLoader.instancesOf(GroupManagerFactory.class);

        Map<String, GroupManagerFactory> registeredGroupProviderFactories = new HashMap<String, GroupManagerFactory>();
        for (GroupManagerFactory factory : factories)
        {
            GroupManagerFactory existingFactory = registeredGroupProviderFactories.put(factory.getType(), factory);
            if (existingFactory != null)
            {
                throw new IllegalConfigurationException("Group provider factory of the same type '" + factory.getType()
                        + "' is already registered using class '" + existingFactory.getClass().getName()
                        + "', can not register class '" + factory.getClass().getName() + "'");
            }
        }
        _factories = registeredGroupProviderFactories;
        _supportedGroupProviders = Collections.unmodifiableCollection(registeredGroupProviderFactories.keySet());
View Full Code Here


    public Object perform(Map<String, Object> request, Broker broker)
    {
        Map<String, Object> attributes = new TreeMap<String, Object>();
        for (String providerType : _factories.keySet())
        {
            GroupManagerFactory factory = _factories.get(providerType);

            Map<String, Object> data = new HashMap<String, Object>();
            data.put(ATTRIBUTES, factory.getAttributeNames());
            Map<String, String> resources = factory.getAttributeDescriptions();
            if (resources != null)
            {
                data.put(DESCRIPTIONS, resources);
            }

            attributes.put(factory.getType(), data);
        }
        return attributes;
    }
View Full Code Here

TOP

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

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.