if (SINGLETON_BEAN_MAPPING.containsKey(beanID)) {
obj = SINGLETON_BEAN_MAPPING.get(beanID);
}
if (COMMON_BEAN_MAPPING.containsKey(beanID)) {
ConfigDomain config = COMMON_BEAN_MAPPING.get(beanID);
if (config == null) {
throw new AppExceptin("dont found config information:" + beanID);
}
if (config.isSingle()) {
if (config.isProxyed()) {
SINGLETON_BEAN_MAPPING.put(beanID,
FactoryBuilder.getProxyFactory().getProxy().findInterface(beanID, RefObjectUtil.loadClass(config.getClazzName())));
} else {
SINGLETON_BEAN_MAPPING.put(beanID, RefObjectUtil.loadClass(config.getClazzName()));
}
COMMON_BEAN_MAPPING.remove(beanID);
} else {
if (config.isProxyed()) {
obj =
FactoryBuilder.getProxyFactory().getProxy().findInterface(beanID, RefObjectUtil.loadClass(config.getClazzName()));
} else {
obj = RefObjectUtil.loadClass(config.getClazzName());
}
}
}