/[classpath]/classpath/java/beans/beancontext/BeanContextServices.java
ViewVC logotype

Diff of /classpath/java/beans/beancontext/BeanContextServices.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by mkoch, Tue Mar 18 13:30:21 2003 UTC revision 1.5 by mkoch, Sun Oct 12 15:29:25 2003 UTC
# Line 63  public interface BeanContextServices Line 63  public interface BeanContextServices
63     * @param provider the factory that will actually provide the service.     * @param provider the factory that will actually provide the service.
64     * @return whether the service was added or not.     * @return whether the service was added or not.
65     */     */
66    public boolean addService (Class serviceClass,    boolean addService (Class serviceClass,
67                               BeanContextServiceProvider provider);                               BeanContextServiceProvider provider);
68    
69    /**    /**
# Line 83  public interface BeanContextServices Line 83  public interface BeanContextServices
83     * @param revokeNow whether to release all current references to     * @param revokeNow whether to release all current references to
84     *        the service.     *        the service.
85     */     */
86    public void revokeService (Class serviceClass,    void revokeService (Class serviceClass,
87                               BeanContextServiceProvider provider,                               BeanContextServiceProvider provider,
88                               boolean revokeNow);                               boolean revokeNow);
89    
# Line 102  public interface BeanContextServices Line 102  public interface BeanContextServices
102     * @param service the service to relinquish     * @param service the service to relinquish
103     * @see #getService(java.beans.beancontext.BeanContextChild,java.lang.Object,java.lang.Class,java.lang.Object,java.beans.beancontext.BeanContextServiceRevokedListener)     * @see #getService(java.beans.beancontext.BeanContextChild,java.lang.Object,java.lang.Class,java.lang.Object,java.beans.beancontext.BeanContextServiceRevokedListener)
104     */     */
105    public void releaseService (BeanContextChild requestorChild, Object requestor,    void releaseService (BeanContextChild requestorChild, Object requestor,
106                                Object service);                                Object service);
107    
108    /**    /**
# Line 152  public interface BeanContextServices Line 152  public interface BeanContextServices
152     *        <code>instanceof</code> serviceClass is true), or     *        <code>instanceof</code> serviceClass is true), or
153     *        <code>null</code>.     *        <code>null</code>.
154     */     */
155    public Object getService (BeanContextChild requestorChild, Object requestor,    Object getService (BeanContextChild requestorChild, Object requestor,
156                              Class serviceClass, Object serviceSelector,                              Class serviceClass, Object serviceSelector,
157                              BeanContextServiceRevokedListener listener)                              BeanContextServiceRevokedListener listener)
158      throws TooManyListenersException;      throws TooManyListenersException;
# Line 167  public interface BeanContextServices Line 167  public interface BeanContextServices
167     * @return a list of all service classes supported.     * @return a list of all service classes supported.
168     * @see java.beans.beancontext.BeanContext#globalHierarchyLock     * @see java.beans.beancontext.BeanContext#globalHierarchyLock
169     */     */
170    public Iterator getCurrentServiceClasses ();    Iterator getCurrentServiceClasses ();
171    
172    /**    /**
173     * Get a list of valid service selectors for the specified service class.     * Get a list of valid service selectors for the specified service class.
# Line 187  public interface BeanContextServices Line 187  public interface BeanContextServices
187     * @return a list of valid service selectors for the service     * @return a list of valid service selectors for the service
188     *         class, or <code>null</code>.     *         class, or <code>null</code>.
189     */     */
190    public Iterator getCurrentServiceSelectors (Class serviceClass);    Iterator getCurrentServiceSelectors (Class serviceClass);
191    
192    /**    /**
193     * Tell whether the specified service class is available.     * Tell whether the specified service class is available.
# Line 197  public interface BeanContextServices Line 197  public interface BeanContextServices
197     * @param serviceClass the service class to check on.     * @param serviceClass the service class to check on.
198     * @return whether the specified service class is available.     * @return whether the specified service class is available.
199     */     */
200    public boolean hasService (Class serviceClass);    boolean hasService (Class serviceClass);
201    
202    /**    /**
203     * Add a listener on all adds and removes of services.     * Add a listener on all adds and removes of services.
204     * @param listener the listener to add.     * @param listener the listener to add.
205     */     */
206    public void    void addBeanContextServicesListener (BeanContextServicesListener listener);
   addBeanContextServicesListener (BeanContextServicesListener listener);  
207    
208    /**    /**
209     * Remove a listener on all adds and removes of services.     * Remove a listener on all adds and removes of services.
# Line 213  public interface BeanContextServices Line 212  public interface BeanContextServices
212     *           <code>getService()</code>.     *           <code>getService()</code>.
213     * @param listener the listener to add.     * @param listener the listener to add.
214     */     */
215    public void    void removeBeanContextServicesListener (BeanContextServicesListener listener);
   removeBeanContextServicesListener (BeanContextServicesListener listener);  
216  }  }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26