Class DeploymentDescriptorIO
java.lang.Object
org.kie.internal.runtime.manager.deploy.DeploymentDescriptorIO
XML based deployment descriptor IO manager to read and write descriptors.
Underlying uses
XStream for serialization with special class
and field mapping for more readability of the produced XML output.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DeploymentDescriptorfromXml(InputStream inputStream) Reads XML data from given input stream and produces valid instance ofDeploymentDescriptorstatic jakarta.xml.bind.JAXBContextstatic StringtoXml(DeploymentDescriptor descriptor) Serializes descriptor instance to XML
-
Constructor Details
-
DeploymentDescriptorIO
public DeploymentDescriptorIO()
-
-
Method Details
-
fromXml
Reads XML data from given input stream and produces valid instance ofDeploymentDescriptor- Parameters:
inputStream- input stream that comes with xml data of the descriptor- Returns:
- instance of the descriptor after deserialization
-
toXml
Serializes descriptor instance to XML- Parameters:
descriptor- descriptor to be serialized- Returns:
- xml representation of descriptor as string
-
getContext
public static jakarta.xml.bind.JAXBContext getContext() throws jakarta.xml.bind.JAXBException, SAXException- Throws:
jakarta.xml.bind.JAXBExceptionSAXException
-