Package com.hazelcast.config
Class ConfigXmlGenerator
- java.lang.Object
-
- com.hazelcast.config.ConfigXmlGenerator
-
public class ConfigXmlGenerator extends java.lang.Object
The ConfigXmlGenerator is responsible for transforming aConfig
to a Hazelcast XML string.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConfigXmlGenerator.XmlGenerator
Utility class to build xml using aStringBuilder
.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MASK_FOR_SENSITIVE_DATA
Mask to hide the sensitive values in configuration.
-
Constructor Summary
Constructors Constructor Description ConfigXmlGenerator()
Creates a ConfigXmlGenerator that will format the code.ConfigXmlGenerator(boolean formatted)
Creates a ConfigXmlGenerator.ConfigXmlGenerator(boolean formatted, boolean maskSensitiveFields)
Creates a ConfigXmlGenerator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
endpointConfigElementName(EndpointConfig endpointConfig)
protected void
factoryWithPropertiesXmlGenerator(ConfigXmlGenerator.XmlGenerator gen, java.lang.String elementName, AbstractFactoryWithPropertiesConfig<?> factoryWithProps)
java.lang.String
generate(Config config)
Generates the XML string based on some Config.protected void
securityRealmGenerator(ConfigXmlGenerator.XmlGenerator gen, java.lang.String name, RealmConfig c)
static void
tcpIpConfigXmlGenerator(ConfigXmlGenerator.XmlGenerator gen, JoinConfig join)
-
-
-
Field Detail
-
MASK_FOR_SENSITIVE_DATA
public static final java.lang.String MASK_FOR_SENSITIVE_DATA
Mask to hide the sensitive values in configuration.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConfigXmlGenerator
public ConfigXmlGenerator()
Creates a ConfigXmlGenerator that will format the code.
-
ConfigXmlGenerator
public ConfigXmlGenerator(boolean formatted)
Creates a ConfigXmlGenerator.- Parameters:
formatted
-true
if the XML should be formatted,false
otherwise
-
ConfigXmlGenerator
public ConfigXmlGenerator(boolean formatted, boolean maskSensitiveFields)
Creates a ConfigXmlGenerator.- Parameters:
formatted
-true
if the XML should be formatted,false
otherwisemaskSensitiveFields
-true
if the sensitive fields (like passwords) should be masked in the output XML,false
otherwise
-
-
Method Detail
-
generate
public java.lang.String generate(Config config)
Generates the XML string based on some Config.- Parameters:
config
- the configuration- Returns:
- the XML string
-
securityRealmGenerator
protected void securityRealmGenerator(ConfigXmlGenerator.XmlGenerator gen, java.lang.String name, RealmConfig c)
-
endpointConfigElementName
public static java.lang.String endpointConfigElementName(EndpointConfig endpointConfig)
-
tcpIpConfigXmlGenerator
public static void tcpIpConfigXmlGenerator(ConfigXmlGenerator.XmlGenerator gen, JoinConfig join)
-
factoryWithPropertiesXmlGenerator
protected void factoryWithPropertiesXmlGenerator(ConfigXmlGenerator.XmlGenerator gen, java.lang.String elementName, AbstractFactoryWithPropertiesConfig<?> factoryWithProps)
-
-