FactoryBeanRegistrySupport继承了DefaultSingletonBeanRegistry,添加了对FactoryBean的操作
protected Class getTypeForFactoryBean(FactoryBean factoryBean) {
try {
return factoryBean.getObjectType();
}
catch (Throwable ex) {
// Thrown from the FactoryBean's getObjectType implementation.
logger.warn("FactoryBean threw exception from getObjectType, despite the contract saying " +
"that it should return null if the type of its object cannot be determined yet", ex);
return null;
}
}
取FactoryBean的ObjectType,比如List.class,Map.class等其他
protected Object getCachedObjectForFactoryBean(String beanName) {
Object object = this.factoryBeanObjectCache.get(beanName);
return (object != NULL_OBJECT ? object : null);
}
取factoryBeanObjectCache相对应的beanName的值
protecte