Class WeiXin4jContextAwareImpl
- java.lang.Object
-
- com.zone.weixin4j.service.context.WeiXin4jContextAwareImpl
-
- All Implemented Interfaces:
WeiXin4jContextAware
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
public class WeiXin4jContextAwareImpl extends Object implements org.springframework.context.ApplicationContextAware, WeiXin4jContextAware
Created by Yz on 2017/3/15. WeiXin4j上下文
-
-
Constructor Summary
Constructors Constructor Description WeiXin4jContextAwareImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
Map<String,AesToken>
getAesTokenMap()
List<AesToken>
getAesTokens()
org.springframework.context.ApplicationContext
getApplicationContext()
WeixinMessageMatcher
getWeixinMessageMatcher()
static ThreadLocal<WeixinMessageTransfer>
getWeixinMessageTransfer()
void
init()
boolean
isOpenAlwaysResponse()
boolean
isUseDebugMessageHandler()
void
setAesTokenMap(Map<String,AesToken> aesTokenMap)
void
setAesTokens(List<AesToken> aesTokens)
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
setOpenAlwaysResponse(boolean openAlwaysResponse)
void
setTokenGenerater(TokenGenerater tokenGenerater)
void
setUseDebugMessageHandler(boolean useDebugMessageHandler)
void
setWeixinMessageMatcher(WeixinMessageMatcher weixinMessageMatcher)
-
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
isOpenAlwaysResponse
public boolean isOpenAlwaysResponse()
- Specified by:
isOpenAlwaysResponse
in interfaceWeiXin4jContextAware
-
setOpenAlwaysResponse
public void setOpenAlwaysResponse(boolean openAlwaysResponse)
-
isUseDebugMessageHandler
public boolean isUseDebugMessageHandler()
- Specified by:
isUseDebugMessageHandler
in interfaceWeiXin4jContextAware
-
setUseDebugMessageHandler
public void setUseDebugMessageHandler(boolean useDebugMessageHandler)
-
getAesTokens
public List<AesToken> getAesTokens()
- Specified by:
getAesTokens
in interfaceWeiXin4jContextAware
-
setTokenGenerater
public void setTokenGenerater(TokenGenerater tokenGenerater)
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()
- Specified by:
getApplicationContext
in interfaceWeiXin4jContextAware
-
init
public void init()
-
destroy
public void destroy()
-
getWeixinMessageTransfer
public static ThreadLocal<WeixinMessageTransfer> getWeixinMessageTransfer()
-
getAesTokenMap
public Map<String,AesToken> getAesTokenMap()
- Specified by:
getAesTokenMap
in interfaceWeiXin4jContextAware
-
setAesTokenMap
public void setAesTokenMap(Map<String,AesToken> aesTokenMap)
- Specified by:
setAesTokenMap
in interfaceWeiXin4jContextAware
-
getWeixinMessageMatcher
public WeixinMessageMatcher getWeixinMessageMatcher()
- Specified by:
getWeixinMessageMatcher
in interfaceWeiXin4jContextAware
-
setWeixinMessageMatcher
public void setWeixinMessageMatcher(WeixinMessageMatcher weixinMessageMatcher)
- Specified by:
setWeixinMessageMatcher
in interfaceWeiXin4jContextAware
-
-