Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)

84689: Merged ACE-2801 to HEAD-BUG-FIX (5.0.0)
      84505: Fix ACE-2801: Method signature change for AlfrescoTransactionSupport.bindListener
         - Added overloaded method that accepts the old TransactionListener as well.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@85096 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2014-09-19 22:16:15 +00:00
parent c6c08ef677
commit 31af7c47cd

View File

@@ -246,6 +246,18 @@ public abstract class AlfrescoTransactionSupport extends TransactionSupportUtil
} }
} }
/**
* Method maintained for backward compatibility:
* <a href="https://issues.alfresco.com/jira/browse/ACE-2801">ACE-2801: Package change for TransactionListener</a>.
*
* @see TransactionSupportUtil
* @see #bindListener(org.alfresco.util.transaction.TransactionListener)
*/
public static void bindListener(org.alfresco.repo.transaction.TransactionListener listener)
{
AlfrescoTransactionSupport.bindListener((org.alfresco.util.transaction.TransactionListener) listener);
}
/** /**
* Method that registers a <tt>Listener</tt> against * Method that registers a <tt>Listener</tt> against
* the transaction. * the transaction.
@@ -254,6 +266,8 @@ public abstract class AlfrescoTransactionSupport extends TransactionSupportUtil
* *
* @param indexerAndSearcher the Lucene indexer to perform transaction completion * @param indexerAndSearcher the Lucene indexer to perform transaction completion
* tasks on * tasks on
*
* @since 5.0
*/ */
public static void bindListener(TransactionListener listener) public static void bindListener(TransactionListener listener)
{ {