Package it.geosolutions.geobatch.xstream

Examples of it.geosolutions.geobatch.xstream.Alias


    }

    private void dumpActionConfig(ActionConfiguration cfg) {

        AliasRegistry aliasRegistry = new AliasRegistry();
        Alias alias = new Alias();
        alias.setAliasRegistry(aliasRegistry);
        // FIXME see improvements done in the latest snapshots of GB 1.4
        //new ScriptAliasRegistrar(aliasRegistry);
        XStream xstream = new XStream();
        alias.setAliases(xstream);
       
        String xml = xstream.toXML(cfg);
        LOGGER.info("Dumping " + cfg.getClass().getSimpleName() + " ---> \n" + xml);
    }
View Full Code Here


        assertNotNull(file);
        AliasRegistry aliasRegistry = new AliasRegistry();
        // FIXME alias registrar is became useless with new GB flow loading
        //new ScriptAliasRegistrar(aliasRegistry); // register static info
        XStream xstream = new XStream();
        Alias alias = new Alias();
        alias.setAliasRegistry(aliasRegistry);
        alias.setAliases(xstream);
        InputStream inStream = null;
        try {
            inStream = new FileInputStream(file);
            return (ActionConfiguration) xstream.fromXML(new BufferedInputStream(inStream));
        } finally {
View Full Code Here

TOP

Related Classes of it.geosolutions.geobatch.xstream.Alias

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.