Package org.springframework.ide.eclipse.beans.core.model

Examples of org.springframework.ide.eclipse.beans.core.model.IBeanReference


        }
        else {
          String[] matchingBeans = resolver.getBeansForType(lookupType);
          for (String matchingBen : matchingBeans) {
            if (name.equals(matchingBen) || Arrays.asList(resolver.getAliases(matchingBen)).contains(name)) {
              IBeanReference ref = new AutowireBeanReference(bean, new RuntimeBeanReference(matchingBen));
              if (getMember() instanceof Field) {
                ((AutowireBeanReference) ref).setSource((Field) getMember());
              }
              else {
                ((AutowireBeanReference) ref).setSource(getMember(), 0);
View Full Code Here


      if (!shouldSkip(bd)) {
        if (StringUtils.hasLength(mappedName)) {
          String[] matchingBeans = resolver.getBeansForType(lookupType);
          for (String matchingBen : matchingBeans) {
            if (mappedName.equals(matchingBen)) {
              IBeanReference ref = new AutowireBeanReference(bean, new RuntimeBeanReference(matchingBen));
              if (getMember() instanceof Field) {
                ((AutowireBeanReference) ref).setSource((Field) getMember());
              }
              else {
                ((AutowireBeanReference) ref).setSource(getMember(), 0);
View Full Code Here

        if (StringUtils.hasLength(this.beanName)) {
          if (resolver.containsBean(this.beanName)) {
            String[] matchingBeans = resolver.getBeansForType(this.lookupType);
            for (String matchingBen : matchingBeans) {
              if (this.beanName.equals(matchingBen)) {
                IBeanReference ref = new AutowireBeanReference(bean, new RuntimeBeanReference(
                    matchingBen));
                if (getMember() instanceof Field) {
                  ((AutowireBeanReference) ref).setSource((Field) getMember());
                }
                else {
View Full Code Here

  public void setBeanProperties(Set<IBeanProperty> properties) {
    beanProperties = new LinkedHashSet<PropertyValue>();
    for (IBeanProperty property : properties) {
      if (property.getValue() instanceof IBeanReference) {
        IBeanReference reference = (IBeanReference) property.getValue();
        SerializableRuntimeBeanReference rbr = new SerializableRuntimeBeanReference();
        rbr.setBeanName(reference.getBeanName());
        rbr.setToParent(false);
        rbr.setSource(property.getElementSourceLocation());
        beanProperties.add(new PropertyValue(property.getElementName(), rbr));
      }
    }
View Full Code Here

        IBeanAlias alias = (IBeanAlias) element;
        beanName = alias.getBeanName();
        config = BeansModelUtils.getConfig(alias);
      }
      else if (element instanceof IBeanReference) {
        IBeanReference reference = (IBeanReference) element;
        beanName = reference.getBeanName();
        config = BeansModelUtils.getConfig(reference);
      }
      if (beanName != null) {
        if (selection instanceof ITreeSelection) {
          IModelElement context = BeansUIUtils
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.beans.core.model.IBeanReference

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.