leif        02/03/29 06:02:24

  Modified:    all/src/java/org/apache/avalon/excalibur/component
                        ComponentHandler.java
                        ExcaliburComponentManager.java
                        ExcaliburComponentSelector.java
  Log:
  Make it possible to implement the InstrumentComponentManager
  
  Revision  Changes    Path
  1.9       +11 -1     
jakarta-avalon-excalibur/all/src/java/org/apache/avalon/excalibur/component/ComponentHandler.java
  
  Index: ComponentHandler.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-excalibur/all/src/java/org/apache/avalon/excalibur/component/ComponentHandler.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ComponentHandler.java     16 Mar 2002 00:05:39 -0000      1.8
  +++ ComponentHandler.java     29 Mar 2002 14:02:24 -0000      1.9
  @@ -26,7 +26,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]">Berin Loritsch</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Ryan Shaw</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Leif Mortenson</a>
  - * @version CVS $Revision: 1.8 $ $Date: 2002/03/16 00:05:39 $
  + * @version CVS $Revision: 1.9 $ $Date: 2002/03/29 14:02:24 $
    * @since 4.0
    */
   public abstract class ComponentHandler extends AbstractLoggable
  @@ -205,6 +205,16 @@
       {
           // This method is not abstract to make the class backwards 
compatible.
           throw new IllegalStateException( "This method must be overridden." );
  +    }
  +    
  +    /**
  +     * Returns the current number of references.
  +     *
  +     * @return The current number of references.
  +     */
  +    protected int getReferences()
  +    {
  +        return m_references;
       }
   
       /**
  
  
  
  1.22      +11 -1     
jakarta-avalon-excalibur/all/src/java/org/apache/avalon/excalibur/component/ExcaliburComponentManager.java
  
  Index: ExcaliburComponentManager.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-excalibur/all/src/java/org/apache/avalon/excalibur/component/ExcaliburComponentManager.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- ExcaliburComponentManager.java    16 Mar 2002 00:05:39 -0000      1.21
  +++ ExcaliburComponentManager.java    29 Mar 2002 14:02:24 -0000      1.22
  @@ -32,7 +32,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]">Berin Loritsch</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Paul Russell</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Ryan Shaw</a>
  - * @version CVS $Revision: 1.21 $ $Date: 2002/03/16 00:05:39 $
  + * @version CVS $Revision: 1.22 $ $Date: 2002/03/29 14:02:24 $
    * @since 4.0
    */
   public class ExcaliburComponentManager
  @@ -565,6 +565,16 @@
                                                        logkitManager );
       }
   
  +    /**
  +     * Makes the ComponentHandlers available to subclasses.
  +     *
  +     * @return A collection of the reference to the componentHandler Map.
  +     */
  +    protected BucketMap getComponentHandlers()
  +    {
  +        return m_componentHandlers;
  +    }
  +    
       /**
        * Add a new component to the manager.
        *
  
  
  
  1.14      +11 -1     
jakarta-avalon-excalibur/all/src/java/org/apache/avalon/excalibur/component/ExcaliburComponentSelector.java
  
  Index: ExcaliburComponentSelector.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-excalibur/all/src/java/org/apache/avalon/excalibur/component/ExcaliburComponentSelector.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- ExcaliburComponentSelector.java   16 Mar 2002 00:05:39 -0000      1.13
  +++ ExcaliburComponentSelector.java   29 Mar 2002 14:02:24 -0000      1.14
  @@ -33,7 +33,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Berin Loritsch</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Paul Russell</a>
  - * @version CVS $Revision: 1.13 $ $Date: 2002/03/16 00:05:39 $
  + * @version CVS $Revision: 1.14 $ $Date: 2002/03/29 14:02:24 $
    * @since 4.0
    */
   public class ExcaliburComponentSelector
  @@ -467,6 +467,16 @@
                                                        logkitManager );
       }
   
  +    /**
  +     * Makes the ComponentHandlers available to subclasses.
  +     *
  +     * @return A reference to the componentHandler Map.
  +     */
  +    protected BucketMap getComponentHandlers()
  +    {
  +        return m_componentHandlers;
  +    }
  +    
       /** Add a new component to the manager.
        * @param hint the hint name for the new component.
        * @param component the class of this component.
  
  
  

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

Reply via email to