Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8A9C410CF7 for ; Tue, 1 Apr 2014 17:55:28 +0000 (UTC) Received: (qmail 95761 invoked by uid 500); 1 Apr 2014 17:55:25 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 94718 invoked by uid 500); 1 Apr 2014 17:55:19 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 94454 invoked by uid 99); 1 Apr 2014 17:55:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2014 17:55:15 +0000 Date: Tue, 1 Apr 2014 17:55:15 +0000 (UTC) From: =?utf-8?Q?Istv=C3=A1n_Gansperger_=28JIRA=29?= To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CB-6384) Easier way to manage plugin creation on the native side MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Istv=C3=A1n Gansperger created CB-6384: ------------------------------------- Summary: Easier way to manage plugin creation on the native si= de Key: CB-6384 URL: https://issues.apache.org/jira/browse/CB-6384 Project: Apache Cordova Issue Type: New Feature Components: Android Affects Versions: 3.4.0 Reporter: Istv=C3=A1n Gansperger Priority: Minor In my current project, I needed an easy way to write an HTML/Javascript GUI= for my Java backend and I chose Cordova for this task on Android. It occur= ed to me that I couldn't find an easy way to customize my CordovaPlugins be= yond the initialize and exec methods. For example I needed to provide my pl= ugin with an instance of another object implementing my communication inter= face. I didn't find a plausible way to do it in the current implementation = so I wrote my own PluginFactory object and readjusted some of the source fi= les to take such on object instead of providing a hardcoded default impleme= ntation. I'm curious if such a feature would be deemed to be necessary by o= thers. I'm quite a newbie programmer but my proof of concept can be found here: ht= tps://github.com/qwe2/cordova-android/tree/plugin-factory -- This message was sent by Atlassian JIRA (v6.2#6252)