From c52a511bdcc0a70d314aba2e0cdca3b6aeb395cb Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Tue, 15 May 2007 16:34:26 +0000 Subject: [PATCH] Added marshaller and unmarshaller constructor. --- .../AbstractMarshallingPayloadEndpoint.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/core/src/main/java/org/springframework/ws/server/endpoint/AbstractMarshallingPayloadEndpoint.java b/core/src/main/java/org/springframework/ws/server/endpoint/AbstractMarshallingPayloadEndpoint.java index 8340a4e2..53bc0812 100644 --- a/core/src/main/java/org/springframework/ws/server/endpoint/AbstractMarshallingPayloadEndpoint.java +++ b/core/src/main/java/org/springframework/ws/server/endpoint/AbstractMarshallingPayloadEndpoint.java @@ -54,6 +54,27 @@ public abstract class AbstractMarshallingPayloadEndpoint implements MessageEndpo private Unmarshaller unmarshaller; + /** + * Creates a new AbstractMarshallingPayloadEndpoint. The {@link Marshaller} and {@link Unmarshaller} + * must be injected using properties. + * + * @see #setMarshaller(org.springframework.oxm.Marshaller) + * @see #setUnmarshaller(org.springframework.oxm.Unmarshaller) + */ + protected AbstractMarshallingPayloadEndpoint() { + } + + /** + * Creates a new AbstractMarshallingPayloadEndpoint with the given marshaller and unmarshaller. + * + * @param marshaller the marshaller to use + * @param unmarshaller the unmarshaller to use + */ + protected AbstractMarshallingPayloadEndpoint(Marshaller marshaller, Unmarshaller unmarshaller) { + this.marshaller = marshaller; + this.unmarshaller = unmarshaller; + } + /** Returns the marshaller used for transforming objects into XML. */ public final Marshaller getMarshaller() { return marshaller;