// Copyright 2004 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. namespace Apache.Avalon.Castle.MicroKernel.Model { using System; using System.Collections; using Apache.Avalon.Framework; /// /// Holds information necessary for the lifetime of the component. /// public interface IComponentModel { /// /// Component name /// String Name { get; } /// /// Desired lifecycle /// Lifestyle SupportedLifestyle { get; set; } /// /// Desired activation policy /// Activation ActivationPolicy { get; set; } /// /// Service being exposed by the component /// Type Service { get; } /// /// ILogger implementation /// ILogger Logger { get; set; } /// /// Configuration node for the component /// IConfiguration Configuration { get; set; } /// /// Context for the component /// IContext Context { get; set; } /// /// List of dependencies declared by the component /// IDependencyModel[] Dependencies { get; set; } /// /// Information to allow the correct construction /// of the component /// IConstructionModel ConstructionModel { get; } /// /// /// IDictionary Properties { get; } } }