1 package org.kuali.common.impex.spring; 2 3 import org.kuali.common.util.spring.SpringUtils; 4 import org.springframework.beans.factory.annotation.Autowired; 5 import org.springframework.context.annotation.Bean; 6 import org.springframework.context.annotation.Configuration; 7 import org.springframework.core.env.Environment; 8 9 @Configuration 10 public class BatchConfig { 11 12 @Autowired 13 Environment env; 14 15 @Bean 16 public int impexBatchSize() { 17 return (int) SpringUtils.getBytes(env, "impex.batch.size", "50k"); 18 } 19 20 @Bean 21 public int impexBatchRows() { 22 return SpringUtils.getInteger(env, "impex.batch.rows", 50); 23 } 24 }