[
https://issues.apache.org/jira/browse/PLUTO-753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Neil Griffin closed PLUTO-753.
------------------------------
Resolution: Fixed
Fixed in commit
[fe81fe676fc10c1e5b69be0a2aab2b2091b45d01|https://github.com/apache/portals-pluto/commit/fe81fe676fc10c1e5b69be0a2aab2b2091b45d01].
> Improve performance of the ChatRoomDemo portlet by registering the PortletHub
> dependency
> ----------------------------------------------------------------------------------------
>
> Key: PLUTO-753
> URL: https://issues.apache.org/jira/browse/PLUTO-753
> Project: Pluto
> Issue Type: Improvement
> Components: demo portlets
> Affects Versions: 3.0.0, 3.0.1
> Reporter: Neil Griffin
> Assignee: Neil Griffin
> Priority: Major
> Fix For: 3.0.2
>
>
> Currently the ChatRoomDemo HelloWorldImage.java class adds the PortletHub as
> a dependency in a header method that gets executed on every request:
> {code:java|title=HelloWorldImage.java}
> @HeaderMethod(portletNames="*")
> public void header(HeaderRequest req, HeaderResponse resp) throws IOException
> {
> resp.addDependency("PortletHub", "javax.portlet", "3.0.0");
> }
> {code}
> Performance can be improved by registering the dependency with
> {{@PortletConfiguration}} instead.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)