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