mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V2.1 to HEAD
6694: Removal of explicit Log4J usage git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6750 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -7,7 +7,8 @@ import java.util.Random;
|
||||
|
||||
import org.aopalliance.intercept.MethodInterceptor;
|
||||
import org.aopalliance.intercept.MethodInvocation;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.StaleObjectStateException;
|
||||
import org.hibernate.exception.LockAcquisitionException;
|
||||
import org.springframework.aop.framework.ReflectiveMethodInvocation;
|
||||
@@ -23,7 +24,7 @@ import org.springframework.transaction.TransactionStatus;
|
||||
*/
|
||||
public class RetryingTransactionAdvice implements MethodInterceptor
|
||||
{
|
||||
private static Logger fgLogger = Logger.getLogger(RetryingTransactionAdvice.class);
|
||||
private static Log fgLogger = LogFactory.getLog(RetryingTransactionAdvice.class);
|
||||
|
||||
/**
|
||||
* The transaction manager instance.
|
||||
|
@@ -36,7 +36,8 @@ import org.alfresco.error.AlfrescoRuntimeException;
|
||||
import org.alfresco.error.ExceptionStackUtil;
|
||||
import org.alfresco.repo.security.permissions.AccessDeniedException;
|
||||
import org.alfresco.service.transaction.TransactionService;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.StaleObjectStateException;
|
||||
import org.hibernate.exception.LockAcquisitionException;
|
||||
import org.springframework.dao.ConcurrencyFailureException;
|
||||
@@ -54,7 +55,7 @@ import org.springframework.jdbc.UncategorizedSQLException;
|
||||
public class RetryingTransactionHelper
|
||||
{
|
||||
private static final String MSG_READ_ONLY = "permissions.err_read_only";
|
||||
private static Logger logger = Logger.getLogger(RetryingTransactionHelper.class);
|
||||
private static Log logger = LogFactory.getLog(RetryingTransactionHelper.class);
|
||||
|
||||
/**
|
||||
* Exceptions that trigger retries.
|
||||
|
Reference in New Issue
Block a user