Search in sources :

Example 1 with ListenerConverter

use of org.kie.workbench.common.services.backend.kmodule.converters.ListenerConverter in project kie-wb-common by kiegroup.

the class KModuleContentHandler method createXStream.

private XStream createXStream() {
    XStream xStream = XStreamUtils.createTrustingXStream(new DomDriver());
    xStream.registerConverter(new KModuleConverter());
    xStream.registerConverter(new KBaseConverter());
    xStream.registerConverter(new KSessionConverter());
    xStream.registerConverter(new ClockTypeConverter());
    xStream.registerConverter(new ListenerConverter());
    xStream.registerConverter(new QualifierConverter());
    xStream.registerConverter(new WorkItemHandlerConverter());
    xStream.registerConverter(new FileLoggerConverter());
    xStream.alias("kmodule", KModuleModel.class);
    xStream.alias("kbase", KBaseModel.class);
    xStream.alias("ksession", KSessionModel.class);
    xStream.alias("clockType", ClockTypeOption.class);
    xStream.alias("listener", ListenerModel.class);
    xStream.alias("qualifier", QualifierModel.class);
    xStream.alias("workItemHandler", WorkItemHandlerModel.class);
    return xStream;
}
Also used : DomDriver(com.thoughtworks.xstream.io.xml.DomDriver) ClockTypeConverter(org.kie.workbench.common.services.backend.kmodule.converters.ClockTypeConverter) KBaseConverter(org.kie.workbench.common.services.backend.kmodule.converters.KBaseConverter) QualifierConverter(org.kie.workbench.common.services.backend.kmodule.converters.QualifierConverter) XStream(com.thoughtworks.xstream.XStream) KModuleConverter(org.kie.workbench.common.services.backend.kmodule.converters.KModuleConverter) WorkItemHandlerConverter(org.kie.workbench.common.services.backend.kmodule.converters.WorkItemHandlerConverter) ListenerConverter(org.kie.workbench.common.services.backend.kmodule.converters.ListenerConverter) KSessionConverter(org.kie.workbench.common.services.backend.kmodule.converters.KSessionConverter) FileLoggerConverter(org.kie.workbench.common.services.backend.kmodule.converters.FileLoggerConverter)

Aggregations

XStream (com.thoughtworks.xstream.XStream)1 DomDriver (com.thoughtworks.xstream.io.xml.DomDriver)1 ClockTypeConverter (org.kie.workbench.common.services.backend.kmodule.converters.ClockTypeConverter)1 FileLoggerConverter (org.kie.workbench.common.services.backend.kmodule.converters.FileLoggerConverter)1 KBaseConverter (org.kie.workbench.common.services.backend.kmodule.converters.KBaseConverter)1 KModuleConverter (org.kie.workbench.common.services.backend.kmodule.converters.KModuleConverter)1 KSessionConverter (org.kie.workbench.common.services.backend.kmodule.converters.KSessionConverter)1 ListenerConverter (org.kie.workbench.common.services.backend.kmodule.converters.ListenerConverter)1 QualifierConverter (org.kie.workbench.common.services.backend.kmodule.converters.QualifierConverter)1 WorkItemHandlerConverter (org.kie.workbench.common.services.backend.kmodule.converters.WorkItemHandlerConverter)1