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());
}
}
}
if (obj == null) {
throw new AppExceptin("dont found bean id:" + beanID);
}
return obj;
}