001package org.gbif.dwc.terms.jackson;
002
003import org.gbif.dwc.terms.TermFactory;
004
005import java.io.IOException;
006
007import org.codehaus.jackson.map.DeserializationContext;
008import org.codehaus.jackson.map.KeyDeserializer;
009
010/**
011 *
012 */
013public class TermKeyDeserializer extends KeyDeserializer {
014  private TermFactory factory = TermFactory.instance();
015
016  @Override
017  public Object deserializeKey(String key, DeserializationContext ctxt) throws IOException {
018    return factory.findTerm(key);
019  }
020}