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

63647: Fixed ACE-290: ServiceRegistry.getRetryingTransactionHelper has been deprecated, with no public alternative
    - Removed final bits of deprecation required for ACE-290
    - Added test to ensure that ALF-18718 does not regress (need new instances of RetryingTransactionHelper)
    - Cleaned up pointless 'Non-Javadoc', added @Override, etc


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@64303 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2014-03-14 16:29:01 +00:00
parent 59eb2ac3de
commit b00157153f
3 changed files with 79 additions and 195 deletions

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2005-2010 Alfresco Software Limited. * Copyright (C) 2005-2014 Alfresco Software Limited.
* *
* This file is part of Alfresco * This file is part of Alfresco
* *
@@ -102,91 +102,75 @@ public class ServiceDescriptorRegistry
private BeanFactory beanFactory = null; private BeanFactory beanFactory = null;
/* (non-Javadoc) @Override
* @see org.springframework.beans.factory.BeanFactoryAware#setBeanFactory(org.springframework.beans.factory.BeanFactory)
*/
public void setBeanFactory(BeanFactory beanFactory) throws BeansException public void setBeanFactory(BeanFactory beanFactory) throws BeansException
{ {
this.beanFactory = beanFactory; this.beanFactory = beanFactory;
} }
/* (non-Javadoc) /**
* @see org.alfresco.repo.service.ServiceRegistry#getServices() * @throws UnsupportedOperationException always
*/ */
@Override
public Collection<QName> getServices() public Collection<QName> getServices()
{ {
// TODO: Implement // TODO: Implement
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
} }
/* (non-Javadoc) /**
* @see org.alfresco.repo.service.ServiceRegistry#isServiceProvided(org.alfresco.repo.ref.QName) * @throws UnsupportedOperationException always
*/ */
@Override
public boolean isServiceProvided(QName service) public boolean isServiceProvided(QName service)
{ {
// TODO: Implement // TODO: Implement
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
} }
/* (non-Javadoc) @Override
* @see org.alfresco.repo.service.ServiceRegistry#getService(org.alfresco.repo.ref.QName)
*/
public Object getService(QName service) public Object getService(QName service)
{ {
return beanFactory.getBean(service.getLocalName()); return beanFactory.getBean(service.getLocalName());
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getDescriptorService()
*/
public DescriptorService getDescriptorService() public DescriptorService getDescriptorService()
{ {
return (DescriptorService)getService(DESCRIPTOR_SERVICE); return (DescriptorService)getService(DESCRIPTOR_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.repo.service.ServiceRegistry#getNodeService()
*/
public NodeService getNodeService() public NodeService getNodeService()
{ {
return (NodeService)getService(NODE_SERVICE); return (NodeService)getService(NODE_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.repo.service.ServiceRegistry#getNodeService()
*/
public MutableAuthenticationService getAuthenticationService() public MutableAuthenticationService getAuthenticationService()
{ {
return (MutableAuthenticationService)getService(AUTHENTICATION_SERVICE); return (MutableAuthenticationService)getService(AUTHENTICATION_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.repo.service.ServiceRegistry#getContentService()
*/
public ContentService getContentService() public ContentService getContentService()
{ {
return (ContentService)getService(CONTENT_SERVICE); return (ContentService)getService(CONTENT_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getMimetypeService()
*/
public MimetypeService getMimetypeService() public MimetypeService getMimetypeService()
{ {
return (MimetypeService)getService(MIMETYPE_SERVICE); return (MimetypeService)getService(MIMETYPE_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.repo.service.ServiceRegistry#getVersionService()
*/
public VersionService getVersionService() public VersionService getVersionService()
{ {
return (VersionService)getService(VERSION_SERVICE); return (VersionService)getService(VERSION_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.repo.service.ServiceRegistry#getLockService()
*/
public LockService getLockService() public LockService getLockService()
{ {
return (LockService)getService(LOCK_SERVICE); return (LockService)getService(LOCK_SERVICE);
@@ -197,165 +181,122 @@ public class ServiceDescriptorRegistry
return (JobLockService)getService(JOB_LOCK_SERVICE); return (JobLockService)getService(JOB_LOCK_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.repo.service.ServiceRegistry#getDictionaryService()
*/
public DictionaryService getDictionaryService() public DictionaryService getDictionaryService()
{ {
return (DictionaryService)getService(DICTIONARY_SERVICE); return (DictionaryService)getService(DICTIONARY_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getSearchService()
*/
public SearchService getSearchService() public SearchService getSearchService()
{ {
return (SearchService)getService(SEARCH_SERVICE); return (SearchService)getService(SEARCH_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getTransactionService()
*/
public TransactionService getTransactionService() public TransactionService getTransactionService()
{ {
return (TransactionService)getService(TRANSACTION_SERVICE); return (TransactionService)getService(TRANSACTION_SERVICE);
} }
/** @Override
* @deprecated Use {@link TransactionService#getRetryingTransactionHelper()}: ALF-18718
*/
@Deprecated
public RetryingTransactionHelper getRetryingTransactionHelper() public RetryingTransactionHelper getRetryingTransactionHelper()
{ {
TransactionService txnService = (TransactionService) getService(TRANSACTION_SERVICE); TransactionService txnService = (TransactionService) getService(TRANSACTION_SERVICE);
return txnService.getRetryingTransactionHelper(); return txnService.getRetryingTransactionHelper();
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getCopyService()
*/
public CopyService getCopyService() public CopyService getCopyService()
{ {
return (CopyService)getService(COPY_SERVICE); return (CopyService)getService(COPY_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getCheckOutCheckInService()
*/
public CheckOutCheckInService getCheckOutCheckInService() public CheckOutCheckInService getCheckOutCheckInService()
{ {
return (CheckOutCheckInService)getService(COCI_SERVICE); return (CheckOutCheckInService)getService(COCI_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getCategoryService()
*/
public CategoryService getCategoryService() public CategoryService getCategoryService()
{ {
return (CategoryService)getService(CATEGORY_SERVICE); return (CategoryService)getService(CATEGORY_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getNamespaceService()
*/
public NamespaceService getNamespaceService() public NamespaceService getNamespaceService()
{ {
return (NamespaceService)getService(NAMESPACE_SERVICE); return (NamespaceService)getService(NAMESPACE_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getImporterService()
*/
public ImporterService getImporterService() public ImporterService getImporterService()
{ {
return (ImporterService)getService(IMPORTER_SERVICE); return (ImporterService)getService(IMPORTER_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getExporterService()
*/
public ExporterService getExporterService() public ExporterService getExporterService()
{ {
return (ExporterService)getService(EXPORTER_SERVICE); return (ExporterService)getService(EXPORTER_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getRuleService()
*/
public RuleService getRuleService() public RuleService getRuleService()
{ {
return (RuleService)getService(RULE_SERVICE); return (RuleService)getService(RULE_SERVICE);
} }
/* @Override
* (non-Javadoc)
* @see org.alfresco.service.ServiceRegistry#getActionService()
*/
public ActionService getActionService() public ActionService getActionService()
{ {
return (ActionService)getService(ACTION_SERVICE); return (ActionService)getService(ACTION_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getPermissionService()
*/
public PermissionService getPermissionService() public PermissionService getPermissionService()
{ {
return (PermissionService)getService(PERMISSIONS_SERVICE); return (PermissionService)getService(PERMISSIONS_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getAuthorityService()
*/
public AuthorityService getAuthorityService() public AuthorityService getAuthorityService()
{ {
return (AuthorityService)getService(AUTHORITY_SERVICE); return (AuthorityService)getService(AUTHORITY_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getTemplateService()
*/
public TemplateService getTemplateService() public TemplateService getTemplateService()
{ {
return (TemplateService)getService(TEMPLATE_SERVICE); return (TemplateService)getService(TEMPLATE_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getTemplateService()
*/
public FileFolderService getFileFolderService() public FileFolderService getFileFolderService()
{ {
return (FileFolderService)getService(FILE_FOLDER_SERVICE); return (FileFolderService)getService(FILE_FOLDER_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getScriptService()
*/
public ScriptService getScriptService() public ScriptService getScriptService()
{ {
return (ScriptService)getService(SCRIPT_SERVICE); return (ScriptService)getService(SCRIPT_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getWorkflowService()
*/
public WorkflowService getWorkflowService() public WorkflowService getWorkflowService()
{ {
return (WorkflowService)getService(WORKFLOW_SERVICE); return (WorkflowService)getService(WORKFLOW_SERVICE);
} }
/* @Override
* (non-Javadoc)
* @see org.alfresco.service.ServiceRegistry#getNotificationService()
*/
public NotificationService getNotificationService() public NotificationService getNotificationService()
{ {
return (NotificationService)getService(NOTIFICATION_SERVICE); return (NotificationService)getService(NOTIFICATION_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getWorkflowService()
*/
public AuditService getAuditService() public AuditService getAuditService()
{ {
return (AuditService)getService(AUDIT_SERVICE); return (AuditService)getService(AUDIT_SERVICE);
@@ -365,6 +306,7 @@ public class ServiceDescriptorRegistry
* Get the AVMService. * Get the AVMService.
* @return The AVMService or null if there is none. * @return The AVMService or null if there is none.
*/ */
@Override
public AVMService getAVMService() public AVMService getAVMService()
{ {
return (AVMService)getService(AVM_SERVICE); return (AVMService)getService(AVM_SERVICE);
@@ -374,6 +316,7 @@ public class ServiceDescriptorRegistry
* Get the AVMService. * Get the AVMService.
* @return The AVMService or null if there is none. * @return The AVMService or null if there is none.
*/ */
@Override
public AVMService getAVMLockingAwareService() public AVMService getAVMLockingAwareService()
{ {
return (AVMService)getService(AVM_LOCKING_AWARE_SERVICE); return (AVMService)getService(AVM_LOCKING_AWARE_SERVICE);
@@ -383,246 +326,181 @@ public class ServiceDescriptorRegistry
* Get the AVM Sync Service. * Get the AVM Sync Service.
* @return The AVM Sync Service. * @return The AVM Sync Service.
*/ */
@Override
public AVMSyncService getAVMSyncService() public AVMSyncService getAVMSyncService()
{ {
return (AVMSyncService)getService(AVM_SYNC_SERVICE); return (AVMSyncService)getService(AVM_SYNC_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getOwnableService()
*/
public OwnableService getOwnableService() public OwnableService getOwnableService()
{ {
return (OwnableService)getService(OWNABLE_SERVICE); return (OwnableService)getService(OWNABLE_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getPersonService()
*/
public PersonService getPersonService() public PersonService getPersonService()
{ {
return (PersonService)getService(PERSON_SERVICE); return (PersonService)getService(PERSON_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getSiteService()
*/
public SiteService getSiteService() public SiteService getSiteService()
{ {
return (SiteService) getService(SITE_SERVICE); return (SiteService) getService(SITE_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getCrossRepositoryCopyService()
*/
public CrossRepositoryCopyService getCrossRepositoryCopyService() public CrossRepositoryCopyService getCrossRepositoryCopyService()
{ {
return (CrossRepositoryCopyService)getService(CROSS_REPO_COPY_SERVICE); return (CrossRepositoryCopyService)getService(CROSS_REPO_COPY_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getAttributeService()
*/
public AttributeService getAttributeService() public AttributeService getAttributeService()
{ {
return (AttributeService)getService(ATTRIBUTE_SERVICE); return (AttributeService)getService(ATTRIBUTE_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getContentFilterLanguagesService()
*/
public ContentFilterLanguagesService getContentFilterLanguagesService() public ContentFilterLanguagesService getContentFilterLanguagesService()
{ {
return (ContentFilterLanguagesService) getService(CONTENT_FILTER_LANGUAGES_SERVICE); return (ContentFilterLanguagesService) getService(CONTENT_FILTER_LANGUAGES_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getAVMLockingService()
*/
public AVMLockingService getAVMLockingService() public AVMLockingService getAVMLockingService()
{ {
return (AVMLockingService)getService(AVM_LOCKING_SERVICE); return (AVMLockingService)getService(AVM_LOCKING_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getVirtServerRegistry()
*/
public VirtServerRegistry getVirtServerRegistry() public VirtServerRegistry getVirtServerRegistry()
{ {
return (VirtServerRegistry)getService(VIRT_SERVER_REGISTRY); return (VirtServerRegistry)getService(VIRT_SERVER_REGISTRY);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getEditionService()
*/
public EditionService getEditionService() public EditionService getEditionService()
{ {
return (EditionService) getService(EDITION_SERVICE); return (EditionService) getService(EDITION_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getMultilingualContentService()
*/
public MultilingualContentService getMultilingualContentService() public MultilingualContentService getMultilingualContentService()
{ {
return (MultilingualContentService) getService(MULTILINGUAL_CONTENT_SERVICE); return (MultilingualContentService) getService(MULTILINGUAL_CONTENT_SERVICE);
} }
/** @Override
* @see org.alfresco.service.ServiceRegistry#getThumbnailService()
*/
public ThumbnailService getThumbnailService() public ThumbnailService getThumbnailService()
{ {
return (ThumbnailService)getService(THUMBNAIL_SERVICE); return (ThumbnailService)getService(THUMBNAIL_SERVICE);
} }
/** @Override
* @see org.alfresco.service.ServiceRegistry#getTaggingService()
*/
public TaggingService getTaggingService() public TaggingService getTaggingService()
{ {
return (TaggingService)getService(TAGGING_SERVICE); return (TaggingService)getService(TAGGING_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getDeploymentService()
*/
public DeploymentService getDeploymentService() public DeploymentService getDeploymentService()
{ {
return (DeploymentService) getService(DEPLOYMENT_SERVICE); return (DeploymentService) getService(DEPLOYMENT_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getWebProjectService()
*/
public WebProjectService getWebProjectService() public WebProjectService getWebProjectService()
{ {
return (WebProjectService)getService(WEBPROJECT_SERVICE); return (WebProjectService)getService(WEBPROJECT_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getSandboxService()
*/
public SandboxService getSandboxService() public SandboxService getSandboxService()
{ {
return (SandboxService)getService(SANDBOX_SERVICE); return (SandboxService)getService(SANDBOX_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getAssetService()
*/
public AssetService getAssetService() public AssetService getAssetService()
{ {
return (AssetService)getService(ASSET_SERVICE); return (AssetService)getService(ASSET_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getPreviewURIService()
*/
public PreviewURIService getPreviewURIService() public PreviewURIService getPreviewURIService()
{ {
return (PreviewURIService)getService(PREVIEW_URI_SERVICE); return (PreviewURIService)getService(PREVIEW_URI_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getFormService()
*/
public FormService getFormService() public FormService getFormService()
{ {
return (FormService)getService(FORM_SERVICE); return (FormService)getService(FORM_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getRenditionService()
*/
public RenditionService getRenditionService() public RenditionService getRenditionService()
{ {
return (RenditionService)getService(RENDITION_SERVICE); return (RenditionService)getService(RENDITION_SERVICE);
} }
/* @Override
* (non-Javadoc)
* @see org.alfresco.service.ServiceRegistry#getRatingService()
*/
public RatingService getRatingService() public RatingService getRatingService()
{ {
return (RatingService)getService(RATING_SERVICE); return (RatingService)getService(RATING_SERVICE);
} }
/* @Override
* (non-Javadoc)
* @see org.alfresco.service.ServiceRegistry#getNodeLocatorService()
*/
public NodeLocatorService getNodeLocatorService() public NodeLocatorService getNodeLocatorService()
{ {
return (NodeLocatorService)getService(NODE_LOCATOR_SERVICE); return (NodeLocatorService)getService(NODE_LOCATOR_SERVICE);
} }
/* @Override
* (non-Javadoc)
* @see org.alfresco.service.ServiceRegistry#getBlogService()
*/
public BlogService getBlogService() public BlogService getBlogService()
{ {
return (BlogService)getService(BLOG_SERVICE); return (BlogService)getService(BLOG_SERVICE);
} }
/* @Override
* (non-Javadoc)
* @see org.alfresco.service.ServiceRegistry#getCalendarService()
*/
public CalendarService getCalendarService() public CalendarService getCalendarService()
{ {
return (CalendarService)getService(CALENDAR_SERVICE); return (CalendarService)getService(CALENDAR_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getInvitationService()
*/
public InvitationService getInvitationService() public InvitationService getInvitationService()
{ {
return (InvitationService)getService(INVITATION_SERVICE); return (InvitationService)getService(INVITATION_SERVICE);
} }
/* @Override
* (non-Javadoc)
* @see org.alfresco.service.ServiceRegistry#getCMISService()
*/
public CMISServices getCMISService() public CMISServices getCMISService()
{ {
return (CMISServices)getService(CMIS_SERVICE); return (CMISServices)getService(CMIS_SERVICE);
} }
/* @Override
* (non-Javadoc)
* @see org.alfresco.service.ServiceRegistry#getCMISDictionaryService()
*/
public CMISDictionaryService getCMISDictionaryService() public CMISDictionaryService getCMISDictionaryService()
{ {
return (CMISDictionaryService)getService(CMIS_DICTIONARY_SERVICE); return (CMISDictionaryService)getService(CMIS_DICTIONARY_SERVICE);
} }
/* @Override
* (non-Javadoc)
* @see org.alfresco.service.ServiceRegistry#getCMISQueryService()
*/
public CMISQueryService getCMISQueryService() public CMISQueryService getCMISQueryService()
{ {
return (CMISQueryService)getService(CMIS_QUERY_SERVICE); return (CMISQueryService)getService(CMIS_QUERY_SERVICE);
} }
/* @Override
* (non-Javadoc)
* @see org.alfresco.service.ServiceRegistry#getCMISQueryService()
*/
public ImapService getImapService() public ImapService getImapService()
{ {
return (ImapService)getService(IMAP_SERVICE); return (ImapService)getService(IMAP_SERVICE);
} }
/* (non-Javadoc) @Override
* @see org.alfresco.service.ServiceRegistry#getPublicServiceAccessService()
*/
public PublicServiceAccessService getPublicServiceAccessService() public PublicServiceAccessService getPublicServiceAccessService()
{ {
return (PublicServiceAccessService)getService(PUBLIC_SERVICE_ACCESS_SERVICE); return (PublicServiceAccessService)getService(PUBLIC_SERVICE_ACCESS_SERVICE);

View File

@@ -210,7 +210,7 @@ public interface ServiceRegistry
TransactionService getTransactionService(); TransactionService getTransactionService();
/** /**
* @deprecated Since 4.2. Use {@link TransactionService#getRetryingTransactionHelper()}: ALF-18718 * @return a new instance of the {@link RetryingTransactionHelper}
*/ */
@NotAuditable @NotAuditable
RetryingTransactionHelper getRetryingTransactionHelper(); RetryingTransactionHelper getRetryingTransactionHelper();

View File

@@ -29,6 +29,7 @@ import org.alfresco.repo.admin.SysAdminParams;
import org.alfresco.repo.security.authentication.AuthenticationUtil; import org.alfresco.repo.security.authentication.AuthenticationUtil;
import org.alfresco.repo.security.permissions.AccessDeniedException; import org.alfresco.repo.security.permissions.AccessDeniedException;
import org.alfresco.repo.transaction.RetryingTransactionHelper.RetryingTransactionCallback; import org.alfresco.repo.transaction.RetryingTransactionHelper.RetryingTransactionCallback;
import org.alfresco.service.ServiceRegistry;
import org.alfresco.service.cmr.repository.NodeService; import org.alfresco.service.cmr.repository.NodeService;
import org.alfresco.service.cmr.repository.StoreRef; import org.alfresco.service.cmr.repository.StoreRef;
import org.alfresco.service.cmr.security.MutableAuthenticationService; import org.alfresco.service.cmr.security.MutableAuthenticationService;
@@ -258,8 +259,13 @@ public class TransactionServiceImplTest extends TestCase
} }
}; };
// Ensure that we always get a new instance of the RetryingTransactionHelper
assertFalse("Retriers must be new instances", assertFalse("Retriers must be new instances",
transactionService.getRetryingTransactionHelper() == transactionService.getRetryingTransactionHelper()); transactionService.getRetryingTransactionHelper() == transactionService.getRetryingTransactionHelper());
// The same must apply when using the ServiceRegistry (ALF-18718)
ServiceRegistry serviceRegistry = (ServiceRegistry) ctx.getBean(ServiceRegistry.SERVICE_REGISTRY);
assertFalse("Retriers must be new instance when retrieved from ServiceRegistry",
serviceRegistry.getRetryingTransactionHelper() == serviceRegistry.getRetryingTransactionHelper());
transactionService.setAllowWrite(true, vetoName); transactionService.setAllowWrite(true, vetoName);
transactionService.getRetryingTransactionHelper().doInTransaction(callback, true); transactionService.getRetryingTransactionHelper().doInTransaction(callback, true);