if (obj == null) {
if (missingExtensions.contains(extensionType)) {
//already know we cannot find it
return null;
}
ConfiguredBeanLocator loc = (ConfiguredBeanLocator)extensions.get(ConfiguredBeanLocator.class);
if (loc == null) {
loc = createConfiguredBeanLocator();
}
if (loc != null) {
obj = loc.getBeanOfType(extensionType.getName(), extensionType);
if (obj != null) {
extensions.put(extensionType, obj);
} else {
//force loading
Collection<?> objs = loc.getBeansOfType(extensionType);
if (objs != null) {
for (Object o : objs) {
extensions.put(extensionType, o);
}
}