Java Code Examples for org.springframework.beans.BeanWrapper#setAutoGrowNestedPaths()

The following examples show how to use org.springframework.beans.BeanWrapper#setAutoGrowNestedPaths() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SpringUtils.java    From onetwo with Apache License 2.0 5 votes vote down vote up
public static BeanWrapper newBeanMapWrapper(Object obj, Object...listElementTypes){
	BeanWrapper bw = null;
	if(Map.class.isInstance(obj)){
		bw = new BeanMapWrapper(obj, listElementTypes);
	}else{
		bw = PropertyAccessorFactory.forBeanPropertyAccess(obj);
	}
	bw.setAutoGrowNestedPaths(true);
	return bw;
}
 
Example 2
Source File: ExcelUtils.java    From onetwo with Apache License 2.0 5 votes vote down vote up
public static BeanWrapper newBeanMapWrapper(Object obj, Object...listElementTypes){
	BeanWrapper bw = null;
	if(Map.class.isInstance(obj)){
		bw = new BeanMapWrapper(obj, listElementTypes);
	}else{
		bw = PropertyAccessorFactory.forBeanPropertyAccess(obj);
	}
	bw.setAutoGrowNestedPaths(true);
	return bw;
}
 
Example 3
Source File: CopyUtils.java    From onetwo with Apache License 2.0 4 votes vote down vote up
public static BeanWrapper newBeanWrapper(Object obj){
	BeanWrapper bw = PropertyAccessorFactory.forBeanPropertyAccess(obj);
	bw.setAutoGrowNestedPaths(true);
	return bw;
}
 
Example 4
Source File: SpringUtils.java    From onetwo with Apache License 2.0 4 votes vote down vote up
public static BeanWrapper newBeanWrapper(Object obj){
	BeanWrapper bw = PropertyAccessorFactory.forBeanPropertyAccess(obj);
	bw.setAutoGrowNestedPaths(true);
	return bw;
}
 
Example 5
Source File: SimpleSearchQueryBuilder.java    From onetwo with Apache License 2.0 4 votes vote down vote up
public BeanWrapper newBeanWrapper(Object obj){
	BeanWrapper bw = PropertyAccessorFactory.forBeanPropertyAccess(obj);
	bw.setAutoGrowNestedPaths(true);
	return bw;
}
 
Example 6
Source File: ExcelUtils.java    From onetwo with Apache License 2.0 4 votes vote down vote up
public static BeanWrapper newBeanWrapper(Object obj){
	BeanWrapper bw = PropertyAccessorFactory.forBeanPropertyAccess(obj);
	bw.setAutoGrowNestedPaths(true);
	return bw;
}