01: package org.apache.turbine.services;
02:
03: /*
04: * Copyright 2001-2005 The Apache Software Foundation.
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License")
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: import org.apache.commons.configuration.Configuration;
20:
21: /**
22: * Classes that implement this interface can act as a manager for
23: * <code>Service</code> classes.
24: *
25: * Functionality that <code>ServiceManager</code> provides in addition
26: * to <code>ServiceBroker</code> functionality includes configuration
27: * of the manager.
28: *
29: * @author <a href="mailto:ilkka.priha@simsoft.fi">Ilkka Priha</a>
30: * @author <a href="mailto:mpoeschl@marmot.at">Martin Poeschl</a>
31: * @author <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a>
32: * @version $Id: ServiceManager.java 264148 2005-08-29 14:21:04Z henning $
33: */
34: public interface ServiceManager extends ServiceBroker {
35: /**
36: * Initialize this service manager.
37: */
38: void init() throws InitializationException;
39:
40: /**
41: * Get the configuration for this service manager.
42: *
43: * @return Manager configuration.
44: */
45: Configuration getConfiguration();
46:
47: /**
48: * Set the configuration object for the services broker.
49: * This is the configuration that contains information
50: * about all services in the care of this service
51: * manager.
52: *
53: * @param configuration Manager configuration.
54: */
55: void setConfiguration(Configuration configuration);
56:
57: /**
58: * Set the application root.
59: *
60: * @param applicationRoot application root
61: */
62: void setApplicationRoot(String applicationRoot);
63: }
|