Update of /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/templates/jet
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv11416/src/ccmtools/generator/java/templates/jet
Modified Files:
ComponentDefAssemblyClass.jet
ProvidesDefGetMethodAssemplyImplementation.jet
Log Message:
now support "provide" after "configuration complete"
Index: ComponentDefAssemblyClass.jet
===================================================================
RCS file: /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/templates/jet/ComponentDefAssemblyClass.jet,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** ComponentDefAssemblyClass.jet 26 Feb 2007 15:49:42 -0000 1.7
--- ComponentDefAssemblyClass.jet 27 Feb 2007 08:28:16 -0000 1.8
***************
*** 67,70 ****
--- 67,72 ----
public <%=component.generateCcmIdentifier()%>_Context ctx;
+ private boolean ccm_activate_ok;
+
public <%=component.getIdentifier()%>Impl()
***************
*** 180,184 ****
<%
}
! %>
} catch(Exception e) {
throw new CCMException(e.getMessage(), CCMExceptionReason.CREATE_ERROR);
--- 182,188 ----
<%
}
! %>
!
! ccm_activate_ok = true;
} catch(Exception e) {
throw new CCMException(e.getMessage(), CCMExceptionReason.CREATE_ERROR);
Index: ProvidesDefGetMethodAssemplyImplementation.jet
===================================================================
RCS file: /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/templates/jet/ProvidesDefGetMethodAssemplyImplementation.jet,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ProvidesDefGetMethodAssemplyImplementation.jet 27 Feb 2007 07:07:25 -0000 1.3
--- ProvidesDefGetMethodAssemplyImplementation.jet 27 Feb 2007 08:28:16 -0000 1.4
***************
*** 12,15 ****
--- 12,18 ----
{
<%=provides.getIdentifier()%>_ = new <%=provides.generateJavaNamespace()%>.<%=provides.getComponent().getIdentifier()%><%=provides.getIdentifier()%>Impl(this);
+ if(ccm_activate_ok) {
+ <%=provides.getIdentifier()%>_.target = <%=provides.getComponent().getAssemblyInitFacetTargetValue(provides)%>;
+ }
return <%=provides.getIdentifier()%>_;
}
|