|  | @ -2,12 +2,9 @@ package com.yihu.hos.rest.common.format;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import com.yihu.hos.rest.models.standard.adapter.AdapterSchemeVersionModel;
 | 
	
		
			
				|  |  | import com.yihu.hos.rest.models.standard.bo.AdapterVersion;
 | 
	
		
			
				|  |  | import com.yihu.hos.rest.services.standard.adapter.*;
 | 
	
		
			
				|  |  | import com.yihu.hos.rest.services.standard.standard.StdDictEntryService;
 | 
	
		
			
				|  |  | import com.yihu.hos.rest.services.standard.standard.StdDictService;
 | 
	
		
			
				|  |  | import com.yihu.hos.web.framework.util.springutil.SpringBeanUtil;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import javax.annotation.Resource;
 | 
	
		
			
				|  |  | import com.yihu.hos.rest.services.standard.adapter.AdapterDictService;
 | 
	
		
			
				|  |  | import com.yihu.hos.rest.services.standard.adapter.AdapterMetadataService;
 | 
	
		
			
				|  |  | import com.yihu.hos.rest.services.standard.adapter.AdapterSchemeVersionService;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | /**
 | 
	
		
			
				|  |  |  * 适配器基类,DAO缓存
 | 
	
	
		
			
				|  | @ -15,20 +12,9 @@ import javax.annotation.Resource;
 | 
	
		
			
				|  |  |  * @created Created by Air on 2015/6/10.
 | 
	
		
			
				|  |  |  */
 | 
	
		
			
				|  |  | public class AdapterBase {
 | 
	
		
			
				|  |  |     @Resource(name = AdapterDatasetService.BEAN_ID)
 | 
	
		
			
				|  |  |     private AdapterDatasetService adapterDatasetService;
 | 
	
		
			
				|  |  |     @Resource(name = AdapterSchemeVersionService.BEAN_ID)
 | 
	
		
			
				|  |  |     private AdapterSchemeVersionService adapterSchemeVersionService;
 | 
	
		
			
				|  |  |     @Resource(name = AdapterMetadataService.BEAN_ID)
 | 
	
		
			
				|  |  |     private AdapterMetadataService adapterMetadataService;
 | 
	
		
			
				|  |  |     @Resource(name = AdapterDictEntryService.BEAN_ID)
 | 
	
		
			
				|  |  |     private AdapterDictEntryService adapterDictEntryService;
 | 
	
		
			
				|  |  |     @Resource(name = AdapterDictService.BEAN_ID)
 | 
	
		
			
				|  |  |     private AdapterDictService adapterDictService;
 | 
	
		
			
				|  |  |     @Resource(name = StdDictEntryService.BEAN_ID )
 | 
	
		
			
				|  |  |     private StdDictEntryService stdDictEntryService;
 | 
	
		
			
				|  |  |     @Resource(name = StdDictService.BEAN_ID )
 | 
	
		
			
				|  |  |     private StdDictService stdDictService;
 | 
	
		
			
				|  |  |     private static AdapterSchemeVersionService adapterSchemeVersionService;
 | 
	
		
			
				|  |  |     private static AdapterMetadataService adapterMetadataService;
 | 
	
		
			
				|  |  |     private static AdapterDictService adapterDictService;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     protected AdapterVersion adapterVersion;
 | 
	
	
		
			
				|  | @ -44,52 +30,27 @@ public class AdapterBase {
 | 
	
		
			
				|  |  |         return adapterVersion;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public AdapterDatasetService getAdapterDatasetService() {
 | 
	
		
			
				|  |  |         if (adapterDatasetService == null) {
 | 
	
		
			
				|  |  |             adapterDatasetService = SpringBeanUtil.getService(AdapterDatasetService.BEAN_ID);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         return adapterDatasetService;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public AdapterSchemeVersionService getAdapterSchemeVersionService() {
 | 
	
		
			
				|  |  |         if (adapterSchemeVersionService == null) {
 | 
	
		
			
				|  |  |             adapterSchemeVersionService = SpringBeanUtil.getService(AdapterSchemeVersionService.BEAN_ID);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     public static AdapterSchemeVersionService getAdapterSchemeVersionService() {
 | 
	
		
			
				|  |  |         return adapterSchemeVersionService;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public AdapterMetadataService getAdapterMetadataService() {
 | 
	
		
			
				|  |  |         if (adapterMetadataService == null) {
 | 
	
		
			
				|  |  |             adapterMetadataService = SpringBeanUtil.getService(AdapterMetadataService.BEAN_ID);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         return adapterMetadataService;
 | 
	
		
			
				|  |  |     public static void setAdapterSchemeVersionService(AdapterSchemeVersionService adapterSchemeVersionService) {
 | 
	
		
			
				|  |  |         AdapterBase.adapterSchemeVersionService = adapterSchemeVersionService;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public AdapterDictService getAdapterDictService() {
 | 
	
		
			
				|  |  |         if (adapterDictService == null) {
 | 
	
		
			
				|  |  |             adapterDictService = SpringBeanUtil.getService(AdapterDictService.BEAN_ID);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         return adapterDictService;
 | 
	
		
			
				|  |  |     public static AdapterMetadataService getAdapterMetadataService() {
 | 
	
		
			
				|  |  |         return adapterMetadataService;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public AdapterDictEntryService getAdapterDictEntryService() {
 | 
	
		
			
				|  |  |         if (adapterDictEntryService == null) {
 | 
	
		
			
				|  |  |             adapterDictEntryService = SpringBeanUtil.getService(AdapterDictEntryService.BEAN_ID);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         return adapterDictEntryService;
 | 
	
		
			
				|  |  |     public static void setAdapterMetadataService(AdapterMetadataService adapterMetadataService) {
 | 
	
		
			
				|  |  |         AdapterBase.adapterMetadataService = adapterMetadataService;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public StdDictEntryService getStdDictEntryService() {
 | 
	
		
			
				|  |  |         if (stdDictEntryService == null) {
 | 
	
		
			
				|  |  |             stdDictEntryService = SpringBeanUtil.getService(StdDictEntryService.BEAN_ID);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         return stdDictEntryService;
 | 
	
		
			
				|  |  |     public static AdapterDictService getAdapterDictService() {
 | 
	
		
			
				|  |  |         return adapterDictService;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public StdDictService getStdDictService() {
 | 
	
		
			
				|  |  |         if (stdDictService == null) {
 | 
	
		
			
				|  |  |             stdDictService = SpringBeanUtil.getService(StdDictService.BEAN_ID);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         return stdDictService;
 | 
	
		
			
				|  |  |     public static void setAdapterDictService(AdapterDictService adapterDictService) {
 | 
	
		
			
				|  |  |         AdapterBase.adapterDictService = adapterDictService;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | }
 |