View Javadoc

1   /**
2    * Copyright 2005-2014 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.rice.core.api.resourceloader;
17  
18  import java.util.List;
19  
20  import javax.xml.namespace.QName;
21  
22  import org.kuali.rice.core.api.lifecycle.Lifecycle;
23  
24  /**
25   * A general purpose resource loader which fetches objects and services from the
26   * approriate source.
27   *
28   * @author Kuali Rice Team (rice.collab@kuali.org)
29   */
30  public interface ResourceLoader extends ObjectLoader, ServiceLocator, Lifecycle {
31  
32  	public static final String KSB_CONFIGURER_CONTAINER_NAME = "ksbConfigurerContainer";
33  	public static final String ROOT_RESOURCE_LOADER_NAME = "ROOT_RESOURCE_LOADER_NAME";
34  	public static final String PLUGIN_REGISTRY_LOADER_NAME = "pluginRegistryResourceLoader";
35  	public static final String EMBEDDED_PLUGIN = "embeddedPlugin";
36  	public static final String WEB_SERVICE_PLUGIN = "webServicePlugin";
37  	public static final String RMI_PLUGIN = "RMIPlugin";
38  	public static final String EMBEDDED_CLIENT_APP_RESOURCE_LOADER = "embeddedClientApplicationResourceLoader";
39  
40  
41  	public void addResourceLoader(ResourceLoader resourceLoader);
42  	public void addResourceLoaderFirst(ResourceLoader resourceLoader);
43  	public ResourceLoader getResourceLoader(QName name);
44  	public List<QName> getResourceLoaderNames();
45  	public List<ResourceLoader> getResourceLoaders();
46  	public void removeResourceLoader(QName name);
47  	public void setName(QName name);
48  	public QName getName();
49  	public String getContents(String indent, boolean servicePerLine);
50  }