程序包 com.walker.tcp

类 ActionCallablePostProcessor

java.lang.Object
com.walker.tcp.ActionCallablePostProcessor
所有已实现的接口:
org.springframework.beans.factory.config.BeanPostProcessor

public class ActionCallablePostProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor
集中存放系统定义的所有ProtocolResolver对象。

注意:一定要把默认的回车换行的ProtocolResolver配置在最后面,因为有可能其他特殊前缀的报文也会使用回车换行结尾, 因此如果出现这种情况,也能确保用户自定义的ProtocolResolver会优先被调用。
作者:
时克英
  • 构造器详细资料

    • ActionCallablePostProcessor

      public ActionCallablePostProcessor()
  • 方法详细资料

    • postProcessAfterInitialization

      public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      指定者:
      postProcessAfterInitialization 在接口中 org.springframework.beans.factory.config.BeanPostProcessor
      抛出:
      org.springframework.beans.BeansException
    • getAction

      public static final ActionCallable getAction(String protocolNum)
      根据数据协议编号,查找要处理该业务的action实例。

      参数:
      protocolNum -
      返回:
    • getActionList

      public static final List<ActionCallable> getActionList()
    • setTestActions

      public static final void setTestActions(Map<String,ActionCallable> map)
      测试方法。
      参数:
      map -