Class StringConfiguration
- java.lang.Object
-
- org.infinispan.commons.configuration.StringConfiguration
-
- All Implemented Interfaces:
BasicConfiguration
- Direct Known Subclasses:
XMLStringConfiguration
public class StringConfiguration extends Object implements BasicConfiguration
A simple wrapper for a configuration represented as a String.- Since:
- 14.0
- Author:
- Tristan Tarrant
-
-
Constructor Summary
Constructors Constructor Description StringConfiguration(String string)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toStringConfiguration(String name)
Converts this configuration to a string-based representation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.commons.configuration.BasicConfiguration
toXMLString, toXMLString
-
-
-
-
Constructor Detail
-
StringConfiguration
public StringConfiguration(String string)
-
-
Method Detail
-
toStringConfiguration
public String toStringConfiguration(String name)
Description copied from interface:BasicConfiguration
Converts this configuration to a string-based representation. The name of the configuration in the will be the one supplied in the argument. The string must be in one of the supported formats (XML, JSON, YAML).- Specified by:
toStringConfiguration
in interfaceBasicConfiguration
- Returns:
- a String containing the representation of an Infinispan configuration using the Infinispan schema in one of the supported formats (XML, JSON, YAML).
-
-