There are still a number of places where we look up services through code like:
return (LifeCycleService) Framework.getRuntime().getComponent(LifeCycleServiceImpl.NAME);
All these calls should be replaced by proper service lookup through Framework.getService().
In addition this avoids a synchronization issue on getComponent.
This applies to:
- ActionService
- CommentService
- DirectoryTreeService
- DocumentsListsService
- DublinCoreStorageService
- LifeCycleService
- MimetypeRegistryService
- NXAuditEventsService
- NotificationService
- PluggableAuthenticationService
- PluggableRestletService
- RelationService
- RepositoryService
- SecurityService
- SegmentIOComponent
- TrashManagementService
- UIPermissionService
- UserWorkspaceService
- WebDavService