[jboss-dev-forums] [JBoss ESB Development] - Annotation based Action classes

Tom Fennelly do-not-reply at jboss.com
Sat Apr 24 04:25:00 EDT 2010


Tom Fennelly [http://community.jboss.org/people/tfennelly] replied to the discussion

"Annotation based Action classes"

To view the discussion, visit: http://community.jboss.org/message/539336#539336

--------------------------------------------------------------
Hi Hans.

Yes... this would be easy enough to do.  Of course you'd need to analyse the class and make sure there's exactly only one possible target @ProcessMethod, but that's easy.

I think it could also be possible to support automatic unmarshalling/marshalling by detecting that the target @ProcessMethod is arg is JAXB annotated.  So, if the payload was XML and the method arg was JAXB annotated, you could automatically trigger JAXB to create the objects from the payload XML.

Then, for unmarshalling other payload types (non-XML), or for unmarshalling into objects that are not JAXB annotated, or for servicing @ProcessMethods with multiple args.... you could allow unmarshalling by defining a smooks binding config on the action.

Anyway... we'll see  :) 

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/539336#539336]

Start a new discussion in JBoss ESB Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2032]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20100424/fe3928d0/attachment.html 


More information about the jboss-dev-forums mailing list