* @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;
}
* Set the studyService.
* @param studyService the studyService to set
*/
- public void setStudyService(StudyService studyService) {
+ public void setStudyService(final StudyService studyService) {
_studyService = studyService;
}
* Set the userService.
* @param userService the userService to set
*/
- public void setUserService(UserService userService) {
+ public void setUserService(final UserService userService) {
_userService = userService;
}
}