Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C12B2106CF for ; Sun, 16 Feb 2014 18:03:48 +0000 (UTC) Received: (qmail 77747 invoked by uid 500); 16 Feb 2014 18:03:47 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 77650 invoked by uid 500); 16 Feb 2014 18:03:47 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 77642 invoked by uid 99); 16 Feb 2014 18:03:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Feb 2014 18:03:47 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cpiggott@gmail.com designates 209.85.192.173 as permitted sender) Received: from [209.85.192.173] (HELO mail-pd0-f173.google.com) (209.85.192.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Feb 2014 18:03:40 +0000 Received: by mail-pd0-f173.google.com with SMTP id y10so13915241pdj.4 for ; Sun, 16 Feb 2014 10:03:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=9/ph8ad6bq7myXId3Txwo8m5YQUbG2t5CpZDHYGY13s=; b=Z+uvhtxiah/VpLiRI2AdiIR5fQ7JX24+TQ0/yeddqUj0qNkHykrbefhu1LO7DmjCg/ XG2Pb/HmWrGNR6XGNMOi52/W9Vh3/V6ZYrRZQeMaRN0JaSN2XycNnQmbLoYlTwgpwqGU xGpvAR5pVRkuRCOCxIZuhsws7V70Q90+imIVUI1FR/zpRtXQNVMl21jbLv2VS/5Z7/OE J/Q+qW3mYTrbPS5P5Jx7izB/Rh7Z/FmRYf2R32b8dIThc4HnLu2r2aAXClAxED9GqEp4 FlNF9z0qyVWAj4P5bLGbHyxwOtdNQteRlQNkhMML5DkkRz29Mw0uNXAHqngcsD0lRTS2 ZDig== MIME-Version: 1.0 X-Received: by 10.66.13.138 with SMTP id h10mr2567878pac.148.1392573799427; Sun, 16 Feb 2014 10:03:19 -0800 (PST) Received: by 10.70.90.137 with HTTP; Sun, 16 Feb 2014 10:03:19 -0800 (PST) Date: Sun, 16 Feb 2014 13:03:19 -0500 Message-ID: Subject: Proper way to use velocity formatters like NumberTool From: Christopher Piggott To: users@camel.apache.org Content-Type: multipart/alternative; boundary=bcaec520ee1fa372d704f289da51 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec520ee1fa372d704f289da51 Content-Type: text/plain; charset=ISO-8859-1 Hi, What's the proper way to use formatters in a camel-velocity template if you are NOT using injection (e.g. spring or guice)? I have seem a few examples including one where an instance of NumberTool is passed through the headers. Seemed very hacky to me, it seems like there must be a cleaner mechanism. --Chris --bcaec520ee1fa372d704f289da51--