use of org.fusesource.camel.component.sap.model.rfc.RepositoryData in project quickstarts by jboss-switchyard.
the class RepositoryMetadataProducer method createRepositoryData.
@Produces
@Named("nplRepositoryData")
public RepositoryData createRepositoryData(@Named("bookFlightFunctionTemplate") FunctionTemplate bookFlightFunctionTemplate) {
RepositoryData data = RfcFactory.eINSTANCE.createRepositoryData();
Map<String, FunctionTemplate> templates = new HashMap<String, FunctionTemplate>();
templates.put("BOOK_FLIGHT", bookFlightFunctionTemplate);
data.setFunctionTemplates(templates);
return data;
}
Aggregations