Search in sources :

Example 1 with RepositoryData

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;
}
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

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