类 SHApplicationContext

java.lang.Object
com.sh.wf.module.context.Constant
com.sh.wf.module.context.SHApplicationContext
所有已实现的接口:
Serializable, Cloneable

public class SHApplicationContext extends Constant

Description: 全局上下文

Title:首亨软件 - TSS/CRM等

从以下版本开始:
2015年5月21日
另请参阅:
  • 字段详细资料

    • log4j

      protected org.apache.logging.log4j.Logger log4j
  • 方法详细资料

    • getContext

      public static SHApplicationContext getContext()
    • updateExternalDatasoure

      public static void updateExternalDatasoure(DataSource datasource, Class<?> clazz)
      更新外部连接时使用的连接池
      参数:
      datasource -
      clazz -
    • getValue

      public Object getValue(String key)
      获取上下文中的值
      参数:
      key - String
      返回:
      Object
    • putValue

      public void putValue(String key, Object obj)
      存值
      参数:
      key - String
      obj - Object
    • removeByKey

      public void removeByKey(String key)
    • getString

      public String getString(String key, String defaultValue)
      获取字符串
      参数:
      key - String
      defaultValue - 默认值
      返回:
      String
    • getString

      public String getString(String key)
    • getBoolean

      public boolean getBoolean(String key)
    • isContainKey

      public boolean isContainKey(String key)