Source Code Cross Referenced for EmForgeContextImpl.java in  » Project-Management » EmForce » ru » emdev » EmForge » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Project Management » EmForce » ru.emdev.EmForge 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package ru.emdev.EmForge;
002:
003:        import java.io.Serializable;
004:
005:        import org.apache.commons.logging.Log;
006:        import org.apache.commons.logging.LogFactory;
007:        import org.hibernate.Session;
008:        import org.hibernate.SessionFactory;
009:        import org.springframework.context.ApplicationContext;
010:        import org.springframework.context.ApplicationContextAware;
011:
012:        import ru.emdev.EmForge.security.UserSettingsService;
013:        import ru.emdev.EmForge.util.Helper;
014:
015:        import com.ecyrd.jspwiki.WikiEngine;
016:
017:        /**
018:         * Basic implementation of EmForge Context
019:         */
020:        public class EmForgeContextImpl implements  EmForgeContext,
021:                ApplicationContextAware, Serializable {
022:
023:            private static final long serialVersionUID = 7072162975056293792L;
024:            protected final Log logger = LogFactory.getLog(getClass());
025:
026:            protected String m_applicationPath;
027:            protected String m_appName;
028:            protected UserSettingsService m_userService;
029:            protected ApplicationContext m_appContext;
030:            protected SessionFactory m_sessionFactory;
031:            protected String m_appVersion;
032:            protected boolean m_registerAllowed;
033:
034:            /**
035:             * @param i_applicationPath
036:             */
037:            public void setApplicationPath(String i_applicationPath) {
038:
039:                m_applicationPath = i_applicationPath;
040:            }
041:
042:            /**
043:             * @param i_appName
044:             */
045:            public void setAppName(String i_appName) {
046:
047:                m_appName = i_appName;
048:            }
049:
050:            /**
051:             * Sets a reference to user settings bean to retrieve default user settings. Called by Spring Framework.
052:             * 
053:             * @param i_userSettingsService is a user settings bean to set
054:             */
055:            public void setUserService(UserSettingsService i_userSettingsService) {
056:
057:                m_userService = i_userSettingsService;
058:            }
059:
060:            /**
061:             * @see org.springframework.context.ApplicationContextAware#setApplicationContext(org.springframework.context.ApplicationContext)
062:             */
063:            public void setApplicationContext(ApplicationContext i_appContext) {
064:
065:                m_appContext = i_appContext;
066:            }
067:
068:            /**
069:             * @param i_sessionFactory
070:             */
071:            public void setSessionFactory(SessionFactory i_sessionFactory) {
072:
073:                m_sessionFactory = i_sessionFactory;
074:            }
075:
076:            /**
077:             * @see ru.emdev.EmForge.EmForgeContext#getApplicationPath()
078:             */
079:            public String getApplicationPath() {
080:
081:                return m_applicationPath;
082:            }
083:
084:            /**
085:             * @see ru.emdev.EmForge.EmForgeContext#getUserService()
086:             */
087:            public UserSettingsService getUserService() {
088:
089:                return m_userService;
090:            }
091:
092:            /**
093:             * @see ru.emdev.EmForge.EmForgeContext#getSession()
094:             */
095:            public Session getSession() {
096:
097:                return m_sessionFactory.getCurrentSession();
098:            }
099:
100:            WikiEngine m_wikiEngine = null;
101:
102:            /**
103:             * @see ru.emdev.EmForge.EmForgeContext#getAppName()
104:             */
105:            public String getAppName() {
106:
107:                return m_appName;
108:            }
109:
110:            /**
111:             * @see ru.emdev.EmForge.EmForgeContext#getAppVersion()
112:             */
113:            public String getAppVersion() {
114:
115:                return m_appVersion;
116:            }
117:
118:            /**
119:             * @param i_appVersion
120:             */
121:            public void setAppVersion(String i_appVersion) {
122:
123:                m_appVersion = i_appVersion;
124:            }
125:
126:            /**
127:             * @return
128:             */
129:            public String getPath() {
130:
131:                return Helper.getPath();
132:            }
133:
134:            /**
135:             * @see ru.emdev.EmForge.EmForgeContext#isRegisterAllowed()
136:             */
137:            public boolean isRegisterAllowed() {
138:
139:                return m_registerAllowed;
140:            }
141:
142:            /**
143:             * @param i_registerAllowed
144:             */
145:            public void setRegisterAllowed(boolean i_registerAllowed) {
146:
147:                m_registerAllowed = i_registerAllowed;
148:            }
149:
150:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.