org.infinispan.configuration.parsing
Class Parser

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

public class Parser
extends Object


Constructor Summary
Parser(ClassLoader cl)
           
 
Method Summary
 ConfigurationBuilderHolder parse(InputStream is)
           
 ConfigurationBuilderHolder parse(List<? extends InputStream> streams)
          This will parse all the streams in order overriding at each the global and default cache settings.
 ConfigurationBuilderHolder parseFile(String filename)
           
 ConfigurationBuilderHolder parseFiles(List<String> filenames)
          This will parse all the filenames in order overriding at each the global and default cache settings.
static Properties parseProperties(XMLStreamReader reader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser(ClassLoader cl)
Method Detail

parseFile

public ConfigurationBuilderHolder parseFile(String filename)

parseFiles

public ConfigurationBuilderHolder parseFiles(List<String> filenames)
This will parse all the filenames in order overriding at each the global and default cache settings. Once all the default cache settings are read, then the named caches for each file will be applied as a named cache with the default cache settings as a base going through each file.

Parameters:
filenames - The file names, each might be the name of the file (too look it up in the class path) or an url to a file.
Returns:
ConfigurationBuilderHolder with all the values applied and overridden according to ordering of files

parse

public ConfigurationBuilderHolder parse(InputStream is)

parse

public ConfigurationBuilderHolder parse(List<? extends InputStream> streams)
This will parse all the streams in order overriding at each the global and default cache settings. Once all the default cache settings are read, then the named caches for each stream will be applied as a named cache in order with the default cache settings as a base going through each file.

Parameters:
streams - The streams each containing data pertaining to an infinispan configuration xml file
Returns:
ConfigurationBuilderHolder with all the values applied and overridden according to ordering of streams

parseProperties

public static Properties parseProperties(XMLStreamReader reader)
                                  throws XMLStreamException
Throws:
XMLStreamException

-->

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