01: package com.bostechcorp.cbesb.common.util.custcomponent;
02:
03: import com.bostechcorp.cbesb.common.util.custcomponent.BaseCustComponent;
04:
05: public class CustCompExample extends BaseCustComponent {
06:
07: public CustCompExample() {
08: super ();
09: bigIconResourceLocation = "External.ico";
10: smallIconResourceLocation = "External16.ico";
11:
12: name = "email";
13: componentName = "ChainBuilderESB-BC-Email";
14: componentURI = "http://cbesb.bostechcorp.com/wsdl/email/2.0";
15: description = "It is an email component";
16: vendor = "bostech";
17: useDefaultDeploy = true;
18: useDefaultWSDLGenerator = false;
19: useCCSL = true;
20: version = "1.0";
21: consumerDefaultMep = DefaultMEP.IN_ONLY;
22: providerDefaultMep = DefaultMEP.IN_OUT;
23:
24: role = Role.BOTH;
25:
26: BaseCustWizard consumerWizard1 = new BaseCustWizard(
27: "firstWizard", "this is first wiazrd");
28: consumerWizard1.addProperty(new TextProperty("prop1", false,
29: false, "default"));
30: consumerWizard1.addProperty(new TextProperty("prop2", false,
31: false, "default"));
32: this .addWizardPage(consumerWizard1, Role.CONSUMER);
33:
34: BaseCustWizard consumerWizard2 = new BaseCustWizard(
35: "secondWizard", "this is second wiazrd");
36: consumerWizard2.addProperty(new TextProperty("prop3", false,
37: false, "default"));
38: consumerWizard2.addProperty(new TextProperty("prop4", false,
39: false, "default"));
40: this .addWizardPage(consumerWizard2, Role.CONSUMER);
41:
42: BaseCustWizard providerWizard1 = new BaseCustWizard(
43: "firstProviderWizard", "this is first provider wiazrd");
44: providerWizard1.addProperty(new TextProperty("prop5", false,
45: false, "default"));
46: providerWizard1.addProperty(new TextProperty("prop6", false,
47: false, "default"));
48: this.addWizardPage(providerWizard1, Role.PROVIDER);
49:
50: }
51:
52: }
|