Examples of AppExceptin


Examples of cn.com.byd.exceptions.AppExceptin

        } catch (NoSuchMethodException e) {
            log.error(e);
            throw new NoModuleException(e);
        } catch (IllegalAccessException e) {
            log.error(e);
            throw new AppExceptin(e);
        } catch (InvocationTargetException e) {
            log.error(e);
            throw new AppExceptin(e);
        }
    }
View Full Code Here

Examples of cn.com.byd.exceptions.AppExceptin

    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;
  }
View Full Code Here

Examples of cn.com.byd.exceptions.AppExceptin

    return obj;
  }

  public void addBean(String beanID, String className, boolean isSingle, boolean isProxyed) throws AppExceptin {
    if (SINGLETON_BEAN_MAPPING.containsKey(beanID)) {
      throw new AppExceptin("bean id is found:" + beanID);
    }
    if (COMMON_BEAN_MAPPING.containsKey(beanID)) {
      throw new AppExceptin("bean id is found:" + beanID);
    }
    if (isSingle) {
      if (isProxyed) {
        SINGLETON_BEAN_MAPPING.put(beanID,
                       FactoryBuilder.getProxyFactory().getProxy().findInterface(beanID, RefObjectUtil.loadClass(className)));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.