Issue Details (XML | Word | Printable)

Key: CHAIN-4
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Niall Pemberton
Reporter: Joe Germuska
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Chain

[chain] Update servlet implementation classes to be aware of CatalogFactory

Created: 16/Mar/05 04:39 AM   Updated: 02/Jan/08 07:01 AM
Return to search
Component/s: None
Affects Version/s: 1.0
Fix Version/s: 1.2

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File AbstractMapper.java 2005-03-16 01:31 PM Joe Germuska 2 kB
Text File chain_patch.txt 2005-03-16 01:32 PM Joe Germuska 7 kB
Environment:
Operating System: other
Platform: Other

Bugzilla Id: 34022
Resolution Date: 27/Apr/07 04:06 AM


 Description  « Hide
As brought up by Howard Lin in this thread
http://thread.gmane.org/gmane.comp.jakarta.commons.devel/63506

the ChainProcessor and related classes were not updated to work with
CatalogFactory in the 1.0 release.

This should be corrected before the next release of commons-chain.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Joe Germuska added a comment - 16/Mar/05 01:29 PM
This link is a better pointer to the initial statement of the problem:
http://thread.gmane.org/gmane.comp.jakarta.commons.devel/63264

I'm attaching a patch and a new class which I think deal with the main issue –
that the catalog is sometimes stored in the request scope instead of in the
context – but I would really prefer someone who is using this stuff to champion
this ticket, review the patches and such. I don't have time to build and test a
ChainProcessor servlet.


Joe Germuska added a comment - 16/Mar/05 01:31 PM
Created an attachment (id=14495)
Superclass for mappers to share common behavior.

Joe Germuska added a comment - 16/Mar/05 01:32 PM
Created an attachment (id=14496)
Patch three *Mapper classes to extend AbstractMapper

Since the mappers all work in about the same way, it makes sense to have an
AbstractMapper which looks up the commands and just uses a different mechanism
for determining the command name.


Niall Pemberton added a comment - 27/Apr/07 04:06 AM
I used the basis of your solution Joe to resolve this - but modified the LookupCommand so that the "mapper" implementations could inherit directly from that.

Solution retains backwards compatibility with previous versions by checking for a catalog in the context under the catalogKey - but catalogKey (i.e. setCatalogKey/getCatalogKey methods) are now deprecated and LookupCommand "catalogName" should be used instead.