You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by do...@apache.org on 2001/04/18 15:29:32 UTC

cvs commit: jakarta-avalon/src/java/org/apache/avalon/atlantis AbstractKernel.java Embeddor.java Facility.java

donaldp     01/04/18 06:29:32

  Modified:    src/java/org/apache/avalon/atlantis AbstractKernel.java
                        Embeddor.java Facility.java
  Log:
  Update to new arrangement
  
  Revision  Changes    Path
  1.4       +10 -10    jakarta-avalon/src/java/org/apache/avalon/atlantis/AbstractKernel.java
  
  Index: AbstractKernel.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon/src/java/org/apache/avalon/atlantis/AbstractKernel.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AbstractKernel.java	2001/04/15 13:31:40	1.3
  +++ AbstractKernel.java	2001/04/18 13:29:29	1.4
  @@ -10,27 +10,27 @@
   import java.net.MalformedURLException;
   import java.net.URL;
   import java.util.Iterator;
  -import org.apache.avalon.AbstractLoggable;
  -import org.apache.avalon.Component;
  -import org.apache.avalon.ComponentManager;
  -import org.apache.avalon.Context;
  -import org.apache.avalon.DefaultComponentManager;
  -import org.apache.avalon.DefaultContext;
   import org.apache.avalon.camelot.AbstractContainer;
   import org.apache.avalon.camelot.Container;
   import org.apache.avalon.camelot.ContainerException;
   import org.apache.avalon.camelot.Entry;
   import org.apache.avalon.camelot.FactoryException;
   import org.apache.avalon.camelot.Locator;
  +import org.apache.avalon.component.Component;
  +import org.apache.avalon.component.ComponentManager;
  +import org.apache.avalon.component.DefaultComponentManager;
  +import org.apache.avalon.context.Context;
  +import org.apache.avalon.context.DefaultContext;
  +import org.apache.avalon.logger.AbstractLoggable;
   
   /**
    * This is the basic Kernel that supports functionality most kernels need.
  - * It builds a DAG of blocks, can load/unload/reload blocks, can 
  + * It builds a DAG of blocks, can load/unload/reload blocks, can
    * configure/reconfigure blocks, can start/stop/initialize blocks, provide
    * contexts for blocks etc.
    *
    * When extending this the developer must set the value of m_entryClass and m_applicationClass.
  - * ie. 
  + * ie.
    * m_entryClass = ServerApplicationEntry.class;
    * m_applicationClass = ServerApplication.class;
    *
  @@ -147,7 +147,7 @@
                   //Initialization failed so clean entry
                   //so invalid instance is not used
                   entry.setInstance( null );
  -                
  +
                   throw new ContainerException( "Failed to initialize application", t );
               }
   
  @@ -200,7 +200,7 @@
               try { application.dispose(); }
               catch( final Exception e )
               {
  -                throw new ContainerException( "Failed to dispose application " + name, 
  +                throw new ContainerException( "Failed to dispose application " + name,
                                                 e );
               }
   
  
  
  
  1.2       +2 -13     jakarta-avalon/src/java/org/apache/avalon/atlantis/Embeddor.java
  
  Index: Embeddor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon/src/java/org/apache/avalon/atlantis/Embeddor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Embeddor.java	2001/04/14 12:08:03	1.1
  +++ Embeddor.java	2001/04/18 13:29:29	1.2
  @@ -9,8 +9,7 @@
   
   import org.apache.avalon.Disposable;
   import org.apache.avalon.Initializable;
  -import org.apache.avalon.configuration.ConfigurationException;
  -import org.apache.avalon.configuration.Parameters;
  +import org.apache.avalon.parameters.Parametizable;
   
   /**
    * This is the object that is interacted with to create, manage and
  @@ -20,18 +19,8 @@
    * @author <a href="donaldp@apache.org">Peter Donald</a>
    */
   public interface Embeddor
  -    extends Initializable, Disposable
  +    extends Parametizable, Initializable, Disposable
   {
  -    /**
  -     * Kset parameters for this component.
  -     * This must be called before initialize()
  -     *
  -     * @param parameters the Parameters for embeddor
  -     * @exception ConfigurationException if an error occurs
  -     */
  -    void setParameters( Parameters parameters )
  -        throws ConfigurationException;
  -
       /**
        * After the Embeddor is initialized, this method is called to actually
        * do the work. It will return when the embeddor is ready to be disposed.
  
  
  
  1.2       +1 -1      jakarta-avalon/src/java/org/apache/avalon/atlantis/Facility.java
  
  Index: Facility.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon/src/java/org/apache/avalon/atlantis/Facility.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Facility.java	2001/02/24 04:00:50	1.1
  +++ Facility.java	2001/04/18 13:29:30	1.2
  @@ -7,7 +7,7 @@
    */
   package org.apache.avalon.atlantis;
   
  -import org.apache.avalon.Component;
  +import org.apache.avalon.component.Component;
   
   /**
    * A Facility is a horizontal cut through the kernel. 
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org