1 package org.kuali.common.util.main.spring; 2 3 import org.kuali.common.util.main.DefaultMainService; 4 import org.kuali.common.util.main.MainService; 5 import org.kuali.common.util.spring.service.PropertySourceService; 6 import org.kuali.common.util.spring.service.SpringServiceConfig; 7 import org.springframework.beans.factory.annotation.Autowired; 8 import org.springframework.context.annotation.Bean; 9 import org.springframework.context.annotation.Configuration; 10 import org.springframework.context.annotation.Import; 11 12 @Configuration 13 @Import({ SpringServiceConfig.class }) 14 public class MainServiceConfig { 15 16 @Autowired 17 PropertySourceService service; 18 19 @Bean 20 public MainService mainService() { 21 return new DefaultMainService(service); 22 } 23 }