org.jxls.reader.ConvertUtilsBeanProviderDelegate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jxls-reader Show documentation
Show all versions of jxls-reader Show documentation
Jxls Reader module to read Excel files
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