Interface JaxBContextProvider
-
- All Known Implementing Classes:
DefaultJaxBContextProvider
public interface JaxBContextProviderProvider for the Marshallers and Unmarshallers theDomXmlDataFormatuses 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 jakarta.xml.bind.MarshallercreateMarshaller(java.lang.Class<?>... types)Obtain a Marshaller that can map the provided types.jakarta.xml.bind.UnmarshallercreateUnmarshaller(java.lang.Class<?>... types)Obtain an Unmarshaller that can map the provided types.
-
-
-
Method Detail
-
createMarshaller
jakarta.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
jakarta.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.
-
-