Package io.quarkus.registry.config
Class RegistriesConfigMapperHelper
- java.lang.Object
-
- io.quarkus.registry.config.RegistriesConfigMapperHelper
-
public class RegistriesConfigMapperHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description RegistriesConfigMapperHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Tdeserialize(Path p, Class<T> t)static <T> TdeserializeYaml(InputStream is, Class<T> t)static <T> TdeserializeYaml(Reader reader, Class<T> t)static com.fasterxml.jackson.databind.ObjectMapperinitMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)static com.fasterxml.jackson.databind.ObjectMapperjsonMapper()static voidserialize(Object config, Path p)static voidtoJson(Object config, Writer writer)static voidtoYaml(Object config, Writer writer)static com.fasterxml.jackson.databind.ObjectMapperyamlMapper()
-
-
-
Method Detail
-
yamlMapper
public static com.fasterxml.jackson.databind.ObjectMapper yamlMapper()
-
jsonMapper
public static com.fasterxml.jackson.databind.ObjectMapper jsonMapper()
-
initMapper
public static com.fasterxml.jackson.databind.ObjectMapper initMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
-
serialize
public static void serialize(Object config, Path p) throws IOException
- Throws:
IOException
-
toJson
public static void toJson(Object config, Writer writer) throws IOException
- Throws:
IOException
-
toYaml
public static void toYaml(Object config, Writer writer) throws IOException
- Throws:
IOException
-
deserialize
public static <T> T deserialize(Path p, Class<T> t) throws IOException
- Throws:
IOException
-
deserializeYaml
public static <T> T deserializeYaml(InputStream is, Class<T> t) throws IOException
- Throws:
IOException
-
deserializeYaml
public static <T> T deserializeYaml(Reader reader, Class<T> t) throws IOException
- Throws:
IOException
-
-