View Javadoc

1   /**
2    * Copyright 2010-2013 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.spring.service;
17  
18  import java.util.Map;
19  
20  import org.springframework.context.ConfigurableApplicationContext;
21  import org.springframework.core.env.PropertySource;
22  
23  /**
24   * 
25   */
26  public interface SpringService {
27  
28  	ConfigurableApplicationContext getApplicationContext(SpringContext context);
29  
30  	void load(Class<?> annotatedClass);
31  
32  	void load(Class<?> annotatedClass, Map<String, Object> contextBeans);
33  
34  	void load(Class<?> annotatedClass, Map<String, Object> contextBeans, PropertySource<?> propertySource);
35  
36  	void load(String location);
37  
38  	void load(String location, Map<String, Object> contextBeans, PropertySource<?> propertySource);
39  
40  	void load(String location, Map<String, Object> contextBeans);
41  
42  	void load(SpringContext context);
43  
44  	@Deprecated
45  	void load(String location, String beanName, Object bean);
46  
47  	@Deprecated
48  	void load(String location, String beanName, Object bean, PropertySource<?> propertySource);
49  
50  	@Deprecated
51  	void load(Class<?> annotatedClass, String beanName, Object bean);
52  
53  	@Deprecated
54  	void load(Class<?> annotatedClass, String beanName, Object bean, PropertySource<?> propertySource);
55  
56  }