private ILessonService getLessonService() {
if (lessonService == null) {
WebApplicationContext ctx = WebApplicationContextUtils
.getRequiredWebApplicationContext(getServlet().getServletContext());
lessonService = (ILessonService) ctx.getBean("lessonService");
}
return lessonService;
}
java类org.springframework.web.context.support.WebApplicationContextUtils的实例源码
EditLessonIntroAction.java 文件源码
项目:lams
阅读 18
收藏 0
点赞 0
评论 0
EmailNotificationsAction.java 文件源码
项目:lams
阅读 45
收藏 0
点赞 0
评论 0
private IEventNotificationService getEventNotificationService() {
if (eventNotificationService == null) {
WebApplicationContext ctx = WebApplicationContextUtils
.getRequiredWebApplicationContext(getServlet().getServletContext());
eventNotificationService = (IEventNotificationService) ctx.getBean("eventNotificationService");
}
return eventNotificationService;
}
EmailNotificationsAction.java 文件源码
项目:lams
阅读 21
收藏 0
点赞 0
评论 0
private IUserManagementService getUserManagementService() {
if (userManagementService == null) {
WebApplicationContext ctx = WebApplicationContextUtils
.getRequiredWebApplicationContext(getServlet().getServletContext());
userManagementService = (IUserManagementService) ctx.getBean("userManagementService");
}
return userManagementService;
}
EmailNotificationsAction.java 文件源码
项目:lams
阅读 21
收藏 0
点赞 0
评论 0
private IAuditService getAuditService() {
if (auditService == null) {
WebApplicationContext ctx = WebApplicationContextUtils
.getRequiredWebApplicationContext(getServlet().getServletContext());
auditService = (IAuditService) ctx.getBean("auditService");
}
return auditService;
}
OrganisationGroupAction.java 文件源码
项目:lams
阅读 19
收藏 0
点赞 0
评论 0
private IUserManagementService getUserManagementService() {
if (OrganisationGroupAction.userManagementService == null) {
WebApplicationContext ctx = WebApplicationContextUtils
.getRequiredWebApplicationContext(getServlet().getServletContext());
OrganisationGroupAction.userManagementService = (IUserManagementService) ctx
.getBean("userManagementService");
}
return OrganisationGroupAction.userManagementService;
}
OpenSessionInViewFilter.java 文件源码
项目:lams
阅读 22
收藏 0
点赞 0
评论 0
/**
* Look up the SessionFactory that this filter should use.
* <p>The default implementation looks for a bean with the specified name
* in Spring's root application context.
* @return the SessionFactory to use
* @see #getSessionFactoryBeanName
*/
protected SessionFactory lookupSessionFactory() {
if (logger.isDebugEnabled()) {
logger.debug("Using SessionFactory '" + getSessionFactoryBeanName() + "' for OpenSessionInViewFilter");
}
WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext());
return wac.getBean(getSessionFactoryBeanName(), SessionFactory.class);
}
UserManagementService.java 文件源码
项目:lams
阅读 24
收藏 0
点赞 0
评论 0
private IAuditService getAuditService() {
if (UserManagementService.auditService == null) {
WebApplicationContext ctx = WebApplicationContextUtils
.getWebApplicationContext(SessionManager.getServletContext());
UserManagementService.auditService = (IAuditService) ctx.getBean("auditService");
}
return UserManagementService.auditService;
}
MonitoringAction.java 文件源码
项目:lams
阅读 25
收藏 0
点赞 0
评论 0
private ILessonService getLessonService() {
if (MonitoringAction.lessonService == null) {
WebApplicationContext ctx = WebApplicationContextUtils
.getRequiredWebApplicationContext(getServlet().getServletContext());
MonitoringAction.lessonService = (ILessonService) ctx.getBean("lessonService");
}
return MonitoringAction.lessonService;
}
PresenceWebsocketServer.java 文件源码
项目:lams
阅读 24
收藏 0
点赞 0
评论 0
private static IPresenceChatService getPresenceChatService() {
if (PresenceWebsocketServer.presenceChatService == null) {
WebApplicationContext ctx = WebApplicationContextUtils
.getWebApplicationContext(SessionManager.getServletContext());
PresenceWebsocketServer.presenceChatService = (IPresenceChatService) ctx.getBean("presenceChatService");
}
return PresenceWebsocketServer.presenceChatService;
}
ToolContentListAction.java 文件源码
项目:lams
阅读 17
收藏 0
点赞 0
评论 0
private DataSource getDataSource() {
if (ToolContentListAction.dataSource == null) {
WebApplicationContext ctx = WebApplicationContextUtils
.getRequiredWebApplicationContext(getServlet().getServletContext());
ToolContentListAction.dataSource = (DataSource) ctx.getBean("dataSource");
}
return ToolContentListAction.dataSource;
}