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 :
Reply to the post :