[ 
https://issues.apache.org/jira/browse/CB-6384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13959833#comment-13959833
 ] 

ASF GitHub Bot commented on CB-6384:
------------------------------------

GitHub user qwe2 opened a pull request:

    https://github.com/apache/cordova-android/pull/97

    Support for PluginFactory

    Pull request based on this issue: 
https://issues.apache.org/jira/browse/CB-6384

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/qwe2/cordova-android plugin-factory

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-android/pull/97.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #97
    
----
commit f69f6a2204ae821d9d7b7ac4228f6880da318be4
Author: István Gansperger <[email protected]>
Date:   2014-04-04T10:01:27Z

    Support for PluginFactory

----


> Easier way to manage plugin creation on the native side
> -------------------------------------------------------
>
>                 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án 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 occured 
> to me that I couldn't find an easy way to customize my CordovaPlugins beyond 
> the initialize and exec methods. For example I needed to provide my plugin 
> with an instance of another object implementing my communication interface. 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 files to take 
> such on object instead of providing a hardcoded default implementation. I'm 
> curious if such a feature would be deemed to be necessary by others.
> I'm quite a newbie programmer but my proof of concept can be found here: 
> https://github.com/qwe2/cordova-android/tree/plugin-factory



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to