Return-Path: X-Original-To: apmail-river-dev-archive@www.apache.org Delivered-To: apmail-river-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3C83411555 for ; Thu, 26 Jun 2014 14:38:42 +0000 (UTC) Received: (qmail 13271 invoked by uid 500); 26 Jun 2014 14:38:42 -0000 Delivered-To: apmail-river-dev-archive@river.apache.org Received: (qmail 13244 invoked by uid 500); 26 Jun 2014 14:38:42 -0000 Mailing-List: contact dev-help@river.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@river.apache.org Delivered-To: mailing list dev@river.apache.org Received: (qmail 13231 invoked by uid 99); 26 Jun 2014 14:38:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2014 14:38:41 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [207.57.65.70] (HELO zeus.net.au) (207.57.65.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2014 14:38:35 +0000 Received: (qmail 42206 invoked by uid 16710); 26 Jun 2014 14:38:13 -0000 Received: from unknown (HELO [10.124.62.110]) ([49.180.112.249]) (envelope-sender ) by 207.57.65.70 (qmail-ldap-1.03) with SMTP for ; 26 Jun 2014 14:38:13 -0000 From: Peter Reply-To: Peter To: dev@river.apache.org, =?UTF-8?Q?Micha=C5=82_K=C5=82eczek?= Subject: Re: SerialReflectionFactory - got a better name? X-Mailer: Modest 3.2 References: <53A80E5B.3070001@zeus.net.au> <1403779983.10777.5.camel@Nokia-N900> <4637382.sT8sVNs8jN@mkleczek-laptop> <5165403.S8r4cIIXlx@mkleczek-laptop> In-Reply-To: <5165403.S8r4cIIXlx@mkleczek-laptop> Content-Type: multipart/alternative; boundary="=-MSTZozftZEtivK5OUN5I" Date: Fri, 27 Jun 2014 00:37:58 +1000 Message-Id: <1403793478.10777.17.camel@Nokia-N900> Mime-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --=-MSTZozftZEtivK5OUN5I Content-Type: text/plain; charset=utf-8 Content-ID: <1403793475.10777.14.camel@Nokia-N900> Content-Transfer-Encoding: 8bit ----- Original message ----- > Also, > > I am not sure I like "Distributed" or "DistributedObject" - it suggests > an  instance is distributed. My thoughts at the time were, a Remote object is one with remote state mutated by remote method calls (generalisation), but a distributed object was one with local immutable or thread safe state that could exist at multiple locations, be stored to disk and restored later, even if the original class no longer existed, it was distributed, data, so to speak. It's original intent was to be a value object, where services and remote objects use distributed objects as return values and parameters, but it has other uses, such as serializing objects without a no arg constructor that don't implement serializable, or allowing inheritance hierarchies to change without breaking deserialization... > > "Transferable"? > > Sorry - English is not my mother tongue so it is hard to find viable > alternatives :) Does it have to be in English? > > Michal > > On Thursday 26 of June 2014 13:23:39 Michał Kłeczek wrote: > > 1. I understand "Memento" is an interface and "ReflectiveMemento" - an > > implementation > > > > 2. Isn't just "Memento" too generic? > > > > DistributedObjectMemento? > > SerializableMemento? (to indicate implementations should support > > standard serialization)? > > > > 3. A little different issue - did u find a way to serialize cycles in > > the object graph? Right now SerialReflectionFactory has the same > > issues as writeReplace()/ readResolve() > > > > Thanks, > > Michal > > > > On Thursday 26 of June 2014 20:53:03 Peter wrote: > > > Any objections to calling it Momento? > > > > > > ----- Original message ----- > > > > > > > You're sharp, so it is, that's a good one. > > > > > > > > ----- Original message ----- > > > > > > > > > It really is a Memento. Isn't it? > > > > > > > > > > Michal > > > > > > > > > > 23 cze 2014 13:24 "Peter Firmstone" > > > > > napisał(a): > > > > > > Distributed object use SerialReflectionFactory to recreate > > > > > > themselves > > > > > > remotely using one of their public constructors, a static > > > > > > factory method or builder object, however one thing about > > > > > > SerialReflectionFactory bothers me. > > > > > > > > > > > > SerialReflectionFactory is named after it's implementation, > > > > > > that is, it uses reflection.      At some point in time, we > > > > > > might decide we want > > > > > > to use something other than reflection, in that case, the name > > > > > > would be inappropriate. > > > > > > > > > > > > How does DistributedObjectFactory sound? > > > > > > > > > > > > Has anyone got a better name? > > > > > > > > > > > > Regards, > > > > > > > > > > > > Peter. > > > > -- > --=-MSTZozftZEtivK5OUN5I--