Spring Framework ConfigurablePropertyAccessor - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework ConfigurablePropertyAccessor class.

This code example shows how to use the following methods:setAutoGrowCollectionLimit, setAutoGrowNestedPaths, setExtractOldValueForEditor
	 */ 
	@Override 
	public final ConfigurablePropertyAccessor getPropertyAccessor() {
		if (this.beanWrapper == null) {
			this.beanWrapper = createBeanWrapper();
			this.beanWrapper.setExtractOldValueForEditor(true);
			this.beanWrapper.setAutoGrowNestedPaths(this.autoGrowNestedPaths);
			this.beanWrapper.setAutoGrowCollectionLimit(this.autoGrowCollectionLimit);
		} 
		return this.beanWrapper;
	} 
 
	/** 
	 * Create a new {@link BeanWrapper} for the underlying target object. 
	 * @see #getTarget() 
	 */ 
	protected BeanWrapper createBeanWrapper() {
		Assert.state(this.target != null, "Cannot access properties on null bean instance '" + getObjectName() + "'!");
		return PropertyAccessorFactory.forBeanPropertyAccess(this.target);
	} 
7
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:setAutoGrowNestedPaths, setExtractOldValueForEditor
	 */ 
	@Override 
	public final ConfigurablePropertyAccessor getPropertyAccessor() {
		if (this.directFieldAccessor == null) {
			this.directFieldAccessor = createDirectFieldAccessor();
			this.directFieldAccessor.setExtractOldValueForEditor(true);
			this.directFieldAccessor.setAutoGrowNestedPaths(this.autoGrowNestedPaths);
		} 
		return this.directFieldAccessor;
	} 
 
	/** 
	 * Create a new DirectFieldAccessor for the underlying target object. 
	 * @see #getTarget() 
	 */ 
	protected ConfigurablePropertyAccessor createDirectFieldAccessor() {
		Assert.state(this.target != null, "Cannot access fields on null target instance '" + getObjectName() + "'!");
		return PropertyAccessorFactory.forDirectFieldAccess(this.target);
	} 
 
6
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:getPropertyValue
	 * Fetches the field value from the PropertyAccessor. 
	 * @see #getPropertyAccessor() 
	 */ 
	@Override 
	protected Object getActualFieldValue(String field) {
		return getPropertyAccessor().getPropertyValue(field);
	} 
 
	/** 
	 * Formats the field value based on registered PropertyEditors. 
	 * @see #getCustomEditor 
	 */ 
	@Override 
	protected Object formatFieldValue(String field, Object value) {
		String fixedField = fixedField(field);
		// Try custom editor... 
		PropertyEditor customEditor = getCustomEditor(fixedField);
		if (customEditor != null) {
			customEditor.setValue(value);
			String textValue = customEditor.getAsText();
5
CodeRank
Experience pair programming with AI  Get Codota for Java
See Code Examples for Spring Framework ConfigurablePropertyAccessor Methods: