You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Joe Bowser <bo...@gmail.com> on 2014/06/04 23:37:25 UTC

[Android] Why does the CordovaResourceApi require a pluginManager in the constructor?

Hey

I'm looking at various JIRA issues (one of which makes me want to
completely re-write Camera), and I'm trying to figure out why the
CordovaResourceApi needs a plugin manager, since it already has the
WebView, and each webview has a plugin manager and their own instances
of plugins.  Is there a reason you would have a different plugin
manger than the one tied to the WebView?

Any ideas??

Joe

Re: [Android] Why does the CordovaResourceApi require a pluginManager in the constructor?

Posted by Andrew Grieve <ag...@chromium.org>.
I think I did that just to be dependency-injection friendly. E.g. try not
to deep into nested dependencies.


On Wed, Jun 4, 2014 at 5:37 PM, Joe Bowser <bo...@gmail.com> wrote:

> Hey
>
> I'm looking at various JIRA issues (one of which makes me want to
> completely re-write Camera), and I'm trying to figure out why the
> CordovaResourceApi needs a plugin manager, since it already has the
> WebView, and each webview has a plugin manager and their own instances
> of plugins.  Is there a reason you would have a different plugin
> manger than the one tied to the WebView?
>
> Any ideas??
>
> Joe
>