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