use of javax.enterprise.inject.Produces in project quickstarts by jboss-switchyard.
the class FunctionTemplateMetadataProducer method createImportParameterList.
@Produces
@Named("importParameterList")
private List<ListFieldMetaData> createImportParameterList() {
List<ListFieldMetaData> imports = new ArrayList<ListFieldMetaData>();
ListFieldMetaData custname = RfcFactory.eINSTANCE.createListFieldMetaData();
custname.setName("CUSTNAME");
custname.setType(DataType.CHAR);
custname.setByteLength(25);
custname.setUnicodeByteLength(50);
imports.add(custname);
ListFieldMetaData passform = RfcFactory.eINSTANCE.createListFieldMetaData();
passform.setName("PASSFORM");
passform.setType(DataType.CHAR);
passform.setByteLength(15);
passform.setUnicodeByteLength(30);
imports.add(passform);
ListFieldMetaData passname = RfcFactory.eINSTANCE.createListFieldMetaData();
passname.setName("PASSNAME");
passname.setType(DataType.CHAR);
passname.setByteLength(25);
passname.setUnicodeByteLength(50);
imports.add(passname);
ListFieldMetaData passbirth = RfcFactory.eINSTANCE.createListFieldMetaData();
passbirth.setName("PASSBIRTH");
passbirth.setType(DataType.DATE);
passbirth.setByteLength(8);
passbirth.setUnicodeByteLength(16);
imports.add(passbirth);
ListFieldMetaData flightdate = RfcFactory.eINSTANCE.createListFieldMetaData();
flightdate.setName("FLIGHTDATE");
flightdate.setType(DataType.DATE);
flightdate.setByteLength(8);
flightdate.setUnicodeByteLength(16);
imports.add(flightdate);
ListFieldMetaData travelagencynumber = RfcFactory.eINSTANCE.createListFieldMetaData();
travelagencynumber.setName("TRAVELAGENCYNUMBER");
travelagencynumber.setType(DataType.NUM);
travelagencynumber.setByteLength(8);
travelagencynumber.setUnicodeByteLength(8);
imports.add(travelagencynumber);
ListFieldMetaData destinationFrom = RfcFactory.eINSTANCE.createListFieldMetaData();
destinationFrom.setName("DESTINATION_FROM");
destinationFrom.setType(DataType.CHAR);
destinationFrom.setByteLength(3);
destinationFrom.setUnicodeByteLength(6);
imports.add(destinationFrom);
ListFieldMetaData destinationTo = RfcFactory.eINSTANCE.createListFieldMetaData();
destinationTo.setName("DESTINATION_TO");
destinationTo.setType(DataType.CHAR);
destinationTo.setByteLength(3);
destinationTo.setUnicodeByteLength(6);
imports.add(destinationTo);
return imports;
}
use of javax.enterprise.inject.Produces 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;
}
use of javax.enterprise.inject.Produces in project camel by apache.
the class Application method properties.
@Produces
@ApplicationScoped
@Named("properties")
// "properties" component bean that Camel uses to lookup properties
PropertiesComponent properties(PropertiesParser parser) {
PropertiesComponent component = new PropertiesComponent();
// Use DeltaSpike as configuration source for Camel CDI
component.setPropertiesParser(parser);
return component;
}
use of javax.enterprise.inject.Produces in project camel by apache.
the class Application method properties.
@Produces
@ApplicationScoped
@Named("properties")
// "properties" component bean that Camel uses to lookup properties
PropertiesComponent properties() {
PropertiesComponent component = new PropertiesComponent();
component.setLocation("classpath:application.properties");
return component;
}
use of javax.enterprise.inject.Produces in project camel by apache.
the class Config method properties.
@Produces
@ApplicationScoped
@Named("properties")
PropertiesComponent properties() {
PropertiesComponent component = new PropertiesComponent();
component.setLocation("classpath:jms.properties");
return component;
}
Aggregations