org.infinispan.configuration.parsing
Class Parser
java.lang.Object
org.infinispan.configuration.parsing.Parser
public class Parser
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Parser
public Parser(ClassLoader cl)
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.