本文整理汇总了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;
}
示例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;
}
示例3: getConverters
import org.apache.taverna.reference.ValueToReferenceConverterSPI; //导入依赖的package包/类
private static List<ValueToReferenceConverterSPI> getConverters() {
return getImplementations(ValueToReferenceConverterSPI.class);
}