[webbeans-commits] Webbeans SVN: r696 - ri/trunk/examples/numberguess/WebContent.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-12-24 05:29:43 -0500 (Wed, 24 Dec 2008)
New Revision: 696
Modified:
ri/trunk/examples/numberguess/WebContent/home.xhtml
Log:
WBRI-78
Modified: ri/trunk/examples/numberguess/WebContent/home.xhtml
===================================================================
--- ri/trunk/examples/numberguess/WebContent/home.xhtml 2008-12-23 21:46:10 UTC (rev 695)
+++ ri/trunk/examples/numberguess/WebContent/home.xhtml 2008-12-24 10:29:43 UTC (rev 696)
@@ -21,10 +21,10 @@
<div>
Your guess:
- <h:inputText id="inputGuess" value="#{game.guess}" required="true" size="3">
+ <h:inputText id="inputGuess" value="#{game.guess}" required="true" size="3" disabled="#{game.number eq game.guess}">
<f:validateLongRange maximum="#{game.biggest}" minimum="#{game.smallest}"/>
</h:inputText>
- <h:commandButton id="GuessButton" value="Guess" action="#{game.check}"/>
+ <h:commandButton id="GuessButton" value="Guess" action="#{game.check}" disabled="#{game.number eq game.guess}"/>
</div>
</h:form>
</ui:define>
16 years
[webbeans-commits] Webbeans SVN: r695 - ri/trunk/dist.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-12-23 16:46:10 -0500 (Tue, 23 Dec 2008)
New Revision: 695
Added:
ri/trunk/dist/release-process.txt
Log:
add basic release instructions
Added: ri/trunk/dist/release-process.txt
===================================================================
--- ri/trunk/dist/release-process.txt (rev 0)
+++ ri/trunk/dist/release-process.txt 2008-12-23 21:46:10 UTC (rev 695)
@@ -0,0 +1,16 @@
+Release process for Web Beans RI
+--------------------------------
+
+* Run the testsuite and examples
+* Tag using mvn release:prepare in the ri/trunk checkout
+* Tag docs using mvn release:prepare in the doc/trunk/reference checkout
+* Check the tag
+* Build the maven artifacts using release:perform in both locations
+* Verify the checkout of the tag
+* Release the webbeans-ri-int for jbossas if necessary
+* Edit the checkout of the tag, and alter the versions in jboss-as/build.properties to released versions
+* Edit the checkout of the tag, and alter the versions of all poms under examples to be the released versions
+* Checkin tag changes
+* Build the dist, and verify by installing to a clean copy of jbossas and running examples
+* Commit maven artifacts and try on a clean box
+* Upload dist to sf.net, docs to docs.jboss.org, write blog, release in JIRA, announce
16 years
[webbeans-commits] Webbeans SVN: r694 - ri/trunk/jboss-as.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-12-23 16:39:30 -0500 (Tue, 23 Dec 2008)
New Revision: 694
Modified:
ri/trunk/jboss-as/build.properties
ri/trunk/jboss-as/build.xml
Log:
externalize versions
Modified: ri/trunk/jboss-as/build.properties
===================================================================
--- ri/trunk/jboss-as/build.properties 2008-12-23 20:19:57 UTC (rev 693)
+++ ri/trunk/jboss-as/build.properties 2008-12-23 21:39:30 UTC (rev 694)
@@ -1 +1,4 @@
#jboss.home=/Applications/jboss-5.0.0.GA
+webbeans-ri-int.version=5.2.0-SNAPSHOT
+webbeans-ri.version=1.0.0-SNAPSHOT
+jboss-ejb3.version=1.0.0-Alpha1
Modified: ri/trunk/jboss-as/build.xml
===================================================================
--- ri/trunk/jboss-as/build.xml 2008-12-23 20:19:57 UTC (rev 693)
+++ ri/trunk/jboss-as/build.xml 2008-12-23 21:39:30 UTC (rev 694)
@@ -24,9 +24,9 @@
<mkdir dir="target/webbeans.deployer"/>
<artifact:dependencies filesetId="jboss5.deployer.fileset" versionsId="jboss5.deployer.versions">
- <dependency groupId="org.jboss.webbeans.integration" artifactId="webbeans-ri-int-microcontainer" version="5.2.0.ALPHA1"/>
- <dependency groupId="org.jboss.webbeans.integration" artifactId="webbeans-ri-int-jbossas" version="5.2.0.ALPHA1"/>
- <dependency groupId="org.jboss.webbeans" artifactId="webbeans-ri" version="1.0.0-SNAPSHOT"/>
+ <dependency groupId="org.jboss.webbeans.integration" artifactId="webbeans-ri-int-microcontainer" version="${webbeans-ri-int.version}"/>
+ <dependency groupId="org.jboss.webbeans.integration" artifactId="webbeans-ri-int-jbossas" version="${webbeans-ri-int.version}"/>
+ <dependency groupId="org.jboss.webbeans" artifactId="webbeans-ri" version="${webbeans-ri.version}"/>
<remoteRepository id="snapshots.jboss.org" url="http://snapshots.jboss.org/maven2">
<snapshots updatePolicy="always" />
</remoteRepository>
@@ -80,7 +80,7 @@
<fail unless="jboss.home" message="Please pass in -Djboss.home=..."/>
<artifact:dependencies filesetId="jboss.ejb3.plugin.fileset" versionsId="jboss.ejb3.plugin.versions">
- <dependency groupId="org.jboss.ejb3" artifactId="jboss-ejb3-plugin" version="1.0.0-Alpha1" classifier="installer"/>
+ <dependency groupId="org.jboss.ejb3" artifactId="jboss-ejb3-plugin" version="${jboss-ejb3.version}" classifier="installer"/>
<remoteRepository id="repository.jboss.org" url="http://repository.jboss.org/maven2" />
</artifact:dependencies>
16 years
[webbeans-commits] Webbeans SVN: r693 - in ri/tags/1.0.0.ALPHA1: dist and 8 other directories.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-12-23 15:19:57 -0500 (Tue, 23 Dec 2008)
New Revision: 693
Modified:
ri/tags/1.0.0.ALPHA1/dist/build.xml
ri/tags/1.0.0.ALPHA1/examples/login/pom.xml
ri/tags/1.0.0.ALPHA1/examples/numberguess/pom.xml
ri/tags/1.0.0.ALPHA1/examples/pom.xml
ri/tags/1.0.0.ALPHA1/examples/translator/build.xml
ri/tags/1.0.0.ALPHA1/examples/translator/pom.xml
ri/tags/1.0.0.ALPHA1/examples/translator/webbeans-translator-ear/pom.xml
ri/tags/1.0.0.ALPHA1/examples/translator/webbeans-translator-ejb/pom.xml
ri/tags/1.0.0.ALPHA1/examples/translator/webbeans-translator-war/pom.xml
ri/tags/1.0.0.ALPHA1/jboss-as/build.xml
ri/tags/1.0.0.ALPHA1/readme.txt
Log:
jays last minute changes to dist
Modified: ri/tags/1.0.0.ALPHA1/dist/build.xml
===================================================================
--- ri/tags/1.0.0.ALPHA1/dist/build.xml 2008-12-23 20:17:43 UTC (rev 692)
+++ ri/tags/1.0.0.ALPHA1/dist/build.xml 2008-12-23 20:19:57 UTC (rev 693)
@@ -22,7 +22,6 @@
<fail unless="version" message="You must specify the version with -Dversion=1.2.3" />
<maven target="clean" basedir="${wbri.dir}" />
- <maven target="clean" basedir="${refdoc.dir}" />
<delete dir="${wbri.dir}/jboss-as/target" />
<delete dir="${wbri.dir}/webbeans-ri/test-output" />
<delete dir="${wbri.dir}/webbeans-ri/ObjectStore" />
@@ -61,7 +60,6 @@
</fileset>
</copy>
- <maven target="package" basedir="${refdoc.dir}" />
<mkdir dir="${dist.doc.dir}" />
<copy todir="${dist.doc.dir}">
<fileset dir="${refdoc.dir}/target/docbook/publish" />
@@ -137,4 +135,4 @@
</sequential>
</macrodef>
-</project>
\ No newline at end of file
+</project>
Modified: ri/tags/1.0.0.ALPHA1/examples/login/pom.xml
===================================================================
--- ri/tags/1.0.0.ALPHA1/examples/login/pom.xml 2008-12-23 20:17:43 UTC (rev 692)
+++ ri/tags/1.0.0.ALPHA1/examples/login/pom.xml 2008-12-23 20:19:57 UTC (rev 693)
@@ -7,7 +7,7 @@
<parent>
<groupId>org.jboss.webbeans.examples</groupId>
<artifactId>parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.ALPHA1</version>
</parent>
<groupId>org.jboss.webbeans.examples</groupId>
Modified: ri/tags/1.0.0.ALPHA1/examples/numberguess/pom.xml
===================================================================
--- ri/tags/1.0.0.ALPHA1/examples/numberguess/pom.xml 2008-12-23 20:17:43 UTC (rev 692)
+++ ri/tags/1.0.0.ALPHA1/examples/numberguess/pom.xml 2008-12-23 20:19:57 UTC (rev 693)
@@ -7,7 +7,7 @@
<parent>
<groupId>org.jboss.webbeans.examples</groupId>
<artifactId>parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.ALPHA1</version>
</parent>
<groupId>org.jboss.webbeans.examples</groupId>
Modified: ri/tags/1.0.0.ALPHA1/examples/pom.xml
===================================================================
--- ri/tags/1.0.0.ALPHA1/examples/pom.xml 2008-12-23 20:17:43 UTC (rev 692)
+++ ri/tags/1.0.0.ALPHA1/examples/pom.xml 2008-12-23 20:19:57 UTC (rev 693)
@@ -6,7 +6,7 @@
<parent>
<groupId>org.jboss.webbeans</groupId>
<artifactId>parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.ALPHA1</version>
</parent>
<groupId>org.jboss.webbeans.examples</groupId>
<artifactId>parent</artifactId>
Modified: ri/tags/1.0.0.ALPHA1/examples/translator/build.xml
===================================================================
--- ri/tags/1.0.0.ALPHA1/examples/translator/build.xml 2008-12-23 20:17:43 UTC (rev 692)
+++ ri/tags/1.0.0.ALPHA1/examples/translator/build.xml 2008-12-23 20:19:57 UTC (rev 693)
@@ -1,4 +1,4 @@
-<project basedir="." name="Numberguess Example Build" default="restart">
+<project basedir="." name="Translator Example Build" default="restart">
<property name="example.name" value="webbeans-translator" />
<property name="type" value="ear" />
Modified: ri/tags/1.0.0.ALPHA1/examples/translator/pom.xml
===================================================================
--- ri/tags/1.0.0.ALPHA1/examples/translator/pom.xml 2008-12-23 20:17:43 UTC (rev 692)
+++ ri/tags/1.0.0.ALPHA1/examples/translator/pom.xml 2008-12-23 20:19:57 UTC (rev 693)
@@ -6,7 +6,7 @@
<parent>
<groupId>org.jboss.webbeans.examples</groupId>
<artifactId>parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.ALPHA1</version>
</parent>
<groupId>org.jboss.webbeans.examples.translator</groupId>
<artifactId>parent</artifactId>
Modified: ri/tags/1.0.0.ALPHA1/examples/translator/webbeans-translator-ear/pom.xml
===================================================================
--- ri/tags/1.0.0.ALPHA1/examples/translator/webbeans-translator-ear/pom.xml 2008-12-23 20:17:43 UTC (rev 692)
+++ ri/tags/1.0.0.ALPHA1/examples/translator/webbeans-translator-ear/pom.xml 2008-12-23 20:19:57 UTC (rev 693)
@@ -7,7 +7,7 @@
<parent>
<groupId>org.jboss.webbeans.examples.translator</groupId>
<artifactId>parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.ALPHA1</version>
</parent>
<groupId>org.jboss.webbeans.examples</groupId>
Modified: ri/tags/1.0.0.ALPHA1/examples/translator/webbeans-translator-ejb/pom.xml
===================================================================
--- ri/tags/1.0.0.ALPHA1/examples/translator/webbeans-translator-ejb/pom.xml 2008-12-23 20:17:43 UTC (rev 692)
+++ ri/tags/1.0.0.ALPHA1/examples/translator/webbeans-translator-ejb/pom.xml 2008-12-23 20:19:57 UTC (rev 693)
@@ -7,7 +7,7 @@
<parent>
<groupId>org.jboss.webbeans.examples.translator</groupId>
<artifactId>parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.ALPHA1</version>
</parent>
<groupId>org.jboss.webbeans.examples.translator</groupId>
Modified: ri/tags/1.0.0.ALPHA1/examples/translator/webbeans-translator-war/pom.xml
===================================================================
--- ri/tags/1.0.0.ALPHA1/examples/translator/webbeans-translator-war/pom.xml 2008-12-23 20:17:43 UTC (rev 692)
+++ ri/tags/1.0.0.ALPHA1/examples/translator/webbeans-translator-war/pom.xml 2008-12-23 20:19:57 UTC (rev 693)
@@ -7,7 +7,7 @@
<parent>
<groupId>org.jboss.webbeans.examples.translator</groupId>
<artifactId>parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.ALPHA1</version>
</parent>
<groupId>org.jboss.webbeans.examples.translator</groupId>
Modified: ri/tags/1.0.0.ALPHA1/jboss-as/build.xml
===================================================================
--- ri/tags/1.0.0.ALPHA1/jboss-as/build.xml 2008-12-23 20:17:43 UTC (rev 692)
+++ ri/tags/1.0.0.ALPHA1/jboss-as/build.xml 2008-12-23 20:19:57 UTC (rev 693)
@@ -26,7 +26,7 @@
<artifact:dependencies filesetId="jboss5.deployer.fileset" versionsId="jboss5.deployer.versions">
<dependency groupId="org.jboss.webbeans.integration" artifactId="webbeans-ri-int-microcontainer" version="5.2.0.ALPHA1"/>
<dependency groupId="org.jboss.webbeans.integration" artifactId="webbeans-ri-int-jbossas" version="5.2.0.ALPHA1"/>
- <dependency groupId="org.jboss.webbeans" artifactId="webbeans-ri" version="1.0.0-SNAPSHOT"/>
+ <dependency groupId="org.jboss.webbeans" artifactId="webbeans-ri" version="1.0.0.ALPHA1"/>
<remoteRepository id="snapshots.jboss.org" url="http://snapshots.jboss.org/maven2">
<snapshots updatePolicy="always" />
</remoteRepository>
Modified: ri/tags/1.0.0.ALPHA1/readme.txt
===================================================================
--- ri/tags/1.0.0.ALPHA1/readme.txt 2008-12-23 20:17:43 UTC (rev 692)
+++ ri/tags/1.0.0.ALPHA1/readme.txt 2008-12-23 20:19:57 UTC (rev 693)
@@ -12,7 +12,7 @@
the reference guide
jboss-as/
- -- Installer for JBoss AS, change into this directory, and run ant install
+ -- Installer for JBoss AS, change into this directory, and run ant update
There are more details in the reference guide
lib/
16 years
[webbeans-commits] Webbeans SVN: r692 - in ri/trunk: examples and 1 other directories.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-12-23 15:17:43 -0500 (Tue, 23 Dec 2008)
New Revision: 692
Modified:
ri/trunk/dist/build.xml
ri/trunk/examples/build.xml
ri/trunk/jboss-as/build.xml
Log:
fail on error from maven or ejb-update
Modified: ri/trunk/dist/build.xml
===================================================================
--- ri/trunk/dist/build.xml 2008-12-23 19:18:32 UTC (rev 691)
+++ ri/trunk/dist/build.xml 2008-12-23 20:17:43 UTC (rev 692)
@@ -120,7 +120,7 @@
<attribute name="basedir" />
<element name="args" implicit="true" optional="true" />
<sequential>
- <java classname="org.codehaus.classworlds.Launcher" fork="true" dir="@{basedir}">
+ <java classname="org.codehaus.classworlds.Launcher" fork="true" dir="@{basedir}" maxmemory="512m" failonerror="true">
<classpath>
<fileset dir="${maven.dir}/boot">
<include name="*.jar" />
@@ -129,6 +129,7 @@
<include name="*.*" />
</fileset>
</classpath>
+ <jvmarg line="-Xms128m -Xmx512m -XX:MaxPermSize=128m"/>
<sysproperty key="classworlds.conf" value="${maven.dir}/bin/m2.conf" />
<sysproperty key="maven.home" value="${maven.dir}" />
<args />
Modified: ri/trunk/examples/build.xml
===================================================================
--- ri/trunk/examples/build.xml 2008-12-23 19:18:32 UTC (rev 691)
+++ ri/trunk/examples/build.xml 2008-12-23 20:17:43 UTC (rev 692)
@@ -68,7 +68,7 @@
<attribute name="basedir" />
<element name="args" implicit="true" optional="true" />
<sequential>
- <java classname="org.codehaus.classworlds.Launcher" fork="true" dir="@{basedir}">
+ <java classname="org.codehaus.classworlds.Launcher" fork="true" dir="@{basedir}" failonerror="true">
<classpath>
<fileset dir="${maven.dir}/boot">
<include name="*.jar" />
Modified: ri/trunk/jboss-as/build.xml
===================================================================
--- ri/trunk/jboss-as/build.xml 2008-12-23 19:18:32 UTC (rev 691)
+++ ri/trunk/jboss-as/build.xml 2008-12-23 20:17:43 UTC (rev 692)
@@ -92,7 +92,7 @@
<mapper classpathref="maven-ant-tasks.classpath" classname="org.apache.maven.artifact.ant.VersionMapper" from="${jboss.ejb3.plugin.versions}" to="flatten" />
</chainedmapper>
</copy>
- <java jar="target/ejb3.plugin/jboss-ejb3-plugin-installer.jar" fork="true">
+ <java jar="target/ejb3.plugin/jboss-ejb3-plugin-installer.jar" fork="true" failonerror="true">
<arg line="${jboss.home}" />
</java>
</target>
@@ -102,7 +102,7 @@
<attribute name="basedir" />
<element name="args" implicit="true" optional="true" />
<sequential>
- <java classname="org.codehaus.classworlds.Launcher" fork="true" dir="@{basedir}">
+ <java classname="org.codehaus.classworlds.Launcher" fork="true" dir="@{basedir}" failonerror="true">
<classpath>
<fileset dir="${maven.dir}/boot">
<include name="*.jar" />
16 years
[webbeans-commits] Webbeans SVN: r691 - doc/trunk/reference/it-IT/modules.
by webbeans-commits@lists.jboss.org
Author: nico.ben
Date: 2008-12-23 14:18:32 -0500 (Tue, 23 Dec 2008)
New Revision: 691
Modified:
doc/trunk/reference/it-IT/modules/intro.po
Log:
WBRI-69: Italian translation for Web Beans
Modified: doc/trunk/reference/it-IT/modules/intro.po
===================================================================
--- doc/trunk/reference/it-IT/modules/intro.po 2008-12-23 19:00:37 UTC (rev 690)
+++ doc/trunk/reference/it-IT/modules/intro.po 2008-12-23 19:18:32 UTC (rev 691)
@@ -6,7 +6,7 @@
"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:26+0000\n"
-"PO-Revision-Date: 2008-12-23 20:00+0100\n"
+"PO-Revision-Date: 2008-12-23 20:18+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -238,7 +238,7 @@
#: intro.xml:108
#, no-c-format
msgid "which clients share a reference to a particular instance of the Web Bean."
-msgstr "quali client condividono un referenza con una particolare istanza del Web Bean."
+msgstr "quali client condividono una referenza con una particolare istanza del Web Bean."
#. Tag: para
#: intro.xml:113
16 years
[webbeans-commits] Webbeans SVN: r690 - doc/trunk/reference/it-IT/modules.
by webbeans-commits@lists.jboss.org
Author: nico.ben
Date: 2008-12-23 14:00:37 -0500 (Tue, 23 Dec 2008)
New Revision: 690
Modified:
doc/trunk/reference/it-IT/modules/intro.po
Log:
WBRI-69: Italian translation for Web Beans
Modified: doc/trunk/reference/it-IT/modules/intro.po
===================================================================
--- doc/trunk/reference/it-IT/modules/intro.po 2008-12-23 09:56:10 UTC (rev 689)
+++ doc/trunk/reference/it-IT/modules/intro.po 2008-12-23 19:00:37 UTC (rev 690)
@@ -6,7 +6,7 @@
"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:26+0000\n"
-"PO-Revision-Date: 2008-12-22 23:19+0100\n"
+"PO-Revision-Date: 2008-12-23 20:00+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -226,7 +226,7 @@
#: intro.xml:98
#, no-c-format
msgid "However, like a stateless or singleton model, but <emphasis>unlike</emphasis> stateful session beans, the client does not control the lifecycle of the instance by explicitly creating and destroying it. Instead, the <emphasis>scope</emphasis> of the Web Bean determines:"
-msgstr ""
+msgstr "Comunque, in modo simile ad un modello stateless o singleton, ma <emphasis>non come</emphasis> i session bean stateful, il client non ha il controllo del ciclo di vita dell'istanza, creandola e distruggendola esplicitamente. Invece, lo <emphasis>scope</emphasis> del Web Bean determina:"
#. Tag: para
#: intro.xml:105
@@ -238,31 +238,31 @@
#: intro.xml:108
#, no-c-format
msgid "which clients share a reference to a particular instance of the Web Bean."
-msgstr ""
+msgstr "quali client condividono un referenza con una particolare istanza del Web Bean."
#. Tag: para
#: intro.xml:113
#, no-c-format
msgid "For a given thread in a Web Beans application, there may be an <emphasis>active context</emphasis> associated with the scope of the Web Bean. This context may be unique to the thread (for example, if the Web Bean is request scoped), or it may be shared with certain other threads (for example, if the Web Bean is session scoped) or even all other threads (if it is application scoped)."
-msgstr ""
+msgstr "Per un dato thread in un'applicazione Web Beans, ci può essere un <emphasis>contesto attivo</emphasis> associato allo scope del Web Bean. Questo contesto può essere univoco nel thread (per esempio, se il Web Bean è con scope di richesta), o può essere condiviso con alcuni altri thread (per esempio, se il Web Bean è con scope di sessione) od anche tutti gli altri thread (se è scope di applicazione). "
#. Tag: para
#: intro.xml:119
#, no-c-format
msgid "Clients (for example, other Web Beans) executing in the same context will see the same instance of the Web Bean. But clients in a different context will see a different instance."
-msgstr ""
+msgstr "I client (per esempio, altri Web Beans) che sono in esecuzione nello stesso contesto vedranno la stessa istanza del Web Bean. Ma i client in un contesto diverso vedranno un istanza diversa."
#. Tag: para
#: intro.xml:123
#, no-c-format
msgid "One great advantage of the contextual model is that it allows stateful Web Beans to be treated like services! The client need not concern itself with managing the lifecycle of the Web Bean it is using, <emphasis>nor does it even need to know what that lifecyle is.</emphasis> Web Beans interact by passing messages, and the Web Bean implementations define the lifecycle of their own state. The Web Beans are loosely coupled because:"
-msgstr ""
+msgstr "Un grande vantaggio del modello contestuale è che consente ai Web Beans stateful di essere trattati come servizi! Il client non deve preoccuparsi di gestire il ciclo di vita del Web Bean che sta utilizzando, <emphasis>e neppure deve sapere quali sia il ciclo di vita.</emphasis> Web Beans interagisce passando i messaggi, e le implementazioni Web Bean definiscono il ciclo di vita del proprio stato. I Web Beans sono debolmente disaccoppiati (loosely coupled) poiché:"
#. Tag: para
#: intro.xml:132
#, no-c-format
msgid "they interact via well-defined public APIs"
-msgstr ""
+msgstr "interagiscono tramite delle API pubblica ben-definita"
#. Tag: para
#: intro.xml:135
@@ -274,19 +274,20 @@
#: intro.xml:139
#, no-c-format
msgid "We can replace one Web Bean with a different Web Bean that implements the same API and has a different lifecycle (a different scope) without affecting the other Web Bean implementation. In fact, Web Beans defines a sophisticated facility for overriding Web Bean implementations at deployment time, as we will see in <xref linkend=\"deploymenttypes\"/>."
-msgstr ""
+msgstr "Si può sostituire un Web Bean con un diverso Web Bean che implementa la stessa API ed ha un diverso ciclo di vita (un diverso scope) senza alterare l'implementazione dell'altro Web Bean. Infatti Web Beans definisce un meccanismo sofisticato per fare l'override delle implementazioni Web Bean al momento del deploy, come visto in <xref linkend=\"deploymenttypes\"/>."
#. Tag: para
#: intro.xml:145
#, no-c-format
msgid "Note that not all clients of a Web Bean are Web Beans. Other objects such as Servlets or Message-Driven Beans—which are by nature not injectable, contextual objects—may also obtain references to Web Beans by injection."
-msgstr ""
+msgstr "Si noti che non tutti i client dei un Web Bean sono Web Bean. Altri oggetti come Servlet o Message-Driven Beans—che sono per natura non iniettabili, oggetti contestuali—possono pure ottenere riferimenti a Web Bean tramite iniezione."
+# Tolto "Enough hand-waving."
#. Tag: para
#: intro.xml:149
#, no-c-format
msgid "Enough hand-waving. More formally, according to the spec:"
-msgstr ""
+msgstr "Più formalmente, secondo la specifica:"
#. Tag: para
#: intro.xml:153
@@ -340,19 +341,19 @@
#: intro.xml:167
#, no-c-format
msgid "Let's see what some of these terms mean, to the Web Bean developer."
-msgstr ""
+msgstr "Vediamo cosa significano alcuni di questi termini per lo sviluppatore Web Bean."
#. Tag: title
#: intro.xml:170
#, no-c-format
msgid "API types, binding types and dependency injection"
-msgstr ""
+msgstr "Tipi di API, tipi di binding e dependency injection"
#. Tag: para
#: intro.xml:172
#, no-c-format
msgid "Web Beans usually acquire references to other Web Beans via dependency injection. Any injected attribute specifies a \"contract\" that must be satisfied by the Web Bean to be injected. The contract is:"
-msgstr ""
+msgstr "I Web Bean solitamente acquisiscono riferimenti ad altri Web Bean tramite la dependency injection. Ogni attributo iniettato specifica un \"contratto\" che deve essere soddisfatto dal Web Bean per essere iniettato. Il contratto è:"
#. Tag: para
#: intro.xml:177
@@ -366,17 +367,18 @@
msgid "a set of binding types."
msgstr "un set di tipi di binding."
+# client-visible semantic =?
#. Tag: para
#: intro.xml:181
#, no-c-format
msgid "An API is a user-defined class or interface. (If the Web Bean is an EJB session bean, the API type is the <literal>@Local</literal> interface or bean-class local view). A binding type represents some client-visible semantic that is satisfied by some implementations of the API and not by others."
-msgstr ""
+msgstr "Un API è una classe o interfaccia definita dall'utente. (Se il Web Bean è un session bean EJB, il tipo di API è l'interfaccia <literal>@Local</literal> o la vista locale della classe-bean). Un tipo di binding rappresenta un semantica del client che è soddisfatta da certe implementazioni dell'API e non da altre."
#. Tag: para
#: intro.xml:186
#, no-c-format
msgid "Binding types are represented by user-defined annotations that are themselves annotated <literal>@BindingType</literal>. For example, the following injection point has API type <literal>PaymentProcessor</literal> and binding type <literal>@CreditCard</literal>:"
-msgstr ""
+msgstr "I tipi di binding sono rappresentati da annotazioni definite dall'utente che sono loro stesse annotate con <literal>@BindingType</literal>. Per esempio, il seguente punto di iniezione ha un tipo di API <literal>PaymentProcessor</literal> ed un tipo di binding <literal>@CreditCard</literal>:"
#. Tag: programlisting
#: intro.xml:191
@@ -388,13 +390,13 @@
#: intro.xml:193
#, no-c-format
msgid "If no binding type is explicitly specified at an injection point, the default binding type <literal>@Current</literal> is assumed."
-msgstr ""
+msgstr "Se nessun tipo di binding viene specificato in modo esplicito ad un punto di iniezione, il tipo di binding di default si assume essere <literal>@Current</literal>."
#. Tag: para
#: intro.xml:196
#, no-c-format
msgid "For each injection point, the Web Bean manager searches for a Web Bean which satisfies the contract (implements the API, and has all the binding types), and injects that Web Bean."
-msgstr ""
+msgstr "Per ogni punto di iniezione, il manager Web Bean cerca un Web Bean che soddisfi il contratto (che implementi la API, e che abbia tutti i tipi di binding), ed inietta tale Web Bean."
#. Tag: para
#: intro.xml:200
@@ -692,7 +694,7 @@
#: intro.xml:349
#, no-c-format
msgid "Thus, almost every JavaBean is a simple Web Bean."
-msgstr ""
+msgstr "Quindi quasi ogni JavaBean è un Web Bean semplice."
#. Tag: para
#: intro.xml:351
@@ -874,7 +876,7 @@
#: intro.xml:445
#, no-c-format
msgid "Some producer methods return objects that require explicit destruction:"
-msgstr ""
+msgstr "Alcuni metodi produttori restituiscono oggetti che richiedono una distruzione esplicita:"
#. Tag: programlisting
#: intro.xml:447
@@ -892,7 +894,7 @@
#: intro.xml:449
#, no-c-format
msgid "These producer methods may define matching <emphasis>disposal methods</emphasis>:"
-msgstr ""
+msgstr "Questi metodi produttori possono definire corrispondenti <emphasis>metodi distruttori</emphasis>:\""
#. Tag: programlisting
#: intro.xml:451
16 years
[webbeans-commits] Webbeans SVN: r689 - doc/trunk/reference/zh-CN/modules.
by webbeans-commits@lists.jboss.org
Author: alartin
Date: 2008-12-23 04:56:10 -0500 (Tue, 23 Dec 2008)
New Revision: 689
Modified:
doc/trunk/reference/zh-CN/modules/example.po
Log:
Modified: doc/trunk/reference/zh-CN/modules/example.po
===================================================================
--- doc/trunk/reference/zh-CN/modules/example.po 2008-12-23 09:48:45 UTC (rev 688)
+++ doc/trunk/reference/zh-CN/modules/example.po 2008-12-23 09:56:10 UTC (rev 689)
@@ -3,11 +3,11 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: master.xml \n"
+"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:26+0000\n"
-"PO-Revision-Date: 2008-12-19 20:26+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2008-12-23 17:55+0800\n"
+"Last-Translator: Sean Wu <alartin(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -17,16 +17,13 @@
#: example.xml:4
#, no-c-format
msgid "JSF web application example"
-msgstr ""
+msgstr "JSF Web应用例子"
#. Tag: para
#: example.xml:6
#, no-c-format
-msgid ""
-"Let's illustrate these ideas with a full example. We're going to implement "
-"user login/logout for an application that uses JSF. First, we'll define a "
-"Web Bean to hold the username and password entered during login:"
-msgstr ""
+msgid "Let's illustrate these ideas with a full example. We're going to implement user login/logout for an application that uses JSF. First, we'll define a Web Bean to hold the username and password entered during login:"
+msgstr "让我们通过一个完整的例子来演示这些想法。我们将是使用JSF来实现一个应用的用户登录/退出功能。首先,我们定一个Web Bean来持有登录过程中用户输入的用户名和密码:"
#. Tag: programlisting
#: example.xml:11
@@ -46,12 +43,25 @@
" \n"
"}]]>"
msgstr ""
+"<![CDATA[@Named\n"
+"public class Credentials {\n"
+" \n"
+" private String username;\n"
+" private String password;\n"
+" \n"
+" public String getUsername() { return username; }\n"
+" public void setUsername(String username) { this.username = username; }\n"
+" \n"
+" public String getPassword() { return password; }\n"
+" public void setPassword(String password) { this.password = password; }\n"
+" \n"
+"}]]>"
#. Tag: para
#: example.xml:13
#, no-c-format
msgid "This Web Bean is bound to the login prompt in the following JSF form:"
-msgstr ""
+msgstr "这个Web Bean和下面的JSF表单的login绑定:"
#. Tag: programlisting
#: example.xml:15
@@ -64,21 +74,26 @@
" <h:outputLabel for=\"password\">Password:</h:outputLabel>\n"
" <h:inputText id=\"password\" value=\"#{credentials.password}\"/>\n"
" </h:panelGrid>\n"
-" <h:commandButton value=\"Login\" action=\"#{login.login}\" rendered=\"#{!"
-"login.loggedIn}\"/>\n"
-" <h:commandButton value=\"Logout\" acion=\"#{login.logout}\" rendered=\"#"
-"{login.loggedIn}\"/>\n"
+" <h:commandButton value=\"Login\" action=\"#{login.login}\" rendered=\"#{!login.loggedIn}\"/>\n"
+" <h:commandButton value=\"Logout\" acion=\"#{login.logout}\" rendered=\"#{login.loggedIn}\"/>\n"
"</f:form]]>"
msgstr ""
+"<![CDATA[<f:form>\n"
+" <h:panelGrid columns=\"2\" rendered=\"#{!login.loggedIn}\">\n"
+" <h:outputLabel for=\"username\">Username:</h:outputLabel>\n"
+" <h:inputText id=\"username\" value=\"#{credentials.username}\"/>\n"
+" <h:outputLabel for=\"password\">Password:</h:outputLabel>\n"
+" <h:inputText id=\"password\" value=\"#{credentials.password}\"/>\n"
+" </h:panelGrid>\n"
+" <h:commandButton value=\"Login\" action=\"#{login.login}\" rendered=\"#{!login.loggedIn}\"/>\n"
+" <h:commandButton value=\"Logout\" acion=\"#{login.logout}\" rendered=\"#{login.loggedIn}\"/>\n"
+"</f:form]]>"
#. Tag: para
#: example.xml:17
#, no-c-format
-msgid ""
-"The actual work is done by a session scoped Web Bean that maintains "
-"information about the currently logged-in user and exposes the "
-"<literal>User</literal> entity to other Web Beans:"
-msgstr ""
+msgid "The actual work is done by a session scoped Web Bean that maintains information about the currently logged-in user and exposes the <literal>User</literal> entity to other Web Beans:"
+msgstr "实际的工作由一个会话范围的Web Bean完成。这个会话范围的Web Bean维护当前登录用户的信息,并且将<literal>User</literal>实体暴露给其他Web Bean:"
#. Tag: programlisting
#: example.xml:21
@@ -95,8 +110,7 @@
" public void login() {\n"
" \n"
" List<User> results = userDatabase.createQuery(\n"
-" \"select u from User u where u.username=:username and u.password=:"
-"password\")\n"
+" \"select u from User u where u.username=:username and u.password=:password\")\n"
" .setParameter(\"username\", credentials.getUsername())\n"
" .setParameter(\"password\", credentials.getPassword())\n"
" .getResultList();\n"
@@ -121,12 +135,47 @@
"\n"
"}]]>"
msgstr ""
+"<![CDATA[@SessionScoped @Named\n"
+"public class Login {\n"
+"\n"
+" @Current Credentials credentials;\n"
+" @PersistenceContext EntityManager userDatabase;\n"
+"\n"
+" private User user;\n"
+" \n"
+" public void login() {\n"
+" \n"
+" List<User> results = userDatabase.createQuery(\n"
+" \"select u from User u where u.username=:username and u.password=:password\")\n"
+" .setParameter(\"username\", credentials.getUsername())\n"
+" .setParameter(\"password\", credentials.getPassword())\n"
+" .getResultList();\n"
+" \n"
+" if ( !results.isEmpty() ) {\n"
+" user = results.get(0);\n"
+" }\n"
+" \n"
+" }\n"
+" \n"
+" public void logout() {\n"
+" user = null;\n"
+" }\n"
+" \n"
+" public boolean isLoggedIn() {\n"
+" return user!=null;\n"
+" }\n"
+" \n"
+" @Produces @LoggedIn User getCurrentUser() {\n"
+" return user;\n"
+" }\n"
+"\n"
+"}]]>"
#. Tag: para
#: example.xml:23
#, no-c-format
msgid "Of course, <literal>@LoggedIn</literal> is a binding annotation:"
-msgstr ""
+msgstr "当然, <literal>@LoggedIn</literal>是一个绑定注释:"
#. Tag: programlisting
#: example.xml:25
@@ -137,12 +186,16 @@
"@BindingType\n"
"public @interface LoggedIn {}]]>"
msgstr ""
+"<![CDATA[@Retention(RUNTIME)\n"
+"@Target({TYPE, METHOD, FIELD})\n"
+"@BindingType\n"
+"public @interface LoggedIn {}]]>"
#. Tag: para
#: example.xml:27
#, no-c-format
msgid "Now, any other Web Bean can easily inject the current user:"
-msgstr ""
+msgstr "现在,任何其他的Web Bean可以轻松地将当前用户注入:"
#. Tag: programlisting
#: example.xml:29
@@ -161,12 +214,22 @@
" \n"
"}]]>"
msgstr ""
+"<![CDATA[public class DocumentEditor {\n"
+"\n"
+" @Current Document document;\n"
+" @LoggedIn User currentUser;\n"
+" @PersistenceContext EntityManager docDatabase;\n"
+" \n"
+" public void save() {\n"
+" document.setCreatedBy(currentUser);\n"
+" docDatabase.persist(document);\n"
+" }\n"
+" \n"
+"}]]>"
#. Tag: para
#: example.xml:31
#, no-c-format
-msgid ""
-"Hopefully, this example gives a flavor of the Web Bean programming model. In "
-"the next chapter, we'll explore Web Beans dependency injection in greater "
-"depth."
-msgstr ""
+msgid "Hopefully, this example gives a flavor of the Web Bean programming model. In the next chapter, we'll explore Web Beans dependency injection in greater depth."
+msgstr "希望这个例子能够让你尝试了Web Bean的编程模型。在下一章中,我们将更加深入的研究Web Bean的依赖注入。"
+
16 years
[webbeans-commits] Webbeans SVN: r688 - doc/trunk/reference/zh-CN/modules.
by webbeans-commits@lists.jboss.org
Author: alartin
Date: 2008-12-23 04:48:45 -0500 (Tue, 23 Dec 2008)
New Revision: 688
Modified:
doc/trunk/reference/zh-CN/modules/part4.po
Log:
Modified: doc/trunk/reference/zh-CN/modules/part4.po
===================================================================
--- doc/trunk/reference/zh-CN/modules/part4.po 2008-12-23 09:29:53 UTC (rev 687)
+++ doc/trunk/reference/zh-CN/modules/part4.po 2008-12-23 09:48:45 UTC (rev 688)
@@ -3,11 +3,11 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: master.xml \n"
+"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:26+0000\n"
-"PO-Revision-Date: 2008-12-19 20:26+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2008-12-23 17:48+0800\n"
+"Last-Translator: Sean Wu <alartin(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -16,37 +16,18 @@
#. Tag: para
#: part4.xml:5
#, no-c-format
-msgid ""
-"The third theme of Web Beans is <emphasis>integration</emphasis>. Web Beans "
-"was designed to work in concert with other technologies, helping the "
-"application developer fit the other technologies together. Web Beans is an "
-"open technology. It forms a part of the Java EE ecosystem, and is itself the "
-"foundation for a new ecosystem of portable extensions and integration with "
-"existing frameworks and technologies."
-msgstr ""
+msgid "The third theme of Web Beans is <emphasis>integration</emphasis>. Web Beans was designed to work in concert with other technologies, helping the application developer fit the other technologies together. Web Beans is an open technology. It forms a part of the Java EE ecosystem, and is itself the foundation for a new ecosystem of portable extensions and integration with existing frameworks and technologies."
+msgstr "Web Bean的第三个宗旨是<emphasis>整合</emphasis>。Web Bean设计思想就是能够和其他的技术相互合作,能够让开发者更容易地将其他技术结合使用。Web Bean是一个开发的技术。它形成了Java EE生态系统的一部分,而它本身也是一个新的生态系统的基石,这个新的生态系统能够为已有的框架和技术提供一个更便携的扩展和整合机制。"
#. Tag: para
#: part4.xml:12
#, no-c-format
-msgid ""
-"We've already seen how Web Beans helps integrate EJB and JSF, allowing EJBs "
-"to be bound directly to JSF pages. That's just the beginning. Web Beans "
-"offers the same potential to diverse other technologies, such as Business "
-"Process Management engines, other Web Frameworks, and third-party component "
-"models. The Java EE platform will never be able to standardize all the "
-"interesting technologies that are used in the world of Java application "
-"development, but Web Beans makes it easier to use the technologies which are "
-"not yet part of the platform seamlessly within the Java EE environment."
-msgstr ""
+msgid "We've already seen how Web Beans helps integrate EJB and JSF, allowing EJBs to be bound directly to JSF pages. That's just the beginning. Web Beans offers the same potential to diverse other technologies, such as Business Process Management engines, other Web Frameworks, and third-party component models. The Java EE platform will never be able to standardize all the interesting technologies that are used in the world of Java application development, but Web Beans makes it easier to use the technologies which are not yet part of the platform seamlessly within the Java EE environment."
+msgstr "我们已经看到了Web Bean如何帮助整合EJB和JSF, 允许我们将EJB直接绑定到JSF页面上。而这只是开始,Web Bean为其他技术提供了同样的潜在能力,例如业务流程管理引擎,其他的Web框架,第三方组件模型。Java EE平台永远不可能将Java应用开发世界中所有有意思的技术都标准化。但是Web Bean能够提供一个便捷的方式将这些尚未成为平台一部分的技术更加容易并且无缝地集成到Java EE环境中。"
#. Tag: para
#: part4.xml:21
#, no-c-format
-msgid ""
-"We're about to see how to take full advantage of the Java EE platform in an "
-"application that uses Web Beans. We'll also briefly meet a set of SPIs that "
-"are provided to support portable extensions to Web Beans. You might not ever "
-"need to use these SPIs directly, but it's nice to know they are there if you "
-"need them. Most importantly, you'll take advantage of them indirectly, every "
-"time you use a third-party extension."
-msgstr ""
+msgid "We're about to see how to take full advantage of the Java EE platform in an application that uses Web Beans. We'll also briefly meet a set of SPIs that are provided to support portable extensions to Web Beans. You might not ever need to use these SPIs directly, but it's nice to know they are there if you need them. Most importantly, you'll take advantage of them indirectly, every time you use a third-party extension."
+msgstr "我们已经看到了如何在应用中使用Web Bean来充分利用Java EE平台。我们也粗略地看到了一些能够支持Web Bean的便携性扩展点的SPI。你也许永远不回直接使用这些SPI,但是,知道在需要的时候你可以使用它们很有好处。最重要的是,每次你使用一个第三方扩展的时候,都有可能间接地利用了它们。"
+
16 years
[webbeans-commits] Webbeans SVN: r687 - doc/trunk/reference/zh-CN/modules.
by webbeans-commits@lists.jboss.org
Author: alartin
Date: 2008-12-23 04:29:53 -0500 (Tue, 23 Dec 2008)
New Revision: 687
Modified:
doc/trunk/reference/zh-CN/modules/part3.po
Log:
Modified: doc/trunk/reference/zh-CN/modules/part3.po
===================================================================
--- doc/trunk/reference/zh-CN/modules/part3.po 2008-12-23 09:08:27 UTC (rev 686)
+++ doc/trunk/reference/zh-CN/modules/part3.po 2008-12-23 09:29:53 UTC (rev 687)
@@ -3,11 +3,11 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: master.xml \n"
+"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:26+0000\n"
-"PO-Revision-Date: 2008-12-19 20:26+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2008-12-23 17:29+0800\n"
+"Last-Translator: Sean Wu <alartin(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -16,135 +16,102 @@
#. Tag: para
#: part3.xml:5
#, no-c-format
-msgid ""
-"The second major theme of Web Beans is <emphasis>strong typing</emphasis>. "
-"The information about the dependencies, interceptors and decorators of a Web "
-"Bean, and the information about event consumers for an event producer, is "
-"contained in typesafe Java constructs that may be validated by the compiler."
-msgstr ""
+msgid "The second major theme of Web Beans is <emphasis>strong typing</emphasis>. The information about the dependencies, interceptors and decorators of a Web Bean, and the information about event consumers for an event producer, is contained in typesafe Java constructs that may be validated by the compiler."
+msgstr "Web Bean的第二个宗旨是<emphasis>强类型</emphasis>。Web Bean有关依赖,拦截器和装饰器的信息以及事件生产者对应的事件消费者的信息都包含在类型安全的Java构件中,可以被编译器验证。"
#. Tag: para
#: part3.xml:10
#, no-c-format
-msgid ""
-"You don't see string-based identifiers in Web Beans code, not because the "
-"framework is hiding them from you using clever defaulting rules—so-"
-"called \"configuration by convention\"—but because there are simply no "
-"strings there to begin with!"
-msgstr ""
+msgid "You don't see string-based identifiers in Web Beans code, not because the framework is hiding them from you using clever defaulting rules—so-called \"configuration by convention\"—but because there are simply no strings there to begin with!"
+msgstr "在Web Bean代码中,你不会看到基于字符串的标识符。这不是因为这个框架使用智能默认规则—也叫\"按惯例配置\"—将它们隐藏起来,这是因为从开始就没有任何字符串!"
#. Tag: para
#: part3.xml:15
#, no-c-format
-msgid ""
-"The obvious benefit of this approach is that <emphasis>any</emphasis> IDE "
-"can provide autocompletion, validation and refactoring without the need for "
-"special tooling. But there is a second, less-immediately-obvious, benefit. "
-"It turns out that when you start thinking of identifying objects, events or "
-"interceptors via annotations instead of names, you have an opportunity to "
-"lift the semantic level of your code."
-msgstr ""
+msgid "The obvious benefit of this approach is that <emphasis>any</emphasis> IDE can provide autocompletion, validation and refactoring without the need for special tooling. But there is a second, less-immediately-obvious, benefit. It turns out that when you start thinking of identifying objects, events or interceptors via annotations instead of names, you have an opportunity to lift the semantic level of your code."
+msgstr "这种方法的显而易见的好处是<emphasis>任何</emphasis>IDE都可以提供自动完成,验证和重构而无需任何特殊工具。除此之外,还有第二个,不是那么明显的好处。它能够让你考虑识别对象,事件或者拦截器的时候使用注释,而不是名字,这样你将可以提升你的代码的语义水平。"
#. Tag: para
#: part3.xml:21
#, no-c-format
-msgid ""
-"Web Beans encourages you develop annotations that model concepts, for "
-"example,"
-msgstr ""
+msgid "Web Beans encourages you develop annotations that model concepts, for example,"
+msgstr "Web Beans能够鼓励你为概念建模,开发注释。例如:"
#. Tag: para
#: part3.xml:26
#, no-c-format
msgid "<literal>@Asynchronous</literal>,"
-msgstr ""
+msgstr "<literal>@Asynchronous</literal>,"
#. Tag: para
#: part3.xml:29
#, no-c-format
msgid "<literal>@Mock</literal>,"
-msgstr ""
+msgstr "<literal>@Mock</literal>,"
#. Tag: para
#: part3.xml:32
#, no-c-format
msgid "<literal>@Secure</literal> or"
-msgstr ""
+msgstr "<literal>@Secure</literal> or"
#. Tag: para
#: part3.xml:35
#, no-c-format
msgid "<literal>@Updated</literal>,"
-msgstr ""
+msgstr "<literal>@Updated</literal>,"
#. Tag: para
#: part3.xml:39
#, no-c-format
msgid "instead of using compound names like"
-msgstr ""
+msgstr "而不是使用复合名字,像:"
#. Tag: para
#: part3.xml:43
#, no-c-format
msgid "<literal>asyncPaymentProcessor</literal>,"
-msgstr ""
+msgstr "<literal>asyncPaymentProcessor</literal>,"
#. Tag: para
#: part3.xml:46
#, no-c-format
msgid "<literal>mockPaymentProcessor</literal>,"
-msgstr ""
+msgstr "<literal>mockPaymentProcessor</literal>,"
#. Tag: para
#: part3.xml:49
#, no-c-format
msgid "<literal>SecurityInterceptor</literal> or"
-msgstr ""
+msgstr "<literal>SecurityInterceptor</literal> or"
#. Tag: para
#: part3.xml:52
#, no-c-format
msgid "<literal>DocumentUpdatedEvent</literal>."
-msgstr ""
+msgstr "<literal>DocumentUpdatedEvent</literal>."
#. Tag: para
#: part3.xml:56
#, no-c-format
-msgid ""
-"The annotations are reusable. They help describe common qualities of "
-"disparate parts of the system. They help us categorize and understand our "
-"code. They help us deal with common concerns in a common way. They make our "
-"code more literate and more understandable."
-msgstr ""
+msgid "The annotations are reusable. They help describe common qualities of disparate parts of the system. They help us categorize and understand our code. They help us deal with common concerns in a common way. They make our code more literate and more understandable."
+msgstr "注释可以重用。它们能够描述系统不同部分的通用特征。它们能够帮助我们分类和理解我们的代码。它们能够以通用的方式为我们处理共同的关注点。它们能够让我们的代码具有更高的可读性,更加容易被理解。"
#. Tag: para
#: part3.xml:61
#, no-c-format
-msgid ""
-"Web Beans <emphasis>stereotypes</emphasis> take this idea a step further. A "
-"stereotype models a common <emphasis>role</emphasis> in your application "
-"architecture. It encapsulates various properties of the role, including "
-"scope, interceptor bindings, deployment type, etc, into a single reusable "
-"package."
-msgstr ""
+msgid "Web Beans <emphasis>stereotypes</emphasis> take this idea a step further. A stereotype models a common <emphasis>role</emphasis> in your application architecture. It encapsulates various properties of the role, including scope, interceptor bindings, deployment type, etc, into a single reusable package."
+msgstr "Web Beans的<emphasis>模板</emphasis>是这种思想的延伸。一个模板为我们应用体系中的一个通用的<emphasis>角色</emphasis>建模。它将一个角色的各种不同的属性,包括范围,拦截器绑定,部署类型,等等封装到一个单一的可重用的包中。"
#. Tag: para
#: part3.xml:66
#, no-c-format
-msgid ""
-"Even Web Beans XML metadata is strongly typed! There's no compiler for XML, "
-"so Web Beans takes advantage of XML schemas to validate the Java types and "
-"attributes that appear in XML. This approach turns out to make the XML more "
-"literate, just like annotations made our Java code more literate."
-msgstr ""
+msgid "Even Web Beans XML metadata is strongly typed! There's no compiler for XML, so Web Beans takes advantage of XML schemas to validate the Java types and attributes that appear in XML. This approach turns out to make the XML more literate, just like annotations made our Java code more literate."
+msgstr "甚至Web Bean的XML元数据也是强类型的!对于XML没有编译器,Web Bean充分利用了XML模式去验证XML中出现的Java类型和属性。这种方式让XML更加具有可读性,就像注释让我们的Java代码更加具有可读性一样。"
#. Tag: para
#: part3.xml:71
#, no-c-format
-msgid ""
-"We're now ready to meet some more advanced features of Web Beans. Bear in "
-"mind that these features exist to make our code both easier to validate and "
-"more understandable. Most of the time you don't ever really <emphasis>need</"
-"emphasis> to use these features, but if you use them wisely, you'll come to "
-"appreciate their power."
-msgstr ""
+msgid "We're now ready to meet some more advanced features of Web Beans. Bear in mind that these features exist to make our code both easier to validate and more understandable. Most of the time you don't ever really <emphasis>need</emphasis> to use these features, but if you use them wisely, you'll come to appreciate their power."
+msgstr "我们现在可以接触Web Bean中更加高级的特性了。要记住这些特性能够让我们的代码不仅更容易验证,也更容易理解。大部分时间,你根本不<emphasis>需要</emphasis>这些特性,但是如果你能聪明地运用它们的话,你将充分体会到它们的强大。"
+
16 years