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 classConfigSupport.ClassMixInstatic classConfigSupport.ConfigMixIn
-
Constructor Summary
Constructors Constructor Description ConfigSupport()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConnectionManagercreateConnectionManager(Config configCopy)<T> TfromJSON(File file, Class<T> configType)<T> TfromJSON(File file, Class<T> configType, ClassLoader classLoader)<T> TfromJSON(InputStream inputStream, Class<T> configType)<T> TfromJSON(Reader reader, Class<T> configType)<T> TfromJSON(String content, Class<T> configType)<T> TfromJSON(URL url, Class<T> configType)<T> TfromYAML(File file, Class<T> configType)<T> TfromYAML(File file, Class<T> configType, ClassLoader classLoader)<T> TfromYAML(InputStream inputStream, Class<T> configType)<T> TfromYAML(Reader reader, Class<T> configType)<T> TfromYAML(String content, Class<T> configType)<T> TfromYAML(URL url, Class<T> configType)StringtoJSON(Config config)StringtoYAML(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)
-
-