You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by cr...@apache.org on 2003/10/17 00:00:46 UTC

cvs commit: avalon/framework/api/src/java/org/apache/avalon/framework/service ServiceSelector.java ServiceManager.java

crafterm    2003/10/16 15:00:46

  Modified:    framework/api/src/java/org/apache/avalon/framework/service
                        ServiceSelector.java ServiceManager.java
  Log:
  Documented ability to release a 'null' reference.
  CVS: ----------------------------------------------------------------------
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  Changes    Path
  1.14      +3 -2      avalon/framework/api/src/java/org/apache/avalon/framework/service/ServiceSelector.java
  
  Index: ServiceSelector.java
  ===================================================================
  RCS file: /home/cvs/avalon/framework/api/src/java/org/apache/avalon/framework/service/ServiceSelector.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- ServiceSelector.java	11 Feb 2003 15:58:42 -0000	1.13
  +++ ServiceSelector.java	16 Oct 2003 22:00:46 -0000	1.14
  @@ -107,7 +107,8 @@
        * Exception should be thrown at this point.  This is to allow easy use of the
        * ServiceSelector system without having to trap Exceptions on a release.
        *
  -     * @param object The {@link Object} we are releasing.
  +     * @param object The {@link Object} we are releasing, may also be a 
  +     *               <code>null</code> reference
        */
       void release( Object object );
   }
  
  
  
  1.15      +3 -2      avalon/framework/api/src/java/org/apache/avalon/framework/service/ServiceManager.java
  
  Index: ServiceManager.java
  ===================================================================
  RCS file: /home/cvs/avalon/framework/api/src/java/org/apache/avalon/framework/service/ServiceManager.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- ServiceManager.java	11 Feb 2003 15:58:42 -0000	1.14
  +++ ServiceManager.java	16 Oct 2003 22:00:46 -0000	1.15
  @@ -125,7 +125,8 @@
        * Exception should be thrown at this point.  This is to allow easy use of the
        * ServiceManager system without having to trap Exceptions on a release.
        *
  -     * @param object The <code>Object</code> we are releasing.
  +     * @param object The <code>Object</code> we are releasing, may also be
  +     *               a <code>null</code> reference
        */
       void release( Object object );
   }
  
  
  

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