org.jiucai.appframework.base.spring.helper
类 SpringHelper

java.lang.Object
  继承者 org.jiucai.appframework.base.spring.helper.SpringHelper

public class SpringHelper
extends Object

从 ServletContext 获取spring相关

作者:
zhaidw

构造方法摘要
SpringHelper()
           
 
方法摘要
static org.springframework.context.ApplicationContext getApplicationContext(javax.servlet.http.HttpServletRequest request)
          从 ServletContext 获取 ApplicationContext
static org.springframework.jdbc.core.simple.SimpleJdbcOperations getSimpleJdbcTemplate(javax.servlet.http.HttpServletRequest request)
          获取操作数据的 SimpleJdbcOperations
static org.springframework.jdbc.core.simple.SimpleJdbcOperations getSimpleJdbcTemplate(javax.servlet.http.HttpServletRequest request, String beanId)
          获取操作数据的 指定ID 的 SimpleJdbcOperations
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

SpringHelper

public SpringHelper()
方法详细信息

getApplicationContext

public static org.springframework.context.ApplicationContext getApplicationContext(javax.servlet.http.HttpServletRequest request)
从 ServletContext 获取 ApplicationContext

参数:
request -
返回:

getSimpleJdbcTemplate

public static org.springframework.jdbc.core.simple.SimpleJdbcOperations getSimpleJdbcTemplate(javax.servlet.http.HttpServletRequest request)
获取操作数据的 SimpleJdbcOperations

参数:
request -
返回:

getSimpleJdbcTemplate

public static org.springframework.jdbc.core.simple.SimpleJdbcOperations getSimpleJdbcTemplate(javax.servlet.http.HttpServletRequest request,
                                                                                              String beanId)
获取操作数据的 指定ID 的 SimpleJdbcOperations

参数:
request -
返回:


Copyright © 2013. All Rights Reserved.