All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bell.mf.repository.MessageFrameHandlerRepository Maven / Gradle / Ivy

There is a newer version: 1.6.3.RELEASE
Show newest version
package com.bell.mf.repository;

import java.lang.reflect.Method;

import com.bell.mf.handler.MessageFrameHandler;
import com.bell.mf.support.repository.HandlerRepository;

/**
 * 保存消息帧处理器的仓库
 * @author bell.zhouxiaobing
 * @since 1.2
 */
public interface MessageFrameHandlerRepository extends HandlerRepository{
	
	/**
	 * 设置消息帧处理器到仓库里
	 * @param messageFrameHandler
	 * @param beanName
	 * @return
	 */
	void setHandler(MessageFrameHandler messageFrameHandler, String beanName);
	
	/**
	 * 根据指令码从仓库里或消息帧处理器
	 * @param commandCode
	 * @return
	 */
	MessageFrameHandler getHandler(String commandCode);
	
	/**
	 * 根据指令码从仓库里获取对应的处理方法
	 * @param commandCode
	 * @return
	 */
	Method getHandlerMethod(String commandCode);
	
	/**
	 * 根据指令码从仓库里获取对应的处理方法的参数名
	 * @param commandCode
	 * @return
	 */
	String[] getHandlerMethodParameterNames(String commandCode);
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy