當前位置: 首頁>>代碼示例>>Java>>正文


Java ValueToReferenceConverterSPI類代碼示例

本文整理匯總了Java中org.apache.taverna.reference.ValueToReferenceConverterSPI的典型用法代碼示例。如果您正苦於以下問題:Java ValueToReferenceConverterSPI類的具體用法?Java ValueToReferenceConverterSPI怎麽用?Java ValueToReferenceConverterSPI使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ValueToReferenceConverterSPI類屬於org.apache.taverna.reference包,在下文中一共展示了ValueToReferenceConverterSPI類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getReferenceService

import org.apache.taverna.reference.ValueToReferenceConverterSPI; //導入依賴的package包/類
private ReferenceService getReferenceService() {
	if (referenceService == null) {
		// Adapted from org.apache.taverna.activities.testutils.ActivityInvoker		
		ReferenceSetServiceImpl referenceSetService = new ReferenceSetServiceImpl();
		referenceService = new ReferenceServiceImpl();
		
		SimpleT2ReferenceGenerator referenceGenerator = new SimpleT2ReferenceGenerator();
		ReferenceSetAugmentorImpl referenceSetAugmentor = new ReferenceSetAugmentorImpl();
		referenceSetAugmentor.setBuilders(getBuilders());
		referenceSetAugmentor.setTranslators(getTranslators());
		referenceSetService.setReferenceSetAugmentor(referenceSetAugmentor);
		
		referenceSetService.setT2ReferenceGenerator(referenceGenerator);
		referenceSetService.setReferenceSetDao(new InMemoryReferenceSetDao());
		referenceService.setReferenceSetService(referenceSetService);
		
		ListServiceImpl listService = new ListServiceImpl();
		listService.setT2ReferenceGenerator(referenceGenerator);		
		listService.setListDao(new InMemoryListDao());
		referenceService.setListService(listService);
		
		ErrorDocumentServiceImpl errorDocumentService = new ErrorDocumentServiceImpl();
		errorDocumentService.setT2ReferenceGenerator(referenceGenerator);
		errorDocumentService.setErrorDao(new InMemoryErrorDocumentDao());
		
		referenceService.setErrorDocumentService(errorDocumentService);
		referenceService.setConverters(serviceLoader(ValueToReferenceConverterSPI.class));
		referenceService.setValueBuilders(serviceLoader(StreamToValueConverterSPI.class));		
	}
	return referenceService;		
	
}
 
開發者ID:apache,項目名稱:incubator-taverna-workbench,代碼行數:33,代碼來源:WorkbenchTest.java

示例2: setConverters

import org.apache.taverna.reference.ValueToReferenceConverterSPI; //導入依賴的package包/類
/**
 * Inject value to reference convertor SPI
 */
public final void setConverters(
		List<ValueToReferenceConverterSPI> converters) {
	this.converters = converters;
}
 
開發者ID:apache,項目名稱:incubator-taverna-engine,代碼行數:8,代碼來源:AbstractReferenceServiceImpl.java

示例3: getConverters

import org.apache.taverna.reference.ValueToReferenceConverterSPI; //導入依賴的package包/類
private static List<ValueToReferenceConverterSPI> getConverters() {
	return getImplementations(ValueToReferenceConverterSPI.class);
}
 
開發者ID:apache,項目名稱:incubator-taverna-engine,代碼行數:4,代碼來源:ActivityInvoker.java


注:本文中的org.apache.taverna.reference.ValueToReferenceConverterSPI類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。