[
http://jira.nuxeo.org/browse/NXP-3677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=54084#action_54084
]
Alexandre Russel commented on NXP-3677:
---------------------------------------
why do you need to pass the WebContext, it ought to be accessible from anywhere
in the code with WebEngine.getActiveContext() ?
nothing specific, as a general rules I prefer to have dependency injected
instead than the component go and get it. Is is easier to test. I can then test
my factory using a moke webcontext.
> Persistence provider needs to be more configurable
> --------------------------------------------------
>
> Key: NXP-3677
> URL: http://jira.nuxeo.org/browse/NXP-3677
> Project: Nuxeo Enterprise Platform
> Issue Type: Improvement
> Reporter: Alexandre Russel
> Assignee: Jean-Marc Orliaguet
> Attachments: providerFactory.patch
>
>
> At the moment, a provider is instanciated for each user session depending on
> the name. We needs more configurability to do thing such as:
> * use only one instance of provider if just a set of widget will be shown for
> every user
> * provider used depending on groups or rights
> ...
> A simple solution would be to use a ProviderFactory instead of a Provider in
> the configuration. The provider factory would be responsible to cache the
> providers according to its own logic.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets