View Javadoc
1   package org.apache.fulcrum.yaafi.service.servicemanager;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "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.avalon.framework.context.Context;
23  import org.apache.avalon.framework.logger.Logger;
24  import org.apache.avalon.framework.parameters.Parameters;
25  import org.apache.avalon.framework.service.ServiceManager;
26  
27  /**
28   * Let's try to break the singleton addiction with this service. This
29   * service stores the instance of a service manager and allows access
30   * to this instance and related information such as
31   *
32   * <ul>
33   *   <li>Logger instance
34   *   <li>ServiceManager instance
35   *   <li>Context instance
36   *   <li>Parameters instance
37   * </ul>
38   *
39   *  @author <a href="mailto:siegfried.goeschl@it20one.at">Siegfried Goeschl</a>
40   */
41  
42  public interface ServiceManagerService extends ServiceManager
43  {
44      /**
45       * @return the Logger of the container
46       */
47      Logger getAvalonLogger();
48  
49      /**
50       * @return the ServiceManager for the container
51       */
52      ServiceManager getServiceManager();
53  
54      /**
55       * @return the Parameters for the container
56       */
57      Parameters getParameters();
58  
59      /**
60       * @return the Context for the container
61       */
62      Context getContext();
63  }