Details
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");
Attachments
Issue Links
| This issue is duplicated by: | ||||
| XSTR-533 | An alias for a whole package (and sub packages) |
|
|
|
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.