1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.localization.wiki.internal; |
21 |
|
|
22 |
|
import java.util.Arrays; |
23 |
|
import java.util.List; |
24 |
|
|
25 |
|
import javax.inject.Inject; |
26 |
|
import javax.inject.Named; |
27 |
|
import javax.inject.Provider; |
28 |
|
import javax.inject.Singleton; |
29 |
|
|
30 |
|
import org.apache.commons.lang3.EnumUtils; |
31 |
|
import org.slf4j.Logger; |
32 |
|
import org.xwiki.bridge.event.DocumentCreatedEvent; |
33 |
|
import org.xwiki.bridge.event.DocumentDeletedEvent; |
34 |
|
import org.xwiki.bridge.event.DocumentUpdatedEvent; |
35 |
|
import org.xwiki.bridge.event.WikiReadyEvent; |
36 |
|
import org.xwiki.cache.Cache; |
37 |
|
import org.xwiki.cache.CacheException; |
38 |
|
import org.xwiki.cache.CacheManager; |
39 |
|
import org.xwiki.cache.config.CacheConfiguration; |
40 |
|
import org.xwiki.component.annotation.Component; |
41 |
|
import org.xwiki.component.descriptor.ComponentDescriptor; |
42 |
|
import org.xwiki.component.descriptor.ComponentInstantiationStrategy; |
43 |
|
import org.xwiki.component.descriptor.DefaultComponentDescriptor; |
44 |
|
import org.xwiki.component.internal.multi.ComponentManagerManager; |
45 |
|
import org.xwiki.component.manager.ComponentLifecycleException; |
46 |
|
import org.xwiki.component.manager.ComponentLookupException; |
47 |
|
import org.xwiki.component.manager.ComponentManager; |
48 |
|
import org.xwiki.component.manager.ComponentRepositoryException; |
49 |
|
import org.xwiki.component.phase.Disposable; |
50 |
|
import org.xwiki.component.phase.Initializable; |
51 |
|
import org.xwiki.component.phase.InitializationException; |
52 |
|
import org.xwiki.localization.TranslationBundle; |
53 |
|
import org.xwiki.localization.TranslationBundleDoesNotExistsException; |
54 |
|
import org.xwiki.localization.TranslationBundleFactory; |
55 |
|
import org.xwiki.localization.message.TranslationMessageParser; |
56 |
|
import org.xwiki.localization.wiki.internal.TranslationDocumentModel.Scope; |
57 |
|
import org.xwiki.model.reference.DocumentReference; |
58 |
|
import org.xwiki.model.reference.DocumentReferenceResolver; |
59 |
|
import org.xwiki.model.reference.EntityReferenceSerializer; |
60 |
|
import org.xwiki.model.reference.WikiReference; |
61 |
|
import org.xwiki.observation.EventListener; |
62 |
|
import org.xwiki.observation.ObservationManager; |
63 |
|
import org.xwiki.observation.event.Event; |
64 |
|
import org.xwiki.query.Query; |
65 |
|
import org.xwiki.query.QueryManager; |
66 |
|
import org.xwiki.security.authorization.AccessDeniedException; |
67 |
|
import org.xwiki.security.authorization.AuthorizationManager; |
68 |
|
import org.xwiki.security.authorization.Right; |
69 |
|
import org.xwiki.wiki.descriptor.WikiDescriptorManager; |
70 |
|
|
71 |
|
import com.xpn.xwiki.XWikiContext; |
72 |
|
import com.xpn.xwiki.XWikiException; |
73 |
|
import com.xpn.xwiki.doc.XWikiDocument; |
74 |
|
import com.xpn.xwiki.objects.BaseObject; |
75 |
|
import com.xpn.xwiki.objects.StringProperty; |
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
@version |
81 |
|
@since |
82 |
|
|
83 |
|
@Component |
84 |
|
@Named(DocumentTranslationBundleFactory.ID) |
85 |
|
@Singleton |
|
|
| 82.4% |
Uncovered Elements: 28 (159) |
Complexity: 47 |
Complexity Density: 0.41 |
|
86 |
|
public class DocumentTranslationBundleFactory implements TranslationBundleFactory, Initializable, Disposable |
87 |
|
{ |
88 |
|
|
89 |
|
@link |
90 |
|
|
91 |
|
public final static String ID = "document"; |
92 |
|
|
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
public static final String ID_PREFIX = ID + ':'; |
97 |
|
|
98 |
|
private static final List<Event> EVENTS = Arrays.<Event>asList(new DocumentUpdatedEvent(), |
99 |
|
new DocumentDeletedEvent(), new DocumentCreatedEvent()); |
100 |
|
|
101 |
|
private static final List<Event> WIKIEVENTS = Arrays.<Event>asList(new WikiReadyEvent()); |
102 |
|
|
103 |
|
@Inject |
104 |
|
@Named("context") |
105 |
|
private Provider<ComponentManager> componentManagerProvider; |
106 |
|
|
107 |
|
@Inject |
108 |
|
@Named("uid") |
109 |
|
private EntityReferenceSerializer<String> uidSerializer; |
110 |
|
|
111 |
|
@Inject |
112 |
|
private EntityReferenceSerializer<String> serializer; |
113 |
|
|
114 |
|
@Inject |
115 |
|
@Named("current") |
116 |
|
private DocumentReferenceResolver<String> currentResolver; |
117 |
|
|
118 |
|
@Inject |
119 |
|
private CacheManager cacheManager; |
120 |
|
|
121 |
|
@Inject |
122 |
|
private ObservationManager observation; |
123 |
|
|
124 |
|
@Inject |
125 |
|
private Provider<XWikiContext> xcontextProvider; |
126 |
|
|
127 |
|
@Inject |
128 |
|
@Named("messagetool/1.0") |
129 |
|
private TranslationMessageParser translationParser; |
130 |
|
|
131 |
|
@Inject |
132 |
|
private ComponentManagerManager cmManager; |
133 |
|
|
134 |
|
@Inject |
135 |
|
private WikiDescriptorManager wikiManager; |
136 |
|
|
137 |
|
@Inject |
138 |
|
private Logger logger; |
139 |
|
|
140 |
|
@Inject |
141 |
|
private QueryManager queryManager; |
142 |
|
|
143 |
|
@Inject |
144 |
|
private AuthorizationManager authorizationManager; |
145 |
|
|
146 |
|
|
147 |
|
|
148 |
|
|
149 |
|
private Cache<TranslationBundle> onDemandBundleCache; |
150 |
|
|
151 |
|
private final EventListener listener = new EventListener() |
152 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
153 |
1032 |
@Override... |
154 |
|
public void onEvent(Event event, Object arg1, Object arg2) |
155 |
|
{ |
156 |
1032 |
translationDocumentUpdated((XWikiDocument) arg1); |
157 |
|
} |
158 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
159 |
315 |
@Override... |
160 |
|
public String getName() |
161 |
|
{ |
162 |
315 |
return "localization.bundle.document"; |
163 |
|
} |
164 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
165 |
35 |
@Override... |
166 |
|
public List<Event> getEvents() |
167 |
|
{ |
168 |
35 |
return EVENTS; |
169 |
|
} |
170 |
|
}; |
171 |
|
|
172 |
|
private final EventListener wikilistener = new EventListener() |
173 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
174 |
4 |
@Override... |
175 |
|
public void onEvent(Event event, Object arg1, Object arg2) |
176 |
|
{ |
177 |
4 |
loadTranslations(((WikiReadyEvent) event).getWikiId()); |
178 |
|
} |
179 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
180 |
172 |
@Override... |
181 |
|
public String getName() |
182 |
|
{ |
183 |
172 |
return "localization.wikiready"; |
184 |
|
} |
185 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
186 |
35 |
@Override... |
187 |
|
public List<Event> getEvents() |
188 |
|
{ |
189 |
35 |
return WIKIEVENTS; |
190 |
|
} |
191 |
|
}; |
192 |
|
|
|
|
| 85.7% |
Uncovered Elements: 1 (7) |
Complexity: 2 |
Complexity Density: 0.29 |
|
193 |
35 |
@Override... |
194 |
|
public void initialize() throws InitializationException |
195 |
|
{ |
196 |
|
|
197 |
35 |
CacheConfiguration cacheConfiguration = new CacheConfiguration("localization.bundle.document"); |
198 |
|
|
199 |
35 |
try { |
200 |
35 |
this.onDemandBundleCache = this.cacheManager.createNewCache(cacheConfiguration); |
201 |
|
} catch (CacheException e) { |
202 |
0 |
this.logger.error("Failed to create cache [{}]", cacheConfiguration.getConfigurationId(), e); |
203 |
|
} |
204 |
|
|
205 |
|
|
206 |
|
|
207 |
35 |
loadTranslations(this.wikiManager.getMainWikiId()); |
208 |
|
|
209 |
|
|
210 |
35 |
this.observation.addListener(this.listener); |
211 |
35 |
this.observation.addListener(this.wikilistener); |
212 |
|
} |
213 |
|
|
|
|
| 84.6% |
Uncovered Elements: 2 (13) |
Complexity: 3 |
Complexity Density: 0.23 |
|
214 |
39 |
private void loadTranslations(String wiki)... |
215 |
|
{ |
216 |
39 |
XWikiContext xcontext = this.xcontextProvider.get(); |
217 |
39 |
WikiReference wikiReference = new WikiReference(wiki); |
218 |
|
|
219 |
39 |
try { |
220 |
39 |
Query query = |
221 |
|
this.queryManager.createQuery(String.format( |
222 |
|
"select distinct doc.fullName from Document doc, doc.object(%s) as translation", |
223 |
|
TranslationDocumentModel.TRANSLATIONCLASS_REFERENCE_STRING), Query.XWQL); |
224 |
|
|
225 |
39 |
query.setWiki(wiki); |
226 |
|
|
227 |
39 |
List<String> documents = query.execute(); |
228 |
39 |
for (String documentName : documents) { |
229 |
119 |
DocumentReference reference = currentResolver.resolve(documentName, wikiReference); |
230 |
119 |
XWikiDocument document = xcontext.getWiki().getDocument(reference, xcontext); |
231 |
|
|
232 |
119 |
try { |
233 |
119 |
registerTranslationBundle(document); |
234 |
|
} catch (Exception e) { |
235 |
0 |
this.logger.error("Failed to register translation bundle from document [{}]", |
236 |
|
document.getDocumentReference(), e); |
237 |
|
} |
238 |
|
} |
239 |
|
} catch (Exception e) { |
240 |
0 |
this.logger.error("Failed to load existing translations", e); |
241 |
|
} |
242 |
|
} |
243 |
|
|
|
|
| 50% |
Uncovered Elements: 4 (8) |
Complexity: 3 |
Complexity Density: 0.5 |
|
244 |
1 |
@Override... |
245 |
|
public TranslationBundle getBundle(String bundleId) throws TranslationBundleDoesNotExistsException |
246 |
|
{ |
247 |
1 |
String roleHint = ID_PREFIX + bundleId; |
248 |
|
|
249 |
1 |
if (this.componentManagerProvider.get().hasComponent(TranslationBundle.class, roleHint)) { |
250 |
0 |
try { |
251 |
0 |
return this.componentManagerProvider.get().getInstance(TranslationBundle.class, roleHint); |
252 |
|
} catch (ComponentLookupException e) { |
253 |
0 |
this.logger.debug("Failed to lookup component [{}] with hint [{}].", TranslationBundle.class, bundleId, |
254 |
|
e); |
255 |
|
} |
256 |
|
} |
257 |
|
|
258 |
1 |
return getOnDemandDocumentBundle(this.currentResolver.resolve(bundleId)); |
259 |
|
} |
260 |
|
|
261 |
|
|
262 |
|
|
263 |
|
|
|
|
| 84.6% |
Uncovered Elements: 2 (13) |
Complexity: 3 |
Complexity Density: 0.33 |
|
264 |
1 |
private TranslationBundle getOnDemandDocumentBundle(DocumentReference documentReference)... |
265 |
|
throws TranslationBundleDoesNotExistsException |
266 |
|
{ |
267 |
1 |
String uid = this.uidSerializer.serialize(documentReference); |
268 |
|
|
269 |
1 |
TranslationBundle bundle = this.onDemandBundleCache.get(uid); |
270 |
1 |
if (bundle == null) { |
271 |
1 |
synchronized (this.onDemandBundleCache) { |
272 |
1 |
bundle = this.onDemandBundleCache.get(uid); |
273 |
1 |
if (bundle == null) { |
274 |
1 |
bundle = createOnDemandDocumentBundle(documentReference, uid); |
275 |
1 |
this.onDemandBundleCache.set(uid, bundle); |
276 |
|
} |
277 |
|
} |
278 |
|
} |
279 |
|
|
280 |
1 |
return bundle; |
281 |
|
} |
282 |
|
|
|
|
| 71.4% |
Uncovered Elements: 4 (14) |
Complexity: 4 |
Complexity Density: 0.33 |
|
283 |
1 |
private OnDemandDocumentTranslationBundle createOnDemandDocumentBundle(DocumentReference documentReference,... |
284 |
|
String uid) throws TranslationBundleDoesNotExistsException |
285 |
|
{ |
286 |
1 |
XWikiContext context = this.xcontextProvider.get(); |
287 |
|
|
288 |
1 |
XWikiDocument document; |
289 |
1 |
try { |
290 |
1 |
document = context.getWiki().getDocument(documentReference, context); |
291 |
|
} catch (XWikiException e) { |
292 |
0 |
throw new TranslationBundleDoesNotExistsException("Failed to get translation document", e); |
293 |
|
} |
294 |
|
|
295 |
1 |
if (document.isNew()) { |
296 |
0 |
throw new TranslationBundleDoesNotExistsException(String.format("Document [%s] does not exists", |
297 |
|
documentReference)); |
298 |
|
} |
299 |
|
|
300 |
1 |
OnDemandDocumentTranslationBundle documentBundle; |
301 |
1 |
try { |
302 |
1 |
documentBundle = |
303 |
|
new OnDemandDocumentTranslationBundle(ID_PREFIX, document.getDocumentReference(), |
304 |
|
this.componentManagerProvider.get(), this.translationParser, this, uid); |
305 |
|
} catch (ComponentLookupException e) { |
306 |
0 |
throw new TranslationBundleDoesNotExistsException("Failed to create document bundle", e); |
307 |
|
} |
308 |
|
|
309 |
1 |
return documentBundle; |
310 |
|
} |
311 |
|
|
|
|
| 80% |
Uncovered Elements: 1 (5) |
Complexity: 2 |
Complexity Density: 0.4 |
|
312 |
127 |
private ComponentDocumentTranslationBundle createComponentDocumentBundle(XWikiDocument document,... |
313 |
|
ComponentDescriptor<TranslationBundle> descriptor) throws TranslationBundleDoesNotExistsException |
314 |
|
{ |
315 |
127 |
ComponentDocumentTranslationBundle documentBundle; |
316 |
127 |
try { |
317 |
127 |
documentBundle = |
318 |
|
new ComponentDocumentTranslationBundle(ID_PREFIX, document.getDocumentReference(), |
319 |
|
this.componentManagerProvider.get(), this.translationParser, descriptor); |
320 |
|
} catch (ComponentLookupException e) { |
321 |
0 |
throw new TranslationBundleDoesNotExistsException("Failed to create document bundle", e); |
322 |
|
} |
323 |
|
|
324 |
127 |
return documentBundle; |
325 |
|
} |
326 |
|
|
327 |
|
|
328 |
|
@param |
329 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
330 |
0 |
void clear(String uid)... |
331 |
|
{ |
332 |
0 |
this.onDemandBundleCache.remove(uid); |
333 |
|
} |
334 |
|
|
335 |
|
|
336 |
|
@param |
337 |
|
|
|
|
| 90% |
Uncovered Elements: 1 (10) |
Complexity: 4 |
Complexity Density: 0.67 |
|
338 |
1032 |
private void translationDocumentUpdated(XWikiDocument document)... |
339 |
|
{ |
340 |
1032 |
if (!document.getOriginalDocument().isNew()) { |
341 |
520 |
unregisterTranslationBundle(document.getOriginalDocument()); |
342 |
|
} |
343 |
|
|
344 |
1032 |
if (!document.isNew()) { |
345 |
878 |
try { |
346 |
878 |
registerTranslationBundle(document); |
347 |
|
} catch (Exception e) { |
348 |
0 |
this.logger.error("Failed to register translation bundle from document [{}]", |
349 |
|
document.getDocumentReference(), e); |
350 |
|
} |
351 |
|
} |
352 |
|
} |
353 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
354 |
1517 |
private Scope getScope(XWikiDocument document)... |
355 |
|
{ |
356 |
1517 |
BaseObject obj = document.getXObject(TranslationDocumentModel.TRANSLATIONCLASS_REFERENCE); |
357 |
|
|
358 |
1517 |
if (obj != null) { |
359 |
128 |
return getScope(obj); |
360 |
|
} |
361 |
|
|
362 |
1389 |
return null; |
363 |
|
} |
364 |
|
|
365 |
|
|
366 |
|
@param |
367 |
|
@return@link |
368 |
|
|
|
|
| 70% |
Uncovered Elements: 3 (10) |
Complexity: 3 |
Complexity Density: 0.5 |
|
369 |
128 |
private Scope getScope(BaseObject obj)... |
370 |
|
{ |
371 |
128 |
if (obj != null) { |
372 |
128 |
StringProperty scopeProperty = |
373 |
|
(StringProperty) obj.getField(TranslationDocumentModel.TRANSLATIONCLASS_PROP_SCOPE); |
374 |
|
|
375 |
128 |
if (scopeProperty != null) { |
376 |
128 |
String scopeString = scopeProperty.getValue(); |
377 |
|
|
378 |
128 |
return EnumUtils.getEnum(Scope.class, scopeString.toUpperCase()); |
379 |
|
} |
380 |
|
} |
381 |
|
|
382 |
0 |
return null; |
383 |
|
} |
384 |
|
|
385 |
|
|
386 |
|
@param |
387 |
|
|
|
|
| 57.1% |
Uncovered Elements: 3 (7) |
Complexity: 3 |
Complexity Density: 0.6 |
|
388 |
520 |
private void unregisterTranslationBundle(XWikiDocument document)... |
389 |
|
{ |
390 |
520 |
Scope scope = getScope(document); |
391 |
|
|
392 |
|
|
393 |
520 |
if (scope != null && scope != Scope.ON_DEMAND) { |
394 |
0 |
ComponentDescriptor<TranslationBundle> descriptor = |
395 |
|
createComponentDescriptor(document.getDocumentReference()); |
396 |
|
|
397 |
0 |
getComponentManager(document, scope, true).unregisterComponent(descriptor); |
398 |
|
} |
399 |
|
|
400 |
|
|
401 |
520 |
this.onDemandBundleCache.remove(this.uidSerializer.serialize(document.getDocumentReference())); |
402 |
|
} |
403 |
|
|
404 |
|
|
405 |
|
@param |
406 |
|
@throws |
407 |
|
|
408 |
|
@throws |
409 |
|
@throws |
410 |
|
|
411 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (8) |
Complexity: 3 |
Complexity Density: 0.5 |
|
412 |
997 |
private void registerTranslationBundle(XWikiDocument document) throws TranslationBundleDoesNotExistsException,... |
413 |
|
ComponentRepositoryException, AccessDeniedException |
414 |
|
{ |
415 |
997 |
Scope scope = getScope(document); |
416 |
|
|
417 |
997 |
if (scope != null && scope != Scope.ON_DEMAND) { |
418 |
127 |
checkRegistrationAuthorization(document, scope); |
419 |
|
|
420 |
127 |
ComponentDescriptor<TranslationBundle> descriptor = |
421 |
|
createComponentDescriptor(document.getDocumentReference()); |
422 |
|
|
423 |
127 |
ComponentDocumentTranslationBundle bundle = createComponentDocumentBundle(document, descriptor); |
424 |
|
|
425 |
127 |
getComponentManager(document, scope, true).registerComponent(descriptor, bundle); |
426 |
|
} |
427 |
|
} |
428 |
|
|
429 |
|
|
430 |
|
@param |
431 |
|
@param |
432 |
|
@throws |
433 |
|
@link |
434 |
|
|
|
|
| 77.8% |
Uncovered Elements: 2 (9) |
Complexity: 3 |
Complexity Density: 0.33 |
|
435 |
127 |
private void checkRegistrationAuthorization(XWikiDocument document, Scope scope) throws AccessDeniedException... |
436 |
|
{ |
437 |
127 |
switch (scope) { |
438 |
3 |
case GLOBAL: |
439 |
3 |
this.authorizationManager.checkAccess(Right.PROGRAM, document.getAuthorReference(), null); |
440 |
3 |
break; |
441 |
124 |
case WIKI: |
442 |
124 |
this.authorizationManager.checkAccess(Right.ADMIN, document.getAuthorReference(), document |
443 |
|
.getDocumentReference().getWikiReference()); |
444 |
124 |
break; |
445 |
0 |
default: |
446 |
0 |
break; |
447 |
|
} |
448 |
|
} |
449 |
|
|
450 |
|
|
451 |
|
@param |
452 |
|
@return |
453 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
|
454 |
127 |
private ComponentDescriptor<TranslationBundle> createComponentDescriptor(DocumentReference documentReference)... |
455 |
|
{ |
456 |
127 |
DefaultComponentDescriptor<TranslationBundle> descriptor = new DefaultComponentDescriptor<TranslationBundle>(); |
457 |
|
|
458 |
127 |
descriptor.setImplementation(ComponentDocumentTranslationBundle.class); |
459 |
127 |
descriptor.setInstantiationStrategy(ComponentInstantiationStrategy.SINGLETON); |
460 |
127 |
descriptor.setRoleHint(ID_PREFIX + this.serializer.serialize(documentReference)); |
461 |
127 |
descriptor.setRoleType(TranslationBundle.class); |
462 |
|
|
463 |
127 |
return descriptor; |
464 |
|
} |
465 |
|
|
466 |
|
|
467 |
|
|
468 |
|
|
469 |
|
@param |
470 |
|
@param |
471 |
|
@param |
472 |
|
@return@link |
473 |
|
|
|
|
| 75% |
Uncovered Elements: 3 (12) |
Complexity: 3 |
Complexity Density: 0.25 |
|
474 |
127 |
private ComponentManager getComponentManager(XWikiDocument document, Scope scope, boolean create)... |
475 |
|
{ |
476 |
127 |
String hint; |
477 |
|
|
478 |
127 |
switch (scope) { |
479 |
124 |
case WIKI: |
480 |
124 |
hint = "wiki:" + document.getDocumentReference().getWikiReference().getName(); |
481 |
124 |
break; |
482 |
0 |
case USER: |
483 |
0 |
hint = "user:" + this.serializer.serialize(document.getAuthorReference()); |
484 |
0 |
break; |
485 |
3 |
default: |
486 |
3 |
hint = null; |
487 |
3 |
break; |
488 |
|
} |
489 |
|
|
490 |
127 |
return this.cmManager.getComponentManager(hint, create); |
491 |
|
} |
492 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
493 |
35 |
@Override... |
494 |
|
public void dispose() throws ComponentLifecycleException |
495 |
|
{ |
496 |
35 |
this.observation.removeListener(this.listener.getName()); |
497 |
35 |
this.observation.removeListener(this.wikilistener.getName()); |
498 |
|
} |
499 |
|
} |