Package org.apache.qpid.server.plugin

Examples of org.apache.qpid.server.plugin.PreferencesProviderFactory$TYPES


            ConfiguredObject... parents)
    {
        AuthenticationProvider authenticationProvider = RecovererHelper.verifyOnlyParentIsOfType(AuthenticationProvider.class, parents);
        Map<String, Object> attributes = entry.getAttributes();
        String type = MapValueConverter.getStringAttribute(PreferencesProvider.TYPE, attributes);
        PreferencesProviderFactory factory = PreferencesProviderFactory.FACTORIES.get(type);
        return factory.createInstance(entry.getId(), attributes, authenticationProvider);
    }
View Full Code Here


    {
        if(childClass == PreferencesProvider.class)
        {
            String name = MapValueConverter.getStringAttribute(PreferencesProvider.NAME, attributes);
            String type = MapValueConverter.getStringAttribute(PreferencesProvider.TYPE, attributes);
            PreferencesProviderFactory factory = PreferencesProviderFactory.FACTORIES.get(type);
            UUID id = UUIDGenerator.generatePreferencesProviderUUID(name, getName());
            PreferencesProvider pp = factory.createInstance(id, attributes, this);
            pp.setDesiredState(State.INITIALISING, State.ACTIVE);
            _preferencesProvider = pp;
            return (C)pp;
        }
        throw new IllegalArgumentException("Cannot create child of class " + childClass.getSimpleName());
View Full Code Here

    {
        if(childClass == PreferencesProvider.class)
        {
            String name = MapValueConverter.getStringAttribute(PreferencesProvider.NAME, attributes);
            String type = MapValueConverter.getStringAttribute(PreferencesProvider.TYPE, attributes);
            PreferencesProviderFactory factory = PreferencesProviderFactory.FACTORIES.get(type);
            UUID id = UUIDGenerator.generatePreferencesProviderUUID(name, getName());
            PreferencesProvider pp = factory.createInstance(id, attributes, this);
            pp.setDesiredState(State.INITIALISING, State.ACTIVE);
            _preferencesProvider = pp;
            return (C)pp;
        }
        throw new IllegalArgumentException("Cannot create child of class " + childClass.getSimpleName());
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.plugin.PreferencesProviderFactory$TYPES

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.