Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9598517522 for ; Thu, 16 Apr 2015 05:18:04 +0000 (UTC) Received: (qmail 92821 invoked by uid 500); 16 Apr 2015 05:18:04 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 92783 invoked by uid 500); 16 Apr 2015 05:18:04 -0000 Mailing-List: contact dev-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list dev@ignite.incubator.apache.org Received: (qmail 92771 invoked by uid 99); 16 Apr 2015 05:18:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2015 05:18:04 +0000 X-ASF-Spam-Status: No, hits=-1997.8 required=5.0 tests=ALL_TRUSTED,HTML_MESSAGE,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 16 Apr 2015 05:17:40 +0000 Received: (qmail 92712 invoked by uid 99); 16 Apr 2015 05:17:37 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2015 05:17:37 +0000 Received: from mail-oi0-f42.google.com (mail-oi0-f42.google.com [209.85.218.42]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 281A41A003F for ; Thu, 16 Apr 2015 05:17:36 +0000 (UTC) Received: by oift201 with SMTP id t201so38953835oif.3 for ; Wed, 15 Apr 2015 22:17:36 -0700 (PDT) X-Gm-Message-State: ALoCoQm2DASugKJe+0EpFzUb19+6jEBB80yQn9rDXdKKi3j4G3mgXn0ZfC6tf4jpmnKi6ost5lLd X-Received: by 10.202.212.86 with SMTP id l83mr18539816oig.50.1429161456204; Wed, 15 Apr 2015 22:17:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.131.9 with HTTP; Wed, 15 Apr 2015 22:16:55 -0700 (PDT) In-Reply-To: <20150416045920.GM2826@tpx> References: <20150325231551.GT1657@boudnik.org> <20150416045920.GM2826@tpx> From: Dmitriy Setrakyan Date: Thu, 16 Apr 2015 00:16:55 -0500 Message-ID: Subject: Re: Ignite custom Spring XML schema To: "dev@ignite.incubator.apache.org" Content-Type: multipart/alternative; boundary=001a113d23ecec97f70513d0942b X-Virus-Checked: Checked by ClamAV on apache.org --001a113d23ecec97f70513d0942b Content-Type: text/plain; charset=UTF-8 >From what I can tell, this is standard Spring. No changes required to Ignite, right? On Wed, Apr 15, 2015 at 11:59 PM, Konstantin Boudnik wrote: > It seems way cleaner! And considering that a DSL will require some extra > work > to work on the language and create the builder classes - perhaps going your > way would be more efficient. > > Thanks! > Cos > > On Mon, Apr 13, 2015 at 04:34PM, Alexey Kuznetsov wrote: > > How about to use Spring *"http://www.springframework.org/schema/p > > "* ? > > > > With this schema XML will be like this: > > > > > p:name="test-cache" > > p:backups="1" > > p:cacheMode="PARTITIONED" > > p:atomicityMode="ATOMIC" > > p:preloadMode="SYNC" > > p:startSize="3000000"> > > > > Thoughts? > > > > > > On Thu, Mar 26, 2015 at 6:15 AM, Konstantin Boudnik > wrote: > > > > > I will harp once again on the beauty of DSLs ;) > > > > > > On Wed, Mar 25, 2015 at 11:21AM, Vladimir Ozerov wrote: > > > > This is important question. As far as I know none of our competitors > use > > > > plain Spring XMLs. Disadvantage of this approach is that users have > to > > > > learn new synthax for configuration. > > > > > > > > But on the other hand this gives us independency of Spring format. > It is > > > > very important from interoperability point of view. For instance, > > > currently > > > > in GridGain .Net client we can do nothing with Spring XML > configuration: > > > we > > > > cannot load it, modify it, pass object model to Java, etc.. > Therefore, we > > > > cannot take advantage of new dynamic cache start without introducing > > > > boilerplate code responsible for marshalling .Net cache config data > model > > > > to bytes and unmarshalling it to Java data model in JVM. Also, our > > > further > > > > non-Java users will have to learn Spring format which can be very > > > uncommon > > > > for their platform and environment. > > > > I believe we will face lots of such problems when developing > open-source > > > > integration with other platforms. > > > > > > > > So, I -1 for customSpring XML schemas, but +1 for thinking about new > > > > completely independent XML schema _in_addition_ to current Spring > > > features. > > > > > > > > On Wed, Mar 25, 2015 at 11:02 AM, Sergi Vladykin < > > > sergi.vladykin@gmail.com> > > > > wrote: > > > > > > > > > -1 > > > > > > > > > > Agree with Dmitriy. > > > > > > > > > > Sergi > > > > > > > > > > 2015-03-25 10:05 GMT+03:00 Dmitriy Setrakyan < > dsetrakyan@apache.org>: > > > > > > > > > > > -1 > > > > > > > > > > > > I don't agree from usability standpoint. I like our default > Spring > > > config > > > > > > syntax because it does not require learning of our XML syntax. > The > > > less > > > > > > user has to learn, the better. > > > > > > > > > > > > D. > > > > > > > > > > > > On Tue, Mar 24, 2015 at 11:44 PM, Alexey Goncharuk < > > > > > agoncharuk@apache.org> > > > > > > wrote: > > > > > > > > > > > > > +1. Totally agree with Alexey on this idea. > > > > > > > > > > > > > > 2015-03-24 20:45 GMT-07:00 Alexey Kuznetsov < > > > akuznetsov@gridgain.com>: > > > > > > > > > > > > > > > Hi! > > > > > > > > > > > > > > > > What do you think about creating custom Spring XML schema? > > > > > > > > > > > > > > > > For example Spring AMQP has its own schema that looks like: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > connection-factory="connectionFactory" > > > > > > > > exchange="myExchange" routing-key="foo.bar"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > We could have something similar for Ignite. That will make > Ignite > > > > > > Spring > > > > > > > > XML configs much smaller. > > > > > > > > No need to use full class names. > > > > > > > > > > > > > > > > Thoughts? > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > Alexey Kuznetsov > > > > > > > > GridGain Systems > > > > > > > > www.gridgain.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > Alexey Kuznetsov > > GridGain Systems > > www.gridgain.com > --001a113d23ecec97f70513d0942b--