Marshaller implementations not implementing Marshaler interface. Why?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Marshaller implementations not implementing Marshaler interface. Why?

Peter Smith-2
There seems something unusual about a few of the "marshallers"...

You have an interface org.servicemix.jbi.messaging.Marshaler ("A plugin
strategy which marshals an Object into and out of a JBI message") yet
this interface is NOT implemented by all of the ServiceMix built-in
marshallers. So what's that about?

For example, a JmsMarshaler appears to be the ONLY marshalling
implementation supported by the Jms components (despite them exposing
get/setMarshaler).

Why is JmsMarshaler not an implementation of Marshaler?
- JmsMarshaler.toNMS could be rewritten as marshal(...)
- JmsMarshaler.createMessage could be rewritten as unmarshal(...)

(JmsMarshaler is just one example)

Cheers,
Peter.