logo       

[xstream-dev] [jira] Updated: (XSTR-55) Ability to alias an entire package: msg#00005

java.xstream.devel

Subject: [xstream-dev] [jira] Updated: (XSTR-55) Ability to alias an entire package

The following issue has been updated:

Updater: Gr?gory Joseph
(mailto:greg_greg-HLx8PRj2pn30Br+ELjv3iA@xxxxxxxxxxxxxxxx)
Date: Sun, 18 Jul 2004 10:31 AM
Comment:
Here's a very basic patch that allows this.
I've factored out two methods in DefaultClassMapper and made the loadClass
method of DefaultClassMapper protected; this PackageAliasClassMapper simply
extends DefaultClassMapper.
Please review and tell me what you think.
Changes:
Attachment changed to xstream-package-alias-patch.zip
---------------------------------------------------------------------
For a full history of the issue, see:

http://jira.codehaus.org/browse/XSTR-55?page=history

---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/XSTR-55

Here is an overview of the issue:
---------------------------------------------------------------------
Key: XSTR-55
Summary: Ability to alias an entire package
Type: Improvement

Status: Unassigned
Priority: Major

Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown

Project: XStream
Components:
Core
Fix Fors:
1.1
Versions:
1.1

Assignee:
Reporter: Joe Walnes

Created: Thu, 6 May 2004 2:20 PM
Updated: Sun, 18 Jul 2004 10:31 AM

Description:
Rather than having to do:

xstream.alias("com.blah.mypackage.MyClass", "MyClass");
xstream.alias("com.blah.mypackage.YourClass", "YourClass");
xstream.alias("com.blah.mypackage.SheepClass", "SheepClass");

I'd like to be able to do:

xstream.aliasPackage("com.blah.mypackage");



---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise