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 |
|
|
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 |
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) |
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 |
} |
} |
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 () |
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, |