Return-Path: Delivered-To: apmail-lucene-lucy-dev-archive@minotaur.apache.org Received: (qmail 24411 invoked from network); 6 Sep 2009 23:24:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Sep 2009 23:24:22 -0000 Received: (qmail 2780 invoked by uid 500); 6 Sep 2009 23:24:21 -0000 Delivered-To: apmail-lucene-lucy-dev-archive@lucene.apache.org Received: (qmail 2711 invoked by uid 500); 6 Sep 2009 23:24:21 -0000 Mailing-List: contact lucy-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucy-dev@lucene.apache.org Delivered-To: mailing list lucy-dev@lucene.apache.org Received: (qmail 2701 invoked by uid 99); 6 Sep 2009 23:24:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Sep 2009 23:24:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Sep 2009 23:24:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8AFC6234C044 for ; Sun, 6 Sep 2009 16:23:57 -0700 (PDT) Message-ID: <1437079762.1252279437508.JavaMail.jira@brutus> Date: Sun, 6 Sep 2009 16:23:57 -0700 (PDT) From: "Marvin Humphrey (JIRA)" To: lucy-dev@lucene.apache.org Subject: [jira] Updated: (LUCY-30) Boilerplater::Dumpable In-Reply-To: <1798660334.1252279317557.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCY-30?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marvin Humphrey updated LUCY-30: -------------------------------- Attachment: Dumpable.pm dumpable_support.diff > Boilerplater::Dumpable > ---------------------- > > Key: LUCY-30 > URL: https://issues.apache.org/jira/browse/LUCY-30 > Project: Lucy > Issue Type: Sub-task > Components: Boilerplater > Reporter: Marvin Humphrey > Attachments: Dumpable.pm, dumpable_support.diff > > > The Lucy_Obj_Dump() method creates a JSON-izable data structure from an > object; Load() takes the output of Dump() and builds an object from it. > Classes which implement Dump() and Load have the attribute "dumpable". > If a class declares that it has the attribute "dumpable", but does not declare > either Dump() or Load(), Boilerplater::Dumpable will attempt to auto-generate > those methods if methods inherited from the parent class do not suffice. > {code:none} > class Foo::Bar extends Foo : dumpable { > Thing *thing; > public inert incremented Bar* > new(); > void > Destroy(Bar *self); > } > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.