Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2D42920049C for ; Fri, 11 Aug 2017 13:40:52 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2B98816D27B; Fri, 11 Aug 2017 11:40:52 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7184E16D27A for ; Fri, 11 Aug 2017 13:40:51 +0200 (CEST) Received: (qmail 84668 invoked by uid 500); 11 Aug 2017 11:40:50 -0000 Mailing-List: contact dev-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list dev@cayenne.apache.org Received: (qmail 84656 invoked by uid 99); 11 Aug 2017 11:40:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Aug 2017 11:40:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id DA13EC1C97 for ; Fri, 11 Aug 2017 11:40:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id X0ILGzM_SVaI for ; Fri, 11 Aug 2017 11:40:47 +0000 (UTC) Received: from mail-oi0-f46.google.com (mail-oi0-f46.google.com [209.85.218.46]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id E2E455F21F for ; Fri, 11 Aug 2017 11:40:46 +0000 (UTC) Received: by mail-oi0-f46.google.com with SMTP id e124so31115541oig.2 for ; Fri, 11 Aug 2017 04:40:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=e2UW+nEyw0IUCMC1Aq7R16vDznHEhbm1AcP4HidLZTc=; b=WAznJ/mQVVOvSZxbR43+lIR1MyqoElrjlBfChGPXKzk1nnxfqTLU66I8Q2sVRwyVXD IT1KCatchCWG0tgKLvjvZFBrE/bQJnNycanAKyNMnywwhrrQZLnXklb3CRuD2pW77CT1 IO0vJBAV55X7Cve8ksWLge9VQg+IHvt0scMZXJuDqEkkNUN15RalJRUSg+3RNUHk0oLj DKvlMIkFVKrU+RX0ciY1Ksp4khKfyEjsmqG9P6SJWT+YbtfEYWWkVSue8KYVT9/dp4+e sSledCF/2zrsienMp7CEmpN3w2RBa5wZqKwieSWYRcAP2HxJt/ZjJDTxKwP3NebLMmHc fASg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=e2UW+nEyw0IUCMC1Aq7R16vDznHEhbm1AcP4HidLZTc=; b=VVSLn86uTgdKas/abreOnSuijcUvFfsvRYY8GrRGkaA0QTa8njQMatbXIndLrKn+vA cU/8FYycN3sdg/1g84fECO2KOFqYSoVg2qUXI8RhATv+auyTv0H4RxCp5KJrVySLZbwc /020IMaul9aFxBcGn6ZqvGkFVekJl7aPkyu2/gshVp8fY+mC2QMI79WiQnRpJYtNV8Za b/t/G9o1jD4RZiOsO8GFql7sabFGIeVssJZacT00eNVxGjVJOEDvHj68qC65gdMIkJdY dlKjIEnEk16yrBEVj8aa5/dpjBzKP4m9HUx0PqaiVo4eVWXbT8TmTG/4qhEY1k3NyMJN zkkA== X-Gm-Message-State: AHYfb5h4jrJrfqqv4Lm+oGQEpejdQE4BpHwrQ1pc9qLS8JBxreDQTcit 2EgjP8GvNWTiCUM/JlZVL+fJomquyw== X-Received: by 10.202.78.200 with SMTP id c191mr17805331oib.171.1502451639811; Fri, 11 Aug 2017 04:40:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.244.82 with HTTP; Fri, 11 Aug 2017 04:40:09 -0700 (PDT) In-Reply-To: <92774A25-854F-4CAB-91A0-C36444386923@objectstyle.org> References: <92774A25-854F-4CAB-91A0-C36444386923@objectstyle.org> From: Michael Gentry Date: Fri, 11 Aug 2017 07:40:09 -0400 Message-ID: Subject: Re: Cayenne own template renderer to replace Velocity To: Cayenne Development Content-Type: multipart/alternative; boundary="001a11c160b64885c6055678c83a" archived-at: Fri, 11 Aug 2017 11:40:52 -0000 --001a11c160b64885c6055678c83a Content-Type: text/plain; charset="UTF-8" Awesome! On Fri, Aug 11, 2017 at 7:23 AM, Andrus Adamchik wrote: > > I'm assuming the template engine will be injectable > > Yes, and even better. With module auto-loading, you simply put your > template engine jar on classpath, and you get it installed automatically. > This is how backwards-compatible cayenne-velocity will operate. > > Andrus > > > > On Aug 11, 2017, at 2:21 PM, Michael Gentry wrote: > > > > I haven't looked into the details, but I like the idea of reducing > > dependencies upon external libraries, which can cause headaches with > > applications using Cayenne. > > > > I'm assuming the template engine will be injectable so that you can > choose > > Velocity, Freemarker, etc if you'd like? (Of course, you might have to > > create a bridge to your template engine of choice, but be able to inject > > that bridge into Cayenne.) > > > > Thanks, > > > > mrg > > > > > > On Thu, Aug 10, 2017 at 5:35 AM, Nikita Timofeev < > ntimofeev@objectstyle.com> > > wrote: > > > >> Hi all, > >> > >> I've opened a PR [1] just now with new SQLTemplateProcessor > >> implementation based on new Cayenne own parser (instead of Velocity). > >> > >> It doesn't support all features of Velocity but it's enough to > >> seamlessly replace Velocity in all core and test code in Cayenne, plus > >> it's faster (up to x15 in case of cache hit) and should have less > >> memory footprint (though I've only checked speed and memory is my > >> guess as new parser smaller and have no runtime). > >> > >> Plus cayenne-server now free of velocity and commons-lang > >> dependencies, next step will be removing of commons-collections (it > >> will be the last one). > >> > >> VelocitySQLTemplateProcessor now comes in optional auto-loaded module > >> (cayenne-velocity), so if you relied on some advanced features of > >> Velocity in your SQLTemplates you still can use it. And Velocity is > >> still used for cgen templates. > >> > >> See PR [1] and Jira ticket [2] for details. > >> > >> Any thoughts or concerns? > >> > >> [1] https://github.com/apache/cayenne/pull/238 > >> [2] https://issues.apache.org/jira/browse/CAY-2345 > >> > >> -- > >> Best regards, > >> Nikita Timofeev > >> > > --001a11c160b64885c6055678c83a--