avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: jakarta-avalon/src/proposal/service ServiceSelector.java ServiceManager.java DefaultServiceManager.java ServiceResolver.java ServiceReclaimer.java ServiceChooser.java
Date Tue, 19 Feb 2002 23:15:45 GMT
mcconnell    02/02/19 15:15:44

  Modified:    src/proposal/service ServiceSelector.java
                        ServiceManager.java DefaultServiceManager.java
  Removed:     src/proposal/service ServiceResolver.java
                        ServiceReclaimer.java ServiceChooser.java
  Log:
  Rollback to 10-FEB proposal.
  
  Revision  Changes    Path
  1.2       +12 -1     jakarta-avalon/src/proposal/service/ServiceSelector.java
  
  Index: ServiceSelector.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon/src/proposal/service/ServiceSelector.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ServiceSelector.java	18 Feb 2002 15:13:14 -0000	1.1
  +++ ServiceSelector.java	19 Feb 2002 23:15:44 -0000	1.2
  @@ -14,7 +14,6 @@
    *
    * @see org.apache.avalon.framework.service.Serviceable
    * @see org.apache.avalon.framework.service.ServiceManager
  - * @see org.apache.avalon.framework.service.ServiceChooser
    *
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
    * @author <a href="mailto:mcconnell@apache.org">Stephen McConnell</a>
  @@ -53,5 +52,17 @@
        * @return True if the component is available, False if it not.
        */
       boolean isSelectable( Object policy );
  +
  +    /**
  +     * Return the <code>Object</code> when you are finished with it.  This
  +     * allows the <code>ServiceSelector</code> to handle the End-Of-Life Lifecycle
  +     * events associated with the <code>Object</code>.  Please note, that no

  +     * 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 <code>Object</code> we are releasing.
  +     */
  +    void release( Object object );
  +
   
   }
  
  
  
  1.3       +12 -0     jakarta-avalon/src/proposal/service/ServiceManager.java
  
  Index: ServiceManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon/src/proposal/service/ServiceManager.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ServiceManager.java	18 Feb 2002 15:13:14 -0000	1.2
  +++ ServiceManager.java	19 Feb 2002 23:15:44 -0000	1.3
  @@ -73,4 +73,16 @@
        * @return True if the object exists, False if it does not.
        */
       boolean hasService( String role );
  +
  +    /**
  +     * Return the <code>Object</code> when you are finished with it.  This
  +     * allows the <code>ServiceManager</code> to handle the End-Of-Life Lifecycle
  +     * events associated with the <code>Object</code>.  Please note, that no

  +     * 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.
  +     */
  +    void release( Object object );
  +
   }
  
  
  
  1.3       +7 -0      jakarta-avalon/src/proposal/service/DefaultServiceManager.java
  
  Index: DefaultServiceManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon/src/proposal/service/DefaultServiceManager.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DefaultServiceManager.java	18 Feb 2002 15:13:14 -0000	1.2
  +++ DefaultServiceManager.java	19 Feb 2002 23:15:44 -0000	1.3
  @@ -153,4 +153,11 @@
               throw new IllegalStateException( "ServiceManager is read only and can not be
modified" );
           }
       }
  +
  +    /**
  +     * Release the object.
  +     * @param object The <code>Object</code> to release.
  +     */
  +    public void release( Object object ){}
  +
   }
  
  
  

--
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