[jboss-cvs] JBossAS SVN: r78880 - projects/docs/enterprise/4.3/Cache/Cache_Pojo_Cache_Guide/zh-CN.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Sep 25 21:48:14 EDT 2008


Author: xhuang at jboss.com
Date: 2008-09-25 21:48:14 -0400 (Thu, 25 Sep 2008)
New Revision: 78880

Modified:
   projects/docs/enterprise/4.3/Cache/Cache_Pojo_Cache_Guide/zh-CN/Architecture.po
   projects/docs/enterprise/4.3/Cache/Cache_Pojo_Cache_Guide/zh-CN/Author_Group.po
   projects/docs/enterprise/4.3/Cache/Cache_Pojo_Cache_Guide/zh-CN/Instrumentation.po
   projects/docs/enterprise/4.3/Cache/Cache_Pojo_Cache_Guide/zh-CN/Jbossaop.po
   projects/docs/enterprise/4.3/Cache/Cache_Pojo_Cache_Guide/zh-CN/Revision_History.po
Log:
update

Modified: projects/docs/enterprise/4.3/Cache/Cache_Pojo_Cache_Guide/zh-CN/Architecture.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_Pojo_Cache_Guide/zh-CN/Architecture.po	2008-09-26 01:42:33 UTC (rev 78879)
+++ projects/docs/enterprise/4.3/Cache/Cache_Pojo_Cache_Guide/zh-CN/Architecture.po	2008-09-26 01:48:14 UTC (rev 78880)
@@ -1,18 +1,20 @@
+# translation of Architecture.po to
 # Language /tmp/mike/JBEAP420/Cache translations for JBEAP package.
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007, 2008 Free Software Foundation, Inc.
 # Automatically generated, 2007.
 #
 msgid ""
 msgstr ""
-"Project-Id-Version: JBEAP 420\n"
+"Project-Id-Version: Architecture\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2008-09-21 04:57+0000\n"
-"PO-Revision-Date: 2001-02-09 01:25+0100\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2008-09-26 11:47+1000\n"
+"Last-Translator: \n"
+"Language-Team:  <en at li.org>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
 
 #. Tag: title
 #: Architecture.xml:5
@@ -186,6 +188,15 @@
 "   putObject(new Fqn(fqn, field.getName()), value);\n"
 "}"
 msgstr ""
+"for (Iterator i = type.getFields().iterator(); i.hasNext();) {\n"
+"   Field field = (Field) i.next();\n"
+"   Object value = field.get(obj);\n"
+"   CachedType fieldType = getCachedType(field.getType());\n"
+"   if (fieldType.isImmediate()) {\n"
+"    immediates.put(field.getName(), value);\n"
+"} else {\n"
+"   putObject(new Fqn(fqn, field.getName()), value);\n"
+"}"
 
 #. Tag: para
 #: Architecture.xml:77
@@ -207,6 +218,10 @@
 "\n"
 "cache.putObject(\"/aop/joe\", joe);"
 msgstr ""
+"Person joe = new Person();\n"
+"joe.setAddress(new Address());\n"
+"\n"
+"cache.putObject(\"/aop/joe\", joe);"
 
 #. Tag: para
 #: Architecture.xml:81
@@ -468,6 +483,31 @@
 "int zip = joeAddr.getAddress().getZip(); // Should be 95123 as well instead "
 "of 94086!"
 msgstr ""
+"/**\n"
+" * Code snippet on cache2 during fail-over\n"
+" */\n"
+"import org.jboss.cache.PropertyConfigurator;\n"
+"import org.jboss.cache.aop.PojoCache;\n"
+"import org.jboss.test.cache.test.standAloneAop.Person;\n"
+"import org.jboss.test.cache.test.standAloneAop.Address;\n"
+"\n"
+"PojoCache tree = new PojoCache();\n"
+"PropertyConfigurator config = new PropertyConfigurator(); // configure tree "
+"cache.\n"
+"config.configure(tree, \"META-INF/replSync-service.xml\");\n"
+"\n"
+"tree.startService(); // kick start tree\n"
+"Person joe = tree.getObject(\"/aop/joe\"); // retrieve the POJO reference.\n"
+"Person mary = tree.getObject(\"/aop/mary\"); // retrieve the POJO "
+"reference.\n"
+"\n"
+"Address joeAddr = joe.getAddress();\n"
+"Address maryAddr = mary.getAddress(); // joeAddr and maryAddr should be the "
+"same instance!!!\n"
+"\n"
+"maryAddr = mary.getAddress().setZip(95123);\n"
+"int zip = joeAddr.getAddress().getZip(); // Should be 95123 as well instead "
+"of 94086!"
 
 #. Tag: title
 #: Architecture.xml:140
@@ -515,6 +555,21 @@
 "joe.setYear(\"Junior\"); // will be intercepted by the cache\n"
 "joe.setName(\"Joe Black II\"); // also intercepted by the cache"
 msgstr ""
+"import org.jboss.test.cache.test.standAloneAop.Student;\n"
+"\n"
+"Student joe = new Student(); // Student extends Person class\n"
+"joe.setName(\"Joe Black\"); // This is base class attributes\n"
+"joe.setAge(22); // This is also base class attributes\n"
+"joe.setYear(\"Senior\"); // This is Student class attribute\n"
+"\n"
+"tree.putObject(\"/aop/student/joe\", joe);\n"
+"\n"
+"//...\n"
+"\n"
+"joe = (Student)tree.putObject(\"/aop/student/joe\");\n"
+"Person person = (Person)joe; // it will be correct here\n"
+"joe.setYear(\"Junior\"); // will be intercepted by the cache\n"
+"joe.setName(\"Joe Black II\"); // also intercepted by the cache"
 
 #. Tag: title
 #: Architecture.xml:148
@@ -566,6 +621,16 @@
 "reference\n"
 "proxyList.add(\"FOUR\"); // This will be intercepted by the cache"
 msgstr ""
+"List list = new ArrayList();\n"
+"list.add(\"ONE\");\n"
+"list.add(\"TWO\");\n"
+"\n"
+"tree.putObject(\"/aop/list\", list);\n"
+"list.add(\"THREE\"); // This won't intercept by the cache!\n"
+"\n"
+"List proxyList = tree.getObject(\"/aop/list\"; // Note that list is a proxy "
+"reference\n"
+"proxyList.add(\"FOUR\"); // This will be intercepted by the cache"
 
 #. Tag: para
 #: Architecture.xml:164
@@ -591,6 +656,17 @@
 "ArrayList lang = joe.getLanguages(); // Note that lang is a proxy reference\n"
 "lang.add(\"French\"); // This will be intercepted by the cache"
 msgstr ""
+"Person joe = new Person();\n"
+"joe.setName(\"Joe Black\"); // This is base class attributes\n"
+"ArrayList lang = new ArrayList();\n"
+"lang.add(\"English\");\n"
+"lang.add(\"Mandarin\");\n"
+"joe.setLanguages(lang);\n"
+"// This will map the languages List automatically and swap it out with the "
+"proxy reference.\n"
+"tree.putObject(\"/aop/student/joe\", joe);\n"
+"ArrayList lang = joe.getLanguages(); // Note that lang is a proxy reference\n"
+"lang.add(\"French\"); // This will be intercepted by the cache"
 
 #. Tag: para
 #: Architecture.xml:168
@@ -626,6 +702,17 @@
 "tree.removeObject(\"/aop/list\"); // detach from the cache\n"
 "proxyList.add(\"FOUR\"); // proxyList has 4 elements still."
 msgstr ""
+"List list = new ArrayList();\n"
+"list.add(\"ONE\");\n"
+"list.add(\"TWO\");\n"
+"\n"
+"tree.putObject(\"/aop/list\", list);\n"
+"List proxyList = tree.getObject(\"/aop/list\"); // Note that list is a proxy "
+"reference\n"
+"proxyList.add(\"THREE\"); // This will be intercepted by the cache\n"
+"\n"
+"tree.removeObject(\"/aop/list\"); // detach from the cache\n"
+"proxyList.add(\"FOUR\"); // proxyList has 4 elements still."
 
 #. Tag: title
 #: Architecture.xml:175
@@ -666,3 +753,4 @@
 "items to a Set is slower than a List or Map, since Set does not allow "
 "duplicate entries."
 msgstr ""
+

Modified: projects/docs/enterprise/4.3/Cache/Cache_Pojo_Cache_Guide/zh-CN/Author_Group.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_Pojo_Cache_Guide/zh-CN/Author_Group.po	2008-09-26 01:42:33 UTC (rev 78879)
+++ projects/docs/enterprise/4.3/Cache/Cache_Pojo_Cache_Guide/zh-CN/Author_Group.po	2008-09-26 01:48:14 UTC (rev 78880)
@@ -1,3 +1,4 @@
+# translation of Author_Group.po to
 # Language zh-CN translations for  package.
 # Automatically generated, 2008.
 #
@@ -3,17 +4,19 @@
 msgid ""
 msgstr ""
-"Project-Id-Version:  \n"
+"Project-Id-Version: Author_Group\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2008-09-21 04:57+0000\n"
-"PO-Revision-Date: 2008-09-21 04:57+0000\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2008-09-26 11:44+1000\n"
+"Last-Translator: \n"
+"Language-Team:  <en at li.org>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
 
 #. Tag: firstname
 #: Author_Group.xml:6
 #, no-c-format
 msgid "Ben Wang, Scott Marlow"
-msgstr ""
+msgstr "Ben Wang, Scott Marlow"
+

Modified: projects/docs/enterprise/4.3/Cache/Cache_Pojo_Cache_Guide/zh-CN/Instrumentation.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_Pojo_Cache_Guide/zh-CN/Instrumentation.po	2008-09-26 01:42:33 UTC (rev 78879)
+++ projects/docs/enterprise/4.3/Cache/Cache_Pojo_Cache_Guide/zh-CN/Instrumentation.po	2008-09-26 01:48:14 UTC (rev 78880)
@@ -1,18 +1,20 @@
+# translation of Instrumentation.po to
 # Language /tmp/mike/JBEAP420/Cache translations for JBEAP package.
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007, 2008 Free Software Foundation, Inc.
 # Automatically generated, 2007.
 #
 msgid ""
 msgstr ""
-"Project-Id-Version: JBEAP 420\n"
+"Project-Id-Version: Instrumentation\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2008-09-21 04:57+0000\n"
-"PO-Revision-Date: 2001-02-09 01:25+0100\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2008-09-26 11:46+1000\n"
+"Last-Translator: \n"
+"Language-Team:  <en at li.org>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
 
 #. Tag: title
 #: Instrumentation.xml:5
@@ -109,6 +111,12 @@
 "standAloneAop.Person}-&gt;*)\" /&gt;\n"
 "&lt;/aop&gt;"
 msgstr ""
+"&lt;aop&gt;\n"
+"  &lt;prepare expr=\"field(* org.jboss.test.cache.test.standAloneAop.Address-"
+"&gt;*)\" /&gt;\n"
+"  &lt;prepare expr=\"field(* &#36;instanceof{org.jboss.test.cache.test."
+"standAloneAop.Person}-&gt;*)\" /&gt;\n"
+"&lt;/aop&gt;"
 
 #. Tag: para
 #: Instrumentation.xml:26
@@ -123,8 +131,7 @@
 #. Tag: para
 #: Instrumentation.xml:31
 #, no-c-format
-msgid ""
-"The wildcard at the end of the expression signifies all fields in the POJO"
+msgid "The wildcard at the end of the expression signifies all fields in the POJO"
 msgstr ""
 
 #. Tag: para
@@ -245,6 +252,10 @@
 "        */\n"
 "        public class Address {...}"
 msgstr ""
+"/**\n"
+"        * @@org.jboss.cache.aop.AopMarker\n"
+"        */\n"
+"        public class Address {...}"
 
 #. Tag: para
 #: Instrumentation.xml:68
@@ -377,6 +388,27 @@
 "   ge.setSpecialAddress(d2); \n"
 "   // Now this will."
 msgstr ""
+"Gadget gadget = new Gadget();\n"
+"   Resource resource = new Resouce();\n"
+"   SepcialAddress specialAddress = new SpecialAddress();\n"
+"\n"
+"   // setters\n"
+"   gadget.setResource(resource);\n"
+"   gadget.setSpecialAddress(specialAddress);\n"
+"\n"
+"   cache1.putObject(\"/gadget\", gadget); // put into PojoCache management\n"
+"\n"
+"   Gadget g2 = (Gadget)cache2.getObject(\"/gadget\"); \n"
+"   // retrieve it from another cache instance\n"
+"   g2.getResource(); \n"
+"   // This is should be null becuase of @Transient tag so it is not "
+"replicated.\n"
+"\n"
+"   SepcialAddress d2 = g2.getSpecialAddress();\n"
+"   d2.setName(\"inet\"); \n"
+"   // This won't get replicated automatically because of @Serializable tag\n"
+"   ge.setSpecialAddress(d2); \n"
+"   // Now this will."
 
 #. Tag: title
 #: Instrumentation.xml:92
@@ -417,6 +449,14 @@
 "       &lt;/fileset/&gt;\n"
 "   &lt;/path/&gt;"
 msgstr ""
+"&lt;path id=\"aop.classpath\"/&gt;\n"
+"       &lt;fileset dir=\"&#36;{lib}\"/&gt;\n"
+"          &lt;include name=\"**/*.jar\" //&gt;\n"
+"          &lt;exclude name=\"**/jboss-cache.jar\" //&gt;\n"
+"          &lt;exclude name=\"**/j*unit.jar\" //&gt;\n"
+"          &lt;exclude name=\"**/bsh*.jar\" //&gt;\n"
+"       &lt;/fileset/&gt;\n"
+"   &lt;/path/&gt;"
 
 #. Tag: title
 #: Instrumentation.xml:99
@@ -484,6 +524,46 @@
 "      &lt;/junit&gt;\n"
 "  &lt;/target&gt;"
 msgstr ""
+"&lt;target name=\"generateClassLoader\" description=\n"
+"           \"Generate a new modified class loader so we can perform load "
+"time instrumentation\"&gt;\n"
+"      &lt;property name=\"build.bootclasspath\" value=\"&#36;{output}/gen-"
+"bootclasspath\"/&gt;\n"
+"      &lt;java classname=\"org.jboss.aop.hook.GenerateInstrumentedClassLoader"
+"\"&gt;\n"
+"         &lt;classpath&gt;\n"
+"            &lt;path refid=\"aop.classpath\"/&gt;\n"
+"         &lt;/classpath&gt;\n"
+"         &lt;arg value=\"&#36;{build.bootclasspath}\"/&gt;\n"
+"      &lt;/java&gt;\n"
+"      &lt;path id=\"bootclasspath\"&gt;\n"
+"         &lt;pathelement location=\"&#36;{build.bootclasspath}\"/&gt;\n"
+"         &lt;path refid=\"aop.classpath\"/&gt;\n"
+"      &lt;/path&gt;\n"
+"      &lt;property name=\"bootclasspath\" refid=\"bootclasspath\"/&gt;\n"
+"   &lt;/target&gt;\n"
+"\n"
+"   &lt;!-- eg. ant run.examples -Dtest=org.jboss.test.cache.test.local."
+"NoTxUnitTestCase --&gt;\n"
+"   &lt;target name=\"one.test.aop\" depends=\"compile, generateClassLoader"
+"\" \n"
+"   description=\"run one junit test case.\"&gt;\n"
+"      &lt;junit printsummary=\"yes\" timeout=\"&#36;{junit.timeout}\" fork="
+"\"yes\"&gt;\n"
+"         &lt;jvmarg value=\"-Djboss.aop.path=&#36;{output}/etc/META-INF/"
+"jboss-aop.xml\"/&gt;\n"
+"         &lt;jvmarg value=\"-Xbootclasspath/p:&#36;{bootclasspath}\"/&gt;\n"
+"         &lt;!-- jvmarg value=\"-Dbind.address=&#36;{bind.address}\"/ --"
+"&gt;\n"
+"         &lt;classpath path=\"&#36;{output}/etc\" /&gt;\n"
+"         &lt;sysproperty key=\"log4j.configuration\" value=\"file:&#36;"
+"{output}/etc/log4j.xml\" /&gt;\n"
+"         &lt;classpath refid=\"lib.classpath\"/&gt;\n"
+"         &lt;classpath path=\"&#36;{build}\"/&gt;\n"
+"         &lt;formatter type=\"xml\" usefile=\"true\"/&gt;\n"
+"         &lt;test name=\"&#36;{test}\" todir=\"&#36;{reports}\"/&gt;\n"
+"      &lt;/junit&gt;\n"
+"  &lt;/target&gt;"
 
 #. Tag: para
 #: Instrumentation.xml:104
@@ -516,6 +596,23 @@
 "     &lt;/junit&gt;\n"
 "   &lt;/target&gt;"
 msgstr ""
+"&lt;target name=\"one.test.aop50\" depends=\"compile, generateClassLoader\"\n"
+"   description=\"run one junit test case.\"&gt;\n"
+"     &lt;junit printsummary=\"yes\" timeout=\"&#36;{junit.timeout}\" fork="
+"\"yes\"&gt;\n"
+"        &lt;jvmarg value=\"-Djboss.aop.path=&#36;{output}/resources/jboss-"
+"aop.xml\"/&gt;\n"
+"        &lt;jvmarg value=\"-javaagent:&#36;{lib-50}/jboss-aop-jdk50.jar\"/"
+"&gt;\n"
+"        &lt;classpath path=\"&#36;{output}/etc\" /&gt;\n"
+"        &lt;sysproperty key=\"log4j.configuration\" value=\"file:&#36;"
+"{output}/etc/log4j.xml\" /&gt;\n"
+"        &lt;classpath refid=\"lib.classpath.50\"/&gt;\n"
+"        &lt;classpath refid=\"build.classpath.50\"/&gt;\n"
+"        &lt;formatter type=\"xml\" usefile=\"true\"/&gt;\n"
+"        &lt;test name=\"&#36;{test}\" todir=\"&#36;{reports}\"/&gt;\n"
+"     &lt;/junit&gt;\n"
+"   &lt;/target&gt;"
 
 #. Tag: title
 #: Instrumentation.xml:107
@@ -549,6 +646,18 @@
 "      &lt;/aopc&gt;\n"
 "   &lt;/target&gt;"
 msgstr ""
+"&lt;taskdef name=\"aopc\" classname=\"org.jboss.aop.ant.AopC\" classpathref="
+"\"aop.classpath\"/&gt;\n"
+"   &lt;target name=\"aopc\" depends=\"compile\" description=\"Precompile aop "
+"class\"&gt;\n"
+"      &lt;aopc compilerclasspathref=\"aop.classpath\" verbose=\"true\"&gt;\n"
+"         &lt;src path=\"&#36;{build}\"/&gt;\n"
+"         &lt;include name=\"org/jboss/cache/aop/test/**/*.class\"/&gt;\n"
+"         &lt;aoppath path=\"&#36;{output}/etc/META-INF/jboss-aop.xml\"/&gt;\n"
+"         &lt;classpath path=\"&#36;{build}\"/&gt;\n"
+"         &lt;classpath refid=\"lib.classpath\"/&gt;\n"
+"      &lt;/aopc&gt;\n"
+"   &lt;/target&gt;"
 
 #. Tag: para
 #: Instrumentation.xml:112
@@ -607,3 +716,25 @@
 "       &lt;/annotationc&gt;\n"
 "   &lt;/target&gt;"
 msgstr ""
+"&lt;!-- pre-compile directory with annotationc using jdk1.4 --&gt;\n"
+"   &lt;target name=\"annoc\" depends=\"compile\" description=\"Annotation "
+"precompiler for aop class\"&gt;\n"
+"      &lt;!-- Define a new ant target. This is the 1.4 annotation pre-"
+"compiler. \n"
+"      After running this step, you still need to run the aopc step again,\n"
+"      if you are not using system class loader.\n"
+"      --&gt;\n"
+"       &lt;taskdef name=\"annotationc\" classname=\"org.jboss.aop.ant."
+"AnnotationC\" \n"
+"       classpathref=\"aop.classpath\"/&gt;\n"
+"       &lt;annotationc compilerclasspathref=\"aop.classpath\" bytecode=\"true"
+"\"&gt;\n"
+"          &lt;classpath refid=\"lib.classpath\"/&gt;\n"
+"          &lt;classpath path=\"&#36;{build}\"/&gt;\n"
+"          &lt;!--System wide jboss-aop.xml is located here. --&gt;\n"
+"          &lt;classpath path=\"&#36;{output.resources.dir}\"/&gt;\n"
+"          &lt;src path=\"&#36;{source}\"/&gt;\n"
+"          &lt;include name=\"org/jboss/cache/aop/test/**/*.java\"/&gt;\n"
+"       &lt;/annotationc&gt;\n"
+"   &lt;/target&gt;"
+

Modified: projects/docs/enterprise/4.3/Cache/Cache_Pojo_Cache_Guide/zh-CN/Jbossaop.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_Pojo_Cache_Guide/zh-CN/Jbossaop.po	2008-09-26 01:42:33 UTC (rev 78879)
+++ projects/docs/enterprise/4.3/Cache/Cache_Pojo_Cache_Guide/zh-CN/Jbossaop.po	2008-09-26 01:48:14 UTC (rev 78880)
@@ -1,18 +1,20 @@
+# translation of Jbossaop.po to
 # Language /tmp/mike/JBEAP420/Cache translations for JBEAP package.
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007, 2008 Free Software Foundation, Inc.
 # Automatically generated, 2007.
 #
 msgid ""
 msgstr ""
-"Project-Id-Version: JBEAP 420\n"
+"Project-Id-Version: Jbossaop\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2008-09-21 04:57+0000\n"
-"PO-Revision-Date: 2001-02-09 01:25+0100\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2008-09-26 11:47+1000\n"
+"Last-Translator: \n"
+"Language-Team:  <en at li.org>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
 
 #. Tag: title
 #: Jbossaop.xml:5
@@ -101,6 +103,22 @@
 "     }\n"
 "   }"
 msgstr ""
+"public class BankAccountDAO\n"
+"   {\n"
+"     public void withdraw(double amount)\n"
+"     {\n"
+"       long startTime = System.currentTimeMillis();\n"
+"       try\n"
+"       {\n"
+"         // Actual method body...\n"
+"       }\n"
+"       finally\n"
+"       {\n"
+"         long endTime = System.currentTimeMillis() - startTime;\n"
+"         System.out.println(\"withdraw took: \" + endTime);\n"
+"       }\n"
+"     }\n"
+"   }"
 
 #. Tag: para
 #: Jbossaop.xml:23
@@ -189,6 +207,25 @@
 "16.   }\n"
 "17. }"
 msgstr ""
+"01. public class Metrics implements org.jboss.aop.advice.Interceptor\n"
+"02. {\n"
+"03.   public Object invoke(Invocation invocation) throws Throwable\n"
+"04.   {\n"
+"05.     long startTime = System.currentTimeMillis();\n"
+"06.     try\n"
+"07.     {\n"
+"08.       return invocation.invokeNext();\n"
+"09.     }\n"
+"10.     finally\n"
+"11.     {\n"
+"12.       long endTime = System.currentTimeMillis() - startTime;\n"
+"13.       java.lang.reflect.Method m = ((MethodInvocation)invocation)."
+"method;\n"
+"14.       System.out.println(\"method \" + m.toString() + \" time: \" + "
+"endTime + \"ms\");\n"
+"15.     }\n"
+"16.   }\n"
+"17. }"
 
 #. Tag: para
 #: Jbossaop.xml:43
@@ -269,6 +306,14 @@
 "5.       &lt;interceptor class=\"com.mc.Metrics\"/&gt;\n"
 "6. &lt;/bind &gt;"
 msgstr ""
+"1. &lt;bind pointcut=\"public void com.mc.BankAccountDAO-&gt;withdraw(double "
+"amount)\"&gt;\n"
+"2.       &lt;interceptor class=\"com.mc.Metrics\"/&gt;\n"
+"3. &lt;/bind &gt;\n"
+"\n"
+"4. &lt;bind pointcut=\"* com.mc.billing.*-&gt;*(..)\"&gt;\n"
+"5.       &lt;interceptor class=\"com.mc.Metrics\"/&gt;\n"
+"6. &lt;/bind &gt;"
 
 #. Tag: para
 #: Jbossaop.xml:63
@@ -366,6 +411,16 @@
 "   public Advisor _getAdvisor();\n"
 "}"
 msgstr ""
+"public interface InstanceAdvised\n"
+"{\n"
+"   public InstanceAdvisor _getInstanceAdvisor();\n"
+"   public void _setInstanceAdvisor(InstanceAdvisor newAdvisor);\n"
+"}\n"
+"\n"
+"public interface Advised extends InstanceAdvised\n"
+"{\n"
+"   public Advisor _getAdvisor();\n"
+"}"
 
 #. Tag: para
 #: Jbossaop.xml:85
@@ -394,6 +449,19 @@
 "\n"
 "}"
 msgstr ""
+"public interface InstanceAdvisor\n"
+"{\n"
+"   public void insertInterceptor(Interceptor interceptor);\n"
+"   public void removeInterceptor(String name);\n"
+"   public void appendInterceptor(Interceptor interceptor);\n"
+"\n"
+"   public void insertInterceptorStack(String stackName);\n"
+"   public void removeInterceptorStack(String name);\n"
+"   public void appendInterceptorStack(String stackName);\n"
+"\n"
+"   public SimpleMetaData getMetaData();\n"
+"\n"
+"}"
 
 #. Tag: para
 #: Jbossaop.xml:89
@@ -552,3 +620,31 @@
 "      }\n"
 "   }"
 msgstr ""
+"package com.mypackage;\n"
+"\n"
+"   /**\n"
+"    * @@com.mypackage.MyAnnotation (myString=\"class\", myInteger=5)\n"
+"    */\n"
+"   public class MyClass\n"
+"   {\n"
+"      /**\n"
+"       * @@com.mypackage.MyAnnotation (myString=\"field\", myInteger=4)\n"
+"       */\n"
+"      private String myField;\n"
+"\n"
+"      /**\n"
+"       * @@com.mypackage.MyAnnotation (myString=\"constructor\", "
+"myInteger=3)\n"
+"       */\n"
+"      public MyClass()\n"
+"      {\n"
+"      }\n"
+"\n"
+"      /**\n"
+"       * @@com.mypackage.MyAnnotation (myString=\"method\", myInteger=3)\n"
+"       */\n"
+"      public int myMethod()\n"
+"      {\n"
+"      }\n"
+"   }"
+

Modified: projects/docs/enterprise/4.3/Cache/Cache_Pojo_Cache_Guide/zh-CN/Revision_History.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_Pojo_Cache_Guide/zh-CN/Revision_History.po	2008-09-26 01:42:33 UTC (rev 78879)
+++ projects/docs/enterprise/4.3/Cache/Cache_Pojo_Cache_Guide/zh-CN/Revision_History.po	2008-09-26 01:48:14 UTC (rev 78880)
@@ -1,3 +1,4 @@
+# translation of Revision_History.po to
 # Language zh-CN translations for  package.
 # Automatically generated, 2008.
 #
@@ -3,23 +4,25 @@
 msgid ""
 msgstr ""
-"Project-Id-Version:  \n"
+"Project-Id-Version: Revision_History\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2008-09-21 04:57+0000\n"
-"PO-Revision-Date: 2008-09-21 04:57+0000\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2008-09-26 11:45+1000\n"
+"Last-Translator: \n"
+"Language-Team:  <en at li.org>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
 
 #. Tag: title
 #: Revision_History.xml:6
 #, no-c-format
 msgid "Revision History"
-msgstr ""
+msgstr "修订历史记录"
 
 #. Tag: author
 #: Revision_History.xml:12
 #, no-c-format
 msgid "<firstname></firstname> <surname></surname> <email></email>"
-msgstr ""
+msgstr "<firstname></firstname> <surname></surname> <email></email>"
+




More information about the jboss-cvs-commits mailing list