本文整理匯總了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);
}