avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/kernel AbstractServiceKernel.java
Date Tue, 25 Jun 2002 05:01:56 GMT
donaldp     2002/06/24 22:01:56

  Modified:    containerkit/src/java/org/apache/excalibur/containerkit/kernel
                        AbstractServiceKernel.java
  Log:
  Make it possible to add components to ServiceKernel
  
  Revision  Changes    Path
  1.11      +16 -1     jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/kernel/AbstractServiceKernel.java
  
  Index: AbstractServiceKernel.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/kernel/AbstractServiceKernel.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- AbstractServiceKernel.java	24 Jun 2002 00:33:33 -0000	1.10
  +++ AbstractServiceKernel.java	25 Jun 2002 05:01:56 -0000	1.11
  @@ -134,6 +134,21 @@
       }
   
       /**
  +     * Add a Component to the container.
  +     * This Must be called before any components are started
  +     * or else an exception is raised.
  +     *
  +     * @param component the component
  +     */
  +    protected final void addComponent( final ComponentMetaData component )
  +    {
  +        final String name = component.getName();
  +        final ComponentEntry entry = new ComponentEntry( component );
  +        m_entrys.put( name, entry );
  +        m_dependencyMap.add( component );
  +    }
  +
  +    /**
        * Process a whole assembly through a lifecycle phase
        * (ie startup or shutdown). The components should be processed
        * in order specified by the dependency graph.
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message