]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman-Common/src/org/splat/service/ServiceLocatorImpl.java
Salome HOME
The checkin from SALOME operation is updated (ScenarioService.checkin()). Versioning...
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / ServiceLocatorImpl.java
1 /*****************************************************************************
2  * Company         OPEN CASCADE
3  * Application     SIMAN
4  * File            $Id$ 
5  * Creation date   19.10.2012
6  * @author         $Author$
7  * @version        $Revision$
8  * @copyright      OPEN CASCADE 2012
9  *****************************************************************************/
10
11 package org.splat.service; 
12
13 /**
14  * The service locator implementaion. This is a singleton class for providing access to business services.
15  *
16  * @author <a href="mailto:roman.kozlov@opencascade.com">Roman Kozlov (RKV)</a>
17  */
18 @Deprecated
19 public final class ServiceLocatorImpl implements ServiceLocator {
20
21         /**
22          * The Locator instance.
23          */
24         static private ServiceLocator theInstance = new ServiceLocatorImpl();
25
26         /**
27          * Get the locator instance.
28          * @return the locator instance
29          */
30         public static ServiceLocator getInstance() {
31                 return theInstance;
32         }
33         
34         /**
35          * Private constructor because this is a singleton class.
36          */
37         private ServiceLocatorImpl() {
38         }
39
40         /**
41          * Injected study service.
42          */
43         private StudyService _studyService;
44         /**
45          * Injected user service.
46          */
47         private UserService _userService;
48
49         /**
50          * Get the studyService.
51          * @return the studyService
52          */
53         public StudyService getStudyService() {
54                 return _studyService;
55         }
56
57         /**
58          * Set the studyService.
59          * @param studyService the studyService to set
60          */
61         public void setStudyService(final StudyService studyService) {
62                 _studyService = studyService;
63         }
64
65         /**
66          * Get the userService.
67          * @return the userService
68          */
69         public UserService getUserService() {
70                 return _userService;
71         }
72
73         /**
74          * Set the userService.
75          * @param userService the userService to set
76          */
77         public void setUserService(final UserService userService) {
78                 _userService = userService;
79         }
80 }