类 SaBeanInject

java.lang.Object
cn.dev33.satoken.spring.SaBeanInject

public class SaBeanInject extends Object
注入 Sa-Token 所需要的 Bean
从以下版本开始:
1.34.0
作者:
click33
  • 构造器概要

    构造器
    构造器
    说明
    SaBeanInject(cn.dev33.satoken.log.SaLog log, cn.dev33.satoken.config.SaTokenConfig saTokenConfig)
    组件注入
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    setPathMatcher(org.springframework.util.PathMatcher pathMatcher)
    利用自动注入特性,获取Spring框架内部使用的路由匹配器
    void
    setSaBasicTemplate(cn.dev33.satoken.basic.SaBasicTemplate saBasicTemplate)
    注入 Sa-Token Http Basic 认证模块
    void
    setSaIdTemplate(cn.dev33.satoken.same.SaSameTemplate saSameTemplate)
    注入 Same-Token 模块 Bean
    void
    setSaJsonTemplate(cn.dev33.satoken.json.SaJsonTemplate saJsonTemplate)
    注入自定义的 JSON 转换器 Bean
    void
    setSaSignTemplate(cn.dev33.satoken.sign.SaSignTemplate saSignTemplate)
    注入自定义的 参数签名 Bean
    void
    setSaTemp(cn.dev33.satoken.temp.SaTempInterface saTemp)
    注入临时令牌验证模块 Bean
    void
    setSaTokenContext(cn.dev33.satoken.context.SaTokenContext saTokenContext)
    注入上下文Bean
    void
    setSaTokenContext(cn.dev33.satoken.context.second.SaTokenSecondContextCreator saTokenSecondContextCreator)
    注入二级上下文Bean
    void
    setSaTokenDao(cn.dev33.satoken.dao.SaTokenDao saTokenDao)
    注入持久化Bean
    void
    setSaTokenListener(List<cn.dev33.satoken.listener.SaTokenListener> listenerList)
    注入侦听器Bean
    void
    setStpInterface(cn.dev33.satoken.stp.StpInterface stpInterface)
    注入权限认证Bean
    void
    setStpLogic(cn.dev33.satoken.stp.StpLogic stpLogic)
    注入自定义的 StpLogic

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • SaBeanInject

      public SaBeanInject(@Autowired(required=false) cn.dev33.satoken.log.SaLog log, @Autowired(required=false) cn.dev33.satoken.config.SaTokenConfig saTokenConfig)
      组件注入

      为确保 Log 组件正常打印,必须将 SaLog 和 SaTokenConfig 率先初始化

      参数:
      log - log 对象
      saTokenConfig - 配置对象
  • 方法详细资料

    • setSaTokenDao

      @Autowired(required=false) public void setSaTokenDao(cn.dev33.satoken.dao.SaTokenDao saTokenDao)
      注入持久化Bean
      参数:
      saTokenDao - SaTokenDao对象
    • setStpInterface

      @Autowired(required=false) public void setStpInterface(cn.dev33.satoken.stp.StpInterface stpInterface)
      注入权限认证Bean
      参数:
      stpInterface - StpInterface对象
    • setSaTokenContext

      @Autowired(required=false) public void setSaTokenContext(cn.dev33.satoken.context.SaTokenContext saTokenContext)
      注入上下文Bean
      参数:
      saTokenContext - SaTokenContext对象
    • setSaTokenContext

      @Autowired(required=false) public void setSaTokenContext(cn.dev33.satoken.context.second.SaTokenSecondContextCreator saTokenSecondContextCreator)
      注入二级上下文Bean
      参数:
      saTokenSecondContextCreator - 二级上下文创建器
    • setSaTokenListener

      @Autowired(required=false) public void setSaTokenListener(List<cn.dev33.satoken.listener.SaTokenListener> listenerList)
      注入侦听器Bean
      参数:
      listenerList - 侦听器集合
    • setSaTemp

      @Autowired(required=false) public void setSaTemp(cn.dev33.satoken.temp.SaTempInterface saTemp)
      注入临时令牌验证模块 Bean
      参数:
      saTemp - saTemp对象
    • setSaIdTemplate

      @Autowired(required=false) public void setSaIdTemplate(cn.dev33.satoken.same.SaSameTemplate saSameTemplate)
      注入 Same-Token 模块 Bean
      参数:
      saSameTemplate - saSameTemplate对象
    • setSaBasicTemplate

      @Autowired(required=false) public void setSaBasicTemplate(cn.dev33.satoken.basic.SaBasicTemplate saBasicTemplate)
      注入 Sa-Token Http Basic 认证模块
      参数:
      saBasicTemplate - saBasicTemplate对象
    • setSaJsonTemplate

      @Autowired(required=false) public void setSaJsonTemplate(cn.dev33.satoken.json.SaJsonTemplate saJsonTemplate)
      注入自定义的 JSON 转换器 Bean
      参数:
      saJsonTemplate - JSON 转换器
    • setSaSignTemplate

      @Autowired(required=false) public void setSaSignTemplate(cn.dev33.satoken.sign.SaSignTemplate saSignTemplate)
      注入自定义的 参数签名 Bean
      参数:
      saSignTemplate - 参数签名 Bean
    • setStpLogic

      @Autowired(required=false) public void setStpLogic(cn.dev33.satoken.stp.StpLogic stpLogic)
      注入自定义的 StpLogic
      参数:
      stpLogic - /
    • setPathMatcher

      @Autowired(required=false) @Qualifier("mvcPathMatcher") public void setPathMatcher(org.springframework.util.PathMatcher pathMatcher)
      利用自动注入特性,获取Spring框架内部使用的路由匹配器
      参数:
      pathMatcher - 要设置的 pathMatcher