public class JacksonReflectionLoader extends Object
| Constructor and Description |
|---|
JacksonReflectionLoader() |
| Modifier and Type | Method and Description |
|---|---|
static org.nd4j.shade.jackson.databind.ObjectMapper |
findTypesFor(List<Class<?>> types) |
static org.nd4j.shade.jackson.databind.ObjectMapper |
findTypesFor(List<Class<?>> types,
boolean json) |
static Map<String,String> |
getImpls(List<Class<?>> types)
Get the implementations for a given list of classes.
|
static <T> T |
instantiateType(Class<T> clazz,
String json,
org.nd4j.shade.jackson.databind.ObjectMapper objectMapper)
Instantiate the given class type
|
static org.nd4j.shade.jackson.databind.ObjectMapper |
withTypes(org.nd4j.shade.jackson.databind.ObjectMapper objectMapper,
Map<String,String> typeImpls) |
public static org.nd4j.shade.jackson.databind.ObjectMapper findTypesFor(List<Class<?>> types)
types - public static Map<String,String> getImpls(List<Class<?>> types)
types - the types to get hte sub classes forpublic static org.nd4j.shade.jackson.databind.ObjectMapper findTypesFor(List<Class<?>> types, boolean json)
types - json - public static org.nd4j.shade.jackson.databind.ObjectMapper withTypes(org.nd4j.shade.jackson.databind.ObjectMapper objectMapper,
Map<String,String> typeImpls)
objectMapper - typeImpls - public static <T> T instantiateType(Class<T> clazz, String json, org.nd4j.shade.jackson.databind.ObjectMapper objectMapper) throws IOException
T - clazz - the class to instantiatejson - the json to instantiate fromobjectMapper - the object mapper toIOExceptionCopyright © 2017. All rights reserved.