Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 88827 invoked from network); 27 May 2005 22:43:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 May 2005 22:43:22 -0000 Received: (qmail 74451 invoked by uid 500); 27 May 2005 22:43:18 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 74410 invoked by uid 500); 27 May 2005 22:43:18 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 74396 invoked by uid 99); 27 May 2005 22:43:18 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from Unknown (HELO mgd.gluecode.com) (64.14.202.141) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 27 May 2005 15:43:16 -0700 Received: from [192.168.15.100] (68-171-62-46.vnnyca.adelphia.net [68.171.62.46]) (authenticated bits=0) by mgd.gluecode.com (8.12.10/8.12.10) with ESMTP id j4RMgiCW024003 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Fri, 27 May 2005 15:42:45 -0700 Mime-Version: 1.0 (Apple Message framework v730) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <78495790-A65E-4F9C-9D62-005A73A2E939@iq80.com> Content-Transfer-Encoding: 7bit From: Dain Sundstrom Subject: Re: Why are gbeans not serialized but the gbean attributes are? Date: Fri, 27 May 2005 15:43:15 -0700 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.730) X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On May 25, 2005, at 7:24 AM, Aaron Mulder wrote: > The more interesting question is Hiram's point on providing more > advanced support for attribute contruction. This seems to be one > of the > advantages Dain's Spring-based kernel provides. Right. One big advantage of the Spring based kernel is the attributes get the same quality of service as the top-level named service (a GBean in geronimo nomenclature). In geronimo we save the "recipe" for a service, meaning we save the name of the class to construct, the attribute values to inject and the references to inject. When the service is restarted, we follow the recipe to create a new instance of the service. In the spring based kernel, not only do we have a recipe for the top-level named service, but the attributes can also be saved as a "recipe". This means an attribute can be arbitrarily complex without having to support serialization. -dain