org.infinispan.configuration.parsing
Class ConfigFilesConvertor

java.lang.Object
  extended by org.infinispan.configuration.parsing.ConfigFilesConvertor

public class ConfigFilesConvertor
extends Object

Class used for converting different configuration files to INFINISPAN format.

Since:
4.0
Author:
Mircea.Markus@jboss.com

Constructor Summary
ConfigFilesConvertor()
           
 
Method Summary
static void main(String[] args)
          usage : java org.jboss.cache.config.parsing.ConfigFilesConvertor -Dsource=config-2.x.xml -Ddestination=config-3.x.xnl
 void parse(InputStream is, OutputStream os, String xsltFile, ClassLoader cl)
           
 void parse(String inputFile, OutputStream os, String xsltFile, ClassLoader cl)
          Writes to the os the infinispan 4.x configuration file resulted by transforming configuration file passed in as inputFile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigFilesConvertor

public ConfigFilesConvertor()
Method Detail

parse

public void parse(InputStream is,
                  OutputStream os,
                  String xsltFile,
                  ClassLoader cl)
           throws Exception
Throws:
Exception

parse

public void parse(String inputFile,
                  OutputStream os,
                  String xsltFile,
                  ClassLoader cl)
           throws Exception
Writes to the os the infinispan 4.x configuration file resulted by transforming configuration file passed in as inputFile. Transformation is performed according to the xsltFile. Both inputFile and he xslt file are looked up using a org.infinispan.util.DefaultFileLookup

Throws:
Exception

main

public static void main(String[] args)
                 throws Exception
usage : java org.jboss.cache.config.parsing.ConfigFilesConvertor -Dsource=config-2.x.xml -Ddestination=config-3.x.xnl

Throws:
Exception

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.