Examples of ConfigurationElement


Examples of com.sun.grid.jgdi.configuration.ConfigurationElement

        } else if (key instanceof DefaultMapListPropertyDescriptor) {
            updateMapListProperty(jgdi, obj, (DefaultMapListPropertyDescriptor) key, values);
        //For CONFIGURATION objects
        } else if (obj instanceof Configuration && key instanceof String) {
            Configuration c = (Configuration) obj;
            ConfigurationElement ce = new ConfigurationElementImpl();
            ce.setName((String) key);
            //TODO LP: Find out expected behaviour! Can values contain list of ConfigElems?
            ce.setValue(values.trim());
            c.addEntries(ce);
            //TODO LP: Need to exit if we get can't resolve hostname. Otherwise we get stacktrace for each element.
            //Also if should be reworked to return correct error code (1).
            jgdi.updateConfiguration(c);
        } else {
View Full Code Here

Examples of com.sun.grid.jgdi.configuration.ConfigurationElement

        //CONFIGURATION
        if (obj instanceof Configuration) {
            String name = EditorUtil.java2cName(obj, pd.getPropertyName());
            if (name.equals("entries")) {
                Iterator iter = ((Configuration) obj).getEntriesList().iterator();
                ConfigurationElement elem = null;
                while (iter.hasNext()) {
                    elem = (ConfigurationElement) iter.next();
                    switch (type) {
                        case ELEMENT_NAME:
                            list.add(elem.getName());
                            break;
                        case ELEMENT_VALUE:
                            list.add(elem.getValue());
                            break;
                        default:
                            throw new IllegalArgumentException("Invalid element type: " + type + "!");
                    }
                }
View Full Code Here

Examples of net.sf.ehcache.config.generator.model.elements.ConfigurationElement

     *
     * @param configuration
     * @param visitor
     */
    static void visitConfiguration(Configuration configuration, NodeElementVisitor visitor) {
        ConfigurationElement configElement = new ConfigurationElement(configuration);
        configElement.accept(visitor);
    }
View Full Code Here

Examples of org.apache.slide.util.conf.ConfigurationElement

               
                FileInputStream is = new FileInputStream(configFile);
                //init(reader);
                Populate pop = new Populate();
                Configuration slideConfiguration =
                    new ConfigurationElement(pop.load(new InputSource(is),
                                                      parser.getXMLReader()));
               
                Domain.init(slideConfiguration);
               
                Domain.start();
View Full Code Here

Examples of org.apache.slide.util.conf.ConfigurationElement

            factory.setNamespaceAware(false);
            factory.setValidating(false);
            SAXParser parser = factory.newSAXParser();
            Populate pop = new Populate();
            Configuration slideConfiguration =
                new ConfigurationElement(
                pop.load(
                                            new InputSource(
                            new StringReader("<revision/>")), parser.getXMLReader()));
            loadObjectRevision(accessToken, token, uri, slideConfiguration);
        }
View Full Code Here

Examples of org.apache.slide.util.conf.ConfigurationElement

        factory.setNamespaceAware(false);
        factory.setValidating(false);
        SAXParser parser = factory.newSAXParser();
        Populate pop = new Populate();
        Configuration slideConfiguration =
            new ConfigurationElement(pop.load(new InputSource
                                                  (configurationInputStream), parser.getXMLReader()));
       
        Domain.init(slideConfiguration);
       
    }
View Full Code Here

Examples of org.apache.slide.util.conf.ConfigurationElement

           
            FileInputStream is = new FileInputStream(fileName);
            //init(reader);
            Populate pop = new Populate();
            Configuration slideConfiguration =
                new ConfigurationElement(pop.load(new InputSource(is),
                                                  parser.getXMLReader()));
           
            init(slideConfiguration);
           
        } catch (javax.xml.parsers.FactoryConfigurationError e) {
View Full Code Here

Examples of org.apache.slide.util.conf.ConfigurationElement

            factory.setNamespaceAware(false);
            factory.setValidating(false);
            SAXParser parser = factory.newSAXParser();
           
            Populate pop = new Populate();
            Configuration configuration = new ConfigurationElement
                (pop.load(new InputSource(reader), parser.getXMLReader()));
           
            importData(token, configuration);
           
        } catch (javax.xml.parsers.FactoryConfigurationError e) {
View Full Code Here

Examples of org.apache.slide.util.conf.ConfigurationElement

            factory.setNamespaceAware(false);
            factory.setValidating(false);
            SAXParser parser = factory.newSAXParser();
            Populate pop = new Populate();
            Configuration slideConfiguration =
                new ConfigurationElement(
                pop.load(
                                            new InputSource(
                            new StringReader("<revision/>")), parser.getXMLReader()));
            loadObjectRevision(accessToken, token, uri, slideConfiguration);
        }
View Full Code Here

Examples of org.apache.slide.util.conf.ConfigurationElement

        factory.setNamespaceAware(false);
        factory.setValidating(false);
        SAXParser parser = factory.newSAXParser();
        Populate pop = new Populate();
        Configuration slideConfiguration =
            new ConfigurationElement(pop.load(new InputSource
                                                  (configurationInputStream), parser.getXMLReader()));
       
        Domain.init(slideConfiguration);
       
    }
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.