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