Examples of IBeanReference


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

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

      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

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

        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

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

  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

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

        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

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

    StringBuffer buf = new StringBuffer();
    if (element instanceof IState) {
      buf.append(((IState) element).getId());
    }
    else if (element instanceof IBeanReference) {
      IBeanReference action = (IBeanReference) element;
      if (action.getBean() != null) {
        buf.append(action.getBean());
      }
    }
    else if (element instanceof IAttributeMapper) {
      IAttributeMapper attributeMapper = (IAttributeMapper) element;
      if (attributeMapper.getBean() != null) {
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.