bloritsch    2003/07/30 12:27:24

  Added:       csframework/src/cs IConfigurable.cs ILoggable.cs
                        ILookupEnabled.cs
  Removed:     csframework/src/cs ContextException.cs DefaultContext.cs
                        LifecycleDelegates.cs Parameters.cs
  Log:
  finish update of lifecycle methods
  
  Revision  Changes    Path
  1.1                  avalon-sandbox/csframework/src/cs/IConfigurable.cs
  
  Index: IConfigurable.cs
  ===================================================================
  using System;
  
  namespace Apache.AvalonFramework
  {
  
        ///<summary>
        /// This interface should be implemented by classes that need to be
        /// configured with custom parameters before initialization. The
        /// contract surrounding a Configurable is that the instantiating
        /// entity must call the configure method before it is valid.
        ///</summary>
        public interface IConfigurable
        {
                /// <summary>
                /// This interface should be implemented by classes that need to be
                /// configured with custom parameters before initialization. The
                /// contract surrounding a Configurable is that the instantiating
                /// entity must call the configure method before it is valid.
                /// </summary>
                /// <param name="config">The configuration object to parse.</param>
                /// <exception cref="ConfigurationException">
                /// If there is any problem parsing the configuration object.
                /// </exception>
                void Configure( IConfiguration config );
        }
  }
  
  
  
  1.1                  avalon-sandbox/csframework/src/cs/ILoggable.cs
  
  Index: ILoggable.cs
  ===================================================================
  using System;
  
  namespace Apache.AvalonFramework
  {
        /// <summary>
        /// Components that need to log can implement this interface
        /// to be provided Loggers.
        /// </summary>
        public interface ILogEnabled
        {
                /// <summary>
                /// Provide component with a logger.
                /// </summary>
                /// <param name="logger"> the logger. Must not be null.</param>
                void EnableLogging(ILogger logger);
        }
  }
  
  
  
  1.1                  avalon-sandbox/csframework/src/cs/ILookupEnabled.cs
  
  Index: ILookupEnabled.cs
  ===================================================================
  // ============================================================================
  //                   The Apache Software License, Version 1.1
  // ============================================================================
  // 
  // Copyright (C) 2002-2003 The Apache Software Foundation. All rights reserved.
  // 
  // Redistribution and use in source and binary forms, with or without modifica-
  // tion, are permitted provided that the following conditions are met:
  // 
  // 1. Redistributions of  source code must  retain the above copyright  notice,
  //    this list of conditions and the following disclaimer.
  // 
  // 2. Redistributions in binary form must reproduce the above copyright notice,
  //    this list of conditions and the following disclaimer in the documentation
  //    and/or other materials provided with the distribution.
  // 
  // 3. The end-user documentation included with the redistribution, if any, must
  //    include  the following  acknowledgment:  "This product includes  software
  //    developed  by the  Apache Software Foundation  (http://www.apache.org/)."
  //    Alternately, this  acknowledgment may  appear in the software itself,  if
  //    and wherever such third-party acknowledgments normally appear.
  // 
  // 4. The names "Jakarta", "Avalon", "Excalibur" and "Apache Software Foundation"  
  //    must not be used to endorse or promote products derived from this  software 
  //    without  prior written permission. For written permission, please contact 
  //    [EMAIL PROTECTED]
  // 
  // 5. Products  derived from this software may not  be called "Apache", nor may
  //    "Apache" appear  in their name,  without prior written permission  of the
  //    Apache Software Foundation.
  // 
  // THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
  // INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  // FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE
  // APACHE SOFTWARE  FOUNDATION  OR ITS CONTRIBUTORS  BE LIABLE FOR  ANY DIRECT,
  // INDIRECT, INCIDENTAL, SPECIAL,  EXEMPLARY, OR CONSEQUENTIAL  DAMAGES (INCLU-
  // DING, BUT NOT LIMITED TO, PROCUREMENT  OF SUBSTITUTE GOODS OR SERVICES; LOSS
  // OF USE, DATA, OR  PROFITS; OR BUSINESS  INTERRUPTION)  HOWEVER CAUSED AND ON
  // ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT
  // (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF
  // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  // 
  // This software  consists of voluntary contributions made  by many individuals
  // on  behalf of the Apache Software  Foundation. For more  information on the 
  // Apache Software Foundation, please see <http://www.apache.org/>.
  // ============================================================================
  
  using System;
  
  namespace Apache.AvalonFramework
  {
        /// <summary>
        /// A Serviceable is a class that need to connect to software components
        /// or obtain other context information using a name, thus not depending
        /// on particular implementations but on behavioral interfaces. The
        /// contract surrounding a ILookupEnabled is that it is a user. The
        /// ILookupEnabled is able to use Objects managed by the ILookupManager
        /// it was initialized with. As part of the contract with the system, the
        /// instantiating entity (container) must call the enableLookups method
        /// before the ILookupEnabled can be considered valid.
        /// </summary>
        public interface ILookupEnabled
        {
                /// <summary>
                /// Pass the ILookupManager to the ILookupEnabled. The ILookupEnabled
                /// implementation should use the specified ILookupManager to acquire
                /// the components it needs for execution.
                /// </summary>
                /// <param name="manager">The lookup manager</param>
                /// <exception cref="LookupException">If a required object could not 
be found.</exception>
                void EnableLookups( ILookupManager manager );
        }
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to