* @author <a href="mailto:roman.kozlov@opencascade.com">Roman Kozlov (RKV)</a>
*/
@Deprecated
-public class ServiceLocatorImpl implements ServiceLocator {
+public final class ServiceLocatorImpl implements ServiceLocator {
/**
* The Locator instance.
*/
- static ServiceLocator theInstance;
+ static private ServiceLocator theInstance = new ServiceLocatorImpl();
/**
* Get the locator instance.
* @return the locator instance
*/
public static ServiceLocator getInstance() {
- if (theInstance == null) {
- theInstance = new ServiceLocatorImpl();
- }
return theInstance;
}
* Injected study service.
*/
private StudyService _studyService;
+ /**
+ * Injected user service.
+ */
+ private UserService _userService;
/**
* Get the studyService.
* Set the studyService.
* @param studyService the studyService to set
*/
- public void setStudyService(StudyService studyService) {
+ public void setStudyService(final StudyService studyService) {
_studyService = studyService;
}
+
+ /**
+ * Get the userService.
+ * @return the userService
+ */
+ public UserService getUserService() {
+ return _userService;
+ }
+
+ /**
+ * Set the userService.
+ * @param userService the userService to set
+ */
+ public void setUserService(final UserService userService) {
+ _userService = userService;
+ }
}