mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixes to subsystems for clean shutdown
- FTPConfigSection / CIFSConfigSection now aware of whether they constructed the authenticator themselves - AbstractTriggerBean doesn't try to unschedule a trigger if the scheduler is already shut down - RuntimeExecBootstrapBean can cope with running in a subsystem and shutting down without the VM shutting down - DefaultManagedApplicationContextFactory will start up the application context it is proxying to if it has not already been started git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13846 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -169,8 +169,12 @@ public class DefaultManagedApplicationContextFactory extends AbstractLifecycleBe
|
||||
* (non-Javadoc)
|
||||
* @see org.alfresco.repo.management.ManagedApplicationContextFactory#getApplicationContext()
|
||||
*/
|
||||
public ApplicationContext getApplicationContext()
|
||||
public synchronized ApplicationContext getApplicationContext()
|
||||
{
|
||||
if (this.applicationContext == null)
|
||||
{
|
||||
onStart();
|
||||
}
|
||||
return this.applicationContext;
|
||||
}
|
||||
|
||||
@@ -181,7 +185,7 @@ public class DefaultManagedApplicationContextFactory extends AbstractLifecycleBe
|
||||
@Override
|
||||
protected void onBootstrap(ApplicationEvent event)
|
||||
{
|
||||
if (this.autoStart)
|
||||
if (this.autoStart && this.applicationContext == null)
|
||||
{
|
||||
onStart();
|
||||
}
|
||||
|
Reference in New Issue
Block a user