|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.productivity.java.habitat4j.PropertyListReloadInhibitor
public class PropertyListReloadInhibitor
PropertyListReloadInhibitor provides a facility to globally inhibit reloading of PropertyList files. It is primarily used when a block of code obtaining a group of properties is sensitive to property changes that may change some of the values and badly affect others in that group.
## LICENSE INFORMATION ##
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
| Field Summary | |
|---|---|
protected java.util.Hashtable |
reloadHash
|
| Method Summary | |
|---|---|
void |
disable()
Disables the reload inhibitor. |
void |
enable()
Enables the reload inhibitor. |
void |
enable(long expiration)
Enables the reload inhibitor. |
protected java.lang.Integer |
getCurrentThreadHash()
|
static PropertyListReloadInhibitor |
getInstance()
|
boolean |
isReloadInhibited()
|
protected void |
removeAnyStaleEntries()
Checks for and removes stale entries in the reloadHash Hashtable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Hashtable reloadHash
| Method Detail |
|---|
public static PropertyListReloadInhibitor getInstance()
protected java.lang.Integer getCurrentThreadHash()
public void enable(long expiration)
expiration - - time in milliseconds for the calling Thread to inhibit reloadingpublic void enable()
public void disable()
protected void removeAnyStaleEntries()
public boolean isReloadInhibited()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||