public class ConfigSupport extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ConfigSupport.ClassMixIn |
static class |
ConfigSupport.ConfigMixIn |
static class |
ConfigSupport.MasterSlaveServersConfigMixIn |
static class |
ConfigSupport.SingleSeverConfigMixIn |
Constructor and Description |
---|
ConfigSupport() |
Modifier and Type | Method and Description |
---|---|
static ConnectionManager |
createConnectionManager(Config configCopy) |
<T> T |
fromJSON(File file,
Class<T> configType) |
<T> T |
fromJSON(File file,
Class<T> configType,
ClassLoader classLoader) |
<T> T |
fromJSON(InputStream inputStream,
Class<T> configType) |
<T> T |
fromJSON(Reader reader,
Class<T> configType) |
<T> T |
fromJSON(String content,
Class<T> configType) |
<T> T |
fromJSON(URL url,
Class<T> configType) |
<T> T |
fromYAML(File file,
Class<T> configType) |
<T> T |
fromYAML(File file,
Class<T> configType,
ClassLoader classLoader) |
<T> T |
fromYAML(InputStream inputStream,
Class<T> configType) |
<T> T |
fromYAML(Reader reader,
Class<T> configType) |
<T> T |
fromYAML(String content,
Class<T> configType) |
<T> T |
fromYAML(URL url,
Class<T> configType) |
String |
toJSON(Config config) |
String |
toYAML(Config config) |
public <T> T fromJSON(String content, Class<T> configType) throws IOException
IOException
public <T> T fromJSON(File file, Class<T> configType) throws IOException
IOException
public <T> T fromJSON(File file, Class<T> configType, ClassLoader classLoader) throws IOException
IOException
public <T> T fromJSON(URL url, Class<T> configType) throws IOException
IOException
public <T> T fromJSON(Reader reader, Class<T> configType) throws IOException
IOException
public <T> T fromJSON(InputStream inputStream, Class<T> configType) throws IOException
IOException
public String toJSON(Config config) throws IOException
IOException
public <T> T fromYAML(String content, Class<T> configType) throws IOException
IOException
public <T> T fromYAML(File file, Class<T> configType) throws IOException
IOException
public <T> T fromYAML(File file, Class<T> configType, ClassLoader classLoader) throws IOException
IOException
public <T> T fromYAML(URL url, Class<T> configType) throws IOException
IOException
public <T> T fromYAML(Reader reader, Class<T> configType) throws IOException
IOException
public <T> T fromYAML(InputStream inputStream, Class<T> configType) throws IOException
IOException
public String toYAML(Config config) throws IOException
IOException
public static ConnectionManager createConnectionManager(Config configCopy)
Copyright © 2014–2018 The Redisson Project. All rights reserved.