[jboss-jira] [JBoss JIRA] Created: (JBPORTAL-1505) Parameters class may have a "protected" internal Map, for overriding
Antoine Herzog (JIRA)
jira-events at lists.jboss.org
Tue Jun 26 06:21:16 EDT 2007
Parameters class may have a "protected" internal Map, for overriding
--------------------------------------------------------------------
Key: JBPORTAL-1505
URL: http://jira.jboss.com/jira/browse/JBPORTAL-1505
Project: JBoss Portal
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Portal Core
Affects Versions: 2.6 CR3
Environment: JBP2.6 RC3
Reporter: Antoine Herzog
Assigned To: Julien Viet
Priority: Minor
The class org.jboss.portlet.util.Parameters has a
private Map parameters;
put it with protected :
protected Map parameters;
so access it possible when overriding this class.
Example of needs :
- overriding the the Parameters class to provide access to the collection, etc...
- use of our own TotoParameters, inheriting from Parameters, to work it with specific features
for debugging... log what is in it (the Parameters class provide nothing to get the collection of key, the size() etc...)
and when overriding and modifying some CommandFactory and URLFactory
Turnaround : I use a ParametersHelper, to fill the Map of params, manipulate it, debug...
and just before to pass it to the portal (end of CommandFactory doMapping method), I build a Parameters instance from it.
It is ok in this use case, but overriding the class would be much better.
Thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list