View Javadoc

    1   package org.codehaus.xfire.jaxb;
    2
    3   import org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry;
    4   import org.codehaus.xfire.aegis.type.TypeCreator;
    5
    6   import javax.xml.bind.JAXBContext;
    7
    8   /***
    9    * User: chris
    10   * Date: Aug 12, 2005
    11   * Time: 5:30:23 PM
    12   */
    13  public class JaxbTypeRegistry
    14          extends DefaultTypeMappingRegistry
    15  {
    16      private JAXBContext jaxbContext;
    17
    18      public JaxbTypeRegistry(JAXBContext jaxbContext)
    19      {
    20          super(true);
    21          this.jaxbContext = jaxbContext;
    22      }
    23
    24      protected TypeCreator createTypeCreator()
    25      {
    26          return new JaxbTypeCreator(super.createTypeCreator(), jaxbContext);
    27      }
    28
    29  }