Spring Framework BeanWrapper - 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 BeanWrapper 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
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getPropertyValue, isReadableProperty
 
	public Object getProperty(String property) { 
		if (containsBean(property)) { 
			return getBean(property); 
		} 
		else if (this.contextWrapper.isReadableProperty(property)) { 
			return this.contextWrapper.getPropertyValue(property); 
		} 
		throw new NoSuchBeanDefinitionException(property); 
	} 
 
} 
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getPropertyValue, isReadableProperty
		return this;
	} 
 
 
	public Object getProperty(String property) {
		if (this.definitionWrapper.isReadableProperty(property)) {
			return this.definitionWrapper.getPropertyValue(property);
		} 
		else if (dynamicProperties.contains(property)) {
			return null; 
		} 
		return super.getProperty(property);
	} 
 
	public void setProperty(String property, Object newValue) {
		if (PARENT.equals(property)) {
			setParent(newValue);
		} 
		else { 
			AbstractBeanDefinition bd = getBeanDefinition();
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getPropertyValue, isReadableProperty
 
    public Object getProperty(String property) {
		if (containsBean(property)) {
			return getBean(property);
		} 
		else if (this.contextWrapper.isReadableProperty(property)) {
			return this.contextWrapper.getPropertyValue(property);
		} 
		throw new NoSuchBeanDefinitionException(property);
	} 
 
} 
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getPropertyValue
		else { 
			// Fetch prototype target bean... 
			Object bean = this.beanFactory.getBean(this.targetBeanName);
			target = PropertyAccessorFactory.forBeanPropertyAccess(bean);
		} 
		return target.getPropertyValue(this.propertyPath);
	} 
 
	@Override 
	public Class<?> getObjectType() {
		return this.resultType;
	} 
 
	/** 
	 * While this FactoryBean will often be used for singleton targets, 
	 * the invoked getters for the property path might return a new object 
	 * for each call, so we have to assume that we're not returning the 
	 * same object for each {@link #getObject()} call. 
	 */ 
	@Override 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
See Code Examples for Spring Framework BeanWrapper Methods: