001 package org.apache.fulcrum.yaafi.service.servicemanager; 002 003 /* 004 * Licensed to the Apache Software Foundation (ASF) under one 005 * or more contributor license agreements. See the NOTICE file 006 * distributed with this work for additional information 007 * regarding copyright ownership. The ASF licenses this file 008 * to you under the Apache License, Version 2.0 (the 009 * "License"); you may not use this file except in compliance 010 * with the License. You may obtain a copy of the License at 011 * 012 * http://www.apache.org/licenses/LICENSE-2.0 013 * 014 * Unless required by applicable law or agreed to in writing, 015 * software distributed under the License is distributed on an 016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 017 * KIND, either express or implied. See the License for the 018 * specific language governing permissions and limitations 019 * under the License. 020 */ 021 022 import org.apache.avalon.framework.context.Context; 023 import org.apache.avalon.framework.logger.Logger; 024 import org.apache.avalon.framework.parameters.Parameters; 025 import org.apache.avalon.framework.service.ServiceManager; 026 027 /** 028 * Let's try to break the singleton addiction with this service. This 029 * service stores the instance of a service manager and allows access 030 * to this instance and related information such as 031 * 032 * <ul> 033 * <li>Logger instance 034 * <li>ServiceManager instance 035 * <li>Context instance 036 * <li>Parameters instance 037 * </ul> 038 * 039 * @author <a href="mailto:siegfried.goeschl@it20one.at">Siegfried Goeschl</a> 040 */ 041 042 public interface ServiceManagerService extends ServiceManager 043 { 044 /** 045 * @return the Logger of the container 046 */ 047 Logger getAvalonLogger(); 048 049 /** 050 * @return the ServiceManager for the container 051 */ 052 ServiceManager getServiceManager(); 053 054 /** 055 * @return the Parameters for the container 056 */ 057 Parameters getParameters(); 058 059 /** 060 * @return the Context for the container 061 */ 062 Context getContext(); 063 }