|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.config.AbstractXmlConfigHelper
com.hazelcast.config.AbstractConfigBuilder
com.hazelcast.config.XmlConfigBuilder
public class XmlConfigBuilder
A XML ConfigBuilder implementation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.hazelcast.config.AbstractConfigBuilder |
|---|
AbstractConfigBuilder.ConfigType |
| Nested classes/interfaces inherited from class com.hazelcast.config.AbstractXmlConfigHelper |
|---|
AbstractXmlConfigHelper.IterableNodeList |
| Field Summary |
|---|
| Fields inherited from class com.hazelcast.config.AbstractXmlConfigHelper |
|---|
domLevel3 |
| Constructor Summary | |
|---|---|
XmlConfigBuilder()
Constructs a XmlConfigBuilder that tries to find a usable XML configuration file. |
|
XmlConfigBuilder(InputStream inputStream)
Constructs a XmlConfigBuilder that reads from the given InputStream. |
|
XmlConfigBuilder(String xmlFileName)
Constructs a XmlConfigBuilder that reads from the provided XML file. |
|
XmlConfigBuilder(URL url)
Constructs a XMLConfigBuilder that reads from the given URL. |
|
| Method Summary | |
|---|---|
Config |
build()
Builds Config object. |
Properties |
getProperties()
Gets the current used properties. |
protected AbstractConfigBuilder.ConfigType |
getXmlType()
|
protected Document |
parse(InputStream is)
Reads xml from InputStream and parses |
XmlConfigBuilder |
setProperties(Properties properties)
Sets the used properties. |
| Methods inherited from class com.hazelcast.config.AbstractConfigBuilder |
|---|
process |
| Methods inherited from class com.hazelcast.config.AbstractXmlConfigHelper |
|---|
appendToken, checkTrue, cleanNodeName, cleanNodeName, fillDataSerializableFactories, fillNativeMemoryConfig, fillPortableFactories, fillProperties, fillSerializers, getAttribute, getIntegerValue, getLongValue, getNamespaceType, getReleaseVersion, getTextContent, hasTextContent, loadSchemaFile, parseSerialization, parseSocketInterceptorConfig, schemaValidation, xmlToJavaName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlConfigBuilder(String xmlFileName)
throws FileNotFoundException
xmlFileName - the name of the XML file that the XmlConfigBuilder reads from
FileNotFoundException - if the file can't be found.public XmlConfigBuilder(InputStream inputStream)
inputStream - the InputStream containing the XML configuration.
IllegalArgumentException - if inputStream is null.
public XmlConfigBuilder(URL url)
throws IOException
url - the given url that the XMLConfigBuilder reads from
IOExceptionpublic XmlConfigBuilder()
| Method Detail |
|---|
public Properties getProperties()
getProperties in class AbstractConfigBuildersetProperties(java.util.Properties)public XmlConfigBuilder setProperties(Properties properties)
properties - the new properties.
protected AbstractConfigBuilder.ConfigType getXmlType()
getXmlType in class AbstractConfigBuilderpublic Config build()
ConfigBuilder
build in interface ConfigBuilder
protected Document parse(InputStream is)
throws Exception
AbstractConfigBuilder
parse in class AbstractConfigBuilderException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||