Make ResponseOverrideFilter more extendable :
---------------------------------------------
Key: DISPL-470
URL: http://jira.codehaus.org/browse/DISPL-470
Project: DisplayTag
Issue Type: Improvement
Components: Export
Reporter: Frantz DEGRIGNY
Priority: Minor
Attachments: or.displaytag.filter.zip
To improve the Export behavior, I had to extend the export filter class.
But unfortunately it is not very possible. (I had to use a reflexion hack with
setAcessible(true) to do this)
So, I propose the following evolution (very light and simple) :
1) make the fields of ResponseOverrideFilter protected (or provide protected
getters/setters)
2) make the ExportDelegate non static (and visible through an interface)
- ExportDelegate becomes ExportDelegateImpl
- Create an ExportDelegate interface (which defines the writeExport method)
3) define a getter for the ExportDelegate in the ResponseOverrideFilter class
See attached files.
(Sorry for the lack of CVS diff, but I cannot access to the repository)
--Frantz
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
displaytag-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel