|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //各个协议驱动类扫描自己的功能码注解 | 
|---|
|  |  |  | HashMap<String, AnnotationDriverVo> drivers =  ProtocolCache.getDriverMap() ; | 
|---|
|  |  |  | Collection<String> colDrivers = drivers.keySet() ; | 
|---|
|  |  |  | Collection<String> keys = drivers.keySet() ; | 
|---|
|  |  |  | StringBuilder totalProtocols = new StringBuilder() ; | 
|---|
|  |  |  | for(String protocolName : colDrivers){ | 
|---|
|  |  |  | for(String protocolNameVersion : keys){ | 
|---|
|  |  |  | if(!totalProtocols.isEmpty()){ | 
|---|
|  |  |  | totalProtocols.append(",") ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | totalProtocols.append(protocolName) ; | 
|---|
|  |  |  | Driver dri = ProtocolCache.getDriver(protocolName) ; | 
|---|
|  |  |  | totalProtocols.append(protocolNameVersion) ; | 
|---|
|  |  |  | Driver dri = ProtocolCache.getDriver(protocolNameVersion) ; | 
|---|
|  |  |  | if(dri != null){ | 
|---|
|  |  |  | dri.scanAnnotationCode(); | 
|---|
|  |  |  | dri.setNotify(adapter.getSingleRtuInfoNotify(protocolName)); | 
|---|
|  |  |  | dri.setNotify(adapter.getSingleRtuInfoNotify(protocolNameVersion)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(adapter.getConfig().showStartInfo){ | 
|---|