use of org.apache.qpid.server.store.berkeleydb.BDBConfiguredObjectRecord in project qpid-broker-j by apache.
the class ConfiguredObjectBinding method entryToObject.
@Override
public BDBConfiguredObjectRecord entryToObject(TupleInput tupleInput) {
String type = tupleInput.readString();
String json = tupleInput.readString();
ObjectMapper mapper = new ObjectMapper();
try {
Map<String, Object> value = mapper.readValue(json, Map.class);
BDBConfiguredObjectRecord configuredObject = new BDBConfiguredObjectRecord(_uuid, type, value);
return configuredObject;
} catch (IOException e) {
// should never happen
throw new StoreException(e);
}
}
Aggregations