@ -169,13 +170,10 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@@ -169,13 +170,10 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
privatelongstartupDate;
/** Flag that indicates whether this context is currently active */
@ -504,10 +502,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@@ -504,10 +502,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
*/
protectedvoidprepareRefresh(){
this.startupDate=System.currentTimeMillis();
synchronized(this.activeMonitor){
this.active=true;
}
this.active.set(true);
if(logger.isInfoEnabled()){
logger.info("Refreshing "+this);
@ -785,9 +780,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@@ -785,9 +780,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
*@paramextheexceptionthatledtothecancellation
*/
protectedvoidcancelRefresh(BeansExceptionex){
synchronized(this.activeMonitor){
this.active=false;
}
this.active.set(false);
}
@ -862,13 +855,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@@ -862,13 +855,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@ -900,9 +887,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@@ -900,9 +887,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
// Let subclasses do some final clean-up if they wish...
onClose();
synchronized(this.activeMonitor){
this.active=false;
}
this.active.set(false);
}
}
@ -935,9 +920,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@@ -935,9 +920,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@Override
publicbooleanisActive(){
synchronized(this.activeMonitor){
returnthis.active;
}
returnthis.active.get();
}
/**
@ -950,14 +933,12 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@@ -950,14 +933,12 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader