You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sv...@apache.org on 2006/12/22 19:40:33 UTC

svn commit: r489720 [5/32] - in /incubator/tuscany/site: site-author/ site-author/css/ site-author/images/ site-author/stylesheets/ site-publish/ site-publish/css/ site-publish/images/

Modified: incubator/tuscany/site/site-publish/codeguidelines.html
URL: http://svn.apache.org/viewvc/incubator/tuscany/site/site-publish/codeguidelines.html?view=diff&rev=489720&r1=489719&r2=489720
==============================================================================
--- incubator/tuscany/site/site-publish/codeguidelines.html (original)
+++ incubator/tuscany/site/site-publish/codeguidelines.html Fri Dec 22 10:40:27 2006
@@ -44,104 +44,7 @@
 			<td width="244">
 				<img src="images/Logo.png" width="244" height="94" alt=""></td>
                 
-            		    <td width="64">
-        <table width="64" border="0" cellspacing="0" cellpadding="0">
-            <tr height="59"><td>
-                                                <div style="width: 64px; height: 22px; position: absolute; left: 244px; top: 59px">
-                    <a href='sca_index.html' onMouseover="return !showMenu(event, 'sca');" class="History">
-                    <img src='images/SCATab.png' width="64" height="22" border="0" 
-                    onMouseOver="this.src='images/SCATab2.png';" onMouseOut="this.src='images/SCATab.png';"></a>
-                </div>
-            </td></tr>
-            <tr><td>
-                <div class="menu" id='sca' 
-                style="width: 65px; position:absolute; left:244px; top: 81px; z-index:2 ; visibility:hidden; "
-                onmouseover="event.cancelBubble = true;">
-                    <table border="0" cellspacing="0" cellpadding="0">
-                                            <tr><td>
-                                                        <a href='sca_index.html'>
-                            <img onMouseOver="this.src='images/genMenuItem.png';" 
-                            onMouseOut="this.src='images/genMenuItemDown.png';" src="images/genMenuItemDown.png" border="0"></a>
-                        </td></tr>
-                                            <tr><td>
-                                                        <a href='java_sca_overview.html'>
-                            <img onMouseOver="this.src='images/javaMenuItem.png';" 
-                            onMouseOut="this.src='images/javaMenuItemDown.png';" src="images/javaMenuItemDown.png" border="0"></a>
-                        </td></tr>
-                                            <tr><td>
-                                                        <a href='cpp_sca_overview.html'>
-                            <img onMouseOver="this.src='images/cppMenuItem.png';" 
-                            onMouseOut="this.src='images/cppMenuItemDown.png';" src="images/cppMenuItemDown.png" border="0"></a>
-                        </td></tr>
-                                        </table>
-                </div>
-            </td></tr>
-        </table>
-    </td> 
-	    <td width="64">
-        <table width="64" border="0" cellspacing="0" cellpadding="0">
-            <tr height="59"><td>
-                                                <div style="width: 64px; height: 22px; position: absolute; left: 308px; top: 59px">
-                    <a href='sdo_index.html' onMouseover="return !showMenu(event, 'sdo');" class="History">
-                    <img src='images/SDOTab.png' width="64" height="22" border="0" 
-                    onMouseOver="this.src='images/SDOTab2.png';" onMouseOut="this.src='images/SDOTab.png';"></a>
-                </div>
-            </td></tr>
-            <tr><td>
-                <div class="menu" id='sdo' 
-                style="width: 65px; position:absolute; left:308px; top: 81px; z-index:2 ; visibility:hidden; "
-                onmouseover="event.cancelBubble = true;">
-                    <table border="0" cellspacing="0" cellpadding="0">
-                                            <tr><td>
-                                                        <a href='sdo_index.html'>
-                            <img onMouseOver="this.src='images/genMenuItem.png';" 
-                            onMouseOut="this.src='images/genMenuItemDown.png';" src="images/genMenuItemDown.png" border="0"></a>
-                        </td></tr>
-                                            <tr><td>
-                                                        <a href='java_sdo_overview.html'>
-                            <img onMouseOver="this.src='images/javaMenuItem.png';" 
-                            onMouseOut="this.src='images/javaMenuItemDown.png';" src="images/javaMenuItemDown.png" border="0"></a>
-                        </td></tr>
-                                            <tr><td>
-                                                        <a href='cpp_sdo_overview.html'>
-                            <img onMouseOver="this.src='images/cppMenuItem.png';" 
-                            onMouseOut="this.src='images/cppMenuItemDown.png';" src="images/cppMenuItemDown.png" border="0"></a>
-                        </td></tr>
-                                        </table>
-                </div>
-            </td></tr>
-        </table>
-    </td> 
-	    <td width="64">
-        <table width="64" border="0" cellspacing="0" cellpadding="0">
-            <tr height="59"><td>
-                                                <div style="width: 64px; height: 22px; position: absolute; left: 372px; top: 59px">
-                    <a href='das_index.html' onMouseover="return !showMenu(event, 'das');" class="History">
-                    <img src='images/DASTab.png' width="64" height="22" border="0" 
-                    onMouseOver="this.src='images/DASTab2.png';" onMouseOut="this.src='images/DASTab.png';"></a>
-                </div>
-            </td></tr>
-            <tr><td>
-                <div class="menu" id='das' 
-                style="width: 65px; position:absolute; left:372px; top: 81px; z-index:2 ; visibility:hidden; "
-                onmouseover="event.cancelBubble = true;">
-                    <table border="0" cellspacing="0" cellpadding="0">
-                                            <tr><td>
-                                                        <a href='das_index.html'>
-                            <img onMouseOver="this.src='images/genMenuItem.png';" 
-                            onMouseOut="this.src='images/genMenuItemDown.png';" src="images/genMenuItemDown.png" border="0"></a>
-                        </td></tr>
-                                            <tr><td>
-                                                        <a href='java_das_overview.html'>
-                            <img onMouseOver="this.src='images/javaMenuItem.png';" 
-                            onMouseOut="this.src='images/javaMenuItemDown.png';" src="images/javaMenuItemDown.png" border="0"></a>
-                        </td></tr>
-                                        </table>
-                </div>
-            </td></tr>
-        </table>
-    </td> 
-	                
+                            
 			 <td align="right"> 
 				<img src="http://incubator.apache.org/tuscany/images/apache-incubator-logo.png" style="padding: 5px;"> </td>
 		</tr>
@@ -149,212 +52,514 @@
     <table border="0" width="100%" cellspacing="4">
         <tr>
             <!-- LEFT SIDE NAVIGATION -->
-			<td width="137" valign="top" nowrap="true">
-				<table class="navbar" border="0" cellpadding="0" cellspacing="0" align="left" height="100%">
-					    		<tr>
-			<td>
-				<img src='images/GeneralLabel.png' width="137"height="18"alt=""></td>
-		</tr>
-		<tr>
-			<td width="137">
-				<table border="0" cellspacing="0" cellpadding="0"><tr>
-					<td background="images/leftSideGreyBorder.png" width="6"></td>
-					<td bgcolor="#FAFAFA" width="124">
-										                <a href="./index.html">Home</a>
-<br>
-				        				                <a href="./news.html">News</a>
-<br>
-				        				                <a href="./documentation.html">Documentation</a>
-<br>
-				        				                <a href="./license.html">License</a>
-<br>
-				        				                <a href="http://www.apache.org/" target="_blank">ASF</a>
-<br>
-				        				                <a href="./downloads.html">Downloads</a>
-<br>
-				        					</td>
-					<td background="images/rightSideGreyBorder.png" width="7"></td>
-				</tr></table>
-			</td>
-		</tr>
-		<tr><td>
-				<img src="images/greyBottom.png" width="137" height="10" alt=""></td>
-		</tr>
-    		<tr>
-			<td>
-				<img src='images/GettingStartedLabel.png' width="137"height="18"alt=""></td>
-		</tr>
-		<tr>
-			<td width="137">
-				<table border="0" cellspacing="0" cellpadding="0"><tr>
-					<td background="images/leftSideGreyBorder.png" width="6"></td>
-					<td bgcolor="#FAFAFA" width="124">
-										                <a href="./java_sca_overview.html">SCA-Java</a>
-<br>
-				        				                <a href="./cpp_sca_overview.html">SCA-C++</a>
-<br>
-				        				                <a href="./java_sdo_overview.html">SDO-Java</a>
-<br>
-				        				                <a href="./cpp_sdo_overview.html">SDO-C++</a>
-<br>
-				        				                <a href="./java_das_overview.html">DAS-Java</a>
-<br>
-				        					</td>
-					<td background="images/rightSideGreyBorder.png" width="7"></td>
-				</tr></table>
-			</td>
-		</tr>
-		<tr><td>
-				<img src="images/greyBottom.png" width="137" height="10" alt=""></td>
-		</tr>
-    		<tr>
-			<td>
-				<img src='images/CommunityLabel.png' width="137"height="18"alt=""></td>
-		</tr>
-		<tr>
-			<td width="137">
-				<table border="0" cellspacing="0" cellpadding="0"><tr>
-					<td background="images/leftSideGreyBorder.png" width="6"></td>
-					<td bgcolor="#FAFAFA" width="124">
-										                <a href="./get-involved.html">Get Involved</a>
-<br>
-				        				                <a href="./mail-lists.html">Mailing Lists</a>
-<br>
-				        				                <a href="./faq.html">FAQ</a>
-<br>
-				        				                <a href="./issue-tracking.html">Issue Tracking</a>
-<br>
-				        				                <a href="http://wiki.apache.org/ws/Tuscany" target="_blank">Wiki</a>
-<br>
-				        				                <a href="http://apache-tuscany.blogspot.com" target="_blank">Blog</a>
-<br>
-				        					</td>
-					<td background="images/rightSideGreyBorder.png" width="7"></td>
-				</tr></table>
-			</td>
-		</tr>
-		<tr><td>
-				<img src="images/greyBottom.png" width="137" height="10" alt=""></td>
-		</tr>
-    		<tr>
-			<td>
-				<img src='images/DevelopmentLabel.png' width="137"height="18"alt=""></td>
-		</tr>
-		<tr>
-			<td width="137">
-				<table border="0" cellspacing="0" cellpadding="0"><tr>
-					<td background="images/leftSideGreyBorder.png" width="6"></td>
-					<td bgcolor="#FAFAFA" width="124">
-										                <a href="http://wiki.apache.org/ws/Tuscany/TuscanyJava/Roadmap" target="_blank">Road Map / TODO</a>
-<br>
-				        				                <a href="./source-code.html">Source Code</a>
-<br>
-				        				                <a href="./java-projects.html">Java projects</a>
-<br>
-				        				                <a href="./cpp-projects.html">C++ projects</a>
-<br>
-				        				                <a href="./site_development.html">Web Site</a>
-<br>
-				        					</td>
-					<td background="images/rightSideGreyBorder.png" width="7"></td>
-				</tr></table>
-			</td>
-		</tr>
-		<tr><td>
-				<img src="images/greyBottom.png" width="137" height="10" alt=""></td>
-		</tr>
+			<td width="141" valign="top" nowrap="true" >
+				<table width="100%" class="navbar" border="0" cellpadding="0" cellspacing="0" align="center" height="100%" >
+					    		<tr class="navbarHead">
+      <td>
+          <table border="0" cellspacing="0" cellpadding="0">
+              <tr>
+                  
+                  <td>
+                      <table border="0" cellspacing="0" cellpadding="0" width="137">
+                          <tbody>
+                          <tr>
+                              <td align="right" width="8" height="4"><img src= "images/NavBarTL.png"></td>
+                              <td height="4" background="images/NavBarT.png"></td>
+                              <td align="left"><img src="images/NavBarTR.png"></td>
+                          </tr>
+                          <tr>
+                              <td background="images/NavBarLS.png" width="8"></td>
+                              <td align="center" background="images/NavBarM.png">
+                                Tuscany General
+                              </td>
+                              <td width="8" height="4"background="images/NavBarRS.png" ></td>
+                          <tr>
+                              <td align="right" valign="top"><img src= "images/NavBarBL.png"></td>
+                              <td background="images/NavBarB.png"></td>
+                              <td align="left"><img src="images/NavBarBR.png"></td>
+                          </tr>
+                          </tbody>
+                      </table>
+                  </td>
+                  <td width="6"></td>
+              </tr>
+          </table>
+      </td>
+    </tr>
+    <tr>
+      <td>
+          <table border="0" cellspacing="0" cellpadding="0" >
+              <tr>
+                  <td background="images/leftSideGreyBorder.png" width="6" ></td>
+                  <td bgcolor="#fafafa" width="124">
+                                            <a href="./index.html">Home</a>
+<br>
+                                            <a href="./news.html">News</a>
+<br>
+                                            <a href="./documentation.html">Documentation</a>
+<br>
+                                            <a href="./Releases.html">Releases</a>
+<br>
+                                            <a href="./getting_started.html">Getting Started</a>
+<br>
+                                            <a href="./license.html">License</a>
+<br>
+                                            <a href="http://www.apache.org/" target="_blank">ASF</a>
+<br>
+                    </td>
+                  <td background="images/rightSideGreyBorder.png" width="7"></td>
+              </tr>
+          </table>
+      </td>
+    </tr>
+    <tr>
+        <td><img src="images/greyBottom.png" width="137" height="10" alt=""></td>
+    </tr>
+
+    		<tr class="navbarHead">
+      <td>
+          <table border="0" cellspacing="0" cellpadding="0">
+              <tr>
+                  
+                  <td>
+                      <table border="0" cellspacing="0" cellpadding="0" width="137">
+                          <tbody>
+                          <tr>
+                              <td align="right" width="8" height="4"><img src= "images/NavBarTL.png"></td>
+                              <td height="4" background="images/NavBarT.png"></td>
+                              <td align="left"><img src="images/NavBarTR.png"></td>
+                          </tr>
+                          <tr>
+                              <td background="images/NavBarLS.png" width="8"></td>
+                              <td align="center" background="images/NavBarM.png">
+                                Tuscany SCA
+                              </td>
+                              <td width="8" height="4"background="images/NavBarRS.png" ></td>
+                          <tr>
+                              <td align="right" valign="top"><img src= "images/NavBarBL.png"></td>
+                              <td background="images/NavBarB.png"></td>
+                              <td align="left"><img src="images/NavBarBR.png"></td>
+                          </tr>
+                          </tbody>
+                      </table>
+                  </td>
+                  <td width="6"></td>
+              </tr>
+          </table>
+      </td>
+    </tr>
+    <tr>
+      <td>
+          <table border="0" cellspacing="0" cellpadding="0" >
+              <tr>
+                  <td background="images/leftSideGreyBorder.png" width="6" ></td>
+                  <td bgcolor="#fafafa" width="124">
+                                            <a href="./sca_index.html">SCA Overview</a>
+<br>
+                                            <a href="./java_sca_overview.html">SCA Java</a>
+<br>
+                                            <a href="./cpp_sca_overview.html">SCA C++</a>
+<br>
+                                            <a href="./sca_documentation.html">SCA Docs.</a>
+<br>
+                                            <a href="./sca_downloads.html">SCA Downloads</a>
+<br>
+                    </td>
+                  <td background="images/rightSideGreyBorder.png" width="7"></td>
+              </tr>
+          </table>
+      </td>
+    </tr>
+    <tr>
+        <td><img src="images/greyBottom.png" width="137" height="10" alt=""></td>
+    </tr>
+
+    		<tr class="navbarHead">
+      <td>
+          <table border="0" cellspacing="0" cellpadding="0">
+              <tr>
+                  
+                  <td>
+                      <table border="0" cellspacing="0" cellpadding="0" width="137">
+                          <tbody>
+                          <tr>
+                              <td align="right" width="8" height="4"><img src= "images/NavBarTL.png"></td>
+                              <td height="4" background="images/NavBarT.png"></td>
+                              <td align="left"><img src="images/NavBarTR.png"></td>
+                          </tr>
+                          <tr>
+                              <td background="images/NavBarLS.png" width="8"></td>
+                              <td align="center" background="images/NavBarM.png">
+                                Tuscany SDO
+                              </td>
+                              <td width="8" height="4"background="images/NavBarRS.png" ></td>
+                          <tr>
+                              <td align="right" valign="top"><img src= "images/NavBarBL.png"></td>
+                              <td background="images/NavBarB.png"></td>
+                              <td align="left"><img src="images/NavBarBR.png"></td>
+                          </tr>
+                          </tbody>
+                      </table>
+                  </td>
+                  <td width="6"></td>
+              </tr>
+          </table>
+      </td>
+    </tr>
+    <tr>
+      <td>
+          <table border="0" cellspacing="0" cellpadding="0" >
+              <tr>
+                  <td background="images/leftSideGreyBorder.png" width="6" ></td>
+                  <td bgcolor="#fafafa" width="124">
+                                            <a href="./sdo_index.html">SDO Overview</a>
+<br>
+                                            <a href="./java_sdo_overview.html">SDO Java</a>
+<br>
+                                            <a href="./cpp_sdo_overview.html">SDO C++</a>
+<br>
+                                            <a href="./sdo_documentation.html">SDO Docs.</a>
+<br>
+                                            <a href="./sdo_downloads.html">SDO Downloads</a>
+<br>
+                    </td>
+                  <td background="images/rightSideGreyBorder.png" width="7"></td>
+              </tr>
+          </table>
+      </td>
+    </tr>
+    <tr>
+        <td><img src="images/greyBottom.png" width="137" height="10" alt=""></td>
+    </tr>
+
+    		<tr class="navbarHead">
+      <td>
+          <table border="0" cellspacing="0" cellpadding="0">
+              <tr>
+                  
+                  <td>
+                      <table border="0" cellspacing="0" cellpadding="0" width="137">
+                          <tbody>
+                          <tr>
+                              <td align="right" width="8" height="4"><img src= "images/NavBarTL.png"></td>
+                              <td height="4" background="images/NavBarT.png"></td>
+                              <td align="left"><img src="images/NavBarTR.png"></td>
+                          </tr>
+                          <tr>
+                              <td background="images/NavBarLS.png" width="8"></td>
+                              <td align="center" background="images/NavBarM.png">
+                                Tuscany DAS
+                              </td>
+                              <td width="8" height="4"background="images/NavBarRS.png" ></td>
+                          <tr>
+                              <td align="right" valign="top"><img src= "images/NavBarBL.png"></td>
+                              <td background="images/NavBarB.png"></td>
+                              <td align="left"><img src="images/NavBarBR.png"></td>
+                          </tr>
+                          </tbody>
+                      </table>
+                  </td>
+                  <td width="6"></td>
+              </tr>
+          </table>
+      </td>
+    </tr>
+    <tr>
+      <td>
+          <table border="0" cellspacing="0" cellpadding="0" >
+              <tr>
+                  <td background="images/leftSideGreyBorder.png" width="6" ></td>
+                  <td bgcolor="#fafafa" width="124">
+                                            <a href="./das_index.html">DAS Overview</a>
+<br>
+                                            <a href="./java_das_overview.html">DAS Java</a>
+<br>
+                                            <a href="./das_documentation.html">DAS Docs.</a>
+<br>
+                                            <a href="./das_downloads.html">DAS Downloads</a>
+<br>
+                    </td>
+                  <td background="images/rightSideGreyBorder.png" width="7"></td>
+              </tr>
+          </table>
+      </td>
+    </tr>
+    <tr>
+        <td><img src="images/greyBottom.png" width="137" height="10" alt=""></td>
+    </tr>
+
+    		<tr class="navbarHead">
+      <td>
+          <table border="0" cellspacing="0" cellpadding="0">
+              <tr>
+                  
+                  <td>
+                      <table border="0" cellspacing="0" cellpadding="0" width="137">
+                          <tbody>
+                          <tr>
+                              <td align="right" width="8" height="4"><img src= "images/NavBarTL.png"></td>
+                              <td height="4" background="images/NavBarT.png"></td>
+                              <td align="left"><img src="images/NavBarTR.png"></td>
+                          </tr>
+                          <tr>
+                              <td background="images/NavBarLS.png" width="8"></td>
+                              <td align="center" background="images/NavBarM.png">
+                                Community
+                              </td>
+                              <td width="8" height="4"background="images/NavBarRS.png" ></td>
+                          <tr>
+                              <td align="right" valign="top"><img src= "images/NavBarBL.png"></td>
+                              <td background="images/NavBarB.png"></td>
+                              <td align="left"><img src="images/NavBarBR.png"></td>
+                          </tr>
+                          </tbody>
+                      </table>
+                  </td>
+                  <td width="6"></td>
+              </tr>
+          </table>
+      </td>
+    </tr>
+    <tr>
+      <td>
+          <table border="0" cellspacing="0" cellpadding="0" >
+              <tr>
+                  <td background="images/leftSideGreyBorder.png" width="6" ></td>
+                  <td bgcolor="#fafafa" width="124">
+                                            <a href="./get-involved.html">Get Involved</a>
+<br>
+                                            <a href="./mail-lists.html">Mailing Lists</a>
+<br>
+                                            <a href="./faq.html">FAQ</a>
+<br>
+                                            <a href="./issue-tracking.html">Issue Tracking</a>
+<br>
+                                            <a href="http://wiki.apache.org/ws/Tuscany" target="_blank">Wiki</a>
+<br>
+                                            <a href="http://apache-tuscany.blogspot.com" target="_blank">Blog</a>
+<br>
+                    </td>
+                  <td background="images/rightSideGreyBorder.png" width="7"></td>
+              </tr>
+          </table>
+      </td>
+    </tr>
+    <tr>
+        <td><img src="images/greyBottom.png" width="137" height="10" alt=""></td>
+    </tr>
+
+    		<tr class="navbarHead">
+      <td>
+          <table border="0" cellspacing="0" cellpadding="0">
+              <tr>
+                  
+                  <td>
+                      <table border="0" cellspacing="0" cellpadding="0" width="137">
+                          <tbody>
+                          <tr>
+                              <td align="right" width="8" height="4"><img src= "images/NavBarTL.png"></td>
+                              <td height="4" background="images/NavBarT.png"></td>
+                              <td align="left"><img src="images/NavBarTR.png"></td>
+                          </tr>
+                          <tr>
+                              <td background="images/NavBarLS.png" width="8"></td>
+                              <td align="center" background="images/NavBarM.png">
+                                Development
+                              </td>
+                              <td width="8" height="4"background="images/NavBarRS.png" ></td>
+                          <tr>
+                              <td align="right" valign="top"><img src= "images/NavBarBL.png"></td>
+                              <td background="images/NavBarB.png"></td>
+                              <td align="left"><img src="images/NavBarBR.png"></td>
+                          </tr>
+                          </tbody>
+                      </table>
+                  </td>
+                  <td width="6"></td>
+              </tr>
+          </table>
+      </td>
+    </tr>
+    <tr>
+      <td>
+          <table border="0" cellspacing="0" cellpadding="0" >
+              <tr>
+                  <td background="images/leftSideGreyBorder.png" width="6" ></td>
+                  <td bgcolor="#fafafa" width="124">
+                                            <a href="./source-code.html">Source Code</a>
+<br>
+                                            <a href="./java-projects.html">Tuscany Java</a>
+<br>
+                                            <a href="./cpp-projects.html">Tuscany C++</a>
+<br>
+                                            <a href="./site_development.html">Tuscany WebSite</a>
+<br>
+                    </td>
+                  <td background="images/rightSideGreyBorder.png" width="7"></td>
+              </tr>
+          </table>
+      </td>
+    </tr>
+    <tr>
+        <td><img src="images/greyBottom.png" width="137" height="10" alt=""></td>
+    </tr>
+
     				</table>
 			</td>
             <!-- CONTENT! -->
             <td width="100%" align="left" valign="top">
-	            	            	                	<table class="content" border="0" width="90%" cellspacing="0" cellpadding="0" align="center">
-		<tr class="title" height="17" background="images/TitleC.png">
-			<td align="left">
-				<img src="images/TitleL.png" width="15" height="17" alt=""></td>
-			<td align="center" height="17" id="title" background="images/TitleC.png">
-				     <a href="#">Tuscany Java Coding Guidelines</a>
-			</td>
-			<td align="right">
-				<img src="images/TitleR.png" width="14" height="17" alt=""></td>
-		</tr>
-		<tr>
-			<td background="images/WhiteL.png" width="15"></td>
-			<td width="100%">
-				<div id="content">
-                                            <ol>
+	            	            	                	<table class="content" border="0" width="98%" cellspacing="0" cellpadding="0" align="left">
+    <tr class="title" height="17" >
+        <td>
+          <table border="0" cellspacing="0" cellpadding="0" width="100%">
+              <tbody>
+              <tr>
+                  <td align="right" width="8" height="4"><img src= "images/NavBarTL.png"></td>
+                  <td height="4" background="images/NavBarT.png"></td>
+                  <td align="left"><img src="images/NavBarTR.png"></td>
+              </tr>
+              <tr>
+                  <td background="images/NavBarLS.png" width="8"></td>
+                  <td align="center" background="images/NavBarM.png">
+                        <a href="#">Tuscany Java Coding Guidelines</a>
+                  </td>
+                  <td width="8" height="4" background="images/NavBarRS.png" ></td>
+              <tr>
+                  <td align="right" valign="top"><img src= "images/NavBarBL.png"></td>
+                  <td background="images/NavBarB.png"></td>
+                  <td align="left"><img src="images/NavBarBR.png"></td>
+              </tr>
+              </tbody>
+          </table>
+        </td>
+    </tr>
+    
+    <tr>
+        <td>
+          <table border="0" cellspacing="0" cellpadding="0" width="100%">
+              <tbody>
+              
+              <tr>
+                  <td background="images/ContentBoxLS.png" width="8"></td>
+                  <td align="left">
+                                                 <ol>
                         <li><a href="#Indentation">Indentation</a></li>
                         <li><a href="#Exception Handling">Exception Handling</a></li>
                         <li><a href="#Package Naming"> Package Naming</a></li>
                         <li><a href="#Logging">Logging</a></li>
-                </ol>
-                    				</div>
-			</td>
-			<td background="images/WhiteR.png" width="14"></td>
-		</tr>
-		
-		<tr>
-			<td background="images/WhiteBL.png" width="15" height="14"></td>
-			<td background="images/WhiteB.png" ></td>
-			<td background="images/WhiteBR.png" width="14"></td>
-		</tr>
-		
-	</table>
-	            	                	<table class="content" border="0" width="90%" cellspacing="0" cellpadding="0" align="center">
-		<tr class="title" height="17" background="images/TitleC.png">
-			<td align="left">
-				<img src="images/TitleL.png" width="15" height="17" alt=""></td>
-			<td align="center" height="17" id="title" background="images/TitleC.png">
-				     <a href="#">Indentation</a>
-			</td>
-			<td align="right">
-				<img src="images/TitleR.png" width="14" height="17" alt=""></td>
-		</tr>
-		<tr>
-			<td background="images/WhiteL.png" width="15"></td>
-			<td width="100%">
-				<div id="content">
-                                            <p>
+                </ol> 
+                                              </td>
+                  <td width="8" height="4" background="images/ContentBoxRS.png" >
+                  </td>
+              </tr>
+              <tr>
+                  <td align="right" valign="bottom"><img src= "images/ContentBoxBL.png"></td>
+                  <td background="images/ContentBoxB.png"></td>
+                  <td align="left"><img src="images/ContentBoxBR.png"></td>
+              </tr>
+              </tbody>
+          </table>
+        </td>
+    </tr>
+    </table>
+	            	                	<table class="content" border="0" width="98%" cellspacing="0" cellpadding="0" align="left">
+    <tr class="title" height="17" >
+        <td>
+          <table border="0" cellspacing="0" cellpadding="0" width="100%">
+              <tbody>
+              <tr>
+                  <td align="right" width="8" height="4"><img src= "images/NavBarTL.png"></td>
+                  <td height="4" background="images/NavBarT.png"></td>
+                  <td align="left"><img src="images/NavBarTR.png"></td>
+              </tr>
+              <tr>
+                  <td background="images/NavBarLS.png" width="8"></td>
+                  <td align="center" background="images/NavBarM.png">
+                        <a href="#">Indentation</a>
+                  </td>
+                  <td width="8" height="4" background="images/NavBarRS.png" ></td>
+              <tr>
+                  <td align="right" valign="top"><img src= "images/NavBarBL.png"></td>
+                  <td background="images/NavBarB.png"></td>
+                  <td align="left"><img src="images/NavBarBR.png"></td>
+              </tr>
+              </tbody>
+          </table>
+        </td>
+    </tr>
+    
+    <tr>
+        <td>
+          <table border="0" cellspacing="0" cellpadding="0" width="100%">
+              <tbody>
+              
+              <tr>
+                  <td background="images/ContentBoxLS.png" width="8"></td>
+                  <td align="left">
+                                                 <p>
                                 We follow Sun's coding standard rules which are pretty common in Java. We have also discussed to adopt a tool that would scan the code to make sure it is in the right format. More information will be added once that discussion is final.
-                        </p>
-                                            <p>
+                        </p> 
+                                                         <p>
                                 <script type="text/javascript">linkNewWindow('http://java.sun.com/docs/codeconv/','http://java.sun.com/docs/codeconv/');</script>
-                        </p>
-                                            <p>
+                        </p> 
+                                                         <p>
                                 <script type="text/javascript">linkNewWindow('http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html','http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html');</script>
-                        </p>
-                                            <p>
+                        </p> 
+                                                         <p>
                                 Please use 4 characters indentation and do not use tabs. 
-                        </p>
-                    				</div>
-			</td>
-			<td background="images/WhiteR.png" width="14"></td>
-		</tr>
-		
-		<tr>
-			<td background="images/WhiteBL.png" width="15" height="14"></td>
-			<td background="images/WhiteB.png" ></td>
-			<td background="images/WhiteBR.png" width="14"></td>
-		</tr>
-		
-	</table>
-	            	                	<table class="content" border="0" width="90%" cellspacing="0" cellpadding="0" align="center">
-		<tr class="title" height="17" background="images/TitleC.png">
-			<td align="left">
-				<img src="images/TitleL.png" width="15" height="17" alt=""></td>
-			<td align="center" height="17" id="title" background="images/TitleC.png">
-				     <a href="#">Exception Handling</a>
-			</td>
-			<td align="right">
-				<img src="images/TitleR.png" width="14" height="17" alt=""></td>
-		</tr>
-		<tr>
-			<td background="images/WhiteL.png" width="15"></td>
-			<td width="100%">
-				<div id="content">
-                                            <p>
+                        </p> 
+                                              </td>
+                  <td width="8" height="4" background="images/ContentBoxRS.png" >
+                  </td>
+              </tr>
+              <tr>
+                  <td align="right" valign="bottom"><img src= "images/ContentBoxBL.png"></td>
+                  <td background="images/ContentBoxB.png"></td>
+                  <td align="left"><img src="images/ContentBoxBR.png"></td>
+              </tr>
+              </tbody>
+          </table>
+        </td>
+    </tr>
+    </table>
+	            	                	<table class="content" border="0" width="98%" cellspacing="0" cellpadding="0" align="left">
+    <tr class="title" height="17" >
+        <td>
+          <table border="0" cellspacing="0" cellpadding="0" width="100%">
+              <tbody>
+              <tr>
+                  <td align="right" width="8" height="4"><img src= "images/NavBarTL.png"></td>
+                  <td height="4" background="images/NavBarT.png"></td>
+                  <td align="left"><img src="images/NavBarTR.png"></td>
+              </tr>
+              <tr>
+                  <td background="images/NavBarLS.png" width="8"></td>
+                  <td align="center" background="images/NavBarM.png">
+                        <a href="#">Exception Handling</a>
+                  </td>
+                  <td width="8" height="4" background="images/NavBarRS.png" ></td>
+              <tr>
+                  <td align="right" valign="top"><img src= "images/NavBarBL.png"></td>
+                  <td background="images/NavBarB.png"></td>
+                  <td align="left"><img src="images/NavBarBR.png"></td>
+              </tr>
+              </tbody>
+          </table>
+        </td>
+    </tr>
+    
+    <tr>
+        <td>
+          <table border="0" cellspacing="0" cellpadding="0" width="100%">
+              <tbody>
+              
+              <tr>
+                  <td background="images/ContentBoxLS.png" width="8"></td>
+                  <td align="left">
+                                                 <p>
 In general Exceptions should be designed thinking what the catcher of exception would likely do with the exception. There are three types of exceptions.
-</p>
-                                            <ul>
+</p> 
+                                                         <ul>
         <li>
                 Code Exception: Can be handled at some level of the call stack.  
         </li>
@@ -364,89 +569,89 @@
         <li>    
                 Assertion Exception: Problem remedied by developer fixing a bug in the code  
         </li>
-</ul>
-                                            <p>
+</ul> 
+                                                         <p>
         <span style="font-size: 14pt;"> 
                 Code Exceptions
         </span>
-</p>
-                                            <p>
+</p> 
+                                                         <p>
         There are two types of code exceptions, checked and unchecked exceptions. A checked exception would be thrown when the code cannot handle a specific situation. In this case it is expected for the caller to handle this exception in one of the following ways: 1) handle the exception, 2) re-throw it to its caller, 3) change it to another exception that makes sense to its caller. In general, code exceptions should be checked exceptions. They should be named based on what happened, rather than based on who is throwing the exception. If the exception is well named, it should be possible for the exception to be present on signatures at several levels of a call stack and still make sense (e.g. ServiceUnavailableException).
-</p>
-                                            <p> 
+</p> 
+                                                         <p> 
 Throw unchecked exceptions if the exception is a programming error or system failure and cannot be handled by the caller (RuntimeException). 
-</p>
-                                            <p>
+</p> 
+                                                         <p>
         <span style="font-size: 14pt;">
                 User Exceptions
         </span>
-</p>
-                                            <p>
+</p> 
+                                                         <p>
 User Exceptions are exceptions that signal a problem that needs to be handled by the user of the system, for example an administrator. Text of the message that is carried with the exception needs to be clear in order to help the user to debug the problem. For example a stack trace is not useful information for a user. It is important to catch user type exceptions and add meaningful context to build a message that is useful.
-</p>
-                                            <p>
+</p> 
+                                                         <p>
 A base UserException class can have an array of messages, rather than just one message. For example, code that parses an SCA subsystem file might have a rethrow that just adds "While parsing the xyz subsystem file". This message could probably not be generated by the code that discovered the problem (say an XML parsing problem), so a combination of the original message (e.g. "Missing end tag") and the higher level message ("while parsing the xyz subsystem file") are both necessary to  know what happened. Naturally it can be any number of levels deep.
-</p>
-                                            <p>
+</p> 
+                                                         <p>
 The handling code for a user exception will somehow notify a user of the message and then possibly go on. 
 In a server, user exceptions can often be divided according to the fault type. 
-</p>
-                                            <ul>
+</p> 
+                                                         <ul>
         <li>
                 Client fault: This is typically generated by the client code that sends the incoming message (e.g. SOAP faults). In this case, the message needs to be reported back to the client code in a format appropriate to the client. ClientExecption should be used to relay exceptions that occur on the client side.
         </li>
         <li>    
                 Code or configuration fault:  In this case, only a vague "problem occured here" message should be sent to the client and the real exception message should be logged and/or sent to an administrator. 
         </li>
-</ul>
-                                            <p>
+</ul> 
+                                                         <p>
 The remaining user exceptions are typically problems with configuration or the environment. Some of them will be severe enough that the entire application needs to be brought down, while others could be handled by just logging the problem and going on. This difference implies that there needs to be a different exception type. In the case of session-scoped services, the problem is likely to require that the instance of the service be put into an error state (like paused). This is because subsequent messages for the service have been sent on the assumption that the previous message actually gets processed. If some configuration error prevents a session-scoped service from handling a single message, all future (async) messages for that service instance should be queued up so they can be processed once the problem has been solved. 
-</p>
-                                            <p>
+</p> 
+                                                         <p>
         <span style="font-size: 14pt;">
                 Assertion Exceptions
         </span>
-</p>
-                                            <p>
+</p> 
+                                                         <p>
         Assertion exceptions are exceptions that result from a bug in Tuscany and as such are also intended to be solved by the developers. In these cases the message isn't nearly as important, since the stack trace provides valuable context. If an assertion exception occurs little can be known about the state of the server. If we wanted to be safe we would say that assertion exceptions always bring down the entire server. However, we could play it a little looser and say that assertion exceptions only bring down the application in which they are discovered. 
-</p>
-                                            <p>
+</p> 
+                                                         <p>
         <span style="font-size: 14pt;">
         Guidelines
         </span>
-</p>
-                                            <p>
+</p> 
+                                                         <p>
         The following are a set of guidelines based on the above exception philosophy:
-</p>
-                                            <p>
+</p> 
+                                                         <p>
 1. Checked vs. unchecked exceptions
 Unchecked exceptions should be used when an error condition is not recoverable. Checked exceptions thrown by third party libraries that are not recoverable should be wrapped in unchecked exceptions rather than being propagated up the call stack. For example, an IOException raised when reading a file might be wrapped in an unchecked LoadException containing the name of the file. Unchecked must always be Javadoced and declared in the throws clause of a method. 
-</p>
-                                            <p>
+</p> 
+                                                         <p>
         2. Assertion exceptions should use the standard JDK assert facilities
-</p>
-                                            <p>
+</p> 
+                                                         <p>
         3. Any exception thrown to user code must extend the appropriate Exception as defined by the specification. This will typically be a runtime Exception.
-</p>
-                                            <p>
+</p> 
+                                                         <p>
         4. No other Exceptions should be thrown to user code. Each user API method should catch any internal exceptions and wrap them in the applicable Exception defined by the specification. Internal exceptions must ultimately extend either TuscanyException or TuscanyRuntimeException. 
-</p>
-                                            <p>
+</p> 
+                                                         <p>
 4. When possible, create clear package exception hierarchies
 In most cases, packages should have a clear exception hierarchy with abstract root checked and unchecked exceptions which more specific concrete exceptions extend. Declaring the root package exceptions abstract avoids code throwing exceptions which are too general. Creating an exception hierarchy allows client code using a particular package to choose the level of exception handling granularity (which in turn simplifies the client code by avoiding unwieldy try..catch clauses). 
-</p>
-                                            <p>
+</p> 
+                                                         <p>
 5. Preserve all stack trace information and the original exception
 Exceptions must always preserve the stack trace and original exception except under special circumstances. When wrapping exceptions to propagate, never modify the stack trace and always include the caught exception as the cause.
-</p>
-                                            <p>
+</p> 
+                                                         <p>
 6. Only include local information pertinent to the failure
 For I18N, contextual information stored in the Exception should not be localized. It should comprise only data pertaining to the cause, such as the name of the artifact as above, or a key that can be used by the top level exception handler. This is needed because the locale used to render the exception may be completely different from the locale used by the code raising the exception. For example, an exception may be thrown on a system whose default locale is German, logged to the system log in English but displayed to the end user in French, Japanese, whatever their native language is. 
-</p>
-                                            <p>
+</p> 
+                                                         <p>
         7. For exceptions that require contextual information from various code layers, either wrap exceptions or create exceptions that can accept additional context as they are propagated up the call stack.
-</p>
-                                            <p>
+</p> 
+                                                         <p>
 If a failure requires information from multiple levels, e.g. there was an error setting property X on component Y in module Zdo one of the following. If the initial exception should be wrapped as it is propagated (e.g. the exception occurs at a library boundary), add additional context information in the wrapping exception(s). If the initial exception can be propagated, include methods for adding additional context information as the exception is rethrown up the stack. For example, the previous failure scenario could result in the following exception handling strategy: 
 
 A component property is configured with an invalid integer type 
@@ -456,89 +661,135 @@
 As the IPE is thrown up the stack, the component and module parsers provide additional context information. 
 The configuration loader then wraps the IPE in a ConfigLoadExeption and provides the source from which the configuration is being loaded. 
 The UI being used to load the configuration reports the error to the user and displays the appropriate contextual information
-</p>
-                                            <p>
+</p> 
+                                                         <p>
 8. getMessage() must return unformatted context info. If the Exception contains multiple context fields they should be surrounded in square brackets and separated by commas, e.g. "[ property X, component Y, module Z ]"
-</p>
-                                            <p>
+</p> 
+                                                         <p>
 9. Do not override the behaviour of Throwable.toString() and Throwable.printStackTrace()
-</p>
-                                            <p>
+</p> 
+                                                         <p>
 10. The java.lang.Exception base class is Serializable so all subclasses must provide a serial UID. Any context fields must be Serializable and should be defined in the base java namespace for JDK1.4.
-</p>
-                                            <p>
+</p> 
+                                                         <p>
 11. Exceptions that wrap other Exceptions should ensure that any wrapped Exception can be deserialized in a client environment. This may require providing a custom writeObject method to extract any context information from the wrapped Exception during serialization; at a minimum the message should be preserved.
-                </p>
-                    				</div>
-			</td>
-			<td background="images/WhiteR.png" width="14"></td>
-		</tr>
-		
-		<tr>
-			<td background="images/WhiteBL.png" width="15" height="14"></td>
-			<td background="images/WhiteB.png" ></td>
-			<td background="images/WhiteBR.png" width="14"></td>
-		</tr>
-		
-	</table>
-	            	                	<table class="content" border="0" width="90%" cellspacing="0" cellpadding="0" align="center">
-		<tr class="title" height="17" background="images/TitleC.png">
-			<td align="left">
-				<img src="images/TitleL.png" width="15" height="17" alt=""></td>
-			<td align="center" height="17" id="title" background="images/TitleC.png">
-				     <a href="#">Package Naming</a>
-			</td>
-			<td align="right">
-				<img src="images/TitleR.png" width="14" height="17" alt=""></td>
-		</tr>
-		<tr>
-			<td background="images/WhiteL.png" width="15"></td>
-			<td width="100%">
-				<div id="content">
-                                            <p>
+                </p> 
+                                              </td>
+                  <td width="8" height="4" background="images/ContentBoxRS.png" >
+                  </td>
+              </tr>
+              <tr>
+                  <td align="right" valign="bottom"><img src= "images/ContentBoxBL.png"></td>
+                  <td background="images/ContentBoxB.png"></td>
+                  <td align="left"><img src="images/ContentBoxBR.png"></td>
+              </tr>
+              </tbody>
+          </table>
+        </td>
+    </tr>
+    </table>
+	            	                	<table class="content" border="0" width="98%" cellspacing="0" cellpadding="0" align="left">
+    <tr class="title" height="17" >
+        <td>
+          <table border="0" cellspacing="0" cellpadding="0" width="100%">
+              <tbody>
+              <tr>
+                  <td align="right" width="8" height="4"><img src= "images/NavBarTL.png"></td>
+                  <td height="4" background="images/NavBarT.png"></td>
+                  <td align="left"><img src="images/NavBarTR.png"></td>
+              </tr>
+              <tr>
+                  <td background="images/NavBarLS.png" width="8"></td>
+                  <td align="center" background="images/NavBarM.png">
+                        <a href="#">Package Naming</a>
+                  </td>
+                  <td width="8" height="4" background="images/NavBarRS.png" ></td>
+              <tr>
+                  <td align="right" valign="top"><img src= "images/NavBarBL.png"></td>
+                  <td background="images/NavBarB.png"></td>
+                  <td align="left"><img src="images/NavBarBR.png"></td>
+              </tr>
+              </tbody>
+          </table>
+        </td>
+    </tr>
+    
+    <tr>
+        <td>
+          <table border="0" cellspacing="0" cellpadding="0" width="100%">
+              <tbody>
+              
+              <tr>
+                  <td background="images/ContentBoxLS.png" width="8"></td>
+                  <td align="left">
+                                                 <p>
                                 TBD
-                        </p>
-                    				</div>
-			</td>
-			<td background="images/WhiteR.png" width="14"></td>
-		</tr>
-		
-		<tr>
-			<td background="images/WhiteBL.png" width="15" height="14"></td>
-			<td background="images/WhiteB.png" ></td>
-			<td background="images/WhiteBR.png" width="14"></td>
-		</tr>
-		
-	</table>
-	            	                	<table class="content" border="0" width="90%" cellspacing="0" cellpadding="0" align="center">
-		<tr class="title" height="17" background="images/TitleC.png">
-			<td align="left">
-				<img src="images/TitleL.png" width="15" height="17" alt=""></td>
-			<td align="center" height="17" id="title" background="images/TitleC.png">
-				     <a href="#">Logging</a>
-			</td>
-			<td align="right">
-				<img src="images/TitleR.png" width="14" height="17" alt=""></td>
-		</tr>
-		<tr>
-			<td background="images/WhiteL.png" width="15"></td>
-			<td width="100%">
-				<div id="content">
-                                            <p>
+                        </p> 
+                                              </td>
+                  <td width="8" height="4" background="images/ContentBoxRS.png" >
+                  </td>
+              </tr>
+              <tr>
+                  <td align="right" valign="bottom"><img src= "images/ContentBoxBL.png"></td>
+                  <td background="images/ContentBoxB.png"></td>
+                  <td align="left"><img src="images/ContentBoxBR.png"></td>
+              </tr>
+              </tbody>
+          </table>
+        </td>
+    </tr>
+    </table>
+	            	                	<table class="content" border="0" width="98%" cellspacing="0" cellpadding="0" align="left">
+    <tr class="title" height="17" >
+        <td>
+          <table border="0" cellspacing="0" cellpadding="0" width="100%">
+              <tbody>
+              <tr>
+                  <td align="right" width="8" height="4"><img src= "images/NavBarTL.png"></td>
+                  <td height="4" background="images/NavBarT.png"></td>
+                  <td align="left"><img src="images/NavBarTR.png"></td>
+              </tr>
+              <tr>
+                  <td background="images/NavBarLS.png" width="8"></td>
+                  <td align="center" background="images/NavBarM.png">
+                        <a href="#">Logging</a>
+                  </td>
+                  <td width="8" height="4" background="images/NavBarRS.png" ></td>
+              <tr>
+                  <td align="right" valign="top"><img src= "images/NavBarBL.png"></td>
+                  <td background="images/NavBarB.png"></td>
+                  <td align="left"><img src="images/NavBarBR.png"></td>
+              </tr>
+              </tbody>
+          </table>
+        </td>
+    </tr>
+    
+    <tr>
+        <td>
+          <table border="0" cellspacing="0" cellpadding="0" width="100%">
+              <tbody>
+              
+              <tr>
+                  <td background="images/ContentBoxLS.png" width="8"></td>
+                  <td align="left">
+                                                 <p>
                                 TBD
-                        </p>
-                    				</div>
-			</td>
-			<td background="images/WhiteR.png" width="14"></td>
-		</tr>
-		
-		<tr>
-			<td background="images/WhiteBL.png" width="15" height="14"></td>
-			<td background="images/WhiteB.png" ></td>
-			<td background="images/WhiteBR.png" width="14"></td>
-		</tr>
-		
-	</table>
+                        </p> 
+                                              </td>
+                  <td width="8" height="4" background="images/ContentBoxRS.png" >
+                  </td>
+              </tr>
+              <tr>
+                  <td align="right" valign="bottom"><img src= "images/ContentBoxBL.png"></td>
+                  <td background="images/ContentBoxB.png"></td>
+                  <td align="left"><img src="images/ContentBoxBR.png"></td>
+              </tr>
+              </tbody>
+          </table>
+        </td>
+    </tr>
+    </table>
 	                        </td>
 	</table>
     <div class="copyright">
@@ -548,6 +799,8 @@
 </body>
 </html>
 <!-- end the processing -->
+
+
 
 
 



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org