2 Replies Latest reply on May 25, 2011 7:55 AM by Keith Babo

    Default transformers

    Gary Brown Master

      Will default transformers be available - for example if the mapping is from an XML message to a JAXB class, then the mapping can be performed without additional configuration?


      Possibly check the configured transformers first, and if not explicit defined (so able to override), then check whether a suitable default transformer can be used.

        • 1. Re: Default transformers
          Gary Brown Master

          Looking into SCA more, I guess the Data Bindings would cater for what I have called 'default transformers' - so the switchyard transformers mechanism would be used in cases where a data binding implementation was not relevant?

          • 2. Re: Default transformers
            Keith Babo Master

            I think we can accomplish everything we need with type converters and our transformer definitions based on message types defined in service contracts.  The data bindings you are referring to are part of SDO, IINM, and I don't think we need to introduce SDO in order to get the behavior we want.


            In the example you gave above, it would be pretty easy to introduce a JAXB transformer that can be independently configured with JAXB mappings or uses JAXB annotations directly on objects to be transformed.  We should put together an example of this for 0.2 to see how it all hangs together.