public class DsParser extends AbstractParser implements MetadataParser<DataSources>
Modifier and Type | Class and Description |
---|---|
static class |
DsParser.Tag
A Tag.
|
bundle, log
Constructor and Description |
---|
DsParser() |
Modifier and Type | Method and Description |
---|---|
DataSources |
parse(InputStream xmlInputStream)
Parse a -ds.xml file
|
DataSources |
parse(XMLStreamReader reader)
Parse a -ds.xml file
|
protected DataSource |
parseDataSource(XMLStreamReader reader)
Parse a datasource
|
protected DataSources |
parseDataSources(XMLStreamReader reader)
Parse datasource
|
protected Driver |
parseDriver(XMLStreamReader reader)
Parse driver
|
protected DsSecurity |
parseDsSecurity(XMLStreamReader reader)
Parse security
|
protected DsPool |
parsePool(XMLStreamReader reader)
parse a
CommonPool object |
protected Statement |
parseStatementSettings(XMLStreamReader reader)
Parse statement
|
protected TimeOut |
parseTimeOutSettings(XMLStreamReader reader)
Parse timeout
|
protected Validation |
parseValidationSetting(XMLStreamReader reader)
Parse validation
|
protected XaDataSource |
parseXADataSource(XMLStreamReader reader)
Parse a XA datasource
|
protected DsXaPool |
parseXaPool(XMLStreamReader reader)
parse a
CommonXaPool object |
attributeAsBoolean, attributeAsInt, attributeAsString, elementAsBoolean, elementAsFlushStrategy, elementAsInteger, elementAsLong, elementAsString, isSystemPropertiesResolved, parseCapacity, parseConfigProperty, parseCredential, parseExtension, parseRecovery, parseSecuritySettings, parseTimeOut, parseValidation, setSystemPropertiesResolved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isSystemPropertiesResolved, setSystemPropertiesResolved
public DataSources parse(InputStream xmlInputStream) throws Exception
parse
in interface MetadataParser<DataSources>
xmlInputStream
- the input streamException
- Thrown if an error occurspublic DataSources parse(XMLStreamReader reader) throws Exception
parse
in interface MetadataParser<DataSources>
reader
- The readerException
- Thrown if an error occursprotected DataSources parseDataSources(XMLStreamReader reader) throws XMLStreamException, ParserException, ValidateException
reader
- The readerXMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected Driver parseDriver(XMLStreamReader reader) throws XMLStreamException, ParserException, ValidateException
reader
- The readerXMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected DsSecurity parseDsSecurity(XMLStreamReader reader) throws XMLStreamException, ParserException, ValidateException
reader
- The readerXMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected Validation parseValidationSetting(XMLStreamReader reader) throws XMLStreamException, ParserException, ValidateException
reader
- The readerXMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected TimeOut parseTimeOutSettings(XMLStreamReader reader) throws XMLStreamException, ParserException, ValidateException
reader
- The readerXMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected Statement parseStatementSettings(XMLStreamReader reader) throws XMLStreamException, ParserException, ValidateException
reader
- The readerXMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected DsPool parsePool(XMLStreamReader reader) throws XMLStreamException, ParserException, ValidateException
CommonPool
objectparsePool
in class AbstractParser
reader
- readerCommonPool
objectXMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected DsXaPool parseXaPool(XMLStreamReader reader) throws XMLStreamException, ParserException, ValidateException
CommonXaPool
objectparseXaPool
in class AbstractParser
reader
- readerCommonXaPool
objectXMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected XaDataSource parseXADataSource(XMLStreamReader reader) throws XMLStreamException, ParserException, ValidateException
reader
- The readerXMLStreamException
- Thrown if a stream error occursParserException
- Thrown if a parser error occursValidateException
- Thrown if a validation error occursprotected DataSource parseDataSource(XMLStreamReader reader) throws XMLStreamException, ParserException, ValidateException
reader
- The readerXMLStreamException
- Thrown if a stream error occursParserException
- Thrown if a parser error occursValidateException
- Thrown if a validation error occursCopyright © 2021 JBoss by Red Hat. All rights reserved.