Search in sources :

Example 1 with FunctionTemplate

use of org.fusesource.camel.component.sap.model.rfc.FunctionTemplate in project quickstarts by jboss-switchyard.

the class FunctionTemplateMetadataProducer method createBookFlightFunctionTemplate.

@Produces
@Named("bookFlightFunctionTemplate")
public FunctionTemplate createBookFlightFunctionTemplate(@Named("importParameterList") List<ListFieldMetaData> importParameterList, @Named("exportParameterList") List<ListFieldMetaData> exportParameterList) {
    FunctionTemplate template = RfcFactory.eINSTANCE.createFunctionTemplate();
    template.setImportParameterList(importParameterList);
    template.setExportParameterList(exportParameterList);
    return template;
}
Also used : FunctionTemplate(org.fusesource.camel.component.sap.model.rfc.FunctionTemplate) Named(javax.inject.Named) Produces(javax.enterprise.inject.Produces)

Example 2 with FunctionTemplate

use of org.fusesource.camel.component.sap.model.rfc.FunctionTemplate 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;
}
Also used : FunctionTemplate(org.fusesource.camel.component.sap.model.rfc.FunctionTemplate) HashMap(java.util.HashMap) RepositoryData(org.fusesource.camel.component.sap.model.rfc.RepositoryData) Named(javax.inject.Named) Produces(javax.enterprise.inject.Produces)

Aggregations

Produces (javax.enterprise.inject.Produces)2 Named (javax.inject.Named)2 FunctionTemplate (org.fusesource.camel.component.sap.model.rfc.FunctionTemplate)2 HashMap (java.util.HashMap)1 RepositoryData (org.fusesource.camel.component.sap.model.rfc.RepositoryData)1