Interface JaxBContextProvider

  • All Known Implementing Classes:
    DefaultJaxBContextProvider

    public interface JaxBContextProvider
    Provider for the Marshallers and Unmarshallers the DomXmlDataFormat uses to map Java objects to XML and vice versa. Implementations typically manage a JAXBContext. The JAXBContext caches information about the types it is capable of processing. Since the context is expensive to create, it is useful to cache it. Different applications may require different caching strategies.
    Author:
    Daniel Meyer
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      javax.xml.bind.Marshaller createMarshaller​(java.lang.Class<?>... types)
      Obtain a Marshaller that can map the provided types.
      javax.xml.bind.Unmarshaller createUnmarshaller​(java.lang.Class<?>... types)
      Obtain an Unmarshaller that can map the provided types.
    • Method Detail

      • createMarshaller

        javax.xml.bind.Marshaller createMarshaller​(java.lang.Class<?>... types)
        Obtain a Marshaller that can map the provided types.
        Parameters:
        types - the Java Types that are going to be marshalled
        Returns:
        the Marshaller of marshalling the provided types to XML.
      • createUnmarshaller

        javax.xml.bind.Unmarshaller createUnmarshaller​(java.lang.Class<?>... types)
        Obtain an Unmarshaller that can map the provided types.
        Parameters:
        types - the Java Types that are going to be unmarshalled
        Returns:
        the Marshaller of unmarshalling the provided types from XML.