Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.configuration.parsing
Class Parser52

java.lang.Object
  extended by org.infinispan.configuration.parsing.Parser52
All Implemented Interfaces:
ConfigurationParser<ConfigurationBuilderHolder>, org.jboss.staxmapper.XMLElementReader<ConfigurationBuilderHolder>

public class Parser52
extends Object
implements ConfigurationParser<ConfigurationBuilderHolder>

This class implements the parser for 5.2 schema files

Since:
5.2
Author:
Tristan Tarrant

Constructor Summary
Parser52()
           
 
Method Summary
 Namespace[] getSupportedNamespaces()
          Returns an array of namespaces supported by this parser
static void parseAsyncStore(org.jboss.staxmapper.XMLExtendedStreamReader reader, CacheStoreConfigurationBuilder<?,?> storeBuilder)
           
static void parseCommonLoaderAttributes(org.jboss.staxmapper.XMLExtendedStreamReader reader, int i, CacheLoaderConfigurationBuilder<?,?> builder)
          This method is public static so that it can be reused by custom cache store/loader configuration parsers
static void parseCommonLoaderChildren(org.jboss.staxmapper.XMLExtendedStreamReader reader, CacheLoaderConfigurationBuilder<?,?> loaderBuilder)
           
static void parseCommonStoreAttributes(org.jboss.staxmapper.XMLExtendedStreamReader reader, int i, CacheStoreConfigurationBuilder<?,?> builder)
          This method is public static so that it can be reused by custom cache store/loader configuration parsers
static void parseCommonStoreChildren(org.jboss.staxmapper.XMLExtendedStreamReader reader, CacheStoreConfigurationBuilder<?,?> storeBuilder)
           
static void parseLockSupportStoreAttributes(org.jboss.staxmapper.XMLExtendedStreamReader reader, int i, LockSupportStoreConfigurationBuilder<?,?> builder)
          This method is public static so that it can be reused by custom cache store/loader configuration parsers
static Properties parseProperties(org.jboss.staxmapper.XMLExtendedStreamReader reader)
           
static void parseSingletonStore(org.jboss.staxmapper.XMLExtendedStreamReader reader, CacheStoreConfigurationBuilder<?,?> storeBuilder)
           
 void readElement(org.jboss.staxmapper.XMLExtendedStreamReader reader, ConfigurationBuilderHolder holder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser52

public Parser52()
Method Detail

getSupportedNamespaces

public Namespace[] getSupportedNamespaces()
Description copied from interface: ConfigurationParser
Returns an array of namespaces supported by this parser

Specified by:
getSupportedNamespaces in interface ConfigurationParser<ConfigurationBuilderHolder>
Returns:
array of supported namespaces

readElement

public void readElement(org.jboss.staxmapper.XMLExtendedStreamReader reader,
                        ConfigurationBuilderHolder holder)
                 throws XMLStreamException
Specified by:
readElement in interface org.jboss.staxmapper.XMLElementReader<ConfigurationBuilderHolder>
Throws:
XMLStreamException

parseLockSupportStoreAttributes

public static void parseLockSupportStoreAttributes(org.jboss.staxmapper.XMLExtendedStreamReader reader,
                                                   int i,
                                                   LockSupportStoreConfigurationBuilder<?,?> builder)
                                            throws XMLStreamException
This method is public static so that it can be reused by custom cache store/loader configuration parsers

Throws:
XMLStreamException

parseCommonLoaderAttributes

public static void parseCommonLoaderAttributes(org.jboss.staxmapper.XMLExtendedStreamReader reader,
                                               int i,
                                               CacheLoaderConfigurationBuilder<?,?> builder)
                                        throws XMLStreamException
This method is public static so that it can be reused by custom cache store/loader configuration parsers

Throws:
XMLStreamException

parseCommonStoreAttributes

public static void parseCommonStoreAttributes(org.jboss.staxmapper.XMLExtendedStreamReader reader,
                                              int i,
                                              CacheStoreConfigurationBuilder<?,?> builder)
                                       throws XMLStreamException
This method is public static so that it can be reused by custom cache store/loader configuration parsers

Throws:
XMLStreamException

parseCommonLoaderChildren

public static void parseCommonLoaderChildren(org.jboss.staxmapper.XMLExtendedStreamReader reader,
                                             CacheLoaderConfigurationBuilder<?,?> loaderBuilder)
                                      throws XMLStreamException
Throws:
XMLStreamException

parseCommonStoreChildren

public static void parseCommonStoreChildren(org.jboss.staxmapper.XMLExtendedStreamReader reader,
                                            CacheStoreConfigurationBuilder<?,?> storeBuilder)
                                     throws XMLStreamException
Throws:
XMLStreamException

parseSingletonStore

public static void parseSingletonStore(org.jboss.staxmapper.XMLExtendedStreamReader reader,
                                       CacheStoreConfigurationBuilder<?,?> storeBuilder)
                                throws XMLStreamException
Throws:
XMLStreamException

parseAsyncStore

public static void parseAsyncStore(org.jboss.staxmapper.XMLExtendedStreamReader reader,
                                   CacheStoreConfigurationBuilder<?,?> storeBuilder)
                            throws XMLStreamException
Throws:
XMLStreamException

parseProperties

public static Properties parseProperties(org.jboss.staxmapper.XMLExtendedStreamReader reader)
                                  throws XMLStreamException
Throws:
XMLStreamException

Infinispan Distribution 5.2.6.Final-redhat-2

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