You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by bl...@apache.org on 2001/12/13 22:56:01 UTC

cvs commit: jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/profile Profilable.java

bloritsch    01/12/13 13:56:01

  Modified:    src/scratchpad/org/apache/avalon/excalibur/profile
                        Profilable.java
  Log:
  provide for hierarchical Profilables
  
  Revision  Changes    Path
  1.3       +8 -4      jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/profile/Profilable.java
  
  Index: Profilable.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/profile/Profilable.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Profilable.java	2001/12/13 20:37:13	1.2
  +++ Profilable.java	2001/12/13 21:56:01	1.3
  @@ -18,11 +18,9 @@
   public interface Profilable
   {
       /**
  -     * Override the default name for a Profilable.  This is called by a container
  -     * override what the Profilable object thinks it's own name should be.  This
  -     * approach makes it possible to have hierarchical naming schemes.
  +     * Empty Profilable array for use in hierarchical Profilable systems.
        */
  -    void setName( String name );
  +    Profilable[] EMPTY_PROFILABLE_ARRAY = new Profilable[] {};
   
       /**
        * Obtain a reference to all the ProfilePoints that the Profilable
  @@ -47,5 +45,11 @@
        * ProfilePoints.
        */
       void stopProfiling();
  +
  +    /**
  +     * The Profiler will recursively call this method until it receives an
  +     * EMPTY_PROFILABLE_ARRAY.  This method should never return null.
  +     */
  +    Profilable[] getChildProfilables();
   }
   
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>