01: package com.bostech.corporation.component.echo.ui;
02:
03: import java.util.Properties;
04:
05: import com.bostechcorp.cbesb.common.util.custcomponent.BaseCustComponent;
06: import com.bostechcorp.cbesb.common.util.custcomponent.IServiceUnitContext;
07:
08: public class EchoCustomComponent extends BaseCustComponent {
09:
10: public EchoCustomComponent() {
11:
12: super ();
13: bigIconResourceLocation = "Echo32.ico";
14: smallIconResourceLocation = "Echo16.ico";
15: componentURI = "http://cbesb.bostechcorp.com/echo/1.0";
16: name = "Echo";
17: componentName = "ChainbuilderESB-SE-Echo";
18:
19: description = "";
20: vendor = "Bostech Corporation";
21: useDefaultDeploy = true;
22: useDefaultWSDLGenerator = true;
23: useCCSL = true;
24: version = "1.0";
25: providerDefaultMep = DefaultMEP.IN_OUT;
26: consumerDefaultMep = DefaultMEP.IN_OUT;
27: role = Role.PROVIDER;
28:
29: //BaseCustWizard providerWizard1=new BaseCustWizard("EchoWizard","this is the provider wiazrd");
30: //providerWizard1.addProperty(new FileProperty("EchoFile",false,false,"f://Echo",null,true,null));
31: //this.addWizardPage(providerWizard1, Role.PROVIDER);
32:
33: /* Please Modify all the default values of the constructor's parameters
34:
35: public BooleanProperty(String name,
36: boolean readOnly,
37: boolean required,
38: boolean defaultValue)
39: public EnumProperty(String name,
40: boolean readOnly,
41: boolean required,
42: String defaultValue,
43: String[] values,
44: boolean editable)
45: public FileProperty(String name,
46: boolean readOnly,
47: boolean required,
48: String baseFolderName,
49: String fileName,
50: boolean allowNewFile,
51: FolderBrowseStyle folderBrowseStyle)
52: public TextProperty(String name,
53: boolean readOnly,
54: boolean required,
55: String defaultValue)
56: EndPointProperty(String name,
57: boolean readOnly,
58: boolean required)
59: */
60:
61: // ---Provider Pages
62: BaseCustWizard providerWizard1 = new BaseCustWizard("Echo", "");
63: providerWizard1.addProperty(new BooleanProperty(
64: "Output_to_Log", false, true, true));
65: providerWizard1.addProperty(new EnumProperty("Output_Style",
66: false, false, "Detailed", new String[] { "Detailed",
67: "Brief" }, false));
68: this .addWizardPage(providerWizard1, Role.PROVIDER);
69: }
70:
71: @Override
72: public void genDeploymentArtifacts(IServiceUnitContext context) {
73:
74: }
75:
76: @Override
77: public void setComponentProperties(Properties properties) {
78:
79: }
80:
81: @Override
82: public String getEndpointName(Role role, IServiceUnitContext context) {
83: String name = context.getSuName();
84: return name + "_Provider";
85: }
86:
87: @Override
88: public String getServiceName(Role role, IServiceUnitContext context) {
89: String name = context.getSuName();
90: return name + "_Service";
91: }
92: }
|