title: Specify @XmlJavaTypeAdapter class via bindings file?
body: <p>I have a 3rd party interface that supplies xsd files that matches their API. Some of their mappings are not quite Java, the usual boolean as 0 &amp; 1 :-(</p>
  
  <p>I'd like to use a bindings file to specify the @XmlJavaTypeAdapter class for my BooleanAdapter, but so far no joy.</p>
  
  <p>The bindings file:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jaxb:bindings xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
      xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema"
      xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" xmlns="http://java.sun.com/xml/ns/jaxws"
      jaxb:extensionBindingPrefixes="xjc" jaxb:version="2.0"&gt;
      &lt;jaxb:bindings schemaLocation="GetUserDetailsResponse.xsd" node="/xs:schema" &gt;
          &lt;jaxb:globalBindings underscoreBinding="asWordSeparator" &gt;
              &lt;jaxb:serializable uid="1" /&gt;
              &lt;jaxb:javaType name="java.lang.Boolean" xmlType="xs:boolean"
  printMethod="mumble.bindings.BooleanAdapter.marshall" 
  parseMethod="mumble.bindings.BooleanAdapter.unmarshall" /&gt;
          &lt;/jaxb:globalBindings&gt;
      &lt;/jaxb:bindings&gt;
  &lt;/jaxb:bindings&gt;
  </code></pre>
  
  <p>And since I'm using maven the relevant bit from the POM:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;strict&gt;false&lt;/strict&gt;
  &lt;extension&gt;true&lt;/extension&gt;
  &lt;verbose&gt;true&lt;/verbose&gt;
  &lt;enableWrapperStyle&gt;false&lt;/enableWrapperStyle&gt;
  &lt;enableAsyncMapping&gt;false&lt;/enableAsyncMapping&gt;
  </code></pre>
  
  <p>I've toggled enableWrapperStyle and no change</p>
  
  <p>What I end-up with is a generated Adapter of the wrong type:</p>
  
  <pre class="lang-java prettyprint-override"><code>import javax.xml.bind.annotation.adapters.XmlAdapter;
  public class Adapter1
      extends XmlAdapter&lt;String, Boolean&gt;{
      public Boolean unmarshal(String value) {
          return (mumble.bindings.BooleanAdapter.unmarshall(value));
      }
  
      public String marshal(Boolean value) {
          return (mumble.bindings.BooleanAdapter.marshall(value));
      }
  }
  </code></pre>
  
  <p>Is there some bindings file magic I can use to get rid of the generated wrapper and use the BooleanAdapter directly?</p>