title: Jackson + Builder Pattern?
body: <p>I'd like Jackson to deserialize a class with the following constructor:</p>
  
  <pre><code>public Clinic(String name, Address address)
  </code></pre>
  
  <p>Deserializing the first argument is easy. The problem is that Address is defined as:</p>
  
  <pre><code>public class Address {
    private Address(Map&lt;LocationType, String&gt; components)
    ...
  
    public static class Builder {
      public Builder setCity(String value);
      public Builder setCountry(String value);
      public Address create();
    }
  }
  </code></pre>
  
  <p>and is constructed like this: <code>new Address.Builder().setCity("foo").setCountry("bar").create();</code></p>
  
  <p>Is there a way to get key-value pairs from Jackson in order to construct the Address myself? Alternatively, is there a way to get Jackson to use the Builder class itself?</p>