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:
Dave Ward
2009-04-06 11:42:03 +00:00
parent a51ebd0441
commit e28632de9e
3 changed files with 28 additions and 4 deletions

View File

@@ -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();
}