Package cn.com.byd.domain

Examples of cn.com.byd.domain.ConfigDomain


    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());
        }
      }

    }
View Full Code Here


                       FactoryBuilder.getProxyFactory().getProxy().findInterface(beanID, RefObjectUtil.loadClass(className)));
      } else {
        SINGLETON_BEAN_MAPPING.put(beanID, RefObjectUtil.loadClass(className));
      }
    } else {
      ConfigDomain config = new ConfigDomain();
      config.setProxyed(isProxyed);
      config.setSingle(isSingle);
      config.setClazzName(className);
      COMMON_BEAN_MAPPING.put(beanID, config);
    }
  }
View Full Code Here

TOP

Related Classes of cn.com.byd.domain.ConfigDomain

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.