Package org.redisson.config
Class ConfigSupport
- java.lang.Object
-
- org.redisson.config.ConfigSupport
-
public class ConfigSupport extends Object
- Author:
- Nikita Koksharov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConfigSupport.ClassMixIn
static class
ConfigSupport.ConfigMixIn
-
Constructor Summary
Constructors Constructor Description ConfigSupport()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
fromJSON
public <T> T fromJSON(String content, Class<T> configType) throws IOException
- Throws:
IOException
-
fromJSON
public <T> T fromJSON(File file, Class<T> configType) throws IOException
- Throws:
IOException
-
fromJSON
public <T> T fromJSON(File file, Class<T> configType, ClassLoader classLoader) throws IOException
- Throws:
IOException
-
fromJSON
public <T> T fromJSON(URL url, Class<T> configType) throws IOException
- Throws:
IOException
-
fromJSON
public <T> T fromJSON(Reader reader, Class<T> configType) throws IOException
- Throws:
IOException
-
fromJSON
public <T> T fromJSON(InputStream inputStream, Class<T> configType) throws IOException
- Throws:
IOException
-
toJSON
public String toJSON(Config config) throws IOException
- Throws:
IOException
-
fromYAML
public <T> T fromYAML(String content, Class<T> configType) throws IOException
- Throws:
IOException
-
fromYAML
public <T> T fromYAML(File file, Class<T> configType) throws IOException
- Throws:
IOException
-
fromYAML
public <T> T fromYAML(File file, Class<T> configType, ClassLoader classLoader) throws IOException
- Throws:
IOException
-
fromYAML
public <T> T fromYAML(URL url, Class<T> configType) throws IOException
- Throws:
IOException
-
fromYAML
public <T> T fromYAML(Reader reader, Class<T> configType) throws IOException
- Throws:
IOException
-
fromYAML
public <T> T fromYAML(InputStream inputStream, Class<T> configType) throws IOException
- Throws:
IOException
-
toYAML
public String toYAML(Config config) throws IOException
- Throws:
IOException
-
createConnectionManager
public static ConnectionManager createConnectionManager(Config configCopy)
-
-