INNER CODE UNIT · Java
reload
geoserver/geoserver-cloud · src/main/src/main/java/org/geoserver/security/CloudGeoServerSecurityManager.java:86
public void reload() {
if (reloading.compareAndSet(false, true)) {
// gotta grab a global lock, super.reload() tends to change things
log.debug("Obtaining global lock to reload the security configuration");
configLock.lock(LockType.WRITE);
log.debug("Obtained global lock to reload the security configuration");
SecurityManagerReloaded event = null;
try {
super.reload();
// Create event but don't publish yet - wait until after lock release
if (applicationContext != null) {
long sequence = updateSequenceIncrementor.get();
event = new SecurityManagerReloaded(this, sequence);
}
} finally {
configLock.unlock();