|
|
|
The previous patch isn't really satisfying me, because :
I'm planning on submitting another patch that would
... I'll do that .. eventually.. when my pc resurects. Please tell me what you think, anyway Some basic tests that demonstrate this behaviour.
This patch (see attachment) allows for multiple "default packages" to be specified. The classes in these packages will be mapped by their "short class name" (as by ClassUtils.shortClassName(type)). When an alias for a "default package"-class is found it is stored as a simple alias for fast future access.
|
||||||||||||||||||||||||||||||||||||||||||||
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.