| | |
| | | AnnotationScan.getIntance() ; |
| | | |
| | | //各个协议驱动类扫描自己的功能码注解 |
| | | HashMap<String, AnnotationDriverVo> drivers = ProtocolCache.getDriverMap() ; |
| | | HashMap<String, AnnotationDriverVo> drivers = ProtocolCach.getDriverMap() ; |
| | | Collection<String> colDrivers = drivers.keySet() ; |
| | | StringBuilder totalProtocols = new StringBuilder() ; |
| | | for(String protocolName : colDrivers){ |
| | |
| | | totalProtocols.append(",") ; |
| | | } |
| | | totalProtocols.append(protocolName) ; |
| | | Driver dri = ProtocolCache.getDriver(protocolName) ; |
| | | Driver dri = ProtocolCach.getDriver(protocolName) ; |
| | | if(dri != null){ |
| | | dri.scanAnnotationCode(); |
| | | } |
| | |
| | | */ |
| | | @SuppressWarnings("unused") |
| | | public boolean isOnlyOneProtocol(){ |
| | | HashMap<String, AnnotationDriverVo> drivers = ProtocolCache.getDriverMap() ; |
| | | HashMap<String, AnnotationDriverVo> drivers = ProtocolCach.getDriverMap() ; |
| | | return drivers.size() == 1 ; |
| | | } |
| | | |