Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-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 449E77960 for ; Sun, 11 Dec 2011 09:18:31 +0000 (UTC) Received: (qmail 22661 invoked by uid 500); 11 Dec 2011 09:18:31 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 22569 invoked by uid 500); 11 Dec 2011 09:18:24 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 22560 invoked by uid 99); 11 Dec 2011 09:18:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Dec 2011 09:18:22 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pmuellr@gmail.com designates 209.85.214.47 as permitted sender) Received: from [209.85.214.47] (HELO mail-bw0-f47.google.com) (209.85.214.47) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Dec 2011 09:18:15 +0000 Received: by bkbzt4 with SMTP id zt4so4273875bkb.6 for ; Sun, 11 Dec 2011 01:17:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=53Gf2saTbxMAXhzqg7r5sN6/CMxV1xTowJlNo7JwrcY=; b=PMKaKEGt0mG4sfsMSF0rz3IhnHH3GEQU64e5DQG2QjhK2n7RJjDS36GRZDZUTTPkzu uiyC+W+OPbCp25KwksfpPzRl3/mXyFaDcmDvz7zqD9qf1SwupEKhymblAx/y/MQWuIq6 CL5HG9hck+2U6ZxYZP2YDR6IHhmlYL5F69gd0= MIME-Version: 1.0 Received: by 10.204.149.212 with SMTP id u20mr7438486bkv.120.1323595073864; Sun, 11 Dec 2011 01:17:53 -0800 (PST) Received: by 10.204.184.133 with HTTP; Sun, 11 Dec 2011 01:17:53 -0800 (PST) In-Reply-To: <-4848153779676846049@unknownmsgid> References: <-4848153779676846049@unknownmsgid> Date: Sun, 11 Dec 2011 04:17:53 -0500 Message-ID: Subject: Re: CordovaView?? - A proof of concept of making a custom Android View with Cordova Web APIs exposed From: Patrick Mueller To: callback-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=0015175d040c3445dd04b3cd7e92 --0015175d040c3445dd04b3cd7e92 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Dec 11, 2011 at 01:40, Jesse MacFadyen wrote: > I am working on a similar refactor of iOS code. Moving the majority of > the code into the view controller and out of the application. > This will allow the use of a phonegap view in any application, not > just a PhoneGapApplication subclass. > I wasn't quite sure what Joe was talking about in his post, but if I read Jesse's note correctly, this is a move from a "application-centered" version of the Cordova runtime to a "control-centered" one. +1 on this. I'm curious as to the affects on plugins when we move to "control-centered" from "application-centered". 1) are plugin instances shared across multiple controls? Or does each control get their own private instance of each plugin? Or - it it more complicated than that? 2) even if plugin instances aren't shared across multiple controls, presumably a plugin may be using "static" sorts of storage, which basically makes their plugin instances shared across multiple controls despite the fact that they aren't designed to be. Meaning, you shouldn't be storing any control-specific data in static-ish data areas in your plugin. I think there are issues here, w/r/t plugin design, that go along with this "control-centered" version of Cordova, and we need to get those spelled out. It might just be a note on dangers of using static-ish storage. -- Patrick Mueller http://muellerware.org --0015175d040c3445dd04b3cd7e92--