Neil Griffin created PLUTO-753: ---------------------------------- Summary: 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.1, 3.0.0 Reporter: Neil Griffin Assignee: Neil Griffin 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)