Class DeploymentDescriptorIO
- java.lang.Object
-
- org.kie.internal.runtime.manager.deploy.DeploymentDescriptorIO
-
public class DeploymentDescriptorIO extends Object
XML based deployment descriptor IO manager to read and write descriptors. Underlying usesXStream
for serialization with special class and field mapping for more readability of the produced XML output.
-
-
Constructor Summary
Constructors Constructor Description DeploymentDescriptorIO()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DeploymentDescriptor
fromXml(InputStream inputStream)
Reads XML data from given input stream and produces valid instance ofDeploymentDescriptor
static JAXBContext
getContext()
static String
toXml(DeploymentDescriptor descriptor)
Serializes descriptor instance to XML
-
-
-
Method Detail
-
fromXml
public static DeploymentDescriptor fromXml(InputStream inputStream)
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
public static String toXml(DeploymentDescriptor descriptor)
Serializes descriptor instance to XML- Parameters:
descriptor
- descriptor to be serialized- Returns:
- xml representation of descriptor as string
-
getContext
public static JAXBContext getContext() throws JAXBException, SAXException
- Throws:
JAXBException
SAXException
-
-