Update of /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/templates
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv20318/src/ccmtools/generator/java/templates
Modified Files:
ComponentDefAssemblyClassTemplate.java
Log Message:
missing operation 'remove' implemented
Index: ComponentDefAssemblyClassTemplate.java
===================================================================
RCS file: /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/templates/ComponentDefAssemblyClassTemplate.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ComponentDefAssemblyClassTemplate.java 19 Feb 2007 09:09:42 -0000 1.5
--- ComponentDefAssemblyClassTemplate.java 20 Feb 2007 07:23:53 -0000 1.6
***************
*** 47,52 ****
protected final String TEXT_30 = NL + "\t\t\t";
protected final String TEXT_31 = "_.configuration_complete();";
! protected final String TEXT_32 = " " + NL + " \t} catch(Exception e) {" + NL + " \t\tthrow new CCMException(e.getMessage(), CCMExceptionReason.CREATE_ERROR);" + NL + " \t}" + NL + " }" + NL + "" + NL + " public void ccm_passivate() " + NL + " throws CCMException" + NL + " {" + NL + " // OPTIONAL: IMPLEMENT ME HERE !" + NL + " }" + NL + "" + NL + " public void ccm_remove() " + NL + " throws CCMException" + NL + " {" + NL + " // OPTIONAL: IMPLEMENT ME HERE !" + NL + " }" + NL + "}";
! protected final String TEXT_33 = NL;
public String generate(Object argument)
--- 47,55 ----
protected final String TEXT_30 = NL + "\t\t\t";
protected final String TEXT_31 = "_.configuration_complete();";
! protected final String TEXT_32 = " " + NL + " \t} catch(Exception e) {" + NL + " \t\tthrow new CCMException(e.getMessage(), CCMExceptionReason.CREATE_ERROR);" + NL + " \t}" + NL + " }" + NL + "" + NL + " public void ccm_passivate() " + NL + " throws CCMException" + NL + " {" + NL + " // Who calls this method?" + NL + " }" + NL + "" + NL + " public void ccm_remove() " + NL + " throws CCMException" + NL + " {" + NL + " \ttry {";
! protected final String TEXT_33 = NL + "\t\t\t";
! protected final String TEXT_34 = "_.remove();";
! protected final String TEXT_35 = NL + "\t\t} catch(Exception e) {" + NL + " \t\tthrow new CCMException(e.getMessage(), CCMExceptionReason.REMOVE_ERROR);" + NL + "\t\t} " + NL + " }" + NL + "}";
! protected final String TEXT_36 = NL;
public String generate(Object argument)
***************
*** 193,197 ****
--- 196,211 ----
stringBuffer.append(TEXT_32);
+
+ for (String key : component.getAssemblyLocalComponents().keySet())
+ {
+
stringBuffer.append(TEXT_33);
+ stringBuffer.append(key);
+ stringBuffer.append(TEXT_34);
+
+ }
+
+ stringBuffer.append(TEXT_35);
+ stringBuffer.append(TEXT_36);
return stringBuffer.toString();
}
|