2 |
* Copyright (c) 2009 Martin O. J. Schmitz. |
* Copyright (c) 2009 Martin O. J. Schmitz. |
3 |
* |
* |
4 |
* This file is part of the SCHMITZM library - a collection of utility |
* This file is part of the SCHMITZM library - a collection of utility |
5 |
* classes based on Java 1.6, focussing (not only) on Java Swing |
* classes based on Java 1.6, focusing (not only) on Java Swing |
6 |
* and the Geotools library. |
* and the Geotools library. |
7 |
* |
* |
8 |
* The SCHMITZM project is hosted at: |
* The SCHMITZM project is hosted at: |
62 |
/** |
/** |
63 |
* Allows to enable/disable the Synchronizer's functionality it. |
* Allows to enable/disable the Synchronizer's functionality it. |
64 |
*/ |
*/ |
65 |
private boolean enabled = true; |
private volatile boolean enabled = true; |
66 |
|
|
67 |
/** |
/** |
68 |
* Creates a new synchronizer |
* Creates a new synchronizer |
83 |
* <code>true</code> or <code>false</code> |
* <code>true</code> or <code>false</code> |
84 |
*/ |
*/ |
85 |
public void setEnabled(boolean enabled) { |
public void setEnabled(boolean enabled) { |
86 |
|
if (enabled == false && this.enabled==true) { |
87 |
|
LOGGER.debug("disabling the synchronizer map -> "); |
88 |
|
} else if (enabled == true && this.enabled==false) { |
89 |
|
LOGGER.debug("enable the synchronizer map -> "); |
90 |
|
} |
91 |
this.enabled = enabled; |
this.enabled = enabled; |
92 |
} |
} |
93 |
|
|