当前位置: 首页>>代码示例>>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;未经允许,请勿转载。