|
[
Permlink
| « Hide
]
Nick Sieger added a comment - 20/Aug/04 01:31 AM
Two more potential improvements:
It's nice that you are contributing this.
Before we apply this contribution I need to know: 1) Is this a workaround for a use case that cannot be achieved with the current support for arrays? 2) If this attempts to solve something that cannot be solved with arrays, what is your case? 3) Would you accept an implementation that leverages generics (and jdk 1.5?) 1. It started as a workaround, but grew a little further out of that. I've since written a testcase and patch which obviates the need for the workaround (see
2. I can't think of anything at the moment that this would solve that couldn't be done with arrays, other than further specification/narrowing of what you want in your collection/array in a container that might have many components of the same type and you wish to configure a component that doesn't receive all of them. No concrete example right now. 3. A generics implementation will be nice but doesn't add much on top of what's achievable with arrays today. I also probably won't see JDK1.5 for a while in my work-related projects anyway due to appserver vendors typically taking awhile to formally support it (my IT dept. won't move to a new JDK until it's supported by the appserver vendor). Refactored to use new CollectionComponentAdapter.
Thanks to Nick Sieger for original idea and code contribution. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||