You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(86) |
Dec
(163) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(114) |
Feb
(254) |
Mar
(166) |
Apr
(122) |
May
(131) |
Jun
(59) |
Jul
(201) |
Aug
(85) |
Sep
(80) |
Oct
(64) |
Nov
(103) |
Dec
(36) |
2005 |
Jan
(231) |
Feb
(204) |
Mar
(71) |
Apr
(54) |
May
(50) |
Jun
(120) |
Jul
(17) |
Aug
(124) |
Sep
(75) |
Oct
(154) |
Nov
(37) |
Dec
(143) |
2006 |
Jan
(346) |
Feb
(170) |
Mar
|
Apr
|
May
(273) |
Jun
(113) |
Jul
(427) |
Aug
(570) |
Sep
(212) |
Oct
(550) |
Nov
(348) |
Dec
(314) |
2007 |
Jan
(709) |
Feb
(223) |
Mar
(104) |
Apr
(24) |
May
(11) |
Jun
(3) |
Jul
(5) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Robert L. <rle...@us...> - 2007-02-27 08:28:24
|
Update of /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/metamodel In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv11416/src/ccmtools/generator/java/metamodel Modified Files: ComponentDef.java Log Message: now support "provide" after "configuration complete" Index: ComponentDef.java =================================================================== RCS file: /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/metamodel/ComponentDef.java,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** ComponentDef.java 23 Feb 2007 14:15:57 -0000 1.26 --- ComponentDef.java 27 Feb 2007 08:28:16 -0000 1.27 *************** *** 383,399 **** } Port source = c.getFacet(); ! if (source.getComponent() == null) ! { ! // connect from an outer receptacle ! code.append("ctx.get_connection_"); ! } ! else ! { ! // connect from the facet of an inner component ! code.append(source.getComponent()); ! code.append("_.provide_"); ! } ! code.append(source.getConnector()); ! code.append("()"); code.append(code_tail); list.add(code.toString()); --- 383,387 ---- } Port source = c.getFacet(); ! code.append(getFacetValue(source)); code.append(code_tail); list.add(code.toString()); *************** *** 442,445 **** --- 430,471 ---- } + private static String getFacetValue( Port source ) + { + StringBuilder code = new StringBuilder(); + if (source.getComponent() == null) + { + // connect from an outer receptacle + code.append("ctx.get_connection_"); + } + else + { + // connect from the facet of an inner component + code.append(source.getComponent()); + code.append("_.provide_"); + } + code.append(source.getConnector()); + code.append("()"); + return code.toString(); + } + + public String getAssemblyInitFacetTargetValue( ProvidesDef provides ) + { + String name = provides.getIdentifier(); + for (AssemblyElement e : assembly_.getElements()) + { + if (e instanceof Connection) + { + Connection c = (Connection) e; + Port target = c.getReceptacle(); + if (target.getComponent() == null && target.getConnector().equals(name)) + { + Port source = c.getFacet(); + return getFacetValue(source); + } + } + } + throw new RuntimeException("facet " + name + " is not connected to an inner component"); + } + /*********************************************************************************************** * Client Library Generator Methods |
From: Robert L. <rle...@us...> - 2007-02-27 07:07:28
|
Update of /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/templates/jet In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv12742/src/ccmtools/generator/java/templates/jet Modified Files: ProvidesDefGetMethodAssemplyImplementation.jet Log Message: Java assemblies Index: ProvidesDefGetMethodAssemplyImplementation.jet =================================================================== RCS file: /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/templates/jet/ProvidesDefGetMethodAssemplyImplementation.jet,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ProvidesDefGetMethodAssemplyImplementation.jet 19 Feb 2007 09:09:42 -0000 1.2 --- ProvidesDefGetMethodAssemplyImplementation.jet 27 Feb 2007 07:07:25 -0000 1.3 *************** *** 11,16 **** public <%=provides.getInterface().generateAbsoluteJavaCcmName()%> get_<%=provides.getIdentifier()%>() { ! if(<%=provides.getIdentifier()%>_==null) ! <%=provides.getIdentifier()%>_ = new <%=provides.generateJavaNamespace()%>.<%=provides.getComponent().getIdentifier()%><%=provides.getIdentifier()%>Impl(this); return <%=provides.getIdentifier()%>_; } --- 11,15 ---- public <%=provides.getInterface().generateAbsoluteJavaCcmName()%> get_<%=provides.getIdentifier()%>() { ! <%=provides.getIdentifier()%>_ = new <%=provides.generateJavaNamespace()%>.<%=provides.getComponent().getIdentifier()%><%=provides.getIdentifier()%>Impl(this); return <%=provides.getIdentifier()%>_; } |
From: Robert L. <rle...@us...> - 2007-02-27 07:07:28
|
Update of /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/templates In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv12742/src/ccmtools/generator/java/templates Modified Files: ProvidesDefGetMethodAssemblyImplementationTemplate.java Log Message: Java assemblies Index: ProvidesDefGetMethodAssemblyImplementationTemplate.java =================================================================== RCS file: /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/templates/ProvidesDefGetMethodAssemblyImplementationTemplate.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ProvidesDefGetMethodAssemblyImplementationTemplate.java 19 Feb 2007 09:09:42 -0000 1.2 --- ProvidesDefGetMethodAssemblyImplementationTemplate.java 27 Feb 2007 07:07:25 -0000 1.3 *************** *** 20,30 **** protected final String TEXT_4 = "_;" + NL + "" + NL + " public "; protected final String TEXT_5 = " get_"; ! protected final String TEXT_6 = "()" + NL + " {" + NL + " \tif("; ! protected final String TEXT_7 = "_==null)" + NL + " \t\t"; ! protected final String TEXT_8 = "_ = new "; ! protected final String TEXT_9 = "."; ! protected final String TEXT_10 = "Impl(this);" + NL + " \treturn "; ! protected final String TEXT_11 = "_;" + NL + " }"; ! protected final String TEXT_12 = NL; public String generate(Object argument) --- 20,29 ---- protected final String TEXT_4 = "_;" + NL + "" + NL + " public "; protected final String TEXT_5 = " get_"; ! protected final String TEXT_6 = "()" + NL + " {" + NL + " \t"; ! protected final String TEXT_7 = "_ = new "; ! protected final String TEXT_8 = "."; ! protected final String TEXT_9 = "Impl(this);" + NL + " \treturn "; ! protected final String TEXT_10 = "_;" + NL + " }"; ! protected final String TEXT_11 = NL; public String generate(Object argument) *************** *** 48,61 **** stringBuffer.append(provides.getIdentifier()); stringBuffer.append(TEXT_7); - stringBuffer.append(provides.getIdentifier()); - stringBuffer.append(TEXT_8); stringBuffer.append(provides.generateJavaNamespace()); ! stringBuffer.append(TEXT_9); stringBuffer.append(provides.getComponent().getIdentifier()); stringBuffer.append(provides.getIdentifier()); ! stringBuffer.append(TEXT_10); stringBuffer.append(provides.getIdentifier()); stringBuffer.append(TEXT_11); - stringBuffer.append(TEXT_12); return stringBuffer.toString(); } --- 47,58 ---- stringBuffer.append(provides.getIdentifier()); stringBuffer.append(TEXT_7); stringBuffer.append(provides.generateJavaNamespace()); ! stringBuffer.append(TEXT_8); stringBuffer.append(provides.getComponent().getIdentifier()); stringBuffer.append(provides.getIdentifier()); ! stringBuffer.append(TEXT_9); stringBuffer.append(provides.getIdentifier()); + stringBuffer.append(TEXT_10); stringBuffer.append(TEXT_11); return stringBuffer.toString(); } |
From: Robert L. <rle...@us...> - 2007-02-26 15:49:46
|
Update of /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/templates In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv18212/src/ccmtools/generator/java/templates Modified Files: ComponentDefApplicationClassTemplate.java ComponentDefAssemblyClassTemplate.java Log Message: component implementation class: *) throws CCMException *) assembly: creates all inner components Index: ComponentDefAssemblyClassTemplate.java =================================================================== RCS file: /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/templates/ComponentDefAssemblyClassTemplate.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ComponentDefAssemblyClassTemplate.java 20 Feb 2007 07:23:53 -0000 1.6 --- ComponentDefAssemblyClassTemplate.java 26 Feb 2007 15:49:42 -0000 1.7 *************** *** 31,46 **** protected final String TEXT_14 = " " + NL + "" + NL + " public "; protected final String TEXT_15 = "_Context ctx;" + NL + " " + NL + " " + NL + " public "; ! protected final String TEXT_16 = "Impl()" + NL + " {" + NL + " }" + NL + "" + NL + "" + NL + " /* " + NL + " * Supported interface methods " + NL + " */" + NL + "" + NL + " /** Supported interface attributes */" + NL; protected final String TEXT_17 = NL; ! protected final String TEXT_18 = " " + NL + " " + NL + " " + NL + " /** Supported interface methods */" + NL + " "; protected final String TEXT_19 = NL; ! protected final String TEXT_20 = " " + NL + "" + NL + "" + NL + " /** Component attribute accessor methods */" + NL; protected final String TEXT_21 = NL; ! protected final String TEXT_22 = " " + NL + "" + NL + "" + NL + " /** Facet implementation factory methods */" + NL + " "; protected final String TEXT_23 = NL; ! protected final String TEXT_24 = " " + NL + "" + NL + " /** Component callback methods */" + NL + " " + NL + " public void set_session_context(SessionContext ctx) " + NL + " throws CCMException" + NL + " {" + NL + " this.ctx = ("; ! protected final String TEXT_25 = "_Context)ctx; " + NL + " }" + NL + "" + NL + " public void ccm_activate() " + NL + " throws CCMException" + NL + " {" + NL + " \ttry {" + NL + "\t\t\t// create inner components \t"; ! protected final String TEXT_26 = NL; ! protected final String TEXT_27 = " " + NL + "" + NL + "\t\t\t// setup inner components \t"; protected final String TEXT_28 = NL; protected final String TEXT_29 = " " + NL + "" + NL + "\t\t\t// finish configuration \t"; --- 31,46 ---- protected final String TEXT_14 = " " + NL + "" + NL + " public "; protected final String TEXT_15 = "_Context ctx;" + NL + " " + NL + " " + NL + " public "; ! protected final String TEXT_16 = "Impl()" + NL + " throws CCMException" + NL + " {" + NL + " \ttry {" + NL + "\t\t\t// create inner components \t"; protected final String TEXT_17 = NL; ! protected final String TEXT_18 = " " + NL + " \t} catch(Exception e) {" + NL + " \t\tthrow new CCMException(e.getMessage(), CCMExceptionReason.CREATE_ERROR);" + NL + " \t}" + NL + " }" + NL + "" + NL + "" + NL + " /* " + NL + " * Supported interface methods " + NL + " */" + NL + "" + NL + " /** Supported interface attributes */" + NL; protected final String TEXT_19 = NL; ! protected final String TEXT_20 = " " + NL + " " + NL + " " + NL + " /** Supported interface methods */" + NL + " "; protected final String TEXT_21 = NL; ! protected final String TEXT_22 = " " + NL + "" + NL + "" + NL + " /** Component attribute accessor methods */" + NL; protected final String TEXT_23 = NL; ! protected final String TEXT_24 = " " + NL + "" + NL + "" + NL + " /** Facet implementation factory methods */" + NL + " "; ! protected final String TEXT_25 = NL; ! protected final String TEXT_26 = " " + NL + "" + NL + " /** Component callback methods */" + NL + " " + NL + " public void set_session_context(SessionContext ctx) " + NL + " throws CCMException" + NL + " {" + NL + " this.ctx = ("; ! protected final String TEXT_27 = "_Context)ctx; " + NL + " }" + NL + "" + NL + " public void ccm_activate() " + NL + " throws CCMException" + NL + " {" + NL + " \ttry {" + NL + "\t\t\t// setup inner components \t"; protected final String TEXT_28 = NL; protected final String TEXT_29 = " " + NL + "" + NL + "\t\t\t// finish configuration \t"; *************** *** 112,115 **** --- 112,125 ---- stringBuffer.append(TEXT_16); + for(Iterator i=component.getAssemblyAttributeInitialisation(); i.hasNext();) + { + + stringBuffer.append(TEXT_17); + stringBuffer.append(i.next().toString()); + + } + + stringBuffer.append(TEXT_18); + for(Iterator i = component.getSupports().iterator(); i.hasNext();) { *************** *** 119,123 **** AttributeDef attr = (AttributeDef)j.next(); ! stringBuffer.append(TEXT_17); stringBuffer.append(attr.generateApplicationImplementation()); --- 129,133 ---- AttributeDef attr = (AttributeDef)j.next(); ! stringBuffer.append(TEXT_19); stringBuffer.append(attr.generateApplicationImplementation()); *************** *** 125,129 **** } ! stringBuffer.append(TEXT_18); for(Iterator i = component.getSupports().iterator(); i.hasNext();) --- 135,139 ---- } ! stringBuffer.append(TEXT_20); for(Iterator i = component.getSupports().iterator(); i.hasNext();) *************** *** 134,138 **** OperationDef op = (OperationDef)j.next(); ! stringBuffer.append(TEXT_19); stringBuffer.append(op.generateApplicationImplementation()); --- 144,148 ---- OperationDef op = (OperationDef)j.next(); ! stringBuffer.append(TEXT_21); stringBuffer.append(op.generateApplicationImplementation()); *************** *** 140,144 **** } ! stringBuffer.append(TEXT_20); for(Iterator i = component.getAttributes().iterator(); i.hasNext();) --- 150,154 ---- } ! stringBuffer.append(TEXT_22); for(Iterator i = component.getAttributes().iterator(); i.hasNext();) *************** *** 146,155 **** AttributeDef attr = (AttributeDef)i.next(); ! stringBuffer.append(TEXT_21); stringBuffer.append(attr.generateApplicationImplementation()); } ! stringBuffer.append(TEXT_22); for(Iterator i = component.getFacet().iterator(); i.hasNext();) --- 156,165 ---- AttributeDef attr = (AttributeDef)i.next(); ! stringBuffer.append(TEXT_23); stringBuffer.append(attr.generateApplicationImplementation()); } ! stringBuffer.append(TEXT_24); for(Iterator i = component.getFacet().iterator(); i.hasNext();) *************** *** 157,177 **** ProvidesDef provides = (ProvidesDef)i.next(); ! stringBuffer.append(TEXT_23); stringBuffer.append(provides.generateGetMethodAssemblyImplementation()); } - stringBuffer.append(TEXT_24); - stringBuffer.append(component.generateCcmIdentifier()); - stringBuffer.append(TEXT_25); - - for(Iterator i=component.getAssemblyAttributeInitialisation(); i.hasNext();) - { - stringBuffer.append(TEXT_26); ! stringBuffer.append(i.next().toString()); ! ! } ! stringBuffer.append(TEXT_27); --- 167,177 ---- ProvidesDef provides = (ProvidesDef)i.next(); ! stringBuffer.append(TEXT_25); stringBuffer.append(provides.generateGetMethodAssemblyImplementation()); } stringBuffer.append(TEXT_26); ! stringBuffer.append(component.generateCcmIdentifier()); stringBuffer.append(TEXT_27); Index: ComponentDefApplicationClassTemplate.java =================================================================== RCS file: /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/templates/ComponentDefApplicationClassTemplate.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** ComponentDefApplicationClassTemplate.java 10 Jan 2007 16:19:13 -0000 1.12 --- ComponentDefApplicationClassTemplate.java 26 Feb 2007 15:49:42 -0000 1.13 *************** *** 29,33 **** protected final String TEXT_12 = " " + NL + "" + NL + " public "; protected final String TEXT_13 = "_Context ctx;" + NL + " " + NL + " " + NL + " public "; ! protected final String TEXT_14 = "Impl()" + NL + " {" + NL + " // OPTIONAL: IMPLEMENT ME HERE !" + NL + " }" + NL + "" + NL + "" + NL + " /* " + NL + " * Supported interface methods " + NL + " */" + NL + "" + NL + " /** Supported interface attributes */" + NL; protected final String TEXT_15 = NL; protected final String TEXT_16 = " " + NL + " " + NL + " " + NL + " /** Supported interface methods */" + NL + " "; --- 29,33 ---- protected final String TEXT_12 = " " + NL + "" + NL + " public "; protected final String TEXT_13 = "_Context ctx;" + NL + " " + NL + " " + NL + " public "; ! protected final String TEXT_14 = "Impl()" + NL + " throws CCMException" + NL + " {" + NL + " // OPTIONAL: IMPLEMENT ME HERE !" + NL + " }" + NL + "" + NL + "" + NL + " /* " + NL + " * Supported interface methods " + NL + " */" + NL + "" + NL + " /** Supported interface attributes */" + NL; protected final String TEXT_15 = NL; protected final String TEXT_16 = " " + NL + " " + NL + " " + NL + " /** Supported interface methods */" + NL + " "; |
From: Robert L. <rle...@us...> - 2007-02-26 15:49:46
|
Update of /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/templates/jet In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv18212/src/ccmtools/generator/java/templates/jet Modified Files: ComponentDefAssemblyClass.jet ComponentDefApplicationClass.jet Log Message: component implementation class: *) throws CCMException *) assembly: creates all inner components Index: ComponentDefAssemblyClass.jet =================================================================== RCS file: /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/templates/jet/ComponentDefAssemblyClass.jet,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ComponentDefAssemblyClass.jet 20 Feb 2007 07:23:52 -0000 1.6 --- ComponentDefAssemblyClass.jet 26 Feb 2007 15:49:42 -0000 1.7 *************** *** 69,73 **** --- 69,87 ---- public <%=component.getIdentifier()%>Impl() + throws CCMException { + try { + // create inner components + <% + for(Iterator i=component.getAssemblyAttributeInitialisation(); i.hasNext();) + { + %> + <%=i.next().toString()%> + <% + } + %> + } catch(Exception e) { + throw new CCMException(e.getMessage(), CCMExceptionReason.CREATE_ERROR); + } } *************** *** 148,161 **** { try { - // create inner components - <% - for(Iterator i=component.getAssemblyAttributeInitialisation(); i.hasNext();) - { - %> - <%=i.next().toString()%> - <% - } - %> - // setup inner components <% --- 162,165 ---- Index: ComponentDefApplicationClass.jet =================================================================== RCS file: /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/templates/jet/ComponentDefApplicationClass.jet,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** ComponentDefApplicationClass.jet 10 Jan 2007 16:19:15 -0000 1.11 --- ComponentDefApplicationClass.jet 26 Feb 2007 15:49:42 -0000 1.12 *************** *** 69,72 **** --- 69,73 ---- public <%=component.getIdentifier()%>Impl() + throws CCMException { // OPTIONAL: IMPLEMENT ME HERE ! |
From: Robert L. <rle...@us...> - 2007-02-26 15:30:20
|
Update of /cvsroot/ccmtools/ccmtools/src/templates/CppLocalTemplates In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv10605/src/templates/CppLocalTemplates Modified Files: MInterfaceDef Log Message: bug fix: Interface-Adapter (wrong base class) Index: MInterfaceDef =================================================================== RCS file: /cvsroot/ccmtools/ccmtools/src/templates/CppLocalTemplates/MInterfaceDef,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** MInterfaceDef 13 Feb 2007 10:16:11 -0000 1.25 --- MInterfaceDef 26 Feb 2007 15:30:15 -0000 1.26 *************** *** 69,73 **** class %(Identifier)sAdapter ! : virtual public %(InterfaceCCMName)s { public: --- 69,73 ---- class %(Identifier)sAdapter ! : virtual public %(InterfaceName)s { public: |
From: Robert L. <rle...@us...> - 2007-02-26 15:30:20
|
Update of /cvsroot/ccmtools/ccmtools/src/ccmtools/CppGenerator In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv10605/src/ccmtools/CppGenerator Modified Files: CppLocalGenerator.java Log Message: bug fix: Interface-Adapter (wrong base class) Index: CppLocalGenerator.java =================================================================== RCS file: /cvsroot/ccmtools/ccmtools/src/ccmtools/CppGenerator/CppLocalGenerator.java,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -d -r1.58 -r1.59 *** CppLocalGenerator.java 21 Feb 2007 16:05:57 -0000 1.58 --- CppLocalGenerator.java 26 Feb 2007 15:30:14 -0000 1.59 *************** *** 364,367 **** --- 364,371 ---- dataValue = getLocalCxxNamespace(iface, "::") + "CCM_" + iface.getIdentifier(); } + else if(dataType.equals("InterfaceName")) + { + dataValue = getLocalCxxNamespace(iface, "::") + iface.getIdentifier(); + } else { |
From: Teiniker E. <tei...@us...> - 2007-02-25 10:53:56
|
Update of /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2 In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14346/test/JavaAssembly/prototype2 Added Files: Makefile Test.assembly Test.idl build.xml Log Message: Added second prototype for Java assemblies. --- NEW FILE: Makefile --- DEST_DIR = xxx IDL3_DIR = ${DEST_DIR}/idl3 IDL2_DIR = ${DEST_DIR}/idl2 INCLUDE = -I${IDL3_DIR}/interface -I${IDL3_DIR}/component all: local test: local check clean idl3: Test.idl ccmmodel -validator Test.idl ccmidl -idl3 -o ${IDL3_DIR} Test.idl local: idl3 ccmjava -iface -local -o ${DEST_DIR}/src-gen ${INCLUDE} ${IDL3_DIR}/interface/wamas/Test/*.idl ccmjava -iface -local -o ${DEST_DIR}/src-gen ${INCLUDE} ${IDL3_DIR}/component/wamas/Test/*.idl ccmjava -iface -local -o ${DEST_DIR}/src-gen ${INCLUDE} ${IDL3_DIR}/component/wamas/*.idl ccmjava -app -o ${DEST_DIR}/src ${INCLUDE} ${IDL3_DIR}/component/wamas/Test/*.idl ccmjava -assembly -o ${DEST_DIR}/src ${INCLUDE} Test.assembly ${IDL3_DIR}/component/wamas/*.idl ${IDL3_DIR}/component/wamas/Test/*.idl build: ant -f ./build.xml check: cp impl/Main.java ${DEST_DIR}/src/wamas cp impl/C1i1Impl.java ${DEST_DIR}/src/wamas/Test ant -f ./build.xml bin/runClient clean: # rm -rf ${DEST_DIR} --- NEW FILE: Test.assembly --- module wamas { assembly A3 implements C3 { component Test::C1 comp1; component wamas::Test::C2 comp2; connect comp2.i2 to comp1.i2; connect comp1.i1 to this.i1; connect i3 to comp2.i3; constant comp1.a1 = "Hello World"; constant comp1.a2 = 642; attribute comp2.b = this.b; }; }; // /module wamas --- NEW FILE: build.xml --- <project name="JavaClientLibTest" default="compile"> <property name="dest" location="xxx" /> <property name="idl2" location="${dest}/idl2" /> <property name="src-gen" location="${dest}/src-gen" /> <property name="build" location="${dest}/build" /> <property name="src" location="${dest}/src" /> <path id="compile.classpath"> <pathelement path="${java.class.path}" /> </path> <!-- Create the build directory--> <target name="init" description="" > <mkdir dir="${build}" /> </target> <!-- Compile generated Java files--> <target name="compile" depends="init" description="" > <javac srcdir="${src-gen}:${src}" destdir="${build}" debug="on" source="1.5" target="1.5"> <classpath refid="compile.classpath" /> </javac> </target> <!-- Clean up --> <target name="clean" description="" > <delete dir="${build}" /> </target> </project> --- NEW FILE: Test.idl --- module wamas { module Test { interface I1 { string value(); }; interface I2 { /* empty */ }; interface I3 { /* empty */ }; component C1 { attribute string a1; attribute long a2; provides I1 i1; uses I2 i2; }; home H1 manages C1 { }; component C2 { attribute long b; provides I2 i2; uses I3 i3; }; home H2 manages C2 { }; }; // /module Test component C3 { attribute long b; provides Test::I1 i1; uses Test::I3 i3; }; home H3 manages C3 { }; }; // /module wamas |
From: Teiniker E. <tei...@us...> - 2007-02-25 10:53:56
|
Update of /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/xxx In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14346/test/JavaAssembly/prototype2/xxx Added Files: .cvsignore Log Message: Added second prototype for Java assemblies. --- NEW FILE: .cvsignore --- build |
From: Teiniker E. <tei...@us...> - 2007-02-25 10:53:56
|
Update of /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/bin In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14346/test/JavaAssembly/prototype2/bin Added Files: runClient Log Message: Added second prototype for Java assemblies. --- NEW FILE: runClient --- #!/bin/sh if [ -z "$CCMTOOLS_HOME" ]; then echo "ERROR!" echo "Environment variable CCMTOOLS_HOME not found!" exit fi CLASSPATH=$CCMTOOLS_HOME/lib/ccm-runtime.jar:./xxx/build:$CLASSPATH $JAVA_HOME/bin/java -enableassertions -cp $CLASSPATH wamas.Main |
From: Teiniker E. <tei...@us...> - 2007-02-25 10:53:56
|
Update of /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/xxx/idl3/interface/wamas/Test In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14346/test/JavaAssembly/prototype2/xxx/idl3/interface/wamas/Test Added Files: I1.idl I3.idl I2.idl Log Message: Added second prototype for Java assemblies. --- NEW FILE: I2.idl --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ #ifndef ___WAMAS_TEST_I2__IDL__ #define ___WAMAS_TEST_I2__IDL__ module wamas { module Test { interface I2 { }; }; // /module Test }; // /module wamas #endif /* ___WAMAS_TEST_I2__IDL__ */ --- NEW FILE: I3.idl --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ #ifndef ___WAMAS_TEST_I3__IDL__ #define ___WAMAS_TEST_I3__IDL__ module wamas { module Test { interface I3 { }; }; // /module Test }; // /module wamas #endif /* ___WAMAS_TEST_I3__IDL__ */ --- NEW FILE: I1.idl --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ #ifndef ___WAMAS_TEST_I1__IDL__ #define ___WAMAS_TEST_I1__IDL__ module wamas { module Test { interface I1 { string value(); }; }; // /module Test }; // /module wamas #endif /* ___WAMAS_TEST_I1__IDL__ */ |
From: Teiniker E. <tei...@us...> - 2007-02-25 10:53:56
|
Update of /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/xxx/idl3/component/wamas/Test In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14346/test/JavaAssembly/prototype2/xxx/idl3/component/wamas/Test Added Files: C1.idl C2.idl H2.idl H1.idl Log Message: Added second prototype for Java assemblies. --- NEW FILE: H1.idl --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ #ifndef ___WAMAS_TEST_H1__IDL__ #define ___WAMAS_TEST_H1__IDL__ #include <wamas/Test/C1.idl> module wamas { module Test { home H1 manages ::wamas::Test::C1 { }; }; // /module Test }; // /module wamas #endif /* ___WAMAS_TEST_H1__IDL__ */ --- NEW FILE: C2.idl --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ #ifndef ___WAMAS_TEST_C2__IDL__ #define ___WAMAS_TEST_C2__IDL__ #include <wamas/Test/I2.idl> #include <wamas/Test/I3.idl> module wamas { module Test { component C2 { attribute long b; provides ::wamas::Test::I2 i2; uses ::wamas::Test::I3 i3; }; }; // /module Test }; // /module wamas // This is a hack to make the CppGenerator happy !!! #include <wamas/Test/H2.idl> #endif /* ___WAMAS_TEST_C2__IDL__ */ --- NEW FILE: C1.idl --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ #ifndef ___WAMAS_TEST_C1__IDL__ #define ___WAMAS_TEST_C1__IDL__ #include <wamas/Test/I1.idl> #include <wamas/Test/I2.idl> module wamas { module Test { component C1 { attribute string a1; attribute long a2; provides ::wamas::Test::I1 i1; uses ::wamas::Test::I2 i2; }; }; // /module Test }; // /module wamas // This is a hack to make the CppGenerator happy !!! #include <wamas/Test/H1.idl> #endif /* ___WAMAS_TEST_C1__IDL__ */ --- NEW FILE: H2.idl --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ #ifndef ___WAMAS_TEST_H2__IDL__ #define ___WAMAS_TEST_H2__IDL__ #include <wamas/Test/C2.idl> module wamas { module Test { home H2 manages ::wamas::Test::C2 { }; }; // /module Test }; // /module wamas #endif /* ___WAMAS_TEST_H2__IDL__ */ |
From: Teiniker E. <tei...@us...> - 2007-02-25 10:53:56
|
Update of /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/impl In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14346/test/JavaAssembly/prototype2/impl Added Files: C1i1Impl.java Main.java Log Message: Added second prototype for Java assemblies. --- NEW FILE: Main.java --- package wamas; import java.util.logging.ConsoleHandler; import java.util.logging.Handler; import java.util.logging.Level; import java.util.logging.Logger; import ccmtools.local.ServiceLocator; class Main { public static void main(String[] args) { try { /* * Configure Logger */ Logger logger = Logger.getLogger("test"); logger.setLevel(Level.FINE); Handler handler = new ConsoleHandler(); handler.setLevel(Level.ALL); handler.setFormatter(new ccmtools.utils.SimpleFormatter()); logger.addHandler(handler); ServiceLocator.instance().setLogger(logger); /* * First test case */ H3 home = (H3)H3Deployment.create(); C3 component = home.create(); component.configuration_complete(); // Here we use provide after configuration_complete !!! wamas.Test.I1 c3i1 = component.provide_i1(); System.out.println("C3.b = "+component.b()); System.out.println("C3->I1.value() = "+c3i1.value()); /* * Second test case */ wamas.Test.H1 h1 = (wamas.Test.H1)wamas.Test.H1Deployment.create(); wamas.Test.C1 c1 = h1.create(); c1.a1("second Test"); wamas.Test.I1 c1i1 = c1.provide_i1(); c1.configuration_complete(); System.out.println("C1->I1.value() = "+c1i1.value()); } catch(Exception e) { e.printStackTrace(); } } } --- NEW FILE: C1i1Impl.java --- /** * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * * CCM_I1Impl facet implementation. * * // TODO: WRITE YOUR DESCRIPTION HERE ! * * @author * @version */ package wamas.Test; import Components.CCMException; /** * This class implements a component facet's methods. * * // TODO: WRITE YOUR DESCRIPTION HERE ! * * @author * @version */ public class C1i1Impl implements CCM_I1 { /** Reference to the facet's component implementation */ private C1Impl component; public C1i1Impl(C1Impl component) { this.component = component; } /** Business logic implementations */ public String value() throws CCMException { // TODO: IMPLEMENT ME HERE ! return component.a1(); } } |
From: Teiniker E. <tei...@us...> - 2007-02-25 10:53:56
|
Update of /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/xxx/src-gen/wamas In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14346/test/JavaAssembly/prototype2/xxx/src-gen/wamas Added Files: CCM_H3Implicit.java C3.java H3Deployment.java H3Explicit.java CCM_C3_ContextImpl.java CCM_C3_Context.java C3Adapter.java CCM_H3Explicit.java H3Adapter.java H3.java H3Implicit.java CCM_H3.java CCM_C3.java Log Message: Added second prototype for Java assemblies. --- NEW FILE: H3Adapter.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas; import java.util.logging.Logger; import Components.Assembly; import Components.AssemblyFactory; import Components.CCMException; import Components.CCMObject; import Components.CreateFailure; import Components.RemoveFailure; import ccmtools.local.ServiceLocator; public class H3Adapter implements H3 { private Logger logger = ServiceLocator.instance().getLogger(); private CCM_H3 localInterface; private AssemblyFactory assemblyFactory; protected H3Adapter() { this(null, null); } public H3Adapter(CCM_H3 localInterface) { this(localInterface, null); } public H3Adapter(CCM_H3 localInterface, AssemblyFactory assemblyFactory) { logger.fine("localInterface = " + localInterface + ", " + assemblyFactory); this.localInterface = localInterface; this.assemblyFactory = assemblyFactory; } public C3 create() throws CreateFailure { logger.fine(""); try { CCM_C3 c = (CCM_C3)localInterface.create(); C3 component; if(assemblyFactory != null) { Assembly assembly = assemblyFactory.create(); component = new C3Adapter(c, assembly); assembly.build(component); } else { component = new C3Adapter(c); } return component; } catch(CCMException e) { throw new CreateFailure(); } } public void remove_component(CCMObject component) throws CCMException, RemoveFailure { logger.fine(""); component.remove(); } public CCMObject create_component() throws CCMException, CreateFailure { logger.fine(""); return create(); } } --- NEW FILE: CCM_H3Explicit.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas; public interface CCM_H3Explicit extends Components.HomeExecutorBase { } --- NEW FILE: H3Implicit.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas; import Components.KeylessCCMHome; import Components.CreateFailure; public interface H3Implicit extends KeylessCCMHome { C3 create() throws CreateFailure; } --- NEW FILE: C3.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas; import Components.AlreadyConnected; import Components.CCMObject; import Components.CCMException; import Components.Cookie; import Components.ExceededConnectionLimit; import Components.InvalidConnection; import Components.NoConnection; public interface C3 extends CCMObject { /** Attribute equivalent methods */ int b() throws CCMException; void b(int value) throws CCMException; /** Facet equivalent methods */ wamas.Test.I1 provide_i1(); /** Receptacle equivalent methods */ void connect_i3(wamas.Test.I3 localObj) throws AlreadyConnected, InvalidConnection; wamas.Test.I3 disconnect_i3() throws NoConnection; wamas.Test.I3 get_connection_i3(); } --- NEW FILE: CCM_C3_Context.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas; import Components.NoConnection; public interface CCM_C3_Context extends Components.SessionContext { /** Receptacle access methods */ wamas.Test.I3 get_connection_i3() throws NoConnection; } --- NEW FILE: CCM_C3_ContextImpl.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas; import Components.HomeExecutorBase; import Components.IllegalState; import Components.NoConnection; import java.util.logging.Logger; import ccmtools.local.ServiceLocator; public class CCM_C3_ContextImpl implements wamas.CCM_C3_Context { private Logger logger = ServiceLocator.instance().getLogger(); private C3 component; public CCM_C3_ContextImpl(C3 component) { logger.fine("component = " + component); this.component = component; } /** Receptacle access methods */ public wamas.Test.I3 get_connection_i3() throws NoConnection { logger.fine(""); return component.get_connection_i3(); } /** CCMContext methods */ public HomeExecutorBase get_CCM_home() { logger.fine(""); throw new RuntimeException("Not implemented!"); } /** SessionContext methods */ public Object get_CCM_object() throws IllegalState { logger.fine(""); throw new RuntimeException("Not implemented!"); } } --- NEW FILE: H3Explicit.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas; import Components.CCMHome; public interface H3Explicit extends CCMHome { } --- NEW FILE: CCM_C3.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas; import Components.CCMException; import Components.SessionComponent; public interface CCM_C3 extends SessionComponent { /** Component attribute accessor methods */ int b() throws CCMException; void b(int value) throws CCMException; /** Facet implementation factory methods */ wamas.Test.CCM_I1 get_i1(); } --- NEW FILE: H3.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas; public interface H3 extends H3Explicit, H3Implicit { } --- NEW FILE: CCM_H3Implicit.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas; public interface CCM_H3Implicit { Components.EnterpriseComponent create() throws Components.CCMException; } --- NEW FILE: CCM_H3.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas; public interface CCM_H3 extends CCM_H3Explicit, CCM_H3Implicit { } --- NEW FILE: H3Deployment.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas; import java.util.logging.Logger; import Components.CCMHome; import Components.CCMException; import Components.AssemblyFactory; import Components.HomeFinder; import ccmtools.local.ServiceLocator; public class H3Deployment { /** Default logger instance */ private static Logger logger = ServiceLocator.instance().getLogger(); public static CCMHome create() throws CCMException { logger.fine(""); return new H3Adapter((CCM_H3)H3Factory.create()); } public static CCMHome create(AssemblyFactory factory) throws CCMException { logger.fine("assemblyFactory = " + factory); return new H3Adapter((CCM_H3)H3Factory.create(), factory); } public static void deploy(String name) throws CCMException { logger.fine("name = " + name); HomeFinder.instance().register_home(create(), name); } public static void deploy(String name, AssemblyFactory factory) throws CCMException { logger.fine("name = " + name + ", assemblyFactory = " + factory); HomeFinder.instance().register_home(create(factory), name); } public static void undeploy(String name) { logger.fine("name = " + name); HomeFinder.instance().unregister_home(name); } } --- NEW FILE: C3Adapter.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas; import java.util.logging.Logger; import Components.AlreadyConnected; import Components.Assembly; import Components.CCMException; import Components.CCMHome; import Components.Cookie; import Components.CookieImpl; import Components.CookieRequired; import Components.ExceededConnectionLimit; import Components.InvalidConfiguration; import Components.InvalidConnection; import Components.InvalidName; import Components.NoConnection; import Components.RemoveFailure; import ccmtools.local.ServiceLocator; public class C3Adapter implements C3 { private Logger logger = ServiceLocator.instance().getLogger(); private CCM_C3 localInterface; private CCM_C3_Context ctx; private Assembly assembly; /** Facet adapter references */ private wamas.Test.I1 i1FacetAdapter; /** Receptacle references */ private wamas.Test.I3 i3Receptacle = null; protected C3Adapter() { this(null, null); } public C3Adapter(CCM_C3 localInterface) { this(localInterface, null); } public C3Adapter(CCM_C3 localInterface, Assembly assembly) { logger.fine("localInterface = " + localInterface + ", " + assembly); this.localInterface = localInterface; this.assembly = assembly; } /* * Supported interface methods */ /** Supported interface attributes */ /** Supported interface methods */ /* * Equivalent interface methods */ /** Attribute equivalent methods */ public int b() throws CCMException { int result = localInterface.b(); logger.fine("result = " + result); return result; } public void b(int value) throws CCMException { logger.fine("value = " + value); localInterface.b(value); } /** Facet equivalent methods */ public wamas.Test.I1 provide_i1() { logger.fine(""); if(i1FacetAdapter == null) { i1FacetAdapter = new wamas.Test.I1Adapter(localInterface.get_i1()); } return i1FacetAdapter; } /** Receptacle equivalent methods */ public void connect_i3(wamas.Test.I3 localObj) throws AlreadyConnected, InvalidConnection { logger.fine("obj = " + localObj); if(i3Receptacle != null) { throw new AlreadyConnected(); } else { i3Receptacle = localObj; } } public wamas.Test.I3 disconnect_i3() throws NoConnection { logger.fine(""); if(i3Receptacle == null) { throw new NoConnection(); } else { wamas.Test.I3 f = i3Receptacle; i3Receptacle = null; return f; } } public wamas.Test.I3 get_connection_i3() { logger.fine(""); return i3Receptacle; } /** CCMObject interface methods */ public void configuration_complete() throws InvalidConfiguration { logger.fine(""); ctx = new CCM_C3_ContextImpl(this); try { if(assembly != null) { assembly.configuration_complete(); } localInterface.set_session_context(ctx); localInterface.ccm_activate(); } catch(CCMException e) { throw new InvalidConfiguration(); } } public void remove() throws RemoveFailure { logger.fine(""); try { localInterface.ccm_remove(); if(assembly != null) { assembly.tear_down(); assembly = null; } } catch(CCMException e) { throw new RemoveFailure(); } } public CCMHome get_ccm_home() { throw new RuntimeException("Not implemented!"); } /** Navigation interface methods */ public Object provide_facet(String name) throws InvalidName { logger.fine("name = " + name); if(name == null) { throw new InvalidName(); } else if(name.equals("i1")) { return provide_i1(); } throw new InvalidName(); } /** Receptacle methods */ public Cookie connect(String name, Object obj) throws InvalidName, InvalidConnection, AlreadyConnected, ExceededConnectionLimit { logger.fine("name = " + name + ", obj = " + obj); if(name == null) { throw new InvalidName(); } if(obj == null) { throw new InvalidConnection(); } else if(name.equals("i3")) { connect_i3((wamas.Test.I3) obj); return new CookieImpl(); } else { throw new InvalidName(); } } public void disconnect(String name, Cookie ck) throws InvalidName, InvalidConnection, CookieRequired, NoConnection { logger.fine("name = " + name + ", ck = " + ck ); if(name == null) { throw new InvalidName(); } if(ck == null) { throw new CookieRequired(); } else if(name.equals("i3")) { disconnect_i3(); } else { throw new InvalidName(); } } } |
From: Teiniker E. <tei...@us...> - 2007-02-25 10:53:56
|
Update of /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/xxx/src/wamas In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14346/test/JavaAssembly/prototype2/xxx/src/wamas Added Files: H3Factory.java C3i1Impl.java Main.java H3Impl.java C3Impl.java Log Message: Added second prototype for Java assemblies. --- NEW FILE: H3Factory.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas; import Components.HomeExecutorBase; import Components.CCMException; public class H3Factory { public static HomeExecutorBase create() throws CCMException { return new H3Impl(); } } --- NEW FILE: Main.java --- package wamas; import java.util.logging.ConsoleHandler; import java.util.logging.Handler; import java.util.logging.Level; import java.util.logging.Logger; import ccmtools.local.ServiceLocator; class Main { public static void main(String[] args) { try { /* * Configure Logger */ Logger logger = Logger.getLogger("test"); logger.setLevel(Level.FINE); Handler handler = new ConsoleHandler(); handler.setLevel(Level.ALL); handler.setFormatter(new ccmtools.utils.SimpleFormatter()); logger.addHandler(handler); ServiceLocator.instance().setLogger(logger); /* * First test case */ H3 home = (H3)H3Deployment.create(); C3 component = home.create(); component.configuration_complete(); // Here we use provide after configuration_complete !!! wamas.Test.I1 c3i1 = component.provide_i1(); System.out.println("C3.b = "+component.b()); System.out.println("C3->I1.value() = "+c3i1.value()); /* * Second test case */ wamas.Test.H1 h1 = (wamas.Test.H1)wamas.Test.H1Deployment.create(); wamas.Test.C1 c1 = h1.create(); c1.a1("second Test"); wamas.Test.I1 c1i1 = c1.provide_i1(); c1.configuration_complete(); System.out.println("C1->I1.value() = "+c1i1.value()); } catch(Exception e) { e.printStackTrace(); } } } --- NEW FILE: C3Impl.java --- /** * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * * CCM_C3 component business logic. * */ package wamas; import Components.CCMException; import Components.CCMExceptionReason; import Components.SessionContext; /** * This class implements component equivalent and supported interfaces * as well as component attributes. */ public class C3Impl implements CCM_C3 { /** Supported interface attribute variables */ /** Component attribute variables */ private int b_; private wamas.Test.C2 comp2_; private wamas.Test.C1 comp1_; public CCM_C3_Context ctx; public C3Impl() throws CCMException //!!!!! { //!!!!!!!! try { // create inner components comp2_ = ((wamas.Test.H2)wamas.Test.H2Deployment.create()).create(); comp1_ = ((wamas.Test.H1)wamas.Test.H1Deployment.create()).create(); // set component attributes comp1_.a1("Hello World"); comp1_.a2(642); comp2_.b(this.b_); } catch(Exception e) { e.printStackTrace(); throw new CCMException(e.getMessage(), CCMExceptionReason.CREATE_ERROR); } //!!!!!!! } /* * Supported interface methods */ /** Supported interface attributes */ /** Supported interface methods */ /** Component attribute accessor methods */ public int b() throws CCMException { return this.b_; } public void b(int value) throws CCMException { this.b_ = value; } /** Facet implementation factory methods */ private wamas.C3i1Impl i1_; public wamas.Test.CCM_I1 get_i1() { //!!!!!!!! // Here we don't need to provide a singleton behavior (it's done by the corresponding adapter) i1_ = new wamas.C3i1Impl(this); // Set facet implementation delegation target i1_.target = comp1_.provide_i1(); //!!!!!!!! return i1_; } /** Component callback methods */ public void set_session_context(SessionContext ctx) throws CCMException { this.ctx = (CCM_C3_Context)ctx; try { // Connect components // Note that connections must be performed here, because we need access to // the ctx object. comp1_.connect_i2(comp2_.provide_i2()); comp2_.connect_i3(this.ctx.get_connection_i3()); // finish configuration comp2_.configuration_complete(); comp1_.configuration_complete(); } catch(Exception e) { throw new CCMException(e.getMessage(), CCMExceptionReason.CREATE_ERROR); } } public void ccm_activate() throws CCMException { } public void ccm_passivate() throws CCMException { // Who calls this method? // A pretty cool session container would...!!! } public void ccm_remove() throws CCMException { try { comp2_.remove(); comp1_.remove(); } catch(Exception e) { throw new CCMException(e.getMessage(), CCMExceptionReason.REMOVE_ERROR); } } } --- NEW FILE: H3Impl.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * * H3 Implementation * * // TODO: WRITE YOUR DESCRIPTION HERE! * * @author * @version */ package wamas; import Components.CCMException; import Components.EnterpriseComponent; /** * This class implements a component home's attributes and factory methods. * * // TODO: WRITE YOUR DESCRIPTION HERE ! * * @author * @version */ public class H3Impl implements CCM_H3 { public H3Impl() { // OPTIONAL: IMPLEMENT ME HERE ! } public EnterpriseComponent create() throws CCMException { return (EnterpriseComponent) new C3Impl(); } } --- NEW FILE: C3i1Impl.java --- /** * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * * CCM_I1Impl facet implementation. * */ package wamas; import Components.CCMException; import wamas.Test.CCM_I1; import wamas.Test.I1; /** * This class implements a component facet's methods. * */ public class C3i1Impl implements CCM_I1 { /** Reference to the facet's component implementation */ private C3Impl component; /** the facet of the inner component we delegate to */ wamas.Test.I1 target; public C3i1Impl( C3Impl component) { this.component = component; } /** Business logic implementations */ public String value() throws CCMException { return this.target.value(); } } |
From: Teiniker E. <tei...@us...> - 2007-02-25 10:53:56
|
Update of /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/xxx/src/wamas/Test In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14346/test/JavaAssembly/prototype2/xxx/src/wamas/Test Added Files: C2Impl.java H2Factory.java H1Impl.java H2Impl.java C1i1Impl.java C1Impl.java H1Factory.java C2i2Impl.java Log Message: Added second prototype for Java assemblies. --- NEW FILE: H2Factory.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.HomeExecutorBase; import Components.CCMException; public class H2Factory { public static HomeExecutorBase create() throws CCMException { return new H2Impl(); } } --- NEW FILE: H1Impl.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * * H1 Implementation * * // TODO: WRITE YOUR DESCRIPTION HERE! * * @author * @version */ package wamas.Test; import Components.CCMException; import Components.EnterpriseComponent; /** * This class implements a component home's attributes and factory methods. * * // TODO: WRITE YOUR DESCRIPTION HERE ! * * @author * @version */ public class H1Impl implements CCM_H1 { public H1Impl() { // OPTIONAL: IMPLEMENT ME HERE ! } public EnterpriseComponent create() throws CCMException { return (EnterpriseComponent) new C1Impl(); } } --- NEW FILE: C2i2Impl.java --- /** * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * * CCM_I2Impl facet implementation. * * // TODO: WRITE YOUR DESCRIPTION HERE ! * * @author * @version */ package wamas.Test; import Components.CCMException; /** * This class implements a component facet's methods. * * // TODO: WRITE YOUR DESCRIPTION HERE ! * * @author * @version */ public class C2i2Impl implements CCM_I2 { /** Reference to the facet's component implementation */ private C2Impl component; public C2i2Impl(C2Impl component) { this.component = component; } /** Business logic implementations */ } --- NEW FILE: C1i1Impl.java --- /** * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * * CCM_I1Impl facet implementation. * * // TODO: WRITE YOUR DESCRIPTION HERE ! * * @author * @version */ package wamas.Test; import Components.CCMException; /** * This class implements a component facet's methods. * * // TODO: WRITE YOUR DESCRIPTION HERE ! * * @author * @version */ public class C1i1Impl implements CCM_I1 { /** Reference to the facet's component implementation */ private C1Impl component; public C1i1Impl(C1Impl component) { this.component = component; } /** Business logic implementations */ public String value() throws CCMException { // TODO: IMPLEMENT ME HERE ! return component.a1(); } } --- NEW FILE: H2Impl.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * * H2 Implementation * * // TODO: WRITE YOUR DESCRIPTION HERE! * * @author * @version */ package wamas.Test; import Components.CCMException; import Components.EnterpriseComponent; /** * This class implements a component home's attributes and factory methods. * * // TODO: WRITE YOUR DESCRIPTION HERE ! * * @author * @version */ public class H2Impl implements CCM_H2 { public H2Impl() { // OPTIONAL: IMPLEMENT ME HERE ! } public EnterpriseComponent create() throws CCMException { return (EnterpriseComponent) new C2Impl(); } } --- NEW FILE: C1Impl.java --- /** * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * * CCM_C1 component business logic. * * // TODO: WRITE YOUR DESCRIPTION HERE ! * * @author * @version */ package wamas.Test; import Components.CCMException; import Components.SessionContext; /** * This class implements component equivalent and supported interfaces * as well as component attributes. * Additionally, session component callback methods must be implemented. * * // TODO: WRITE YOUR DESCRIPTION HERE ! * * @author * @version */ public class C1Impl implements CCM_C1 { /** Supported interface attribute variables */ /** Component attribute variables */ private String a1_; private int a2_; public CCM_C1_Context ctx; public C1Impl() { // OPTIONAL: IMPLEMENT ME HERE ! } /* * Supported interface methods */ /** Supported interface attributes */ /** Supported interface methods */ /** Component attribute accessor methods */ public String a1() throws CCMException { return this.a1_; } public void a1(String value) throws CCMException { this.a1_ = value; } public int a2() throws CCMException { return this.a2_; } public void a2(int value) throws CCMException { this.a2_ = value; } /** Facet implementation factory methods */ public wamas.Test.CCM_I1 get_i1() { return new wamas.Test.C1i1Impl(this); } /** Component callback methods */ public void set_session_context(SessionContext ctx) throws CCMException { this.ctx = (CCM_C1_Context)ctx; } public void ccm_activate() throws CCMException { // OPTIONAL: IMPLEMENT ME HERE ! } public void ccm_passivate() throws CCMException { // OPTIONAL: IMPLEMENT ME HERE ! } public void ccm_remove() throws CCMException { // OPTIONAL: IMPLEMENT ME HERE ! } } --- NEW FILE: C2Impl.java --- /** * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * * CCM_C2 component business logic. * * // TODO: WRITE YOUR DESCRIPTION HERE ! * * @author * @version */ package wamas.Test; import Components.CCMException; import Components.SessionContext; /** * This class implements component equivalent and supported interfaces * as well as component attributes. * Additionally, session component callback methods must be implemented. * * // TODO: WRITE YOUR DESCRIPTION HERE ! * * @author * @version */ public class C2Impl implements CCM_C2 { /** Supported interface attribute variables */ /** Component attribute variables */ private int b_; public CCM_C2_Context ctx; public C2Impl() { // OPTIONAL: IMPLEMENT ME HERE ! } /* * Supported interface methods */ /** Supported interface attributes */ /** Supported interface methods */ /** Component attribute accessor methods */ public int b() throws CCMException { return this.b_; } public void b(int value) throws CCMException { this.b_ = value; } /** Facet implementation factory methods */ public wamas.Test.CCM_I2 get_i2() { return new wamas.Test.C2i2Impl(this); } /** Component callback methods */ public void set_session_context(SessionContext ctx) throws CCMException { this.ctx = (CCM_C2_Context)ctx; } public void ccm_activate() throws CCMException { // OPTIONAL: IMPLEMENT ME HERE ! } public void ccm_passivate() throws CCMException { // OPTIONAL: IMPLEMENT ME HERE ! } public void ccm_remove() throws CCMException { // OPTIONAL: IMPLEMENT ME HERE ! } } --- NEW FILE: H1Factory.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.HomeExecutorBase; import Components.CCMException; public class H1Factory { public static HomeExecutorBase create() throws CCMException { return new H1Impl(); } } |
From: Teiniker E. <tei...@us...> - 2007-02-25 10:53:56
|
Update of /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/xxx/idl3/component/wamas In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14346/test/JavaAssembly/prototype2/xxx/idl3/component/wamas Added Files: C3.idl H3.idl Log Message: Added second prototype for Java assemblies. --- NEW FILE: H3.idl --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ #ifndef ___WAMAS_H3__IDL__ #define ___WAMAS_H3__IDL__ #include <wamas/C3.idl> module wamas { home H3 manages ::wamas::C3 { }; }; // /module wamas #endif /* ___WAMAS_H3__IDL__ */ --- NEW FILE: C3.idl --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ #ifndef ___WAMAS_C3__IDL__ #define ___WAMAS_C3__IDL__ #include <wamas/Test/I1.idl> #include <wamas/Test/I3.idl> module wamas { component C3 { attribute long b; provides ::wamas::Test::I1 i1; uses ::wamas::Test::I3 i3; }; }; // /module wamas // This is a hack to make the CppGenerator happy !!! #include <wamas/H3.idl> #endif /* ___WAMAS_C3__IDL__ */ |
Update of /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/xxx/src-gen/wamas/Test In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14346/test/JavaAssembly/prototype2/xxx/src-gen/wamas/Test Added Files: H2.java C1.java H2Implicit.java CCM_C1_ContextImpl.java H1Explicit.java CCM_C2_Context.java I3Adapter.java CCM_I1.java H2Explicit.java H1Implicit.java H1Adapter.java I2.java CCM_C1_Context.java C1Adapter.java C2Adapter.java CCM_I3.java CCM_C2.java CCM_H2.java CCM_H1Explicit.java CCM_H2Explicit.java H2Deployment.java CCM_C2_ContextImpl.java CCM_H2Implicit.java I1Adapter.java I1.java H2Adapter.java I2Adapter.java CCM_H1.java CCM_H1Implicit.java H1Deployment.java CCM_I2.java I3.java C2.java H1.java CCM_C1.java Log Message: Added second prototype for Java assemblies. --- NEW FILE: CCM_C2.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.CCMException; import Components.SessionComponent; public interface CCM_C2 extends SessionComponent { /** Component attribute accessor methods */ int b() throws CCMException; void b(int value) throws CCMException; /** Facet implementation factory methods */ wamas.Test.CCM_I2 get_i2(); } --- NEW FILE: C2.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.AlreadyConnected; import Components.CCMObject; import Components.CCMException; import Components.Cookie; import Components.ExceededConnectionLimit; import Components.InvalidConnection; import Components.NoConnection; public interface C2 extends CCMObject { /** Attribute equivalent methods */ int b() throws CCMException; void b(int value) throws CCMException; /** Facet equivalent methods */ wamas.Test.I2 provide_i2(); /** Receptacle equivalent methods */ void connect_i3(wamas.Test.I3 localObj) throws AlreadyConnected, InvalidConnection; wamas.Test.I3 disconnect_i3() throws NoConnection; wamas.Test.I3 get_connection_i3(); } --- NEW FILE: C2Adapter.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import java.util.logging.Logger; import Components.AlreadyConnected; import Components.Assembly; import Components.CCMException; import Components.CCMHome; import Components.Cookie; import Components.CookieImpl; import Components.CookieRequired; import Components.ExceededConnectionLimit; import Components.InvalidConfiguration; import Components.InvalidConnection; import Components.InvalidName; import Components.NoConnection; import Components.RemoveFailure; import ccmtools.local.ServiceLocator; public class C2Adapter implements C2 { private Logger logger = ServiceLocator.instance().getLogger(); private CCM_C2 localInterface; private CCM_C2_Context ctx; private Assembly assembly; /** Facet adapter references */ private wamas.Test.I2 i2FacetAdapter; /** Receptacle references */ private wamas.Test.I3 i3Receptacle = null; protected C2Adapter() { this(null, null); } public C2Adapter(CCM_C2 localInterface) { this(localInterface, null); } public C2Adapter(CCM_C2 localInterface, Assembly assembly) { logger.fine("localInterface = " + localInterface + ", " + assembly); this.localInterface = localInterface; this.assembly = assembly; } /* * Supported interface methods */ /** Supported interface attributes */ /** Supported interface methods */ /* * Equivalent interface methods */ /** Attribute equivalent methods */ public int b() throws CCMException { int result = localInterface.b(); logger.fine("result = " + result); return result; } public void b(int value) throws CCMException { logger.fine("value = " + value); localInterface.b(value); } /** Facet equivalent methods */ public wamas.Test.I2 provide_i2() { logger.fine(""); if(i2FacetAdapter == null) { i2FacetAdapter = new wamas.Test.I2Adapter(localInterface.get_i2()); } return i2FacetAdapter; } /** Receptacle equivalent methods */ public void connect_i3(wamas.Test.I3 localObj) throws AlreadyConnected, InvalidConnection { logger.fine("obj = " + localObj); if(i3Receptacle != null) { throw new AlreadyConnected(); } else { i3Receptacle = localObj; } } public wamas.Test.I3 disconnect_i3() throws NoConnection { logger.fine(""); if(i3Receptacle == null) { throw new NoConnection(); } else { wamas.Test.I3 f = i3Receptacle; i3Receptacle = null; return f; } } public wamas.Test.I3 get_connection_i3() { logger.fine(""); return i3Receptacle; } /** CCMObject interface methods */ public void configuration_complete() throws InvalidConfiguration { logger.fine(""); ctx = new CCM_C2_ContextImpl(this); try { if(assembly != null) { assembly.configuration_complete(); } localInterface.set_session_context(ctx); localInterface.ccm_activate(); } catch(CCMException e) { throw new InvalidConfiguration(); } } public void remove() throws RemoveFailure { logger.fine(""); try { localInterface.ccm_remove(); if(assembly != null) { assembly.tear_down(); assembly = null; } } catch(CCMException e) { throw new RemoveFailure(); } } public CCMHome get_ccm_home() { throw new RuntimeException("Not implemented!"); } /** Navigation interface methods */ public Object provide_facet(String name) throws InvalidName { logger.fine("name = " + name); if(name == null) { throw new InvalidName(); } else if(name.equals("i2")) { return provide_i2(); } throw new InvalidName(); } /** Receptacle methods */ public Cookie connect(String name, Object obj) throws InvalidName, InvalidConnection, AlreadyConnected, ExceededConnectionLimit { logger.fine("name = " + name + ", obj = " + obj); if(name == null) { throw new InvalidName(); } if(obj == null) { throw new InvalidConnection(); } else if(name.equals("i3")) { connect_i3((wamas.Test.I3) obj); return new CookieImpl(); } else { throw new InvalidName(); } } public void disconnect(String name, Cookie ck) throws InvalidName, InvalidConnection, CookieRequired, NoConnection { logger.fine("name = " + name + ", ck = " + ck ); if(name == null) { throw new InvalidName(); } if(ck == null) { throw new CookieRequired(); } else if(name.equals("i3")) { disconnect_i3(); } else { throw new InvalidName(); } } } --- NEW FILE: I3.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.CCMException; /** * Java interface declaration (based on the corresponding IDL interface). */ public interface I3 { } --- NEW FILE: CCM_C1.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.CCMException; import Components.SessionComponent; public interface CCM_C1 extends SessionComponent { /** Component attribute accessor methods */ String a1() throws CCMException; void a1(String value) throws CCMException; int a2() throws CCMException; void a2(int value) throws CCMException; /** Facet implementation factory methods */ wamas.Test.CCM_I1 get_i1(); } --- NEW FILE: I1.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.CCMException; /** * Java interface declaration (based on the corresponding IDL interface). */ public interface I1 { String value () throws CCMException; } --- NEW FILE: H1Adapter.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import java.util.logging.Logger; import Components.Assembly; import Components.AssemblyFactory; import Components.CCMException; import Components.CCMObject; import Components.CreateFailure; import Components.RemoveFailure; import ccmtools.local.ServiceLocator; public class H1Adapter implements H1 { private Logger logger = ServiceLocator.instance().getLogger(); private CCM_H1 localInterface; private AssemblyFactory assemblyFactory; protected H1Adapter() { this(null, null); } public H1Adapter(CCM_H1 localInterface) { this(localInterface, null); } public H1Adapter(CCM_H1 localInterface, AssemblyFactory assemblyFactory) { logger.fine("localInterface = " + localInterface + ", " + assemblyFactory); this.localInterface = localInterface; this.assemblyFactory = assemblyFactory; } public C1 create() throws CreateFailure { logger.fine(""); try { CCM_C1 c = (CCM_C1)localInterface.create(); C1 component; if(assemblyFactory != null) { Assembly assembly = assemblyFactory.create(); component = new C1Adapter(c, assembly); assembly.build(component); } else { component = new C1Adapter(c); } return component; } catch(CCMException e) { throw new CreateFailure(); } } public void remove_component(CCMObject component) throws CCMException, RemoveFailure { logger.fine(""); component.remove(); } public CCMObject create_component() throws CCMException, CreateFailure { logger.fine(""); return create(); } } --- NEW FILE: C1.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.AlreadyConnected; import Components.CCMObject; import Components.CCMException; import Components.Cookie; import Components.ExceededConnectionLimit; import Components.InvalidConnection; import Components.NoConnection; public interface C1 extends CCMObject { /** Attribute equivalent methods */ String a1() throws CCMException; void a1(String value) throws CCMException; int a2() throws CCMException; void a2(int value) throws CCMException; /** Facet equivalent methods */ wamas.Test.I1 provide_i1(); /** Receptacle equivalent methods */ void connect_i2(wamas.Test.I2 localObj) throws AlreadyConnected, InvalidConnection; wamas.Test.I2 disconnect_i2() throws NoConnection; wamas.Test.I2 get_connection_i2(); } --- NEW FILE: H1.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface H1 extends H1Explicit, H1Implicit { } --- NEW FILE: H1Deployment.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import java.util.logging.Logger; import Components.CCMHome; import Components.CCMException; import Components.AssemblyFactory; import Components.HomeFinder; import ccmtools.local.ServiceLocator; public class H1Deployment { /** Default logger instance */ private static Logger logger = ServiceLocator.instance().getLogger(); public static CCMHome create() throws CCMException { logger.fine(""); return new H1Adapter((CCM_H1)H1Factory.create()); } public static CCMHome create(AssemblyFactory factory) throws CCMException { logger.fine("assemblyFactory = " + factory); return new H1Adapter((CCM_H1)H1Factory.create(), factory); } public static void deploy(String name) throws CCMException { logger.fine("name = " + name); HomeFinder.instance().register_home(create(), name); } public static void deploy(String name, AssemblyFactory factory) throws CCMException { logger.fine("name = " + name + ", assemblyFactory = " + factory); HomeFinder.instance().register_home(create(factory), name); } public static void undeploy(String name) { logger.fine("name = " + name); HomeFinder.instance().unregister_home(name); } } --- NEW FILE: I1Adapter.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import java.util.logging.Logger; import Components.CCMException; import ccmtools.local.ServiceLocator; public class I1Adapter implements I1 { private Logger logger = ServiceLocator.instance().getLogger(); private CCM_I1 localInterface; protected I1Adapter() { logger.fine(""); } public I1Adapter(CCM_I1 localInterface) { logger.fine("localInterface = " + localInterface); this.localInterface = localInterface; } public String value() throws CCMException { logger.fine(""); return localInterface.value(); } } --- NEW FILE: I3Adapter.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import java.util.logging.Logger; import Components.CCMException; import ccmtools.local.ServiceLocator; public class I3Adapter implements I3 { private Logger logger = ServiceLocator.instance().getLogger(); private CCM_I3 localInterface; protected I3Adapter() { logger.fine(""); } public I3Adapter(CCM_I3 localInterface) { logger.fine("localInterface = " + localInterface); this.localInterface = localInterface; } } --- NEW FILE: H2Implicit.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.KeylessCCMHome; import Components.CreateFailure; public interface H2Implicit extends KeylessCCMHome { C2 create() throws CreateFailure; } --- NEW FILE: H1Implicit.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.KeylessCCMHome; import Components.CreateFailure; public interface H1Implicit extends KeylessCCMHome { C1 create() throws CreateFailure; } --- NEW FILE: CCM_I2.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface CCM_I2 extends I2 { } --- NEW FILE: CCM_I1.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface CCM_I1 extends I1 { } --- NEW FILE: H2Explicit.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.CCMHome; public interface H2Explicit extends CCMHome { } --- NEW FILE: CCM_C1_ContextImpl.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.HomeExecutorBase; import Components.IllegalState; import Components.NoConnection; import java.util.logging.Logger; import ccmtools.local.ServiceLocator; public class CCM_C1_ContextImpl implements wamas.Test.CCM_C1_Context { private Logger logger = ServiceLocator.instance().getLogger(); private C1 component; public CCM_C1_ContextImpl(C1 component) { logger.fine("component = " + component); this.component = component; } /** Receptacle access methods */ public wamas.Test.I2 get_connection_i2() throws NoConnection { logger.fine(""); return component.get_connection_i2(); } /** CCMContext methods */ public HomeExecutorBase get_CCM_home() { logger.fine(""); throw new RuntimeException("Not implemented!"); } /** SessionContext methods */ public Object get_CCM_object() throws IllegalState { logger.fine(""); throw new RuntimeException("Not implemented!"); } } --- NEW FILE: CCM_H1Explicit.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface CCM_H1Explicit extends Components.HomeExecutorBase { } --- NEW FILE: CCM_C2_Context.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.NoConnection; public interface CCM_C2_Context extends Components.SessionContext { /** Receptacle access methods */ wamas.Test.I3 get_connection_i3() throws NoConnection; } --- NEW FILE: CCM_C1_Context.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.NoConnection; public interface CCM_C1_Context extends Components.SessionContext { /** Receptacle access methods */ wamas.Test.I2 get_connection_i2() throws NoConnection; } --- NEW FILE: H1Explicit.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.CCMHome; public interface H1Explicit extends CCMHome { } --- NEW FILE: CCM_H1Implicit.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface CCM_H1Implicit { Components.EnterpriseComponent create() throws Components.CCMException; } --- NEW FILE: H2.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface H2 extends H2Explicit, H2Implicit { } --- NEW FILE: I2Adapter.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import java.util.logging.Logger; import Components.CCMException; import ccmtools.local.ServiceLocator; public class I2Adapter implements I2 { private Logger logger = ServiceLocator.instance().getLogger(); private CCM_I2 localInterface; protected I2Adapter() { logger.fine(""); } public I2Adapter(CCM_I2 localInterface) { logger.fine("localInterface = " + localInterface); this.localInterface = localInterface; } } --- NEW FILE: CCM_H2Explicit.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface CCM_H2Explicit extends Components.HomeExecutorBase { } --- NEW FILE: CCM_C2_ContextImpl.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.HomeExecutorBase; import Components.IllegalState; import Components.NoConnection; import java.util.logging.Logger; import ccmtools.local.ServiceLocator; public class CCM_C2_ContextImpl implements wamas.Test.CCM_C2_Context { private Logger logger = ServiceLocator.instance().getLogger(); private C2 component; public CCM_C2_ContextImpl(C2 component) { logger.fine("component = " + component); this.component = component; } /** Receptacle access methods */ public wamas.Test.I3 get_connection_i3() throws NoConnection { logger.fine(""); return component.get_connection_i3(); } /** CCMContext methods */ public HomeExecutorBase get_CCM_home() { logger.fine(""); throw new RuntimeException("Not implemented!"); } /** SessionContext methods */ public Object get_CCM_object() throws IllegalState { logger.fine(""); throw new RuntimeException("Not implemented!"); } } --- NEW FILE: I2.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import Components.CCMException; /** * Java interface declaration (based on the corresponding IDL interface). */ public interface I2 { } --- NEW FILE: H2Adapter.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import java.util.logging.Logger; import Components.Assembly; import Components.AssemblyFactory; import Components.CCMException; import Components.CCMObject; import Components.CreateFailure; import Components.RemoveFailure; import ccmtools.local.ServiceLocator; public class H2Adapter implements H2 { private Logger logger = ServiceLocator.instance().getLogger(); private CCM_H2 localInterface; private AssemblyFactory assemblyFactory; protected H2Adapter() { this(null, null); } public H2Adapter(CCM_H2 localInterface) { this(localInterface, null); } public H2Adapter(CCM_H2 localInterface, AssemblyFactory assemblyFactory) { logger.fine("localInterface = " + localInterface + ", " + assemblyFactory); this.localInterface = localInterface; this.assemblyFactory = assemblyFactory; } public C2 create() throws CreateFailure { logger.fine(""); try { CCM_C2 c = (CCM_C2)localInterface.create(); C2 component; if(assemblyFactory != null) { Assembly assembly = assemblyFactory.create(); component = new C2Adapter(c, assembly); assembly.build(component); } else { component = new C2Adapter(c); } return component; } catch(CCMException e) { throw new CreateFailure(); } } public void remove_component(CCMObject component) throws CCMException, RemoveFailure { logger.fine(""); component.remove(); } public CCMObject create_component() throws CCMException, CreateFailure { logger.fine(""); return create(); } } --- NEW FILE: CCM_H2Implicit.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface CCM_H2Implicit { Components.EnterpriseComponent create() throws Components.CCMException; } --- NEW FILE: CCM_H1.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface CCM_H1 extends CCM_H1Explicit, CCM_H1Implicit { } --- NEW FILE: H2Deployment.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import java.util.logging.Logger; import Components.CCMHome; import Components.CCMException; import Components.AssemblyFactory; import Components.HomeFinder; import ccmtools.local.ServiceLocator; public class H2Deployment { /** Default logger instance */ private static Logger logger = ServiceLocator.instance().getLogger(); public static CCMHome create() throws CCMException { logger.fine(""); return new H2Adapter((CCM_H2)H2Factory.create()); } public static CCMHome create(AssemblyFactory factory) throws CCMException { logger.fine("assemblyFactory = " + factory); return new H2Adapter((CCM_H2)H2Factory.create(), factory); } public static void deploy(String name) throws CCMException { logger.fine("name = " + name); HomeFinder.instance().register_home(create(), name); } public static void deploy(String name, AssemblyFactory factory) throws CCMException { logger.fine("name = " + name + ", assemblyFactory = " + factory); HomeFinder.instance().register_home(create(factory), name); } public static void undeploy(String name) { logger.fine("name = " + name); HomeFinder.instance().unregister_home(name); } } --- NEW FILE: CCM_I3.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface CCM_I3 extends I3 { } --- NEW FILE: C1Adapter.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; import java.util.logging.Logger; import Components.AlreadyConnected; import Components.Assembly; import Components.CCMException; import Components.CCMHome; import Components.Cookie; import Components.CookieImpl; import Components.CookieRequired; import Components.ExceededConnectionLimit; import Components.InvalidConfiguration; import Components.InvalidConnection; import Components.InvalidName; import Components.NoConnection; import Components.RemoveFailure; import ccmtools.local.ServiceLocator; public class C1Adapter implements C1 { private Logger logger = ServiceLocator.instance().getLogger(); private CCM_C1 localInterface; private CCM_C1_Context ctx; private Assembly assembly; /** Facet adapter references */ private wamas.Test.I1 i1FacetAdapter; /** Receptacle references */ private wamas.Test.I2 i2Receptacle = null; protected C1Adapter() { this(null, null); } public C1Adapter(CCM_C1 localInterface) { this(localInterface, null); } public C1Adapter(CCM_C1 localInterface, Assembly assembly) { logger.fine("localInterface = " + localInterface + ", " + assembly); this.localInterface = localInterface; this.assembly = assembly; } /* * Supported interface methods */ /** Supported interface attributes */ /** Supported interface methods */ /* * Equivalent interface methods */ /** Attribute equivalent methods */ public String a1() throws CCMException { String result = localInterface.a1(); logger.fine("result = " + result); return result; } public void a1(String value) throws CCMException { logger.fine("value = " + value); localInterface.a1(value); } public int a2() throws CCMException { int result = localInterface.a2(); logger.fine("result = " + result); return result; } public void a2(int value) throws CCMException { logger.fine("value = " + value); localInterface.a2(value); } /** Facet equivalent methods */ public wamas.Test.I1 provide_i1() { logger.fine(""); if(i1FacetAdapter == null) { i1FacetAdapter = new wamas.Test.I1Adapter(localInterface.get_i1()); } return i1FacetAdapter; } /** Receptacle equivalent methods */ public void connect_i2(wamas.Test.I2 localObj) throws AlreadyConnected, InvalidConnection { logger.fine("obj = " + localObj); if(i2Receptacle != null) { throw new AlreadyConnected(); } else { i2Receptacle = localObj; } } public wamas.Test.I2 disconnect_i2() throws NoConnection { logger.fine(""); if(i2Receptacle == null) { throw new NoConnection(); } else { wamas.Test.I2 f = i2Receptacle; i2Receptacle = null; return f; } } public wamas.Test.I2 get_connection_i2() { logger.fine(""); return i2Receptacle; } /** CCMObject interface methods */ public void configuration_complete() throws InvalidConfiguration { logger.fine(""); ctx = new CCM_C1_ContextImpl(this); try { if(assembly != null) { assembly.configuration_complete(); } localInterface.set_session_context(ctx); localInterface.ccm_activate(); } catch(CCMException e) { throw new InvalidConfiguration(); } } public void remove() throws RemoveFailure { logger.fine(""); try { localInterface.ccm_remove(); if(assembly != null) { assembly.tear_down(); assembly = null; } } catch(CCMException e) { throw new RemoveFailure(); } } public CCMHome get_ccm_home() { throw new RuntimeException("Not implemented!"); } /** Navigation interface methods */ public Object provide_facet(String name) throws InvalidName { logger.fine("name = " + name); if(name == null) { throw new InvalidName(); } else if(name.equals("i1")) { return provide_i1(); } throw new InvalidName(); } /** Receptacle methods */ public Cookie connect(String name, Object obj) throws InvalidName, InvalidConnection, AlreadyConnected, ExceededConnectionLimit { logger.fine("name = " + name + ", obj = " + obj); if(name == null) { throw new InvalidName(); } if(obj == null) { throw new InvalidConnection(); } else if(name.equals("i2")) { connect_i2((wamas.Test.I2) obj); return new CookieImpl(); } else { throw new InvalidName(); } } public void disconnect(String name, Cookie ck) throws InvalidName, InvalidConnection, CookieRequired, NoConnection { logger.fine("name = " + name + ", ck = " + ck ); if(name == null) { throw new InvalidName(); } if(ck == null) { throw new CookieRequired(); } else if(name.equals("i2")) { disconnect_i2(); } else { throw new InvalidName(); } } } --- NEW FILE: CCM_H2.java --- /* * This file was automatically generated by CCM Tools version 0.9.0 * <http://ccmtools.sourceforge.net> * DO NOT EDIT! */ package wamas.Test; public interface CCM_H2 extends CCM_H2Explicit, CCM_H2Implicit { } |
From: Teiniker E. <tei...@us...> - 2007-02-25 10:53:46
|
Update of /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/xxx/src/wamas In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14239/test/JavaAssembly/prototype2/xxx/src/wamas Log Message: Directory /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/xxx/src/wamas added to the repository |
From: Teiniker E. <tei...@us...> - 2007-02-25 10:53:44
|
Update of /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/xxx/idl3 In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14239/test/JavaAssembly/prototype2/xxx/idl3 Log Message: Directory /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/xxx/idl3 added to the repository |
From: Teiniker E. <tei...@us...> - 2007-02-25 10:53:44
|
Update of /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/xxx/src-gen/wamas In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14239/test/JavaAssembly/prototype2/xxx/src-gen/wamas Log Message: Directory /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/xxx/src-gen/wamas added to the repository |
From: Teiniker E. <tei...@us...> - 2007-02-25 10:53:43
|
Update of /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2 In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14239/test/JavaAssembly/prototype2 Log Message: Directory /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2 added to the repository |
From: Teiniker E. <tei...@us...> - 2007-02-25 10:53:43
|
Update of /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/xxx/src-gen In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14239/test/JavaAssembly/prototype2/xxx/src-gen Log Message: Directory /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/xxx/src-gen added to the repository |
From: Teiniker E. <tei...@us...> - 2007-02-25 10:53:43
|
Update of /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/xxx In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14239/test/JavaAssembly/prototype2/xxx Log Message: Directory /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/xxx added to the repository |
From: Teiniker E. <tei...@us...> - 2007-02-25 10:53:43
|
Update of /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/xxx/src In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14239/test/JavaAssembly/prototype2/xxx/src Log Message: Directory /cvsroot/ccmtools/ccmtools/test/JavaAssembly/prototype2/xxx/src added to the repository |