All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jxls.reader.ConvertUtilsBeanProviderDelegate Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package org.jxls.reader;

import org.apache.commons.beanutils.ConvertUtilsBean;

public class ConvertUtilsBeanProviderDelegate implements ConvertUtilsBeanProvider{

	private ConvertUtilsBeanProvider delegate;
	
	public ConvertUtilsBeanProviderDelegate(){
		
	}
	
	public ConvertUtilsBeanProviderDelegate(final ConvertUtilsBean convertUtilsBean2) {
		this.delegate = new ConvertUtilsBeanProvider() {
			@Override
			public ConvertUtilsBean getConvertUtilsBean() {
				return convertUtilsBean2;
			}
		};
	}


	public ConvertUtilsBean getConvertUtilsBean(){
		ConvertUtilsBean result;
		if( delegate != null ){
			result = delegate.getConvertUtilsBean();
		}else{
			result = ReaderConfig.getInstance().getConvertUtilsBean();
		}
		return result;
	}
	
	public void setDelegate( ConvertUtilsBeanProvider convertUtilsBean2){
		delegate = convertUtilsBean2;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy