Output channel adapter that uses a function to perform a mapping.