Package org.springframework.beans

Examples of org.springframework.beans.MutablePropertyValues.removePropertyValue()


                wrapper.setPropertyValues(pvs, true);
            } else {
                for (String propName : this.ignoredUnknownProperties) {
                    if (pvs.contains(propName) && !wrapper.isWritableProperty(propName)) {

                        pvs.removePropertyValue(propName);
                    }
                }
                wrapper.setPropertyValues(pvs);
            }
        }
View Full Code Here


    // move properties setting from PigServer to PigContext class
    MutablePropertyValues pv = builder.getRawBeanDefinition().getPropertyValues();
    String prop = "properties";
    if (pv.contains(prop)) {
      contextBuilder.addPropertyValue(prop, pv.getPropertyValue(prop).getValue());
      pv.removePropertyValue(prop);
    }

    builder.addPropertyValue("pigContext", contextBuilder.getBeanDefinition());
  }
View Full Code Here

      pvs.addPropertyValues(getJobDetailDataMap(bundle));
      pvs.addPropertyValues(getTriggerDataMap(bundle));
      if (this.ignoredUnknownProperties != null) {
        for (String propName : this.ignoredUnknownProperties) {
          if (pvs.contains(propName) && !bw.isWritableProperty(propName)) {
            pvs.removePropertyValue(propName);
          }
        }
        bw.setPropertyValues(pvs);
      }
      else {
View Full Code Here

      pvs.addPropertyValues(bundle.getTrigger().getJobDataMap());
      if (this.ignoredUnknownProperties != null) {
        for (int i = 0; i < this.ignoredUnknownProperties.length; i++) {
          String propName = this.ignoredUnknownProperties[i];
          if (pvs.contains(propName) && !bw.isWritableProperty(propName)) {
            pvs.removePropertyValue(propName);
          }
        }
        bw.setPropertyValues(pvs);
      }
      else {
View Full Code Here

      pvs.addPropertyValues(bundle.getTrigger().getJobDataMap());
      if (this.ignoredUnknownProperties != null) {
        for (int i = 0; i < this.ignoredUnknownProperties.length; i++) {
          String propName = this.ignoredUnknownProperties[i];
          if (pvs.contains(propName) && !bw.isWritableProperty(propName)) {
            pvs.removePropertyValue(propName);
          }
        }
        bw.setPropertyValues(pvs);
      }
      else {
View Full Code Here

                while(iter.hasNext()) {
                    String[] properties = iter.next();
                    if(properties.length == 1) {

                        //先移除
                        propertyValues.removePropertyValue(properties[0]);

                        //如果需要替换,替换掉值(只支持基本属性)
                        if(this.replaceBeanProperties != null) {
                            String key = beanName + "@" + properties[0];
                            if(this.replaceBeanProperties.containsKey(key)) {
View Full Code Here

                wrapper.setPropertyValues(pvs, true);
            } else {
                for (String propName : this.ignoredUnknownProperties) {
                    if (pvs.contains(propName) && !wrapper.isWritableProperty(propName)) {

                        pvs.removePropertyValue(propName);
                    }
                }
                wrapper.setPropertyValues(pvs);
            }
        }
View Full Code Here

      pvs.addPropertyValues(bundle.getJobDetail().getJobDataMap());
      pvs.addPropertyValues(bundle.getTrigger().getJobDataMap());
      if (this.ignoredUnknownProperties != null) {
        for (String propName : this.ignoredUnknownProperties) {
          if (pvs.contains(propName) && !bw.isWritableProperty(propName)) {
            pvs.removePropertyValue(propName);
          }
        }
        bw.setPropertyValues(pvs);
      }
      else {
View Full Code Here

      pvs.addPropertyValues(bundle.getJobDetail().getJobDataMap());
      pvs.addPropertyValues(bundle.getTrigger().getJobDataMap());
      if (this.ignoredUnknownProperties != null) {
        for (String propName : this.ignoredUnknownProperties) {
          if (pvs.contains(propName) && !bw.isWritableProperty(propName)) {
            pvs.removePropertyValue(propName);
          }
        }
        bw.setPropertyValues(pvs);
      }
      else {
View Full Code Here

            if (this.ignoredUnknownProperties == null) {
                wrapper.setPropertyValues(pvs, true);
            } else {
                for (String propName : this.ignoredUnknownProperties) {
                    if (pvs.contains(propName) && !wrapper.isWritableProperty(propName)) {
                        pvs.removePropertyValue(propName);
                    }
                }
                wrapper.setPropertyValues(pvs);
            }
        }
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.