2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libjava / java / beans / beancontext / BeanContextServicesSupport.java
blob60aab693db04c06d45a028f3a9a1b1383350bdbf
1 /* java.beans.beancontext.BeanContextServicesSupport
2 Copyright (C) 2003 Free Software Foundation, Inc.
4 This file is part of GNU Classpath.
6 GNU Classpath is free software; you can redistribute it and/or modify
7 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)
9 any later version.
11 GNU Classpath is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Classpath; see the file COPYING. If not, write to the
18 Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 02111-1307 USA.
21 Linking this library statically or dynamically with other modules is
22 making a combined work based on this library. Thus, the terms and
23 conditions of the GNU General Public License cover the whole
24 combination.
26 As a special exception, the copyright holders of this library give you
27 permission to link this library with independent modules to produce an
28 executable, regardless of the license terms of these independent
29 modules, and to copy and distribute the resulting executable under
30 terms of your choice, provided that you also meet, for each linked
31 independent module, the terms and conditions of the license of that
32 module. An independent module is a module which is not derived from
33 or based on this library. If you modify this library, you may extend
34 this exception to your version of the library, but you are not
35 obligated to do so. If you do not wish to do so, delete this
36 exception statement from your version. */
39 package java.beans.beancontext;
41 import java.io.IOException;
42 import java.io.ObjectInputStream;
43 import java.io.ObjectOutputStream;
44 import java.io.Serializable;
45 import java.util.ArrayList;
46 import java.util.HashMap;
47 import java.util.Iterator;
48 import java.util.Locale;
49 import java.util.TooManyListenersException;
51 /**
52 * @author Michael Koch
53 * @since 1.2
55 public class BeanContextServicesSupport
56 extends BeanContextSupport
57 implements BeanContextServices
59 private static final long serialVersionUID = -8494482757288719206L;
61 protected class BCSSChild
62 extends BeanContextSupport.BCSChild
64 private static final long serialVersionUID = -6848044915271367103L;
67 protected class BCSSProxyServiceProvider
68 implements BeanContextServiceProvider,
69 BeanContextServiceRevokedListener
71 private static final long serialVersionUID = 7078212910685744490L;
73 public Iterator getCurrentServiceSelectors (BeanContextServices bcs,
74 Class serviceClass)
76 throw new Error ("Not implemented");
79 public Object getService (BeanContextServices bcs,
80 Object requestor,
81 Class serviceClass,
82 Object serviceSelector)
84 throw new Error ("Not implemented");
87 public void releaseService (BeanContextServices bcs,
88 Object requestor,
89 Object service)
91 throw new Error ("Not implemented");
94 public void serviceRevoked (BeanContextServiceRevokedEvent bcsre)
96 throw new Error ("Not implemented");
100 protected static class BCSSServiceProvider
101 implements Serializable
103 private static final long serialVersionUID = 861278251667444782L;
105 protected BeanContextServiceProvider serviceProvider;
107 protected BeanContextServiceProvider getServiceProvider()
109 return serviceProvider;
113 protected transient ArrayList bcsListeners;
115 protected transient BCSSProxyServiceProvider proxy;
117 protected transient int serializable;
119 protected transient HashMap services;
121 public BeanContextServicesSupport ()
123 this (null, null, true, true);
126 public BeanContextServicesSupport (BeanContextServices peer)
128 this (peer, null, true, true);
131 public BeanContextServicesSupport (BeanContextServices peer, Locale lcle)
133 this (peer, lcle, true, true);
136 public BeanContextServicesSupport (BeanContextServices peer, Locale lcle,
137 boolean dtime)
139 this (peer, lcle, dtime, true);
142 public BeanContextServicesSupport (BeanContextServices peer, Locale lcle,
143 boolean dtime, boolean visible)
145 throw new Error ("Not implemented");
148 public void addBeanContextServicesListener (BeanContextServicesListener bcsl)
150 throw new Error ("Not implemented");
153 public boolean addService (Class serviceClass, BeanContextServiceProvider bcsp)
155 throw new Error ("Not implemented");
158 protected boolean addService (Class serviceClass,
159 BeanContextServiceProvider bcsp,
160 boolean fireEvent)
162 throw new Error ("Not implemented");
165 protected void bcsPreDeserializationHook (ObjectInputStream ois)
166 throws ClassNotFoundException, IOException
168 throw new Error ("Not implemented");
171 protected void bcsPreSerializationHook (ObjectOutputStream oos)
172 throws IOException
174 throw new Error ("Not implemented");
177 protected void childJustRemovedHook (Object child,
178 BeanContextSupport.BCSChild bcsc)
180 throw new Error ("Not implemented");
183 protected BeanContextSupport.BCSChild createBCSChild (Object targetChild,
184 Object peer)
186 throw new Error ("Not implemented");
189 protected BeanContextServicesSupport.BCSSServiceProvider
190 createBCSSServiceProvider (Class sc, BeanContextServiceProvider bcsp)
192 throw new Error ("Not implemented");
195 protected final void fireServiceAdded (BeanContextServiceAvailableEvent bcssae)
197 throw new Error ("Not implemented");
200 protected final void fireServiceAdded (Class serviceClass)
202 throw new Error ("Not implemented");
205 protected final void
206 fireServiceRevoked (BeanContextServiceRevokedEvent bcsre)
208 throw new Error ("Not implemented");
211 protected final void fireServiceRevoked (Class serviceClass,
212 boolean revokeNow)
214 throw new Error ("Not implemented");
217 public BeanContextServices getBeanContextServicesPeer ()
219 throw new Error ("Not implemented");
222 protected static final BeanContextServicesListener
223 getChildBeanContextServicesListener (Object child)
225 throw new Error ("Not implemented");
228 public Iterator getCurrentServiceClasses ()
230 throw new Error ("Not implemented");
233 public Iterator getCurrentServiceSelectors (Class serviceClass)
235 throw new Error ("Not implemented");
238 public Object getService (BeanContextChild child, Object requestor,
239 Class serviceClass, Object serviceSelector,
240 BeanContextServiceRevokedListener bcsrl)
241 throws TooManyListenersException
243 throw new Error ("Not implemented");
246 public boolean hasService (Class serviceClass)
248 throw new Error ("Not implemented");
251 public void initialize ()
253 throw new Error ("Not implemented");
256 protected void initializeBeanContextResources ()
258 throw new Error ("Not implemented");
261 protected void releaseBeanContextResources ()
263 throw new Error ("Not implemented");
266 public void releaseService (BeanContextChild child, Object requestor,
267 Object service)
269 throw new Error ("Not implemented");
272 public void
273 removeBeanContextServicesListener (BeanContextServicesListener bcsl)
275 throw new Error ("Not implemented");
278 public void revokeService (Class serviceClass, BeanContextServiceProvider bcsp,
279 boolean revokeCurrentServicesNow)
281 throw new Error ("Not implemented");
284 public void serviceAvailable (BeanContextServiceAvailableEvent bcssae)
286 throw new Error ("Not implemented");
289 public void serviceRevoked (BeanContextServiceRevokedEvent bcssre)
291 throw new Error ("Not implemented");