Package org.springframework.beans

Examples of org.springframework.beans.Mergeable


   * @param newValue the argument value in the form of a ValueHolder
   */
  private void addOrMergeIndexedArgumentValue(Integer key, ValueHolder newValue) {
    ValueHolder currentValue = this.indexedArgumentValues.get(key);
    if (currentValue != null && newValue.getValue() instanceof Mergeable) {
      Mergeable mergeable = (Mergeable) newValue.getValue();
      if (mergeable.isMergeEnabled()) {
        newValue.setValue(mergeable.merge(currentValue.getValue()));
      }
    }
    this.indexedArgumentValues.put(key, newValue);
  }
View Full Code Here


    if (newValue.getName() != null) {
      for (Iterator<ValueHolder> it = this.genericArgumentValues.iterator(); it.hasNext();) {
        ValueHolder currentValue = it.next();
        if (newValue.getName().equals(currentValue.getName())) {
          if (newValue.getValue() instanceof Mergeable) {
            Mergeable mergeable = (Mergeable) newValue.getValue();
            if (mergeable.isMergeEnabled()) {
              newValue.setValue(mergeable.merge(currentValue.getValue()));
            }
          }
          it.remove();
        }
      }
View Full Code Here

   * @param newValue the argument value in the form of a ValueHolder
   */
  private void addOrMergeIndexedArgumentValue(Integer key, ValueHolder newValue) {
    ValueHolder currentValue = this.indexedArgumentValues.get(key);
    if (currentValue != null && newValue.getValue() instanceof Mergeable) {
      Mergeable mergeable = (Mergeable) newValue.getValue();
      if (mergeable.isMergeEnabled()) {
        newValue.setValue(mergeable.merge(currentValue.getValue()));
      }
    }
    this.indexedArgumentValues.put(key, newValue);
  }
View Full Code Here

    if (newValue.getName() != null) {
      for (Iterator<ValueHolder> it = this.genericArgumentValues.iterator(); it.hasNext();) {
        ValueHolder currentValue = it.next();
        if (newValue.getName().equals(currentValue.getName())) {
          if (newValue.getValue() instanceof Mergeable) {
            Mergeable mergeable = (Mergeable) newValue.getValue();
            if (mergeable.isMergeEnabled()) {
              newValue.setValue(mergeable.merge(currentValue.getValue()));
            }
          }
          it.remove();
        }
      }
View Full Code Here

   * @param newValue the argument value in the form of a ValueHolder
   */
  private void addOrMergeIndexedArgumentValue(Object key, ValueHolder newValue) {
    ValueHolder currentValue = (ValueHolder) this.indexedArgumentValues.get(key);
    if (currentValue != null && newValue.getValue() instanceof Mergeable) {
      Mergeable mergeable = (Mergeable) newValue.getValue();
      if (mergeable.isMergeEnabled()) {
        newValue.setValue(mergeable.merge(currentValue.getValue()));
      }
    }
    this.indexedArgumentValues.put(key, newValue);
  }
View Full Code Here

   * @param newValue the argument value in the form of a ValueHolder
   */
  private void addOrMergeIndexedArgumentValue(Integer key, ValueHolder newValue) {
    ValueHolder currentValue = this.indexedArgumentValues.get(key);
    if (currentValue != null && newValue.getValue() instanceof Mergeable) {
      Mergeable mergeable = (Mergeable) newValue.getValue();
      if (mergeable.isMergeEnabled()) {
        newValue.setValue(mergeable.merge(currentValue.getValue()));
      }
    }
    this.indexedArgumentValues.put(key, newValue);
  }
View Full Code Here

    if (newValue.getName() != null) {
      for (Iterator<ValueHolder> it = this.genericArgumentValues.iterator(); it.hasNext();) {
        ValueHolder currentValue = it.next();
        if (newValue.getName().equals(currentValue.getName())) {
          if (newValue.getValue() instanceof Mergeable) {
            Mergeable mergeable = (Mergeable) newValue.getValue();
            if (mergeable.isMergeEnabled()) {
              newValue.setValue(mergeable.merge(currentValue.getValue()));
            }
          }
          it.remove();
        }
      }
View Full Code Here

TOP

Related Classes of org.springframework.beans.Mergeable

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.