[
https://issues.apache.org/jira/browse/PLUTO-305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470417
]
David DeWolf commented on PLUTO-305:
------------------------------------
Actually, I'd rather return only the the PortletContext. The implementation
will probably happen to be the InternalPortletContext, but I don't think you
should depend on that. I'd rather not expose Internal interfaces unless I
really need to. Any reason why you need the internal? You already have access
to the dd and application id.
I'll take care of the class loader upon instantiation of the PortletContext
(done from the PortletServlet.init). Shouldn't be too messy.
> Provide access to a portlet's ResourceBundle's as loaded by Pluto
> -----------------------------------------------------------------
>
> Key: PLUTO-305
> URL: https://issues.apache.org/jira/browse/PLUTO-305
> Project: Pluto
> Issue Type: Improvement
> Components: portlet container
> Affects Versions: 1.1.0
> Reporter: Eric Dalquist
> Assigned To: David DeWolf
> Fix For: 1.1.1
>
>
> A service is needed to access the ResourceBundle of a a portlet for a
> specific Locale. Since Pluto is already dealing with classloaders to load the
> portlet's ResourceBundle's as they are requested from the PortletConfig API.
> The part of this enhancement that will be more difficult is dealing with
> ResourceBundle requests from the portal for a ResourceBundle that has not yet
> been loaded. The portal shouldn't need to provide a full request/response
> context so Pluto will need a way other than getting the context class loader
> from the current thread to load the ResourceBundles.
> One option would be to store the ClassLoader for the PortletDD somewhere when
> the init() call is made to the portlet.
> Another part of the enhancement that is difficult to answer is how the portal
> should identify which PortletDD it wants to get a ResourceBundle for. The
> requested API is along the lines of:
> ResourceBundle resourceBundleService.getResourceBundle(Locale,
> PortletDDIdentifier);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.