use of com.continuuity.weave.internal.DefaultWeaveRunnableSpecification in project weave by continuuity.
the class WeaveRunnableSpecificationCodec method deserialize.
@Override
public WeaveRunnableSpecification deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
JsonObject jsonObj = json.getAsJsonObject();
String className = jsonObj.get("classname").getAsString();
String name = jsonObj.get("name").getAsString();
Map<String, String> arguments = context.deserialize(jsonObj.get("arguments"), new TypeToken<Map<String, String>>() {
}.getType());
return new DefaultWeaveRunnableSpecification(className, name, arguments);
}
Aggregations