public class JsonConfigWriter extends java.lang.Object implements ApiConfigWriter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANY_SCHEMA_NAME |
static java.lang.String |
MAP_SCHEMA_NAME |
| Constructor and Description |
|---|
JsonConfigWriter() |
JsonConfigWriter(TypeLoader typeLoader,
ApiConfigValidator validator) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFileExtension()
The file extension associated with this writer.
|
protected java.lang.String |
getParentApiFile()
Returns the name of the file the config should extend.
|
java.util.Map<ApiKey,java.lang.String> |
writeConfig(java.lang.Iterable<? extends ApiConfig> configs)
Generate wire-formatted configuration strings for the given configs.
|
public static final java.lang.String MAP_SCHEMA_NAME
public static final java.lang.String ANY_SCHEMA_NAME
public JsonConfigWriter()
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic JsonConfigWriter(TypeLoader typeLoader, ApiConfigValidator validator) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic java.util.Map<ApiKey,java.lang.String> writeConfig(java.lang.Iterable<? extends ApiConfig> configs) throws ApiConfigException
ApiConfigWriterwriteConfig in interface ApiConfigWriterApiKeys to wire-formatted configuration strings.ApiConfigExceptionpublic java.lang.String getFileExtension()
ApiConfigWritergetFileExtension in interface ApiConfigWriterprotected java.lang.String getParentApiFile()