Package org.apache.qpid.server.model

Examples of org.apache.qpid.server.model.ConfiguredObjectTypeRegistry


    }

    private Map<String,Map> processCategory(final Class<? extends ConfiguredObject> clazz)
    {
        Map<String, Map> typeToDataMap = new TreeMap<>();
        ConfiguredObjectTypeRegistry typeRegistry = _instance.getTypeRegistry();
        for(Class<? extends ConfiguredObject> type : typeRegistry.getTypeSpecialisations(clazz))
        {
            typeToDataMap.put(ConfiguredObjectTypeRegistry.getType(type), processType(type));
        }
        return typeToDataMap;
    }
View Full Code Here


    private static final String DESCRIPTIONS = "descriptions";

    @Override
    final public Object perform(Map<String, Object> request, Broker broker)
    {
        ConfiguredObjectTypeRegistry typeRegistry = broker.getModel().getTypeRegistry();
        Collection<Class<? extends ConfiguredObject>> groupProviderTypes =
                typeRegistry.getTypeSpecialisations(getCategoryClass());

        Map<String, Object> attributes = new TreeMap<String, Object>();

        for (Class<? extends ConfiguredObject> groupProviderType : groupProviderTypes)
        {
            Collection<ConfiguredObjectAttribute<?, ?>> typeSpecificAttributes =
                    typeRegistry.getTypeSpecificAttributes(groupProviderType);

            Map<String, Object> data = new HashMap<String, Object>();

            Collection<String> attributeNames = new TreeSet<>();
            Map<String,String> descriptions = new HashMap<>();
View Full Code Here

    }

    private ProtocolType getProtocolType(Map<String, Object> portAttributes, Broker<?> broker)
    {
        Model model = broker.getModel();
        ConfiguredObjectTypeRegistry typeRegistry = model.getTypeRegistry();
        Map<String, ConfiguredObjectAttribute<?, ?>> attributeTypes =
                typeRegistry.getAttributeTypes(Port.class);
        ConfiguredObjectAttribute protocolsAttribute = attributeTypes.get(Port.PROTOCOLS);
        Set<Protocol> protocols = (Set<Protocol>) protocolsAttribute.convert(portAttributes.get(Port.PROTOCOLS),broker);
        ProtocolType protocolType = null;

        if(protocols == null || protocols.isEmpty())
View Full Code Here

            public String getType()
            {
                return "test";
            }
        };
        _registry = new ConfiguredObjectTypeRegistry(Arrays.asList(configuredObjectRegistration), getSupportedCategories());
    }
View Full Code Here

        if (object == null)
        {
            return null;
        }
        Model model = _parent.getModel();
        ConfiguredObjectTypeRegistry typeRegistry = model.getTypeRegistry();
        Map<String, ConfiguredObjectAttribute<?, ?>> attributeTypes =
                typeRegistry.getAttributeTypes(Port.class);
        ConfiguredObjectAttribute protocolsAttribute = attributeTypes.get(Port.PROTOCOLS);
        return (Set<Protocol>) protocolsAttribute.convert(object,_parent);

    }
View Full Code Here

        if (object == null)
        {
            return null;
        }
        Model model = _parent.getModel();
        ConfiguredObjectTypeRegistry typeRegistry = model.getTypeRegistry();
        Map<String, ConfiguredObjectAttribute<?, ?>> attributeTypes =
                typeRegistry.getAttributeTypes(Port.class);
        ConfiguredObjectAttribute protocolsAttribute = attributeTypes.get(Port.PROTOCOLS);
        return (Set<Protocol>) protocolsAttribute.convert(object,_parent);

    }
View Full Code Here

                public String getType()
                {
                    return TestConfiguredObjectModel.class.getSimpleName();
                }
            };
            _configuredObjectTypeRegistry = new ConfiguredObjectTypeRegistry(Arrays.asList(configuredObjectRegistration), CATEGORIES);
        }
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.model.ConfiguredObjectTypeRegistry

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.