Class JaxbFactory
java.lang.Object
com.sportradar.livedata.sdk.proto.common.JaxbFactory
- All Implemented Interfaces:
- JaxbBuilder
Represents a factory used to create jaxb based 
Marshaller and Unmarshaller instances.- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionJaxbFactory(jakarta.xml.bind.JAXBContext context) Initializes a new instance of theJaxbFactoryclass.JaxbFactory(jakarta.xml.bind.JAXBContext context, SchemaFactory schemaFactory, Source schemaSource) Initializes a new instance of theJaxbFactoryclass.
- 
Method SummaryModifier and TypeMethodDescriptionjakarta.xml.bind.MarshallerCreates and returns aMarshallerimplementation.jakarta.xml.bind.UnmarshallerCreates and returns aUnmarshallerimplementation.Gets the configured character encoding for the builder.
- 
Field Details- 
ENCODING- See Also:
 
 
- 
- 
Constructor Details- 
JaxbFactory@Inject public JaxbFactory(jakarta.xml.bind.JAXBContext context) Initializes a new instance of theJaxbFactoryclass.- Parameters:
- context- The- JAXBContextused to create marshallers and un-marshallers.
- Throws:
- IllegalArgumentException- The- contextis a null reference.
 
- 
JaxbFactorypublic JaxbFactory(jakarta.xml.bind.JAXBContext context, SchemaFactory schemaFactory, Source schemaSource) Initializes a new instance of theJaxbFactoryclass.- Parameters:
- context- The- JAXBContextused to create marshallers and un-marshallers.
- schemaFactory- The- SchemaFactoryused to create- Schemawhich is used to validate the data before un-marshalling it or a null reference in no validation is required.
- schemaSource- The- Sourcecontaining schema definition. This argument is only required when the- schemaFactoryis not a null reference. Otherwise this argument is ignored.
- Throws:
- IllegalArgumentException- The- contextis a null reference or- schemaFactoryis a null reference or- schemaSourceis a null reference.
 
 
- 
- 
Method Details- 
buildMarshallerCreates and returns aMarshallerimplementation. Note that each time this method is called new instance of the marshaller is created.- Specified by:
- buildMarshallerin interface- JaxbBuilder
- Returns:
- The created Marshallerinstance.
- Throws:
- ProtocolException- wrapped JAXBException.
 
- 
buildUnmarshallerCreates and returns aUnmarshallerimplementation. Note that each time this method is called new instance of the un-marshaller is created.- Specified by:
- buildUnmarshallerin interface- JaxbBuilder
- Returns:
- The created Unmarshallerinstance.
- Throws:
- ProtocolException- wrapped JAXBException.
 
- 
getEncodingGets the configured character encoding for the builder.- Specified by:
- getEncodingin interface- JaxbBuilder
- Returns:
- - a string, i.e. UTF-8
 
 
-