Package com.hazelcast.config
Class ConfigXmlGenerator
java.lang.Object
com.hazelcast.config.ConfigXmlGenerator
The ConfigXmlGenerator is responsible for transforming a
Config to a Hazelcast XML string.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classUtility class to build xml using aStringBuilder. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringMask to hide the sensitive values in configuration. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a ConfigXmlGenerator that will format the code.ConfigXmlGenerator(boolean formatted) Creates a ConfigXmlGenerator.ConfigXmlGenerator(boolean formatted, boolean maskSensitiveFields) Creates a ConfigXmlGenerator. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringendpointConfigElementName(EndpointConfig endpointConfig) protected voidfactoryWithPropertiesXmlGenerator(ConfigXmlGenerator.XmlGenerator gen, String elementName, AbstractBaseFactoryWithPropertiesConfig<?> factoryWithProps) Generates the XML string based on some Config.static voidnamespaceConfigurations(ConfigXmlGenerator.XmlGenerator gen, Config config) static voidnamespacesConfiguration(ConfigXmlGenerator.XmlGenerator gen, Config config) protected voidstatic void
-
Field Details
-
MASK_FOR_SENSITIVE_DATA
Mask to hide the sensitive values in configuration.- See Also:
-
-
Constructor Details
-
ConfigXmlGenerator
public ConfigXmlGenerator()Creates a ConfigXmlGenerator that will format the code. -
ConfigXmlGenerator
public ConfigXmlGenerator(boolean formatted) Creates a ConfigXmlGenerator.- Parameters:
formatted-trueif the XML should be formatted,falseotherwise
-
ConfigXmlGenerator
public ConfigXmlGenerator(boolean formatted, boolean maskSensitiveFields) Creates a ConfigXmlGenerator.- Parameters:
formatted-trueif the XML should be formatted,falseotherwisemaskSensitiveFields-trueif the sensitive fields (like passwords) should be masked in the output XML,falseotherwise
-
-
Method Details
-
generate
Generates the XML string based on some Config.- Parameters:
config- the configuration- Returns:
- the XML string
-
securityRealmGenerator
protected void securityRealmGenerator(ConfigXmlGenerator.XmlGenerator gen, String name, RealmConfig c) -
endpointConfigElementName
-
tcpIpConfigXmlGenerator
-
factoryWithPropertiesXmlGenerator
protected void factoryWithPropertiesXmlGenerator(ConfigXmlGenerator.XmlGenerator gen, String elementName, AbstractBaseFactoryWithPropertiesConfig<?> factoryWithProps) -
namespacesConfiguration
-
namespaceConfigurations
-