|
From: <jue...@we...> - 2004-09-27 06:26:30
|
Following the suggestion in =20 http://opensource.atlassian.com/projects/spring/browse/SPR-352 =20 I've added a CollectionFactory helper to our core package, abstracting = the creation of linked and identity maps (called by bean factory stuff, = JdbcTemplate, HashMapCachingAdvisorChainFactory). It primarily uses JDK 1.4 collections when available, checks for Commons = Collection 3.x as secondary choice (on JDK <=3D 1.4), and falls back to = standard JDK 1.3 collections else. =20 This means that we can retain the insertion order of managed maps and = use efficient method lookup in HashMapCachingAdvisorChainFactory on JDK = 1.3 too now, provided that Commons Collections 3.x is on the classpath. = On plain JDK 1.3, we have no other choice as to fall back to the = standard HashMap. =20 Juergen |