SpringSource/spring-xd — pull request #158 by garyrussell (2013-07-26 19:55:26+00:00)
Title: XD-479 Add Conversion to Channel Registries

__FOR REVIEW ONLY__ Needs more tests.

XD-479 Add NoOpRedisSerializer

Fix up adapters to not use toString() if payload is already byte[]
and the valueSerializer is a NoOpSerializer.

Clone the SI publishing adapter to do the same.

Still doesn't do any real conversion, just to/from String and byte[] (TODO).

XD-479 Add Inbound and Outbound Conversions

- port @dturanski 's JsonRedisSerializer, removing Redis and
renaming to TypedJsonMapper

- outbound conversion passes byte[] without change and uses the
TypedJsonMapper for other payloads. The local transport
performs no outbound conversion.

- inbound conversion uses the TypedJsonMapper to get back to the
original object; if the sink doesn't support the type, attempt
to use the conversion service to convert to a supported type.

- Add a boolean property (default true) to the LocalChannelRegistry
that controls whether any conversion is attempted.

Add tests