View Javadoc

1   /**
2    * Copyright 2010-2012 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.common.util.execute;
17  
18  import java.util.List;
19  
20  import org.kuali.common.util.service.SpringService;
21  
22  public class SpringContextLoaderExecutable implements Executable {
23  
24  	SpringService service;
25  	List<String> locations;
26  	List<String> beanNames;
27  	List<Object> beans;
28  
29  	@Override
30  	public void execute() {
31  		service.load(locations, beanNames, beans);
32  	}
33  
34  	public SpringService getService() {
35  		return service;
36  	}
37  
38  	public void setService(SpringService service) {
39  		this.service = service;
40  	}
41  
42  	public List<String> getLocations() {
43  		return locations;
44  	}
45  
46  	public void setLocations(List<String> locations) {
47  		this.locations = locations;
48  	}
49  
50  	public List<String> getBeanNames() {
51  		return beanNames;
52  	}
53  
54  	public void setBeanNames(List<String> beanNames) {
55  		this.beanNames = beanNames;
56  	}
57  
58  	public List<Object> getBeans() {
59  		return beans;
60  	}
61  
62  	public void setBeans(List<Object> beans) {
63  		this.beans = beans;
64  	}
65  }