use of org.springframework.oxm.jaxb.Jaxb2Marshaller in project tutorials by eugenp.
the class SpringbatchPartitionConfig method marshaller.
@Bean
public Marshaller marshaller() {
Jaxb2Marshaller marshaller = new Jaxb2Marshaller();
marshaller.setClassesToBeBound(Transaction.class);
return marshaller;
}
use of org.springframework.oxm.jaxb.Jaxb2Marshaller in project irida by phac-nml.
the class IridaWorkflowsConfig method workflowDescriptionUnmarshaller.
/**
* Sets up an {@link Unmarshaller} for workflow objects.
*
* @return An {@link Unmarshaller} for workflow objects.
*/
@Bean
public Unmarshaller workflowDescriptionUnmarshaller() {
Jaxb2Marshaller jaxb2marshaller = new Jaxb2Marshaller();
jaxb2marshaller.setPackagesToScan(new String[] { "ca.corefacility.bioinformatics.irida.model.workflow" });
return jaxb2marshaller;
}
use of org.springframework.oxm.jaxb.Jaxb2Marshaller in project nzbhydra2 by theotherp.
the class WebConfiguration method marshaller.
/**
* Enable pretty printing of returned XML
*/
@Bean
public Jaxb2Marshaller marshaller() {
Jaxb2Marshaller marshaller = new Jaxb2Marshaller();
Map<String, Boolean> map = new HashMap<>();
map.put(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
marshaller.setMarshallerProperties(map);
marshaller.setPackagesToScan("org.nzbhydra");
return marshaller;
}
use of org.springframework.oxm.jaxb.Jaxb2Marshaller in project citrus-samples by christophd.
the class CitrusEndpointConfig method jax2bMarshaller.
@Bean
public Marshaller jax2bMarshaller() {
Jaxb2Marshaller jaxb2Marshaller = new Jaxb2Marshaller();
jaxb2Marshaller.setContextPath("com.consol.citrus.samples.bookstore.model");
return jaxb2Marshaller;
}
use of org.springframework.oxm.jaxb.Jaxb2Marshaller in project citrus-samples by christophd.
the class CitrusEndpointConfig method jax2bMarshaller.
@Bean
public Marshaller jax2bMarshaller() {
Jaxb2Marshaller jaxb2Marshaller = new Jaxb2Marshaller();
jaxb2Marshaller.setClassesToBeBound(OpenIncident.class, OpenIncidentResponse.class, AnalyseIncident.class, AnalyseIncidentResponse.class, OrderRequest.class, OrderNotification.class, SendSmsRequest.class, SendSmsResponse.class);
return jaxb2Marshaller;
}
Aggregations