ALF-9258: Added isEngineEnabled check to the Activiti engine initialisation so the JobExecuterThread is not started when it doesn't need to be.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29897 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2011-08-18 19:41:52 +00:00
parent 355cfd4f95
commit d093b6a8e4
3 changed files with 30 additions and 21 deletions

View File

@@ -1697,14 +1697,15 @@ public class SchemaBootstrap extends AbstractLifecycleBean
*
* @author Frederik Heremans
*/
public class UnclosableConnection implements Connection {
public class UnclosableConnection implements Connection
{
private Connection wrapped;
public UnclosableConnection(Connection wrappedConnection)
{
this.wrapped = wrappedConnection;
}
@Override
public boolean isWrapperFor(Class<?> iface) throws SQLException
{
@@ -2007,6 +2008,5 @@ public class SchemaBootstrap extends AbstractLifecycleBean
{
wrapped.setTypeMap(map);
}
}
}