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

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

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

revision 1.4 by uid67440, Fri Dec 26 19:39:54 2003 UTC revision 1.4.2.1 by gnu_andrew, Sun Apr 3 00:09:10 2005 UTC
# Line 1  Line 1 
1  /* java.beans.beancontext.BeanContextServicesSupport  /* BeanContextServicesSupport.java --
2     Copyright (C) 2003 Free Software Foundation, Inc.     Copyright (C) 2003, 2005  Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 7  GNU Classpath is free software; you can Line 7  GNU Classpath is free software; you can
7  it under the terms of the GNU General Public License as published by  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2, or (at your option)  the Free Software Foundation; either version 2, or (at your option)
9  any later version.  any later version.
10    
11  GNU Classpath is distributed in the hope that it will be useful, but  GNU Classpath is distributed in the hope that it will be useful, but
12  WITHOUT ANY WARRANTY; without even the implied warranty of  WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Line 120  public class BeanContextServicesSupport Line 120  public class BeanContextServicesSupport
120    
121    public BeanContextServicesSupport ()    public BeanContextServicesSupport ()
122    {    {
123      this (null, null, true, true);      super();
124    }    }
125    
126    public BeanContextServicesSupport (BeanContextServices peer)    public BeanContextServicesSupport (BeanContextServices peer)
127    {    {
128      this (peer, null, true, true);      super(peer);
129    }    }
130    
131    public BeanContextServicesSupport (BeanContextServices peer, Locale lcle)    public BeanContextServicesSupport(BeanContextServices peer, Locale locale)
132    {    {
133      this (peer, lcle, true, true);      super(peer, locale);
134    }    }
135    
136    public BeanContextServicesSupport (BeanContextServices peer, Locale lcle,    public BeanContextServicesSupport(BeanContextServices peer, Locale locale,
137                                       boolean dtime)                                      boolean dtime)
138    {    {
139      this (peer, lcle, dtime, true);      super(peer, locale, dtime);
140    }    }
141    
142    public BeanContextServicesSupport (BeanContextServices peer, Locale lcle,    public BeanContextServicesSupport(BeanContextServices peer, Locale locale,
143                                       boolean dtime, boolean visible)                                      boolean dtime, boolean visible)
144    {    {
145      throw new Error ("Not implemented");      super(peer, locale, dtime, visible);
146    }    }
147    
148    public void addBeanContextServicesListener (BeanContextServicesListener bcsl)    public void addBeanContextServicesListener
149        (BeanContextServicesListener listener)
150    {    {
151      throw new Error ("Not implemented");      if (! bcsListeners.contains(listener))
152          bcsListeners.add(listener);
153    }    }
154    
155    public boolean addService (Class serviceClass, BeanContextServiceProvider bcsp)    public boolean addService (Class serviceClass, BeanContextServiceProvider bcsp)
# Line 202  public class BeanContextServicesSupport Line 204  public class BeanContextServicesSupport
204      throw new Error ("Not implemented");      throw new Error ("Not implemented");
205    }    }
206    
207    protected final void    protected final void fireServiceRevoked(BeanContextServiceRevokedEvent event)
   fireServiceRevoked (BeanContextServiceRevokedEvent bcsre)  
208    {    {
209      throw new Error ("Not implemented");      throw new Error ("Not implemented");
210    }    }
# Line 250  public class BeanContextServicesSupport Line 251  public class BeanContextServicesSupport
251    
252    public void initialize ()    public void initialize ()
253    {    {
254      throw new Error ("Not implemented");      super.initialize();
255    
256        bcsListeners = new ArrayList();
257        services = new HashMap();
258    }    }
259    
260    protected  void initializeBeanContextResources ()    protected  void initializeBeanContextResources ()
# Line 269  public class BeanContextServicesSupport Line 273  public class BeanContextServicesSupport
273      throw new Error ("Not implemented");      throw new Error ("Not implemented");
274    }    }
275    
276    public void    public void removeBeanContextServicesListener
277    removeBeanContextServicesListener (BeanContextServicesListener bcsl)      (BeanContextServicesListener listener)
278    {    {
279      throw new Error ("Not implemented");      int index = bcsListeners.indexOf(listener);
280    
281        if (index > -1)
282          bcsListeners.remove(index);
283    }    }
284    
285    public void revokeService (Class serviceClass, BeanContextServiceProvider bcsp,    public void revokeService (Class serviceClass, BeanContextServiceProvider bcsp,

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

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