code: protected final void registStaticScript(Class<? extends T> scriptClass)
  	{
  		try {
  			boolean isAbstractOrInterface = Modifier.isAbstract(scriptClass.getModifiers())
  					|| Modifier.isInterface(scriptClass.getModifiers());// 是否是抽象类
  			if(isAbstractOrInterface)
  			{
  				throw new UnsupportedOperationException(scriptClass +"can not newInstance");
  			}
  			T script = scriptClass.newInstance();
  			int code=script.getMessageCode();
  			Class<? extends T> old=staticCodeMap.get(code);
  			staticCodeMap.put(code,scriptClass);
  			if(old==null)
  			{
  				_log.info("regist Static codeScript,code="+code+"(0x"+Integer.toHexString(code)+"),class="+scriptClass);
  			}else
  			{
  				_log.info("regist Static codeScript,code="+code+"(0x"+Integer.toHexString(code)+"),class="+scriptClass+",Override script="+old);
  			}
  		} catch (Exception e) {
  			_log.error(e.getMessage(),e);
  		}
  	}
docs: 注册静态脚本
  @param scriptClass