01: /*
02: * Copyright 2005-2006 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.php
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.kuali.rice.resourceloader;
18:
19: import java.util.List;
20:
21: import javax.xml.namespace.QName;
22:
23: import org.kuali.rice.lifecycle.Lifecycle;
24:
25: /**
26: * A general purpose resource loader which fetches objects and services from the
27: * approriate source.
28: *
29: * @author Kuali Rice Team (kuali-rice@googlegroups.com)
30: */
31: public interface ResourceLoader extends ObjectLoader, ServiceLocator,
32: Lifecycle {
33:
34: public static final String KSB_CONFIGURER_CONTAINER_NAME = "ksbConfigurerContainer";
35: public static final String ROOT_RESOURCE_LOADER_NAME = "ROOT_RESOURCE_LOADER_NAME";
36: public static final String PLUGIN_REGISTRY_LOADER_NAME = "pluginRegistryResourceLoader";
37: // public static final String REMOTE_RESOURCE_LOADER_NAME = "remoteResourceLoader";
38: public static final String INSTITUTIONAL_RESOURCE_LOADER_NAME = "institutionalResourceLoader";
39: public static final String EMBEDDED_PLUGIN = "embeddedPlugin";
40: public static final String WEB_SERVICE_PLUGIN = "webServicePlugin";
41: public static final String RMI_PLUGIN = "RMIPlugin";
42: public static final String EMBEDDED_CLIENT_APP_RESOURCE_LOADER = "embeddedClientApplicationResourceLoader";
43:
44: public void addResourceLoader(ResourceLoader resourceLoader);
45:
46: public void addResourceLoaderFirst(ResourceLoader resourceLoader);
47:
48: public ResourceLoader getResourceLoader(QName name);
49:
50: public List<QName> getResourceLoaderNames();
51:
52: public List<ResourceLoader> getResourceLoaders();
53:
54: public void removeResourceLoader(QName name);
55:
56: public void setName(QName name);
57:
58: public QName getName();
59:
60: public String getContents(String indent, boolean servicePerLine);
61: }
|