Update of /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/templates/jet
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv30786/src/ccmtools/generator/java/templates/jet
Modified Files:
ComponentDefAssemblyClass.jet
ProvidesDefGetMethodAssemplyImplementation.jet
ProvidesDefAssemblyClass.jet
Log Message:
Java assemblies
Index: ComponentDefAssemblyClass.jet
===================================================================
RCS file: /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/templates/jet/ComponentDefAssemblyClass.jet,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ComponentDefAssemblyClass.jet 16 Feb 2007 13:34:21 -0000 1.4
--- ComponentDefAssemblyClass.jet 19 Feb 2007 09:09:42 -0000 1.5
***************
*** 23,28 ****
* This class implements component equivalent and supported interfaces
* as well as component attributes.
- * Additionally, session component callback methods must be implemented.
- *
*/
public class <%=component.getIdentifier()%>Impl
--- 23,26 ----
***************
*** 72,76 ****
public <%=component.getIdentifier()%>Impl()
{
- // OPTIONAL: IMPLEMENT ME HERE !
}
--- 70,73 ----
***************
*** 134,138 ****
ProvidesDef provides = (ProvidesDef)i.next();
%>
! <%=provides.generateGetMethodAssemblyImplementation(component.getInnerFacet(provides))%>
<%
}
--- 131,135 ----
ProvidesDef provides = (ProvidesDef)i.next();
%>
! <%=provides.generateGetMethodAssemblyImplementation()%>
<%
}
Index: ProvidesDefGetMethodAssemplyImplementation.jet
===================================================================
RCS file: /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/templates/jet/ProvidesDefGetMethodAssemplyImplementation.jet,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ProvidesDefGetMethodAssemplyImplementation.jet 16 Feb 2007 12:30:15 -0000 1.1
--- ProvidesDefGetMethodAssemplyImplementation.jet 19 Feb 2007 09:09:42 -0000 1.2
***************
*** 7,12 ****
%>
public <%=provides.getInterface().generateAbsoluteJavaCcmName()%> get_<%=provides.getIdentifier()%>()
{
! return new <%=provides.generateJavaNamespace()%>.<%=provides.getComponent().getIdentifier()%><%=provides.getIdentifier()%>Impl(this, <%=provides.getAssemblyFacet()%>);
}
--- 7,16 ----
%>
+ private <%=provides.generateJavaNamespace()%>.<%=provides.getComponent().getIdentifier()%><%=provides.getIdentifier()%>Impl <%=provides.getIdentifier()%>_;
+
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()%>_;
}
Index: ProvidesDefAssemblyClass.jet
===================================================================
RCS file: /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/templates/jet/ProvidesDefAssemblyClass.jet,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ProvidesDefAssemblyClass.jet 16 Feb 2007 12:30:16 -0000 1.1
--- ProvidesDefAssemblyClass.jet 19 Feb 2007 09:09:42 -0000 1.2
***************
*** 30,41 ****
/** the facet of the inner component we delegate to */
! private <%=iface.generateAbsoluteJavaName()%> target;
public <%=provides.getComponent().getIdentifier()%><%=provides.getIdentifier()%>Impl(
! <%=provides.getComponent().getIdentifier()%>Impl component,
! <%=iface.generateAbsoluteJavaName()%> target)
{
this.component = component;
- this.target = target;
}
--- 30,39 ----
/** the facet of the inner component we delegate to */
! <%=iface.generateAbsoluteJavaName()%> target;
public <%=provides.getComponent().getIdentifier()%><%=provides.getIdentifier()%>Impl(
! <%=provides.getComponent().getIdentifier()%>Impl component)
{
this.component = component;
}
|