Probably low on the priority list but useful anyway would be to allow the getBeansOfType to filter out lazy-init='true' beans.
The following works
but when I loop through the Map, I get back the semi-configured, lazy-init='true' beans that act as templates for my real MyInterface.class implementations. I don't want these returned.Code:Map lookups = getApplicationContext().getBeansOfType(MyInterface.class, false, false);
getBeansOfType already takes includePrototypes and includeFactoryBeans (both booleans) as params, so could probably take an additional includeLazyInit boolean param or otherwise do something like when retrieving lists of files from the filesystem, i.e. take some sort of Filter param that can choose what beans get returned to the map.
....or is there already some simple way to do this?


Reply With Quote