Package com.volantis.mcs.runtime.configuration.xml.digester

Examples of com.volantis.mcs.runtime.configuration.xml.digester.MarinerDigester


    protected Digester createDigester()
            throws SAXException {
        // Use a hardcoded XML reader rather than let digester use
        // JAXP since Weblogic 6.0 doesn't like that apparently.
        return new MarinerDigester(createXMLReader());
    }
View Full Code Here


            throws IOException, SAXException {
        // Create the digester
        // @todo ought this digester use our repackaged parser?
        // I have used our repackaged parser to get it to work for now...
        // This will probably have to be changed as part of VBM:2003022702.
        Digester digester = new MarinerDigester(new SAXParser());
        digester.addObjectCreate("parent", ParentConf.class);
        digester.addObjectCreate("parent/enabled", EnabledConf.class);
        digester.addSetProperties("parent/enabled", "property", "property");
        digester.addSetNext("parent/enabled", "setEnabled");
       
        // Parse the document using the digester.
        ByteArrayInputStream stream = new ByteArrayInputStream(
                document.getBytes());
        InputSource source = new InputSource(stream);
        ParentConf parent = (ParentConf) digester.parse(source);
       
        assertNotNull(parent);
        return parent;
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.runtime.configuration.xml.digester.MarinerDigester

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.