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 !
|