mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Some more modification to make things more Spring friendly. Updated
Spring configurations to match. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3278 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -19,7 +19,6 @@ package org.alfresco.repo.avm;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.alfresco.repo.avm.hibernate.HibernateHelper;
|
||||
import org.alfresco.repo.avm.hibernate.HibernateTxn;
|
||||
import org.alfresco.repo.avm.hibernate.HibernateTxnCallback;
|
||||
import org.hibernate.Query;
|
||||
@@ -68,11 +67,6 @@ public class OrphanReaper implements Runnable
|
||||
*/
|
||||
private Thread fThread;
|
||||
|
||||
/**
|
||||
* The Hibernate helper to use.
|
||||
*/
|
||||
private HibernateHelper fHibernateHelper;
|
||||
|
||||
/**
|
||||
* Create one with default parameters.
|
||||
*/
|
||||
@@ -113,14 +107,14 @@ public class OrphanReaper implements Runnable
|
||||
{
|
||||
fBatchSize = size;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the HibernateHelper to use.
|
||||
* @param helper The helper to use.
|
||||
* Set the Hibernate Transaction Wrapper.
|
||||
* @param transaction
|
||||
*/
|
||||
public void setHibernateHelper(HibernateHelper helper)
|
||||
public void setHibernateTxn(HibernateTxn transaction)
|
||||
{
|
||||
fHibernateHelper = helper;
|
||||
fTransaction = transaction;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -128,7 +122,6 @@ public class OrphanReaper implements Runnable
|
||||
*/
|
||||
public void init()
|
||||
{
|
||||
fTransaction = new HibernateTxn(fHibernateHelper.getSessionFactory());
|
||||
fThread = new Thread(this);
|
||||
fThread.start();
|
||||
}
|
||||
|
Reference in New Issue
Block a user