[jboss-dev-forums] [Design of JBoss ESB] - Composers (like PackageFileContents in FileGatewayListener)

bsheward do-not-reply at jboss.com
Tue Jul 31 10:27:03 EDT 2007


The PackageFileContents composer in the FileGatewayListener is invoked using reflection.

Is there a reason why it doesn't implement an interface, so it can be invoked as a type of Composer?

Also, it seems likely that a user might want to configure a composer, for example, if I wanted to put the contents of a file into a named attachment rather than the body of the Message, I might want to configure the name of the attachment to use.

The PackageFileContents is an inner class with access to the configuration of the FileGatewayListener, but external classes wouldn't have this benefit. Is there any way to support configurable composers?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069187#4069187

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069187



More information about the jboss-dev-forums mailing list