Examples of BeanReference


Examples of org.springframework.ide.eclipse.beans.core.internal.model.BeanReference

    if (beansMapEntry != null) {
      if (beansMapEntry.getValue() instanceof Bean) {
        Bean cciBean = (Bean)beansMapEntry.getValue();
        return cciBean.getBeanDefinition().getBeanClassName();
      } else if (beansMapEntry.getValue() instanceof BeanReference) {
        BeanReference beanRef = (BeanReference)beansMapEntry.getValue();       
        String beanName = beanRef.getBeanName();
       
        Set<IBeansProject> projects = BeansCorePlugin.getModel().getProjects();
        for (IBeansProject beansProject : projects) {
          Set<IBeansConfig> tempConfigs = beansProject.getConfigs();
          for (IBeansConfig config : tempConfigs) {
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.core.internal.model.BeanReference

      if (beansTypedString1.getString().equals(beansTypedString2.getString())) {
        return true;
      }
    }
    else if (value1 instanceof BeanReference && value2 instanceof BeanReference) {
      BeanReference beanReference1 = (BeanReference) value1;
      BeanReference beanReference2 = (BeanReference) value2;
      if (beanReference1.getBeanName().equals(beanReference2.getBeanName())) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

Examples of us.codecraft.tinyioc.BeanReference

          String ref = propertyEle.getAttribute("ref");
          if (ref == null || ref.length() == 0) {
            throw new IllegalArgumentException("Configuration problem: <property> element for property '"
                + name + "' must specify a ref or value");
          }
          BeanReference beanReference = new BeanReference(ref);
          beanDefinition.getPropertyValues().addPropertyValue(new PropertyValue(name, beanReference));
        }
      }
    }
  }
View Full Code Here

Examples of us.codecraft.tinyioc.BeanReference

      ((BeanFactoryAware) bean).setBeanFactory(this);
    }
    for (PropertyValue propertyValue : mbd.getPropertyValues().getPropertyValues()) {
      Object value = propertyValue.getValue();
      if (value instanceof BeanReference) {
        BeanReference beanReference = (BeanReference) value;
        value = getBean(beanReference.getName());
      }

      try {
        Method declaredMethod = bean.getClass().getDeclaredMethod(
            "set" + propertyValue.getName().substring(0, 1).toUpperCase()
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.