Author: nico.ben
Date: 2009-05-05 16:51:31 -0400 (Tue, 05 May 2009)
New Revision: 2654
Modified:
doc/trunk/reference/de-DE/environments.po
doc/trunk/reference/de-DE/gettingstarted.po
doc/trunk/reference/de-DE/producermethods.po
doc/trunk/reference/es-ES/environments.po
doc/trunk/reference/es-ES/gettingstarted.po
doc/trunk/reference/es-ES/producermethods.po
doc/trunk/reference/fr-FR/environments.po
doc/trunk/reference/fr-FR/gettingstarted.po
doc/trunk/reference/fr-FR/producermethods.po
doc/trunk/reference/it-IT/environments.po
doc/trunk/reference/it-IT/gettingstarted.po
doc/trunk/reference/it-IT/producermethods.po
doc/trunk/reference/ja-JP/environments.po
doc/trunk/reference/ja-JP/gettingstarted.po
doc/trunk/reference/ja-JP/producermethods.po
doc/trunk/reference/ko-KR/environments.po
doc/trunk/reference/ko-KR/gettingstarted.po
doc/trunk/reference/ko-KR/producermethods.po
doc/trunk/reference/pot/Author_Group.pot
doc/trunk/reference/pot/Book_Info.pot
doc/trunk/reference/pot/decorators.pot
doc/trunk/reference/pot/ee.pot
doc/trunk/reference/pot/environments.pot
doc/trunk/reference/pot/events.pot
doc/trunk/reference/pot/example.pot
doc/trunk/reference/pot/extend.pot
doc/trunk/reference/pot/extensions.pot
doc/trunk/reference/pot/gettingstarted.pot
doc/trunk/reference/pot/injection.pot
doc/trunk/reference/pot/interceptors.pot
doc/trunk/reference/pot/intro.pot
doc/trunk/reference/pot/master.pot
doc/trunk/reference/pot/next.pot
doc/trunk/reference/pot/part1.pot
doc/trunk/reference/pot/part2.pot
doc/trunk/reference/pot/part3.pot
doc/trunk/reference/pot/part4.pot
doc/trunk/reference/pot/part5.pot
doc/trunk/reference/pot/producermethods.pot
doc/trunk/reference/pot/ri-spi.pot
doc/trunk/reference/pot/scopescontexts.pot
doc/trunk/reference/pot/specialization.pot
doc/trunk/reference/pot/stereotypes.pot
doc/trunk/reference/pot/viewlayers.pot
doc/trunk/reference/pot/xml.pot
doc/trunk/reference/pt-BR/environments.po
doc/trunk/reference/pt-BR/gettingstarted.po
doc/trunk/reference/pt-BR/producermethods.po
doc/trunk/reference/zh-CN/environments.po
doc/trunk/reference/zh-CN/producermethods.po
doc/trunk/reference/zh-TW/environments.po
doc/trunk/reference/zh-TW/gettingstarted.po
doc/trunk/reference/zh-TW/producermethods.po
Log:
Regenerated POT and updated all POs
Modified: doc/trunk/reference/de-DE/environments.po
===================================================================
--- doc/trunk/reference/de-DE/environments.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/de-DE/environments.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
"Project-Id-Version: Web_Beans:_Java_Contexts_and_Dependency_Injection "
"VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2009-03-28 17:09+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -84,7 +84,7 @@
#. Tag: title
#: environments.xml:47
#, no-c-format
-msgid "Glassfish"
+msgid "GlassFish"
msgstr ""
#. Tag: para
@@ -122,9 +122,9 @@
msgid ""
"Web Beans should be used as a web application library in a servlet "
"container. You should place <literal>webbeans-servlet.jar</literal> in
"
-"<literal>WEB-INF/lib</literal>.
<literal>webbeans-serv;et.jar</literal> is "
-"an \"uber-jar\" provided for your convenience. Instead, you could use its
"
-"component jars:"
+"<literal>WEB-INF/lib</literal>.
<literal>webbeans-servlet.jar</literal> is "
+"an \"uber-jar\" provided for your convenience. Alternatively, you could
use "
+"its component jars:"
msgstr ""
#. Tag: literal
@@ -205,45 +205,46 @@
#, no-c-format
msgid ""
"Tomcat has a read-only JNDI, so Web Beans can't automatically bind the "
-"Manager. To bind the Manager into JNDI, you should add the following to your
"
-"<literal>META-INF/context.xml</literal>:"
+"Manager. To bind the Manager into JNDI, you should populate
<literal>META-"
+"INF/context.xml</literal> with the following contents:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:134
+#: environments.xml:135
#, no-c-format
msgid ""
-"<![CDATA[<Resource name=\"app/Manager\" \n"
-" auth=\"Container\"\n"
-" type=\"javax.inject.manager.Manager\"\n"
-"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
-"]]>"
+"<![CDATA[<Context>\n"
+" <Resource name=\"app/Manager\" \n"
+" auth=\"Container\"\n"
+" type=\"javax.inject.manager.Manager\"\n"
+"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
+"</Context>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:136
+#: environments.xml:137
#, no-c-format
msgid ""
-"and make it available to your deployment by adding this to
<literal>web.xml</"
-"literal>:"
+"and make it available to your deployment by adding this to the bottom of "
+"<literal>web.xml</literal>:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:141
+#: environments.xml:142
#, no-c-format
msgid ""
"<![CDATA[<resource-env-ref>\n"
-" <resource-env-ref-name>\n"
-" app/Manager\n"
-" </resource-env-ref-name>\n"
-" <resource-env-ref-type>\n"
-" javax.inject.manager.Manager\n"
-" </resource-env-ref-type>\n"
+" <resource-env-ref-name>\n"
+" app/Manager\n"
+" </resource-env-ref-name>\n"
+" <resource-env-ref-type>\n"
+" javax.inject.manager.Manager\n"
+" </resource-env-ref-type>\n"
"</resource-env-ref>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:143
+#: environments.xml:144
#, no-c-format
msgid ""
"Tomcat only allows you to bind entries to
<literal>java:comp/env</literal>, "
@@ -252,7 +253,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:149
+#: environments.xml:150
#, no-c-format
msgid ""
"Web Beans also supports Servlet injection in Tomcat. To enable this, place "
@@ -262,21 +263,84 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:156
+#: environments.xml:157
#, no-c-format
msgid ""
"<![CDATA[<Listener
className=\"org.jboss.webbeans.environment.tomcat."
-"WebBeansLifecycleListener\" />]]>"
+"WebBeansLifecycleListener\"/>]]>"
msgstr ""
#. Tag: title
-#: environments.xml:163
+#: environments.xml:162
#, no-c-format
+msgid "Jetty"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:164
+#, no-c-format
+msgid ""
+"Like Tomcat, Jetty has a read-only JNDI, so Web Beans can't automatically
"
+"bind the Manager. To bind the Manager to JNDI, you should populate "
+"<literal>WEB-INF/jetty-env.xml</literal> with the following
contents:"
+msgstr ""
+
+#. Tag: programlisting
+#: environments.xml:171
+#, no-c-format
+msgid ""
+"<![CDATA[<!DOCTYPE Configure PUBLIC \"-//Mort Bay Consulting//DTD
Configure//"
+"EN\"\n"
+" \"http://jetty.mortbay.org/configure.dtd\">\n"
+"<Configure id=\"webAppCtx\"
class=\"org.mortbay.jetty.webapp.WebAppContext"
+"\">\n"
+" <New id=\"appManager\"
class=\"org.mortbay.jetty.plus.naming.Resource\">\n"
+" <Arg><Ref id=\"webAppCtx\"/></Arg> \n"
+" <Arg>app/Manager</Arg>\n"
+" <Arg>\n"
+" <New class=\"javax.naming.Reference\">\n"
+" <Arg>javax.inject.manager.Manager</Arg> \n"
+"
<Arg>org.jboss.webbeans.resources.ManagerObjectFactory</Arg>\n"
+" <Arg/>\n"
+" </New>\n"
+" </Arg>\n"
+" </New>\n"
+"</Configure>]]>"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:173
+#, no-c-format
+msgid ""
+"Notice that Jetty doesn't not have built-in support for an
<literal>javax."
+"naming.spi.ObjectFactory</literal> like Tomcat, so it's necessary to
"
+"manually create the <literal>javax.naming.Reference</literal> to wrap
around "
+"it."
+msgstr ""
+
+#. Tag: para
+#: environments.xml:180
+#, no-c-format
+msgid ""
+"Jetty only allows you to bind entries to
<literal>java:comp/env</literal>, "
+"so the Manager will be available at
<literal>java:comp/env/app/Manager</"
+"literal>"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:186
+#, no-c-format
+msgid "Web Beans does not currently support Servlet injection in Jetty."
+msgstr ""
+
+#. Tag: title
+#: environments.xml:195
+#, no-c-format
msgid "Java SE"
msgstr ""
#. Tag: para
-#: environments.xml:165
+#: environments.xml:197
#, no-c-format
msgid ""
"Apart from improved integration of the Enterprise Java stack, Web Beans also
"
@@ -288,7 +352,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:173
+#: environments.xml:205
#, no-c-format
msgid ""
"When executing in the SE environment the following features of Web Beans are
"
@@ -296,49 +360,55 @@
msgstr ""
#. Tag: literal
-#: environments.xml:179
+#: environments.xml:211
#, no-c-format
msgid "Simple Web Beans (POJOs)"
msgstr ""
#. Tag: literal
-#: environments.xml:184
+#: environments.xml:216
#, no-c-format
msgid "Typesafe Dependency Injection"
msgstr ""
#. Tag: literal
-#: environments.xml:189
+#: environments.xml:221
#, no-c-format
msgid "Application and Dependent Contexts"
msgstr ""
#. Tag: literal
-#: environments.xml:194
+#: environments.xml:226
#, no-c-format
msgid "Binding Types"
msgstr ""
#. Tag: literal
-#: environments.xml:199
+#: environments.xml:231
#, no-c-format
+msgid "Deployment Types"
+msgstr ""
+
+#. Tag: literal
+#: environments.xml:236
+#, no-c-format
msgid "Stereotypes"
msgstr ""
#. Tag: literal
-#: environments.xml:204
+#: environments.xml:241
#, no-c-format
msgid "Typesafe Event Model"
msgstr ""
#. Tag: title
-#: environments.xml:210
+#: environments.xml:247
#, no-c-format
msgid "Web Beans SE Module"
msgstr ""
#. Tag: para
-#: environments.xml:212
+#: environments.xml:249
#, no-c-format
msgid ""
"To make life easy for developers Web Beans provides a special module with a "
@@ -351,7 +421,7 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:221
+#: environments.xml:258
#, no-c-format
msgid ""
"<![CDATA[@Parameters List<String> params;\n"
@@ -360,13 +430,13 @@
msgstr ""
#. Tag: para
-#: environments.xml:222
+#: environments.xml:259
#, no-c-format
msgid "Here's an example of a simple Web Beans SE application:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:226
+#: environments.xml:263
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -382,20 +452,20 @@
msgstr ""
#. Tag: para
-#: environments.xml:228
+#: environments.xml:265
#, no-c-format
msgid ""
"Web Beans SE applications are started by running the following main method."
msgstr ""
#. Tag: programlisting
-#: environments.xml:230
+#: environments.xml:267
#, no-c-format
msgid "<![CDATA[java org.jboss.webbeans.environments.se.StartMain
<args>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:232
+#: environments.xml:269
#, no-c-format
msgid ""
"If you need to do any custom initialization of the Web Beans manager, for "
@@ -405,7 +475,7 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:237
+#: environments.xml:274
#, no-c-format
msgid ""
"<![CDATA[public class PerformSetup\n"
@@ -419,7 +489,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:240
+#: environments.xml:277
#, no-c-format
msgid ""
"The command line parameters do not become available for injection until the "
Modified: doc/trunk/reference/de-DE/gettingstarted.po
===================================================================
--- doc/trunk/reference/de-DE/gettingstarted.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/de-DE/gettingstarted.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: ri\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2009-02-27 15:36+1100\n"
"Last-Translator: \n"
"Language-Team: <en(a)li.org>\n"
@@ -106,7 +106,7 @@
"$ unzip ~/jboss-5.0.0.GA.zip]]>"
#. Tag: para
-#: gettingstarted.xml:49 gettingstarted.xml:170
+#: gettingstarted.xml:49 gettingstarted.xml:177
#, fuzzy, no-c-format
msgid ""
"Next, download Web Beans from <ulink
url=\"http://seamframework.org/Download"
@@ -117,7 +117,7 @@
"entzippen diese. Zum Beispiel "
#. Tag: programlisting
-#: gettingstarted.xml:55 gettingstarted.xml:176
+#: gettingstarted.xml:55 gettingstarted.xml:183
#, no-c-format
msgid ""
"<![CDATA[$ cd ~/\n"
@@ -154,8 +154,16 @@
"Um das Update zu installieren, muss Ant 1.7.0 installiert und die "
"<literal>ANT_HOME</literal> Umgebungsvariable gesetzt sein. Zum
Beispiel:"
+#. Tag: para
+#: gettingstarted.xml:72
+#, no-c-format
+msgid ""
+"JBoss 5.1.0 comes with Web Beans built in, so there is no need to update the
"
+"server."
+msgstr ""
+
#. Tag: programlisting
-#: gettingstarted.xml:71
+#: gettingstarted.xml:78
#, no-c-format
msgid ""
"$ unzip apache-ant-1.7.0.zip\n"
@@ -165,7 +173,7 @@
"$ export ANT_HOME=~/apache-ant-1.7.0"
#. Tag: para
-#: gettingstarted.xml:73
+#: gettingstarted.xml:80
#, fuzzy, no-c-format
msgid ""
"Then, you can install the update. The update script will use Maven to "
@@ -175,7 +183,7 @@
"um die Web Beans und EJB3 automatisch herunterzuladen."
#. Tag: programlisting
-#: gettingstarted.xml:78
+#: gettingstarted.xml:85
#, no-c-format
msgid ""
"$ cd webbeans-$VERSION/jboss-as\n"
@@ -185,13 +193,13 @@
"$ ant update"
#. Tag: para
-#: gettingstarted.xml:80
+#: gettingstarted.xml:87
#, no-c-format
msgid "Now, you're ready to deploy your first example!"
msgstr "Jetzt können Sie Ihr erstes Beispiel deployen!"
#. Tag: para
-#: gettingstarted.xml:85
+#: gettingstarted.xml:92
#, fuzzy, no-c-format
msgid ""
"The build scripts for the examples offer a number of targets for JBoss AS, "
@@ -200,7 +208,7 @@
"Die Build-Skripte für die Beispiele bieten zahlreiche Ziele, diese sind:"
#. Tag: para
-#: gettingstarted.xml:91
+#: gettingstarted.xml:98
#, no-c-format
msgid "<literal>ant restart</literal> - deploy the example in exploded
format"
msgstr ""
@@ -208,7 +216,7 @@
"Format"
#. Tag: para
-#: gettingstarted.xml:97
+#: gettingstarted.xml:104
#, no-c-format
msgid ""
"<literal>ant explode</literal> - update an exploded example, without
"
@@ -218,7 +226,7 @@
"Beispiels ohne Neustart des Deployments"
#. Tag: para
-#: gettingstarted.xml:103
+#: gettingstarted.xml:110
#, no-c-format
msgid ""
"<literal>ant deploy</literal> - deploy the example in compressed jar
format"
@@ -227,25 +235,25 @@
"jar-Format"
#. Tag: para
-#: gettingstarted.xml:108
+#: gettingstarted.xml:115
#, no-c-format
msgid "<literal>ant undeploy</literal> - remove the example from the
server"
msgstr "<literal>ant undeploy</literal> - das Beispiel vom Server
entfernen"
#. Tag: para
-#: gettingstarted.xml:113
+#: gettingstarted.xml:120
#, no-c-format
msgid "<literal>ant clean</literal> - clean the example"
msgstr "<literal>ant clean</literal> - Das Beispiel bereinigen"
#. Tag: para
-#: gettingstarted.xml:120
+#: gettingstarted.xml:127
#, no-c-format
msgid "To deploy the numberguess example:"
msgstr "Um das numberguess Beispiel zu deployen:"
#. Tag: programlisting
-#: gettingstarted.xml:124
+#: gettingstarted.xml:131
#, no-c-format
msgid ""
"$ cd examples/numberguess\n"
@@ -255,19 +263,19 @@
"ant deploy"
#. Tag: para
-#: gettingstarted.xml:126
+#: gettingstarted.xml:133
#, no-c-format
msgid "Start JBoss AS:"
msgstr "JBoss AS starten:"
#. Tag: programlisting
-#: gettingstarted.xml:130
+#: gettingstarted.xml:137
#, no-c-format
msgid "$ /Application/jboss-5.0.0.GA/bin/run.sh"
msgstr "$ /Application/jboss-5.0.0.GA/bin/run.sh"
#. Tag: para
-#: gettingstarted.xml:133
+#: gettingstarted.xml:140
#, no-c-format
msgid "If you use Windows, use the
<literal>run.bat</literal>script."
msgstr ""
@@ -275,7 +283,7 @@
"Skript."
#. Tag: para
-#: gettingstarted.xml:138 gettingstarted.xml:240
+#: gettingstarted.xml:145 gettingstarted.xml:247
#, no-c-format
msgid ""
"Wait for the application to deploy, and enjoy hours of fun at <ulink url="
@@ -285,7 +293,7 @@
"url=\"http://localhost:8080/webbeans-numberguess\"></ulink>!"
#. Tag: para
-#: gettingstarted.xml:143
+#: gettingstarted.xml:150
#, fuzzy, no-c-format
msgid ""
"Web Beans includes a second simple example that will translate your text "
@@ -300,7 +308,7 @@
"enthält . Um dies auszuprobieren:"
#. Tag: programlisting
-#: gettingstarted.xml:150
+#: gettingstarted.xml:157
#, no-c-format
msgid ""
"$ cd examples/translator\n"
@@ -310,7 +318,7 @@
"ant deploy"
#. Tag: para
-#: gettingstarted.xml:152
+#: gettingstarted.xml:159
#, no-c-format
msgid ""
"Wait for the application to deploy, and visit <ulink url=\"http://"
@@ -320,13 +328,13 @@
"\"http://localhost:8080/webbeans-translator\"></ulink>!"
#. Tag: title
-#: gettingstarted.xml:160
+#: gettingstarted.xml:167
#, no-c-format
msgid "Using Apache Tomcat 6.0"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:162
+#: gettingstarted.xml:169
#, fuzzy, no-c-format
msgid ""
"You'll need to download Tomcat 6.0.18 or later from <ulink
url=\"http://"
@@ -338,7 +346,7 @@
"entzippen diese. Zum Beispiel "
#. Tag: programlisting
-#: gettingstarted.xml:168
+#: gettingstarted.xml:175
#, fuzzy, no-c-format
msgid ""
"<![CDATA[$ cd /Applications\n"
@@ -348,7 +356,7 @@
"$ unzip ~/jboss-5.0.0.GA.zip]]>"
#. Tag: para
-#: gettingstarted.xml:178
+#: gettingstarted.xml:185
#, fuzzy, no-c-format
msgid ""
"Next, we need to tell Web Beans where Tomcat is located. Edit
<literal>jboss-"
@@ -360,13 +368,13 @@
"die <literal>jboss.home</literal>-Property. Zum Beispiel:"
#. Tag: programlisting
-#: gettingstarted.xml:184
+#: gettingstarted.xml:191
#, fuzzy, no-c-format
msgid "tomcat.home=/Applications/apache-tomcat-6.0.18"
msgstr "jboss.home=/Applications/jboss-5.0.0.GA"
#. Tag: para
-#: gettingstarted.xml:187
+#: gettingstarted.xml:194
#, fuzzy, no-c-format
msgid ""
"The build scripts for the examples offer a number of targets for Tomcat, "
@@ -375,7 +383,7 @@
"Die Build-Skripte für die Beispiele bieten zahlreiche Ziele, diese sind:"
#. Tag: para
-#: gettingstarted.xml:193
+#: gettingstarted.xml:200
#, fuzzy, no-c-format
msgid ""
"<literal>ant tomcat.restart</literal> - deploy the example in exploded
format"
@@ -384,7 +392,7 @@
"Format"
#. Tag: para
-#: gettingstarted.xml:199
+#: gettingstarted.xml:206
#, fuzzy, no-c-format
msgid ""
"<literal>ant tomcat.explode</literal> - update an exploded example,
without "
@@ -394,7 +402,7 @@
"Beispiels ohne Neustart des Deployments"
#. Tag: para
-#: gettingstarted.xml:205
+#: gettingstarted.xml:212
#, fuzzy, no-c-format
msgid ""
"<literal>ant tomcat.deploy</literal> - deploy the example in compressed
jar "
@@ -404,26 +412,26 @@
"jar-Format"
#. Tag: para
-#: gettingstarted.xml:210
+#: gettingstarted.xml:217
#, fuzzy, no-c-format
msgid ""
"<literal>ant tomcat.undeploy</literal> - remove the example from the
server"
msgstr "<literal>ant undeploy</literal> - das Beispiel vom Server
entfernen"
#. Tag: para
-#: gettingstarted.xml:215
+#: gettingstarted.xml:222
#, fuzzy, no-c-format
msgid "<literal>ant tomcat.clean</literal> - clean the example"
msgstr "<literal>ant clean</literal> - Das Beispiel bereinigen"
#. Tag: para
-#: gettingstarted.xml:222
+#: gettingstarted.xml:229
#, fuzzy, no-c-format
msgid "To deploy the numberguess example for tomcat:"
msgstr "Um das numberguess Beispiel zu deployen:"
#. Tag: programlisting
-#: gettingstarted.xml:226
+#: gettingstarted.xml:233
#, fuzzy, no-c-format
msgid ""
"$ cd examples/tomcat\n"
@@ -433,19 +441,19 @@
"ant deploy"
#. Tag: para
-#: gettingstarted.xml:228
+#: gettingstarted.xml:235
#, no-c-format
msgid "Start Tomcat:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:232
+#: gettingstarted.xml:239
#, fuzzy, no-c-format
msgid "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
msgstr "$ /Application/jboss-5.0.0.GA/bin/run.sh"
#. Tag: para
-#: gettingstarted.xml:235
+#: gettingstarted.xml:242
#, fuzzy, no-c-format
msgid "If you use Windows, use the
<literal>startup.bat</literal>script."
msgstr ""
@@ -453,25 +461,25 @@
"Skript."
#. Tag: title
-#: gettingstarted.xml:248
+#: gettingstarted.xml:255
#, no-c-format
msgid "Using GlassFish"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:250
+#: gettingstarted.xml:257
#, no-c-format
msgid "TODO"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:254
+#: gettingstarted.xml:261
#, no-c-format
msgid "The numberguess example"
msgstr "Das numberguess-Beispiel"
#. Tag: para
-#: gettingstarted.xml:256
+#: gettingstarted.xml:263
#, no-c-format
msgid ""
"In the numberguess application you get given 10 attempts to guess a number "
@@ -483,7 +491,7 @@
"oder zu niedrig liegen."
#. Tag: para
-#: gettingstarted.xml:262
+#: gettingstarted.xml:269
#, no-c-format
msgid ""
"The numberguess example is comprised of a number of Web Beans, configuration
"
@@ -495,7 +503,7 @@
"sind. Fangen wir mit den Konfigurationsdateien an."
#. Tag: para
-#: gettingstarted.xml:268
+#: gettingstarted.xml:275
#, no-c-format
msgid ""
"All the configuration files for this example are located in
<literal>WEB-INF/"
@@ -509,7 +517,7 @@
"dem wir JSF anweisen, Facelets zu verwenden:"
#. Tag: programlisting
-#: gettingstarted.xml:276
+#: gettingstarted.xml:283
#, no-c-format
msgid ""
"<![CDATA[<?xml version='1.0' encoding='UTF-8'?>\n"
@@ -539,7 +547,7 @@
"</faces-config>]]>"
#. Tag: para
-#: gettingstarted.xml:278
+#: gettingstarted.xml:285
#, no-c-format
msgid ""
"There is an empty <literal>web-beans.xml</literal> file, which marks
this "
@@ -549,13 +557,13 @@
"Anwendung als Web Beans Applikation kennzeichnet."
#. Tag: para
-#: gettingstarted.xml:283
+#: gettingstarted.xml:290
#, no-c-format
msgid "Finally there is <literal>web.xml</literal>:"
msgstr "Und schließlich gibt es noch <literal>web.xml</literal>:"
#. Tag: section
-#: gettingstarted.xml:285
+#: gettingstarted.xml:292
#, fuzzy, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"faces.servlet\"
coords=\"12\"/> "
@@ -793,7 +801,7 @@
"programlistingco>"
#. Tag: para
-#: gettingstarted.xml:387
+#: gettingstarted.xml:394
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -805,7 +813,7 @@
"Einspeisung einer zufälligen Zahl dient:"
#. Tag: programlisting
-#: gettingstarted.xml:393
+#: gettingstarted.xml:400
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -821,7 +829,7 @@
"public @interface Random {}]]>"
#. Tag: para
-#: gettingstarted.xml:395
+#: gettingstarted.xml:402
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for
"
@@ -831,7 +839,7 @@
"Einspeisung der maximalen Zahl, die eingespeist werden kann, verwendet wird:"
#. Tag: programlisting
-#: gettingstarted.xml:400
+#: gettingstarted.xml:407
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -849,7 +857,7 @@
"]]>"
#. Tag: para
-#: gettingstarted.xml:402
+#: gettingstarted.xml:409
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the
"
@@ -861,7 +869,7 @@
"die mögliche Maximalzahl via einer maximum Producer-Methode offen:"
#. Tag: programlisting
-#: gettingstarted.xml:408
+#: gettingstarted.xml:415
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -913,7 +921,7 @@
"}]]>"
#. Tag: para
-#: gettingstarted.xml:410
+#: gettingstarted.xml:417
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application
scoped; "
@@ -924,7 +932,7 @@
"Zufallsergebnis."
#. Tag: para
-#: gettingstarted.xml:415
+#: gettingstarted.xml:422
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped
<literal>Game</"
@@ -934,7 +942,7 @@
"literal>."
#. Tag: para
-#: gettingstarted.xml:420
+#: gettingstarted.xml:427
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal>
annotation, so "
@@ -951,7 +959,7 @@
"<literal>FacesMessage</literal>."
#. Tag: programlisting
-#: gettingstarted.xml:428
+#: gettingstarted.xml:435
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -1149,13 +1157,13 @@
"}]]>"
#. Tag: title
-#: gettingstarted.xml:431
+#: gettingstarted.xml:438
#, fuzzy, no-c-format
msgid "The numberguess example in Tomcat"
msgstr "Das numberguess-Beispiel"
#. Tag: para
-#: gettingstarted.xml:433
+#: gettingstarted.xml:440
#, no-c-format
msgid ""
"The numberguess for Tomcat differs in a couple of ways. Firstly, Web Beans "
@@ -1165,7 +1173,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:442
+#: gettingstarted.xml:449
#, no-c-format
msgid ""
"Of course, you must also include JSF and EL, as well common annotations "
@@ -1173,7 +1181,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:449
+#: gettingstarted.xml:456
#, no-c-format
msgid ""
"Secondly, we need to explicitly specify the servlet listener (used to boot "
@@ -1182,7 +1190,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:455
+#: gettingstarted.xml:462
#, no-c-format
msgid ""
"<![CDATA[<listener>\n"
@@ -1192,13 +1200,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:460
+#: gettingstarted.xml:467
#, fuzzy, no-c-format
msgid "The numberguess example for Apache Wicket"
msgstr "Das numberguess-Beispiel"
#. Tag: para
-#: gettingstarted.xml:461
+#: gettingstarted.xml:468
#, no-c-format
msgid ""
"Whilst JSR-299 specifies integration with Java ServerFaces, Web Beans allows
"
@@ -1208,7 +1216,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:470
+#: gettingstarted.xml:477
#, no-c-format
msgid ""
"You may want to review the Wicket documentation at <ulink
url=\"http://"
@@ -1216,7 +1224,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:476
+#: gettingstarted.xml:483
#, no-c-format
msgid ""
"Like the previous example, the Wicket WebBeans examples make use of the "
@@ -1229,7 +1237,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:487
+#: gettingstarted.xml:494
#, no-c-format
msgid ""
"These examples make use of the Eclipse IDE; instructions are also given to "
@@ -1237,43 +1245,45 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:493
+#: gettingstarted.xml:500
#, no-c-format
msgid "Creating the Eclipse project"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:495
+#: gettingstarted.xml:502
#, no-c-format
msgid "To generate an Eclipse project from the example:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:499
+#: gettingstarted.xml:506
#, no-c-format
msgid ""
"<![CDATA[cd examples/wicket/numberguess\n"
-"mvn eclipse:eclipse]]>"
+"mvn -Pjetty eclipse:eclipse]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:501
+#: gettingstarted.xml:508
#, no-c-format
msgid ""
"Then, from eclipse, choose <emphasis>File -> Import -> General ->
Existing "
"Projects into Workspace</emphasis>, select the root directory of the "
-"numberguess example, and click finish. This will create a project in your "
-"workspace called <literal>webbeans-wicket-numberguess</literal>"
+"numberguess example, and click finish. Note that if you do not intend to run
"
+"the example with jetty from within eclipse, omit the \"-Pjetty.\" This
will "
+"create a project in your workspace called <literal>webbeans-wicket-"
+"numberguess</literal>"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:516
+#: gettingstarted.xml:524
#, no-c-format
msgid "Running the example from Eclipse"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:518
+#: gettingstarted.xml:526
#, no-c-format
msgid ""
"This project follows the <literal>wicket-quickstart</literal> approach
of "
@@ -1287,13 +1297,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:533
+#: gettingstarted.xml:541
#, no-c-format
msgid "Running the example from the command line in JBoss AS or Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:535
+#: gettingstarted.xml:543
#, no-c-format
msgid ""
"This example can also be deployed from the command line in a (similar to the
"
@@ -1306,13 +1316,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:549
+#: gettingstarted.xml:557
#, no-c-format
msgid "Understanding the code"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:551
+#: gettingstarted.xml:559
#, no-c-format
msgid ""
"JSF uses Unified EL expressions to bind view layer components in JSP or "
@@ -1326,7 +1336,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:563
+#: gettingstarted.xml:571
#, no-c-format
msgid ""
"The code in the wicket numberguess example is very similar to the JSF-based "
@@ -1334,13 +1344,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:568
+#: gettingstarted.xml:576
#, no-c-format
msgid "Differences are:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:573
+#: gettingstarted.xml:581
#, no-c-format
msgid ""
"Each wicket application must have a <literal>WebApplication</literal>
"
@@ -1349,7 +1359,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:579
+#: gettingstarted.xml:587
#, no-c-format
msgid ""
"<![CDATA[public class SampleApplication extends WebBeansApplication {\n"
@@ -1361,7 +1371,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:580
+#: gettingstarted.xml:588
#, no-c-format
msgid ""
"This class specifies which page wicket should treat as our home page, in our
"
@@ -1369,7 +1379,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:586
+#: gettingstarted.xml:594
#, no-c-format
msgid ""
"In <literal>HomePage</literal> we see typical wicket code to set up
page "
@@ -1378,13 +1388,13 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:592
+#: gettingstarted.xml:600
#, no-c-format
msgid "<![CDATA[ @Current Game game;]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:594
+#: gettingstarted.xml:602
#, no-c-format
msgid ""
"The <literal>Game</literal> bean is can then be used, for example, by
the "
@@ -1392,7 +1402,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:599
+#: gettingstarted.xml:607
#, no-c-format
msgid ""
"<![CDATA[final Component guessButton = new AjaxButton(\"GuessButton\")
{ \n"
@@ -1401,7 +1411,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:602
+#: gettingstarted.xml:610
#, no-c-format
msgid ""
"All injections may be serialized; actual storage of the bean is managed by "
@@ -1410,7 +1420,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:608
+#: gettingstarted.xml:616
#, no-c-format
msgid ""
"Wicket components allow injection, but they <emphasis>cannot</emphasis>
use "
@@ -1419,7 +1429,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:618
+#: gettingstarted.xml:626
#, no-c-format
msgid ""
"The example uses AJAX for processing of button events, and dynamically hides
"
@@ -1428,7 +1438,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:626
+#: gettingstarted.xml:634
#, no-c-format
msgid ""
"In order to activate wicket for this webapp, the Wicket filter is added to "
@@ -1436,7 +1446,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:631
+#: gettingstarted.xml:639
#, no-c-format
msgid ""
"<![CDATA[<filter>\n"
@@ -1462,7 +1472,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:632
+#: gettingstarted.xml:640
#, no-c-format
msgid ""
"Note that the servlet listener is also added, as in the Tomcat example, in "
@@ -1471,13 +1481,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:645
+#: gettingstarted.xml:653
#, fuzzy, no-c-format
msgid "The numberguess example for Java SE with Swing"
msgstr "Das numberguess-Beispiel"
#. Tag: para
-#: gettingstarted.xml:647
+#: gettingstarted.xml:655
#, no-c-format
msgid ""
"This example can be found in the
<literal>examples/se/numberguess</literal> "
@@ -1485,13 +1495,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:654
+#: gettingstarted.xml:662
#, fuzzy, no-c-format
msgid "To run this example:"
msgstr "Das translator-Beispiel"
#. Tag: para
-#: gettingstarted.xml:660
+#: gettingstarted.xml:668
#, no-c-format
msgid ""
"Open a command line/terminal window in the
<literal>examples/se/numberguess</"
@@ -1499,13 +1509,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:666
+#: gettingstarted.xml:674
#, no-c-format
msgid "Ensure that Maven 2 is installed and in your PATH"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:671
+#: gettingstarted.xml:679
#, no-c-format
msgid ""
"Ensure that the <literal>JAVA_HOME</literal> environment variable is
"
@@ -1513,19 +1523,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:677
+#: gettingstarted.xml:685
#, no-c-format
msgid "execute the following command"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:680
+#: gettingstarted.xml:688
#, no-c-format
msgid "mvn -Drun"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:686
+#: gettingstarted.xml:694
#, fuzzy, no-c-format
msgid ""
"There is an empty <literal>beans.xml</literal> file in the root package
"
@@ -1536,7 +1546,7 @@
"Anwendung als Web Beans Applikation kennzeichnet."
#. Tag: para
-#: gettingstarted.xml:692
+#: gettingstarted.xml:700
#, no-c-format
msgid ""
"The game's main logic is located in <literal>Game.java</literal>.
Here is "
@@ -1545,7 +1555,7 @@
msgstr ""
#. Tag: section
-#: gettingstarted.xml:696
+#: gettingstarted.xml:704
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"scope\"
coords=\"1\"/> <area id="
@@ -1811,13 +1821,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:904
+#: gettingstarted.xml:912
#, no-c-format
msgid "The translator example"
msgstr "Das translator-Beispiel"
#. Tag: para
-#: gettingstarted.xml:906
+#: gettingstarted.xml:914
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them
"
@@ -1827,7 +1837,7 @@
"Lateinische übersetzt."
#. Tag: para
-#: gettingstarted.xml:911
+#: gettingstarted.xml:919
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs. As a result, "
@@ -1837,7 +1847,7 @@
"Struktur komplexer als die desnumberguess-Beispiels."
#. Tag: para
-#: gettingstarted.xml:917
+#: gettingstarted.xml:925
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -1847,7 +1857,7 @@
"wodurch diese Struktur wesentlich einfacher wird!"
#. Tag: para
-#: gettingstarted.xml:923
+#: gettingstarted.xml:931
#, no-c-format
msgid ""
"First, let's take a look at the ear aggregator, which is located in "
@@ -1859,7 +1869,7 @@
"automatisch die <literal>application.xml</literal> für uns:"
#. Tag: programlisting
-#: gettingstarted.xml:929
+#: gettingstarted.xml:937
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -1891,7 +1901,7 @@
"</plugin>]]>"
#. Tag: para
-#: gettingstarted.xml:931
+#: gettingstarted.xml:939
#, no-c-format
msgid ""
"Here we set the context path, which gives us a nice url (<ulink
url=\"http://"
@@ -1903,7 +1913,7 @@
"translator</ulink>)."
#. Tag: para
-#: gettingstarted.xml:937
+#: gettingstarted.xml:945
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
@@ -1913,7 +1923,7 @@
"benötigen Sie <literal>META-INF/application.xml</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:942
+#: gettingstarted.xml:950
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\"
encoding=\"UTF-8\"?>\n"
@@ -1959,7 +1969,7 @@
"</application>]]>"
#. Tag: para
-#: gettingstarted.xml:945
+#: gettingstarted.xml:953
#, fuzzy, no-c-format
msgid ""
"Next, lets look at the war. Just as in the numberguess example, we have a "
@@ -1972,7 +1982,7 @@
"<literal>WebContent/WEB-INF</literal>."
#. Tag: para
-#: gettingstarted.xml:952
+#: gettingstarted.xml:960
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -1984,7 +1994,7 @@
"(hier der Kürze wegen weggelassen):"
#. Tag: programlisting
-#: gettingstarted.xml:958
+#: gettingstarted.xml:966
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -2044,7 +2054,7 @@
"</h:form>]]>"
#. Tag: para
-#: gettingstarted.xml:960
+#: gettingstarted.xml:968
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate
"
@@ -2055,7 +2065,7 @@
"Ergebnis zu sehen."
#. Tag: para
-#: gettingstarted.xml:965
+#: gettingstarted.xml:973
#, no-c-format
msgid ""
"Finally, let's look at the ejb module,
<literal>webbeans-translator-ejb</"
@@ -2069,7 +2079,7 @@
"das Archiv als Web Beans enthaltend zu markieren."
#. Tag: para
-#: gettingstarted.xml:973
+#: gettingstarted.xml:981
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two
"
@@ -2087,7 +2097,7 @@
"Bean aussehen, daher gehen wir hier nur auf die interessantesten Aspekte
ein."
#. Tag: para
-#: gettingstarted.xml:983
+#: gettingstarted.xml:991
#, no-c-format
msgid ""
"Both <literal>SentenceParser</literal> and
<literal>TextTranslator</literal> "
@@ -2099,7 +2109,7 @@
"<literal>TextTranslator</literal> verwendet Konstruktor-Initialisierung
:"
#. Tag: programlisting
-#: gettingstarted.xml:989
+#: gettingstarted.xml:997
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -2125,7 +2135,7 @@
" this.sentenceTranslator = sentenceTranslator;]]>"
#. Tag: para
-#: gettingstarted.xml:991
+#: gettingstarted.xml:999
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local
business "
@@ -2137,7 +2147,7 @@
"kompletten Übersetzer entwickeln,, aber wir haben uns Mühe gegeben!"
#. Tag: para
-#: gettingstarted.xml:997
+#: gettingstarted.xml:1005
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -2150,7 +2160,7 @@
"das den translator einspeist."
#. Tag: programlisting
-#: gettingstarted.xml:1003
+#: gettingstarted.xml:1011
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -2170,13 +2180,13 @@
" @Current TextTranslator translator;]]>"
#. Tag: para
-#: gettingstarted.xml:1005
+#: gettingstarted.xml:1013
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr "Das Bean besitzt auch Getter und Setter für alle Felder auf der
Seite."
#. Tag: para
-#: gettingstarted.xml:1009
+#: gettingstarted.xml:1017
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
@@ -2184,7 +2194,7 @@
"Methode besitzen:"
#. Tag: programlisting
-#: gettingstarted.xml:1013
+#: gettingstarted.xml:1021
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -2200,7 +2210,7 @@
" }]]>"
#. Tag: para
-#: gettingstarted.xml:1015
+#: gettingstarted.xml:1023
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -2210,7 +2220,7 @@
"gelöscht wird, in diesem Fall am Ende der Anfrage."
#. Tag: para
-#: gettingstarted.xml:1021
+#: gettingstarted.xml:1029
#, fuzzy, no-c-format
msgid ""
"That concludes our short tour of the Web Beans examples. For more on Web "
@@ -2224,7 +2234,7 @@
"Development\">http://www.seamframework.org/WebBeans/Development</ulink>."
#. Tag: para
-#: gettingstarted.xml:1027
+#: gettingstarted.xml:1035
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
Modified: doc/trunk/reference/de-DE/producermethods.po
===================================================================
--- doc/trunk/reference/de-DE/producermethods.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/de-DE/producermethods.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: producermethods\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2009-02-23 08:08+1100\n"
"Last-Translator: \n"
"Language-Team: <en(a)li.org>\n"
@@ -43,83 +43,29 @@
msgid "According to the spec:"
msgstr "Gemäß der Spezifikation:"
-#. Tag: para
-#: producermethods.xml:16
+#. Tag: chapter
+#: producermethods.xml:12
#, no-c-format
msgid ""
-"A Web Beans producer method acts as a source of objects to be injected, "
-"where:"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:20
-#, no-c-format
-msgid ""
-"the objects to be injected are not required to be instances of Web Beans,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:23
-#, no-c-format
-msgid "the concrete type of the objects to be injected may vary at runtime or"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:26
-#, no-c-format
-msgid ""
-"the objects require some custom initialization that is not performed by the "
-"Web Bean constructor"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:33
-#, fuzzy, no-c-format
-msgid "For example, producer methods let us:"
-msgstr "Geltungsbereich einer Producer-Methode"
-
-#. Tag: para
-#: producermethods.xml:37
-#, no-c-format
-msgid "expose a JPA entity as a Web Bean,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:40
-#, no-c-format
-msgid "expose any JDK class as a Web Bean,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:43
-#, no-c-format
-msgid ""
-"define multiple Web Beans, with different scopes or initialization, for the "
-"same implementation class, or"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:47
-#, no-c-format
-msgid "vary the implementation of an API type at runtime."
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:51
-#, no-c-format
-msgid ""
-"In particular, producer methods let us use runtime polymorphism with Web "
-"Beans. As we've seen, deployment types are a powerful solution to the "
-"problem of deployment-time polymorphism. But once the system is deployed, "
-"the Web Bean implementation is fixed. A producer method has no such "
-"limitation:"
-msgstr ""
-
-#. Tag: programlisting
-#: producermethods.xml:56
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[@SessionScoped\n"
+"<blockquote> <para>A Web Beans producer method acts as a source of
objects "
+"to be injected, where:</para> <itemizedlist> <listitem>
<para>the objects to "
+"be injected are not required to be instances of Web Beans,</para>
</"
+"listitem> <listitem> <para>the concrete type of the objects to be
injected "
+"may vary at runtime or</para> </listitem> <listitem>
<para>the objects "
+"require some custom initialization that is not performed by the Web Bean "
+"constructor</para> </listitem> </itemizedlist>
</blockquote> <para>For "
+"example, producer methods let us:</para> <itemizedlist>
<listitem> "
+"<para>expose a JPA entity as a Web Bean,</para> </listitem>
<listitem> "
+"<para>expose any JDK class as a Web Bean,</para> </listitem>
<listitem> "
+"<para>define multiple Web Beans, with different scopes or initialization,
"
+"for the same implementation class, or</para> </listitem>
<listitem> "
+"<para>vary the implementation of an API type at runtime.</para>
</listitem> "
+"</itemizedlist> <para>In particular, producer methods let us use
runtime "
+"polymorphism with Web Beans. As we've seen, deployment types are a powerful
"
+"solution to the problem of deployment-time polymorphism. But once the system
"
+"is deployed, the Web Bean implementation is fixed. A producer method has no "
+"such limitation:</para> <programlisting
role=\"JAVA\"><![CDATA"
+"[@SessionScoped\n"
"public class Preferences {\n"
" \n"
" private PaymentStrategyType paymentStrategy;\n"
@@ -136,52 +82,60 @@
" } \n"
" }\n"
" \n"
-"}]]>"
+"}]]></programlisting> <para>Consider an injection
point:</para> "
+"<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
+"paymentStrat;]]></programlisting> <para>This injection point has the
same "
+"type and binding annotations as the producer method, so it resolves to the "
+"producer method using the usual Web Beans injection rules. The producer "
+"method will be called by the Web Bean manager to obtain an instance to "
+"service this injection point.</para>."
msgstr ""
-"<![CDATA[@Produces @Preferred @SessionScoped\n"
-"public PaymentStrategy getPaymentStrategy(CreditCardPaymentStrategy ccps,\n"
-" ChequePaymentStrategy cps,\n"
-" PayPalPaymentStrategy ppps) {\n"
-" switch (paymentStrategy) {\n"
-" case CREDIT_CARD: return ccps;\n"
-" case CHEQUE: return cps;\n"
-" case PAYPAL: return ppps;\n"
-" default: return null;\n"
-" } \n"
-"}]]>"
-
-#. Tag: para
-#: producermethods.xml:58
-#, no-c-format
-msgid "Consider an injection point:"
-msgstr ""
-
-#. Tag: programlisting
-#: producermethods.xml:60
-#, fuzzy, no-c-format
-msgid "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
-msgstr ""
-"<![CDATA[@Produces @Preferred @SessionScoped\n"
-"public PaymentStrategy getPaymentStrategy() {\n"
+"<blockquote> <para>Eine Web Beans Producer-Methode fungiert als Quelle
"
+"einzuspeisender Objekte wenn:</para> <itemizedlist> <listitem>
<para>die "
+"einzuspeisenden Objekte keine Instanzen von Web Beans sein müssen,</para>
</"
+"listitem> <listitem> <para>der konkrete Typ einzuspeisender Objekte
zur "
+"Runtime variieren kann oder </para> </listitem> <listitem>
<para>die Objekte "
+"eine bestimmte angepasste Initialisierung erfordern, die nicht vom Web Bean "
+"Konstruktor durchgeführt wird</para> </listitem> </itemizedlist>
</"
+"blockquote> <para>Producer-Methoden lassen uns zum Beispiel:</para>
"
+"<itemizedlist> <listitem> <para>eine JPA-Entity als ein Web Bean
darlegen,</"
+"para> </listitem> <listitem> <para>eine beliebige JDK-Klasse
als ein Web "
+"Bean darlegen,</para> </listitem> <listitem> <para>mehrere
Web Beans mit "
+"unterschiedlichen Geltungsbereichen oder Initialisierung für diesselbe "
+"Implementierungsklasse definieren oder </para> </listitem>
<listitem> "
+"<para>die Implementierung eines API-Typs zur Runtime variieren.</para>
</"
+"listitem> </itemizedlist> <para>Insbesondere lassen uns
Producer-Methoden "
+"Runtime-Polymorphie mit Web Beans verwenden. Wie wir bereits gesehen haben "
+"sind Deployment-Typen eine leistungsfähige Lösung zum Problem der "
+"Polymorphie zum Zeitpunkt des Deployment. Aber nachdem das System deployt "
+"ist, wird die Web Bean Implementierung behoben. Eine Producer-Methode "
+"besitzt keine solche Einschränkung:</para> <programlisting
role=\"JAVA\"><!"
+"[CDATA[@SessionScoped\n"
+"public class Preferences {\n"
+" \n"
+" private PaymentStrategyType paymentStrategy;\n"
+" \n"
" ...\n"
-"}]]>"
+" \n"
+" @Produces @Preferred \n"
+" public PaymentStrategy getPaymentStrategy() {\n"
+" switch (paymentStrategy) {\n"
+" case CREDIT_CARD: return new CreditCardPaymentStrategy();\n"
+" case CHEQUE: return new ChequePaymentStrategy();\n"
+" case PAYPAL: return new PayPalPaymentStrategy();\n"
+" default: return null;\n"
+" } \n"
+" }\n"
+" \n"
+"}]]></programlisting> <para>Überlegen Sie einen
Einspeisungspunkt:</para> "
+"<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
+"paymentStrat;]]></programlisting> <para>Dieser Einspeisungspunkt
besitzt "
+"denselben Typ und diesselben Binding-Annotationen wie die Producer-Methode, "
+"so dass er unter Verwendung der üblichen Web Beans Einspeisungsregeln zur "
+"Producer-Methode auflöst. Die Producer-Methode wird vom Web Bean Manager "
+"aufgerufen um eine Instanz zu erhalten, um diesen Einspeisungspunkt zu "
+"bedienen.</para>."
-#. Tag: para
-#: producermethods.xml:62
-#, no-c-format
-msgid ""
-"This injection point has the same type and binding annotations as the "
-"producer method, so it resolves to the producer method using the usual Web "
-"Beans injection rules. The producer method will be called by the Web Bean "
-"manager to obtain an instance to service this injection point."
-msgstr ""
-
-#. Tag: chapter
-#: producermethods.xml:65
-#, no-c-format
-msgid "<chapter>.</chapter>"
-msgstr ""
-
#. Tag: title
#: producermethods.xml:68
#, no-c-format
@@ -414,26 +368,13 @@
"gelöscht bis das <literal>Preferences</literal>-Objekt gelöscht wird,
meist "
"am Ende der Session."
+#, fuzzy
+#~ msgid "For example, producer methods let us:"
+#~ msgstr "Geltungsbereich einer Producer-Methode"
+
+#, fuzzy
#~ msgid ""
-#~ "<blockquote> <para>A Web Beans producer method acts as a source of
"
-#~ "objects to be injected, where:</para> <itemizedlist>
<listitem> <para>the "
-#~ "objects to be injected are not required to be instances of Web
Beans,</"
-#~ "para> </listitem> <listitem> <para>the concrete type of the
objects to be "
-#~ "injected may vary at runtime or</para> </listitem> <listitem>
<para>the "
-#~ "objects require some custom initialization that is not performed by the "
-#~ "Web Bean constructor</para> </listitem> </itemizedlist>
</blockquote> "
-#~ "<para>For example, producer methods let us:</para>
<itemizedlist> "
-#~ "<listitem> <para>expose a JPA entity as a Web Bean,</para>
</listitem> "
-#~ "<listitem> <para>expose any JDK class as a Web Bean,</para>
</listitem> "
-#~ "<listitem> <para>define multiple Web Beans, with different scopes or
"
-#~ "initialization, for the same implementation class, or</para>
</listitem> "
-#~ "<listitem> <para>vary the implementation of an API type at
runtime.</"
-#~ "para> </listitem> </itemizedlist> <para>In particular,
producer methods "
-#~ "let us use runtime polymorphism with Web Beans. As we've seen, deployment
"
-#~ "types are a powerful solution to the problem of deployment-time "
-#~ "polymorphism. But once the system is deployed, the Web Bean "
-#~ "implementation is fixed. A producer method has no such limitation:</para>
"
-#~ "<programlisting
role=\"JAVA\"><![CDATA[@SessionScoped\n"
+#~ "<![CDATA[@SessionScoped\n"
#~ "public class Preferences {\n"
#~ " \n"
#~ " private PaymentStrategyType paymentStrategy;\n"
@@ -450,56 +391,25 @@
#~ " } \n"
#~ " }\n"
#~ " \n"
-#~ "}]]></programlisting> <para>Consider an injection
point:</para> "
-#~ "<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
-#~ "paymentStrat;]]></programlisting> <para>This injection point has
the same "
-#~ "type and binding annotations as the producer method, so it resolves to "
-#~ "the producer method using the usual Web Beans injection rules. The "
-#~ "producer method will be called by the Web Bean manager to obtain an "
-#~ "instance to service this injection point.</para>."
+#~ "}]]>"
#~ msgstr ""
-#~ "<blockquote> <para>Eine Web Beans Producer-Methode fungiert als
Quelle "
-#~ "einzuspeisender Objekte wenn:</para> <itemizedlist> <listitem>
<para>die "
-#~ "einzuspeisenden Objekte keine Instanzen von Web Beans sein müssen,</para>
"
-#~ "</listitem> <listitem> <para>der konkrete Typ einzuspeisender
Objekte zur "
-#~ "Runtime variieren kann oder </para> </listitem> <listitem>
<para>die "
-#~ "Objekte eine bestimmte angepasste Initialisierung erfordern, die nicht "
-#~ "vom Web Bean Konstruktor durchgeführt wird</para> </listitem>
</"
-#~ "itemizedlist> </blockquote> <para>Producer-Methoden lassen uns
zum "
-#~ "Beispiel:</para> <itemizedlist> <listitem> <para>eine
JPA-Entity als ein "
-#~ "Web Bean darlegen,</para> </listitem> <listitem>
<para>eine beliebige JDK-"
-#~ "Klasse als ein Web Bean darlegen,</para> </listitem>
<listitem> "
-#~ "<para>mehrere Web Beans mit unterschiedlichen Geltungsbereichen oder
"
-#~ "Initialisierung für diesselbe Implementierungsklasse definieren oder
</"
-#~ "para> </listitem> <listitem> <para>die Implementierung
eines API-Typs zur "
-#~ "Runtime variieren.</para> </listitem> </itemizedlist>
<para>Insbesondere "
-#~ "lassen uns Producer-Methoden Runtime-Polymorphie mit Web Beans verwenden.
"
-#~ "Wie wir bereits gesehen haben sind Deployment-Typen eine leistungsfähige "
-#~ "Lösung zum Problem der Polymorphie zum Zeitpunkt des Deployment. Aber "
-#~ "nachdem das System deployt ist, wird die Web Bean Implementierung "
-#~ "behoben. Eine Producer-Methode besitzt keine solche Einschränkung:</para>
"
-#~ "<programlisting
role=\"JAVA\"><![CDATA[@SessionScoped\n"
-#~ "public class Preferences {\n"
-#~ " \n"
-#~ " private PaymentStrategyType paymentStrategy;\n"
-#~ " \n"
+#~ "<![CDATA[@Produces @Preferred @SessionScoped\n"
+#~ "public PaymentStrategy getPaymentStrategy(CreditCardPaymentStrategy "
+#~ "ccps,\n"
+#~ " ChequePaymentStrategy cps,\n"
+#~ " PayPalPaymentStrategy ppps) {\n"
+#~ " switch (paymentStrategy) {\n"
+#~ " case CREDIT_CARD: return ccps;\n"
+#~ " case CHEQUE: return cps;\n"
+#~ " case PAYPAL: return ppps;\n"
+#~ " default: return null;\n"
+#~ " } \n"
+#~ "}]]>"
+
+#, fuzzy
+#~ msgid "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
+#~ msgstr ""
+#~ "<![CDATA[@Produces @Preferred @SessionScoped\n"
+#~ "public PaymentStrategy getPaymentStrategy() {\n"
#~ " ...\n"
-#~ " \n"
-#~ " @Produces @Preferred \n"
-#~ " public PaymentStrategy getPaymentStrategy() {\n"
-#~ " switch (paymentStrategy) {\n"
-#~ " case CREDIT_CARD: return new CreditCardPaymentStrategy();\n"
-#~ " case CHEQUE: return new ChequePaymentStrategy();\n"
-#~ " case PAYPAL: return new PayPalPaymentStrategy();\n"
-#~ " default: return null;\n"
-#~ " } \n"
-#~ " }\n"
-#~ " \n"
-#~ "}]]></programlisting> <para>Überlegen Sie einen
Einspeisungspunkt:</para> "
-#~ "<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
-#~ "paymentStrat;]]></programlisting> <para>Dieser Einspeisungspunkt
besitzt "
-#~ "denselben Typ und diesselben Binding-Annotationen wie die Producer-"
-#~ "Methode, so dass er unter Verwendung der üblichen Web Beans "
-#~ "Einspeisungsregeln zur Producer-Methode auflöst. Die Producer-Methode "
-#~ "wird vom Web Bean Manager aufgerufen um eine Instanz zu erhalten, um "
-#~ "diesen Einspeisungspunkt zu bedienen.</para>."
+#~ "}]]>"
Modified: doc/trunk/reference/es-ES/environments.po
===================================================================
--- doc/trunk/reference/es-ES/environments.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/es-ES/environments.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
"Project-Id-Version: Web_Beans:_Java_Contexts_and_Dependency_Injection "
"VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2009-03-28 17:09+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -84,7 +84,7 @@
#. Tag: title
#: environments.xml:47
#, no-c-format
-msgid "Glassfish"
+msgid "GlassFish"
msgstr ""
#. Tag: para
@@ -122,9 +122,9 @@
msgid ""
"Web Beans should be used as a web application library in a servlet "
"container. You should place <literal>webbeans-servlet.jar</literal> in
"
-"<literal>WEB-INF/lib</literal>.
<literal>webbeans-serv;et.jar</literal> is "
-"an \"uber-jar\" provided for your convenience. Instead, you could use its
"
-"component jars:"
+"<literal>WEB-INF/lib</literal>.
<literal>webbeans-servlet.jar</literal> is "
+"an \"uber-jar\" provided for your convenience. Alternatively, you could
use "
+"its component jars:"
msgstr ""
#. Tag: literal
@@ -205,45 +205,46 @@
#, no-c-format
msgid ""
"Tomcat has a read-only JNDI, so Web Beans can't automatically bind the "
-"Manager. To bind the Manager into JNDI, you should add the following to your
"
-"<literal>META-INF/context.xml</literal>:"
+"Manager. To bind the Manager into JNDI, you should populate
<literal>META-"
+"INF/context.xml</literal> with the following contents:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:134
+#: environments.xml:135
#, no-c-format
msgid ""
-"<![CDATA[<Resource name=\"app/Manager\" \n"
-" auth=\"Container\"\n"
-" type=\"javax.inject.manager.Manager\"\n"
-"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
-"]]>"
+"<![CDATA[<Context>\n"
+" <Resource name=\"app/Manager\" \n"
+" auth=\"Container\"\n"
+" type=\"javax.inject.manager.Manager\"\n"
+"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
+"</Context>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:136
+#: environments.xml:137
#, no-c-format
msgid ""
-"and make it available to your deployment by adding this to
<literal>web.xml</"
-"literal>:"
+"and make it available to your deployment by adding this to the bottom of "
+"<literal>web.xml</literal>:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:141
+#: environments.xml:142
#, no-c-format
msgid ""
"<![CDATA[<resource-env-ref>\n"
-" <resource-env-ref-name>\n"
-" app/Manager\n"
-" </resource-env-ref-name>\n"
-" <resource-env-ref-type>\n"
-" javax.inject.manager.Manager\n"
-" </resource-env-ref-type>\n"
+" <resource-env-ref-name>\n"
+" app/Manager\n"
+" </resource-env-ref-name>\n"
+" <resource-env-ref-type>\n"
+" javax.inject.manager.Manager\n"
+" </resource-env-ref-type>\n"
"</resource-env-ref>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:143
+#: environments.xml:144
#, no-c-format
msgid ""
"Tomcat only allows you to bind entries to
<literal>java:comp/env</literal>, "
@@ -252,7 +253,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:149
+#: environments.xml:150
#, no-c-format
msgid ""
"Web Beans also supports Servlet injection in Tomcat. To enable this, place "
@@ -262,21 +263,84 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:156
+#: environments.xml:157
#, no-c-format
msgid ""
"<![CDATA[<Listener
className=\"org.jboss.webbeans.environment.tomcat."
-"WebBeansLifecycleListener\" />]]>"
+"WebBeansLifecycleListener\"/>]]>"
msgstr ""
#. Tag: title
-#: environments.xml:163
+#: environments.xml:162
#, no-c-format
+msgid "Jetty"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:164
+#, no-c-format
+msgid ""
+"Like Tomcat, Jetty has a read-only JNDI, so Web Beans can't automatically
"
+"bind the Manager. To bind the Manager to JNDI, you should populate "
+"<literal>WEB-INF/jetty-env.xml</literal> with the following
contents:"
+msgstr ""
+
+#. Tag: programlisting
+#: environments.xml:171
+#, no-c-format
+msgid ""
+"<![CDATA[<!DOCTYPE Configure PUBLIC \"-//Mort Bay Consulting//DTD
Configure//"
+"EN\"\n"
+" \"http://jetty.mortbay.org/configure.dtd\">\n"
+"<Configure id=\"webAppCtx\"
class=\"org.mortbay.jetty.webapp.WebAppContext"
+"\">\n"
+" <New id=\"appManager\"
class=\"org.mortbay.jetty.plus.naming.Resource\">\n"
+" <Arg><Ref id=\"webAppCtx\"/></Arg> \n"
+" <Arg>app/Manager</Arg>\n"
+" <Arg>\n"
+" <New class=\"javax.naming.Reference\">\n"
+" <Arg>javax.inject.manager.Manager</Arg> \n"
+"
<Arg>org.jboss.webbeans.resources.ManagerObjectFactory</Arg>\n"
+" <Arg/>\n"
+" </New>\n"
+" </Arg>\n"
+" </New>\n"
+"</Configure>]]>"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:173
+#, no-c-format
+msgid ""
+"Notice that Jetty doesn't not have built-in support for an
<literal>javax."
+"naming.spi.ObjectFactory</literal> like Tomcat, so it's necessary to
"
+"manually create the <literal>javax.naming.Reference</literal> to wrap
around "
+"it."
+msgstr ""
+
+#. Tag: para
+#: environments.xml:180
+#, no-c-format
+msgid ""
+"Jetty only allows you to bind entries to
<literal>java:comp/env</literal>, "
+"so the Manager will be available at
<literal>java:comp/env/app/Manager</"
+"literal>"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:186
+#, no-c-format
+msgid "Web Beans does not currently support Servlet injection in Jetty."
+msgstr ""
+
+#. Tag: title
+#: environments.xml:195
+#, no-c-format
msgid "Java SE"
msgstr ""
#. Tag: para
-#: environments.xml:165
+#: environments.xml:197
#, no-c-format
msgid ""
"Apart from improved integration of the Enterprise Java stack, Web Beans also
"
@@ -288,7 +352,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:173
+#: environments.xml:205
#, no-c-format
msgid ""
"When executing in the SE environment the following features of Web Beans are
"
@@ -296,49 +360,55 @@
msgstr ""
#. Tag: literal
-#: environments.xml:179
+#: environments.xml:211
#, no-c-format
msgid "Simple Web Beans (POJOs)"
msgstr ""
#. Tag: literal
-#: environments.xml:184
+#: environments.xml:216
#, no-c-format
msgid "Typesafe Dependency Injection"
msgstr ""
#. Tag: literal
-#: environments.xml:189
+#: environments.xml:221
#, no-c-format
msgid "Application and Dependent Contexts"
msgstr ""
#. Tag: literal
-#: environments.xml:194
+#: environments.xml:226
#, no-c-format
msgid "Binding Types"
msgstr ""
#. Tag: literal
-#: environments.xml:199
+#: environments.xml:231
#, no-c-format
+msgid "Deployment Types"
+msgstr ""
+
+#. Tag: literal
+#: environments.xml:236
+#, no-c-format
msgid "Stereotypes"
msgstr ""
#. Tag: literal
-#: environments.xml:204
+#: environments.xml:241
#, no-c-format
msgid "Typesafe Event Model"
msgstr ""
#. Tag: title
-#: environments.xml:210
+#: environments.xml:247
#, no-c-format
msgid "Web Beans SE Module"
msgstr ""
#. Tag: para
-#: environments.xml:212
+#: environments.xml:249
#, no-c-format
msgid ""
"To make life easy for developers Web Beans provides a special module with a "
@@ -351,7 +421,7 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:221
+#: environments.xml:258
#, no-c-format
msgid ""
"<![CDATA[@Parameters List<String> params;\n"
@@ -360,13 +430,13 @@
msgstr ""
#. Tag: para
-#: environments.xml:222
+#: environments.xml:259
#, no-c-format
msgid "Here's an example of a simple Web Beans SE application:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:226
+#: environments.xml:263
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -382,20 +452,20 @@
msgstr ""
#. Tag: para
-#: environments.xml:228
+#: environments.xml:265
#, no-c-format
msgid ""
"Web Beans SE applications are started by running the following main method."
msgstr ""
#. Tag: programlisting
-#: environments.xml:230
+#: environments.xml:267
#, no-c-format
msgid "<![CDATA[java org.jboss.webbeans.environments.se.StartMain
<args>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:232
+#: environments.xml:269
#, no-c-format
msgid ""
"If you need to do any custom initialization of the Web Beans manager, for "
@@ -405,7 +475,7 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:237
+#: environments.xml:274
#, no-c-format
msgid ""
"<![CDATA[public class PerformSetup\n"
@@ -419,7 +489,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:240
+#: environments.xml:277
#, no-c-format
msgid ""
"The command line parameters do not become available for injection until the "
Modified: doc/trunk/reference/es-ES/gettingstarted.po
===================================================================
--- doc/trunk/reference/es-ES/gettingstarted.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/es-ES/gettingstarted.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: ri\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2009-01-20 10:55+1000\n"
"Last-Translator: Gladys Guerrero Lozano <gguerrer(a)redhat.com>\n"
"Language-Team: Spanish <fedora-trans-es(a)redhat.com>\n"
@@ -107,7 +107,7 @@
"$ unzip ~/jboss-5.0.0.GA.zip]]>"
#. Tag: para
-#: gettingstarted.xml:49 gettingstarted.xml:170
+#: gettingstarted.xml:49 gettingstarted.xml:177
#, fuzzy, no-c-format
msgid ""
"Next, download Web Beans from <ulink
url=\"http://seamframework.org/Download"
@@ -117,7 +117,7 @@
"org/Download\">seamframework.org</ulink>, y descomprímalo. Por
ejemplo:"
#. Tag: programlisting
-#: gettingstarted.xml:55 gettingstarted.xml:176
+#: gettingstarted.xml:55 gettingstarted.xml:183
#, fuzzy, no-c-format
msgid ""
"<![CDATA[$ cd ~/\n"
@@ -155,8 +155,16 @@
"y que la variable de entorno <literal>ANT_HOME</literal> esté
configurada. "
"Por ejemplo:"
+#. Tag: para
+#: gettingstarted.xml:72
+#, no-c-format
+msgid ""
+"JBoss 5.1.0 comes with Web Beans built in, so there is no need to update the
"
+"server."
+msgstr ""
+
#. Tag: programlisting
-#: gettingstarted.xml:71
+#: gettingstarted.xml:78
#, no-c-format
msgid ""
"$ unzip apache-ant-1.7.0.zip\n"
@@ -166,7 +174,7 @@
"$ export ANT_HOME=~/apache-ant-1.7.0"
#. Tag: para
-#: gettingstarted.xml:73
+#: gettingstarted.xml:80
#, fuzzy, no-c-format
msgid ""
"Then, you can install the update. The update script will use Maven to "
@@ -176,7 +184,7 @@
"descargar automáticamente el Web Beans y EJB3."
#. Tag: programlisting
-#: gettingstarted.xml:78
+#: gettingstarted.xml:85
#, fuzzy, no-c-format
msgid ""
"$ cd webbeans-$VERSION/jboss-as\n"
@@ -186,13 +194,13 @@
"$ ant update"
#. Tag: para
-#: gettingstarted.xml:80
+#: gettingstarted.xml:87
#, no-c-format
msgid "Now, you're ready to deploy your first example!"
msgstr "Ahora, ¡está listo para desplegar su primer ejemplo!"
#. Tag: para
-#: gettingstarted.xml:85
+#: gettingstarted.xml:92
#, fuzzy, no-c-format
msgid ""
"The build scripts for the examples offer a number of targets for JBoss AS, "
@@ -202,14 +210,14 @@
"saber:"
#. Tag: para
-#: gettingstarted.xml:91
+#: gettingstarted.xml:98
#, no-c-format
msgid "<literal>ant restart</literal> - deploy the example in exploded
format"
msgstr ""
"<literal>ant restart</literal> - despliega el ejemplo en formato
explotado"
#. Tag: para
-#: gettingstarted.xml:97
+#: gettingstarted.xml:104
#, no-c-format
msgid ""
"<literal>ant explode</literal> - update an exploded example, without
"
@@ -219,7 +227,7 @@
"reiniciar el despliegue"
#. Tag: para
-#: gettingstarted.xml:103
+#: gettingstarted.xml:110
#, no-c-format
msgid ""
"<literal>ant deploy</literal> - deploy the example in compressed jar
format"
@@ -228,25 +236,25 @@
"comprimido"
#. Tag: para
-#: gettingstarted.xml:108
+#: gettingstarted.xml:115
#, no-c-format
msgid "<literal>ant undeploy</literal> - remove the example from the
server"
msgstr "<literal>ant undeploy</literal> - quita el ejemplo del
servidor"
#. Tag: para
-#: gettingstarted.xml:113
+#: gettingstarted.xml:120
#, no-c-format
msgid "<literal>ant clean</literal> - clean the example"
msgstr "<literal>ant clean</literal> - borra el ejemplo"
#. Tag: para
-#: gettingstarted.xml:120
+#: gettingstarted.xml:127
#, no-c-format
msgid "To deploy the numberguess example:"
msgstr "Para desplegar el ejemplo numberguess:"
#. Tag: programlisting
-#: gettingstarted.xml:124
+#: gettingstarted.xml:131
#, no-c-format
msgid ""
"$ cd examples/numberguess\n"
@@ -256,25 +264,25 @@
"ant deploy"
#. Tag: para
-#: gettingstarted.xml:126
+#: gettingstarted.xml:133
#, no-c-format
msgid "Start JBoss AS:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:130
+#: gettingstarted.xml:137
#, fuzzy, no-c-format
msgid "$ /Application/jboss-5.0.0.GA/bin/run.sh"
msgstr "jboss.home=/Applications/jboss-5.0.0.GA"
#. Tag: para
-#: gettingstarted.xml:133
+#: gettingstarted.xml:140
#, no-c-format
msgid "If you use Windows, use the
<literal>run.bat</literal>script."
msgstr ""
#. Tag: para
-#: gettingstarted.xml:138 gettingstarted.xml:240
+#: gettingstarted.xml:145 gettingstarted.xml:247
#, no-c-format
msgid ""
"Wait for the application to deploy, and enjoy hours of fun at <ulink url="
@@ -284,7 +292,7 @@
"localhost:8080/webbeans-numberguess\"></ulink>!"
#. Tag: para
-#: gettingstarted.xml:143
+#: gettingstarted.xml:150
#, fuzzy, no-c-format
msgid ""
"Web Beans includes a second simple example that will translate your text "
@@ -298,7 +306,7 @@
"empresariales, empaquetados en un módulo EJB. Para probar:"
#. Tag: programlisting
-#: gettingstarted.xml:150
+#: gettingstarted.xml:157
#, no-c-format
msgid ""
"$ cd examples/translator\n"
@@ -308,7 +316,7 @@
"ant deploy"
#. Tag: para
-#: gettingstarted.xml:152
+#: gettingstarted.xml:159
#, no-c-format
msgid ""
"Wait for the application to deploy, and visit <ulink url=\"http://"
@@ -318,13 +326,13 @@
"localhost:8080/webbeans-translator\"></ulink>!"
#. Tag: title
-#: gettingstarted.xml:160
+#: gettingstarted.xml:167
#, no-c-format
msgid "Using Apache Tomcat 6.0"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:162
+#: gettingstarted.xml:169
#, fuzzy, no-c-format
msgid ""
"You'll need to download Tomcat 6.0.18 or later from <ulink
url=\"http://"
@@ -335,7 +343,7 @@
"org/Download\">seamframework.org</ulink>, y descomprímalo. Por
ejemplo:"
#. Tag: programlisting
-#: gettingstarted.xml:168
+#: gettingstarted.xml:175
#, fuzzy, no-c-format
msgid ""
"<![CDATA[$ cd /Applications\n"
@@ -345,7 +353,7 @@
"$ unzip ~/jboss-5.0.0.GA.zip]]>"
#. Tag: para
-#: gettingstarted.xml:178
+#: gettingstarted.xml:185
#, fuzzy, no-c-format
msgid ""
"Next, we need to tell Web Beans where Tomcat is located. Edit
<literal>jboss-"
@@ -357,13 +365,13 @@
"propiedad <literal>jboss.home</literal>. Por ejemplo:"
#. Tag: programlisting
-#: gettingstarted.xml:184
+#: gettingstarted.xml:191
#, fuzzy, no-c-format
msgid "tomcat.home=/Applications/apache-tomcat-6.0.18"
msgstr "jboss.home=/Applications/jboss-5.0.0.GA"
#. Tag: para
-#: gettingstarted.xml:187
+#: gettingstarted.xml:194
#, fuzzy, no-c-format
msgid ""
"The build scripts for the examples offer a number of targets for Tomcat, "
@@ -373,7 +381,7 @@
"saber:"
#. Tag: para
-#: gettingstarted.xml:193
+#: gettingstarted.xml:200
#, fuzzy, no-c-format
msgid ""
"<literal>ant tomcat.restart</literal> - deploy the example in exploded
format"
@@ -381,7 +389,7 @@
"<literal>ant restart</literal> - despliega el ejemplo en formato
explotado"
#. Tag: para
-#: gettingstarted.xml:199
+#: gettingstarted.xml:206
#, fuzzy, no-c-format
msgid ""
"<literal>ant tomcat.explode</literal> - update an exploded example,
without "
@@ -391,7 +399,7 @@
"reiniciar el despliegue"
#. Tag: para
-#: gettingstarted.xml:205
+#: gettingstarted.xml:212
#, fuzzy, no-c-format
msgid ""
"<literal>ant tomcat.deploy</literal> - deploy the example in compressed
jar "
@@ -401,26 +409,26 @@
"comprimido"
#. Tag: para
-#: gettingstarted.xml:210
+#: gettingstarted.xml:217
#, fuzzy, no-c-format
msgid ""
"<literal>ant tomcat.undeploy</literal> - remove the example from the
server"
msgstr "<literal>ant undeploy</literal> - quita el ejemplo del
servidor"
#. Tag: para
-#: gettingstarted.xml:215
+#: gettingstarted.xml:222
#, fuzzy, no-c-format
msgid "<literal>ant tomcat.clean</literal> - clean the example"
msgstr "<literal>ant clean</literal> - borra el ejemplo"
#. Tag: para
-#: gettingstarted.xml:222
+#: gettingstarted.xml:229
#, fuzzy, no-c-format
msgid "To deploy the numberguess example for tomcat:"
msgstr "Para desplegar el ejemplo numberguess:"
#. Tag: programlisting
-#: gettingstarted.xml:226
+#: gettingstarted.xml:233
#, fuzzy, no-c-format
msgid ""
"$ cd examples/tomcat\n"
@@ -430,43 +438,43 @@
"ant deploy"
#. Tag: para
-#: gettingstarted.xml:228
+#: gettingstarted.xml:235
#, no-c-format
msgid "Start Tomcat:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:232
+#: gettingstarted.xml:239
#, fuzzy, no-c-format
msgid "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
msgstr "jboss.home=/Applications/jboss-5.0.0.GA"
#. Tag: para
-#: gettingstarted.xml:235
+#: gettingstarted.xml:242
#, no-c-format
msgid "If you use Windows, use the
<literal>startup.bat</literal>script."
msgstr ""
#. Tag: title
-#: gettingstarted.xml:248
+#: gettingstarted.xml:255
#, no-c-format
msgid "Using GlassFish"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:250
+#: gettingstarted.xml:257
#, no-c-format
msgid "TODO"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:254
+#: gettingstarted.xml:261
#, no-c-format
msgid "The numberguess example"
msgstr "El ejemplo numberguess"
#. Tag: para
-#: gettingstarted.xml:256
+#: gettingstarted.xml:263
#, no-c-format
msgid ""
"In the numberguess application you get given 10 attempts to guess a number "
@@ -478,7 +486,7 @@
"número."
#. Tag: para
-#: gettingstarted.xml:262
+#: gettingstarted.xml:269
#, no-c-format
msgid ""
"The numberguess example is comprised of a number of Web Beans, configuration
"
@@ -490,7 +498,7 @@
"los archivos de configuración."
#. Tag: para
-#: gettingstarted.xml:268
+#: gettingstarted.xml:275
#, no-c-format
msgid ""
"All the configuration files for this example are located in
<literal>WEB-INF/"
@@ -504,7 +512,7 @@
"literal>, en donde le pedimos a JSF que utilice Facelets:"
#. Tag: programlisting
-#: gettingstarted.xml:276
+#: gettingstarted.xml:283
#, no-c-format
msgid ""
"<![CDATA[<?xml version='1.0' encoding='UTF-8'?>\n"
@@ -534,7 +542,7 @@
"</faces-config>]]>"
#. Tag: para
-#: gettingstarted.xml:278
+#: gettingstarted.xml:285
#, no-c-format
msgid ""
"There is an empty <literal>web-beans.xml</literal> file, which marks
this "
@@ -544,13 +552,13 @@
"aplicación como una aplicación de Web Beans."
#. Tag: para
-#: gettingstarted.xml:283
+#: gettingstarted.xml:290
#, no-c-format
msgid "Finally there is <literal>web.xml</literal>:"
msgstr "Por último, está <literal>web.xml</literal>:"
#. Tag: section
-#: gettingstarted.xml:285
+#: gettingstarted.xml:292
#, fuzzy, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"faces.servlet\"
coords=\"12\"/> "
@@ -789,7 +797,7 @@
"para> </callout> </calloutlist> </programlistingco>"
#. Tag: para
-#: gettingstarted.xml:387
+#: gettingstarted.xml:394
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -801,7 +809,7 @@
"inyectar un número aleatorio:"
#. Tag: programlisting
-#: gettingstarted.xml:393
+#: gettingstarted.xml:400
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -817,7 +825,7 @@
"public @interface Random {}]]>"
#. Tag: para
-#: gettingstarted.xml:395
+#: gettingstarted.xml:402
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for
"
@@ -827,7 +835,7 @@
"inyectar el número máximo posible:"
#. Tag: programlisting
-#: gettingstarted.xml:400
+#: gettingstarted.xml:407
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -845,7 +853,7 @@
"]]>"
#. Tag: para
-#: gettingstarted.xml:402
+#: gettingstarted.xml:409
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the
"
@@ -857,7 +865,7 @@
"máximo posible a través del método de productor:"
#. Tag: programlisting
-#: gettingstarted.xml:408
+#: gettingstarted.xml:415
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -909,7 +917,7 @@
"}]]>"
#. Tag: para
-#: gettingstarted.xml:410
+#: gettingstarted.xml:417
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application
scoped; "
@@ -919,7 +927,7 @@
"lo tanto no obtenemos un número aleatorio diferente cada vez."
#. Tag: para
-#: gettingstarted.xml:415
+#: gettingstarted.xml:422
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped
<literal>Game</"
@@ -929,7 +937,7 @@
"literal>."
#. Tag: para
-#: gettingstarted.xml:420
+#: gettingstarted.xml:427
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal>
annotation, so "
@@ -946,7 +954,7 @@
"literal>."
#. Tag: programlisting
-#: gettingstarted.xml:428
+#: gettingstarted.xml:435
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -1144,13 +1152,13 @@
"}]]>"
#. Tag: title
-#: gettingstarted.xml:431
+#: gettingstarted.xml:438
#, fuzzy, no-c-format
msgid "The numberguess example in Tomcat"
msgstr "El ejemplo numberguess"
#. Tag: para
-#: gettingstarted.xml:433
+#: gettingstarted.xml:440
#, no-c-format
msgid ""
"The numberguess for Tomcat differs in a couple of ways. Firstly, Web Beans "
@@ -1160,7 +1168,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:442
+#: gettingstarted.xml:449
#, no-c-format
msgid ""
"Of course, you must also include JSF and EL, as well common annotations "
@@ -1168,7 +1176,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:449
+#: gettingstarted.xml:456
#, no-c-format
msgid ""
"Secondly, we need to explicitly specify the servlet listener (used to boot "
@@ -1177,7 +1185,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:455
+#: gettingstarted.xml:462
#, no-c-format
msgid ""
"<![CDATA[<listener>\n"
@@ -1187,13 +1195,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:460
+#: gettingstarted.xml:467
#, fuzzy, no-c-format
msgid "The numberguess example for Apache Wicket"
msgstr "El ejemplo numberguess"
#. Tag: para
-#: gettingstarted.xml:461
+#: gettingstarted.xml:468
#, no-c-format
msgid ""
"Whilst JSR-299 specifies integration with Java ServerFaces, Web Beans allows
"
@@ -1203,7 +1211,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:470
+#: gettingstarted.xml:477
#, no-c-format
msgid ""
"You may want to review the Wicket documentation at <ulink
url=\"http://"
@@ -1211,7 +1219,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:476
+#: gettingstarted.xml:483
#, no-c-format
msgid ""
"Like the previous example, the Wicket WebBeans examples make use of the "
@@ -1224,7 +1232,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:487
+#: gettingstarted.xml:494
#, no-c-format
msgid ""
"These examples make use of the Eclipse IDE; instructions are also given to "
@@ -1232,43 +1240,45 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:493
+#: gettingstarted.xml:500
#, no-c-format
msgid "Creating the Eclipse project"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:495
+#: gettingstarted.xml:502
#, no-c-format
msgid "To generate an Eclipse project from the example:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:499
+#: gettingstarted.xml:506
#, no-c-format
msgid ""
"<![CDATA[cd examples/wicket/numberguess\n"
-"mvn eclipse:eclipse]]>"
+"mvn -Pjetty eclipse:eclipse]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:501
+#: gettingstarted.xml:508
#, no-c-format
msgid ""
"Then, from eclipse, choose <emphasis>File -> Import -> General ->
Existing "
"Projects into Workspace</emphasis>, select the root directory of the "
-"numberguess example, and click finish. This will create a project in your "
-"workspace called <literal>webbeans-wicket-numberguess</literal>"
+"numberguess example, and click finish. Note that if you do not intend to run
"
+"the example with jetty from within eclipse, omit the \"-Pjetty.\" This
will "
+"create a project in your workspace called <literal>webbeans-wicket-"
+"numberguess</literal>"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:516
+#: gettingstarted.xml:524
#, no-c-format
msgid "Running the example from Eclipse"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:518
+#: gettingstarted.xml:526
#, no-c-format
msgid ""
"This project follows the <literal>wicket-quickstart</literal> approach
of "
@@ -1282,13 +1292,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:533
+#: gettingstarted.xml:541
#, no-c-format
msgid "Running the example from the command line in JBoss AS or Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:535
+#: gettingstarted.xml:543
#, no-c-format
msgid ""
"This example can also be deployed from the command line in a (similar to the
"
@@ -1301,13 +1311,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:549
+#: gettingstarted.xml:557
#, no-c-format
msgid "Understanding the code"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:551
+#: gettingstarted.xml:559
#, no-c-format
msgid ""
"JSF uses Unified EL expressions to bind view layer components in JSP or "
@@ -1321,7 +1331,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:563
+#: gettingstarted.xml:571
#, no-c-format
msgid ""
"The code in the wicket numberguess example is very similar to the JSF-based "
@@ -1329,13 +1339,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:568
+#: gettingstarted.xml:576
#, no-c-format
msgid "Differences are:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:573
+#: gettingstarted.xml:581
#, no-c-format
msgid ""
"Each wicket application must have a <literal>WebApplication</literal>
"
@@ -1344,7 +1354,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:579
+#: gettingstarted.xml:587
#, no-c-format
msgid ""
"<![CDATA[public class SampleApplication extends WebBeansApplication {\n"
@@ -1356,7 +1366,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:580
+#: gettingstarted.xml:588
#, no-c-format
msgid ""
"This class specifies which page wicket should treat as our home page, in our
"
@@ -1364,7 +1374,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:586
+#: gettingstarted.xml:594
#, no-c-format
msgid ""
"In <literal>HomePage</literal> we see typical wicket code to set up
page "
@@ -1373,13 +1383,13 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:592
+#: gettingstarted.xml:600
#, no-c-format
msgid "<![CDATA[ @Current Game game;]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:594
+#: gettingstarted.xml:602
#, no-c-format
msgid ""
"The <literal>Game</literal> bean is can then be used, for example, by
the "
@@ -1387,7 +1397,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:599
+#: gettingstarted.xml:607
#, no-c-format
msgid ""
"<![CDATA[final Component guessButton = new AjaxButton(\"GuessButton\")
{ \n"
@@ -1396,7 +1406,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:602
+#: gettingstarted.xml:610
#, no-c-format
msgid ""
"All injections may be serialized; actual storage of the bean is managed by "
@@ -1405,7 +1415,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:608
+#: gettingstarted.xml:616
#, no-c-format
msgid ""
"Wicket components allow injection, but they <emphasis>cannot</emphasis>
use "
@@ -1414,7 +1424,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:618
+#: gettingstarted.xml:626
#, no-c-format
msgid ""
"The example uses AJAX for processing of button events, and dynamically hides
"
@@ -1423,7 +1433,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:626
+#: gettingstarted.xml:634
#, no-c-format
msgid ""
"In order to activate wicket for this webapp, the Wicket filter is added to "
@@ -1431,7 +1441,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:631
+#: gettingstarted.xml:639
#, no-c-format
msgid ""
"<![CDATA[<filter>\n"
@@ -1457,7 +1467,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:632
+#: gettingstarted.xml:640
#, no-c-format
msgid ""
"Note that the servlet listener is also added, as in the Tomcat example, in "
@@ -1466,13 +1476,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:645
+#: gettingstarted.xml:653
#, fuzzy, no-c-format
msgid "The numberguess example for Java SE with Swing"
msgstr "El ejemplo numberguess"
#. Tag: para
-#: gettingstarted.xml:647
+#: gettingstarted.xml:655
#, no-c-format
msgid ""
"This example can be found in the
<literal>examples/se/numberguess</literal> "
@@ -1480,13 +1490,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:654
+#: gettingstarted.xml:662
#, fuzzy, no-c-format
msgid "To run this example:"
msgstr "Ejemplo de traductor"
#. Tag: para
-#: gettingstarted.xml:660
+#: gettingstarted.xml:668
#, no-c-format
msgid ""
"Open a command line/terminal window in the
<literal>examples/se/numberguess</"
@@ -1494,13 +1504,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:666
+#: gettingstarted.xml:674
#, no-c-format
msgid "Ensure that Maven 2 is installed and in your PATH"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:671
+#: gettingstarted.xml:679
#, no-c-format
msgid ""
"Ensure that the <literal>JAVA_HOME</literal> environment variable is
"
@@ -1508,19 +1518,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:677
+#: gettingstarted.xml:685
#, no-c-format
msgid "execute the following command"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:680
+#: gettingstarted.xml:688
#, no-c-format
msgid "mvn -Drun"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:686
+#: gettingstarted.xml:694
#, fuzzy, no-c-format
msgid ""
"There is an empty <literal>beans.xml</literal> file in the root package
"
@@ -1531,7 +1541,7 @@
"aplicación como una aplicación de Web Beans."
#. Tag: para
-#: gettingstarted.xml:692
+#: gettingstarted.xml:700
#, no-c-format
msgid ""
"The game's main logic is located in <literal>Game.java</literal>.
Here is "
@@ -1540,7 +1550,7 @@
msgstr ""
#. Tag: section
-#: gettingstarted.xml:696
+#: gettingstarted.xml:704
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"scope\"
coords=\"1\"/> <area id="
@@ -1806,13 +1816,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:904
+#: gettingstarted.xml:912
#, no-c-format
msgid "The translator example"
msgstr "Ejemplo de traductor"
#. Tag: para
-#: gettingstarted.xml:906
+#: gettingstarted.xml:914
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them
"
@@ -1822,7 +1832,7 @@
"Latín."
#. Tag: para
-#: gettingstarted.xml:911
+#: gettingstarted.xml:919
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs. As a result, "
@@ -1832,7 +1842,7 @@
"resultado, su estructura es más compleja que el ejemplo de Numberguess."
#. Tag: para
-#: gettingstarted.xml:917
+#: gettingstarted.xml:925
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -1842,7 +1852,7 @@
"estructura mucho más simple!"
#. Tag: para
-#: gettingstarted.xml:923
+#: gettingstarted.xml:931
#, no-c-format
msgid ""
"First, let's take a look at the ear aggregator, which is located in "
@@ -1854,7 +1864,7 @@
"automáticamente la <literal>application.xml</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:929
+#: gettingstarted.xml:937
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -1886,7 +1896,7 @@
"</plugin>]]>"
#. Tag: para
-#: gettingstarted.xml:931
+#: gettingstarted.xml:939
#, no-c-format
msgid ""
"Here we set the context path, which gives us a nice url (<ulink
url=\"http://"
@@ -1898,7 +1908,7 @@
"localhost:8080/webbeans-translator</ulink>)."
#. Tag: para
-#: gettingstarted.xml:937
+#: gettingstarted.xml:945
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
@@ -1908,7 +1918,7 @@
"<literal>META-INF/application.xml</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:942
+#: gettingstarted.xml:950
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\"
encoding=\"UTF-8\"?>\n"
@@ -1954,7 +1964,7 @@
"</application>]]>"
#. Tag: para
-#: gettingstarted.xml:945
+#: gettingstarted.xml:953
#, fuzzy, no-c-format
msgid ""
"Next, lets look at the war. Just as in the numberguess example, we have a "
@@ -1967,7 +1977,7 @@
"INF</literal>."
#. Tag: para
-#: gettingstarted.xml:952
+#: gettingstarted.xml:960
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -1979,7 +1989,7 @@
"formulario (omitido aquí por razones de brevedad):"
#. Tag: programlisting
-#: gettingstarted.xml:958
+#: gettingstarted.xml:966
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -2039,7 +2049,7 @@
"</h:form>]]>"
#. Tag: para
-#: gettingstarted.xml:960
+#: gettingstarted.xml:968
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate
"
@@ -2049,7 +2059,7 @@
"el botón de traducir para ver el resultado a la derecha."
#. Tag: para
-#: gettingstarted.xml:965
+#: gettingstarted.xml:973
#, no-c-format
msgid ""
"Finally, let's look at the ejb module,
<literal>webbeans-translator-ejb</"
@@ -2063,7 +2073,7 @@
"como si contuviera Web Beans."
#. Tag: para
-#: gettingstarted.xml:973
+#: gettingstarted.xml:981
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two
"
@@ -2081,7 +2091,7 @@
"Bean, por lo tanto sólo destacaremos aquí las partes más interesantes."
#. Tag: para
-#: gettingstarted.xml:983
+#: gettingstarted.xml:991
#, no-c-format
msgid ""
"Both <literal>SentenceParser</literal> and
<literal>TextTranslator</literal> "
@@ -2093,7 +2103,7 @@
"inicialización de constructor:"
#. Tag: programlisting
-#: gettingstarted.xml:989
+#: gettingstarted.xml:997
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -2119,7 +2129,7 @@
" this.sentenceTranslator = sentenceTranslator;]]>"
#. Tag: para
-#: gettingstarted.xml:991
+#: gettingstarted.xml:999
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local
business "
@@ -2131,7 +2141,7 @@
"desarrollaramos un traductor completo, ¡pero le dimos una buena luz!"
#. Tag: para
-#: gettingstarted.xml:997
+#: gettingstarted.xml:1005
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -2143,7 +2153,7 @@
"bean con estado de sesión que inyecta el traductor."
#. Tag: programlisting
-#: gettingstarted.xml:1003
+#: gettingstarted.xml:1011
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -2163,7 +2173,7 @@
" @Current TextTranslator translator;]]>"
#. Tag: para
-#: gettingstarted.xml:1005
+#: gettingstarted.xml:1013
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr ""
@@ -2171,7 +2181,7 @@
"la página."
#. Tag: para
-#: gettingstarted.xml:1009
+#: gettingstarted.xml:1017
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
@@ -2179,7 +2189,7 @@
"eliminación:"
#. Tag: programlisting
-#: gettingstarted.xml:1013
+#: gettingstarted.xml:1021
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -2195,7 +2205,7 @@
" }]]>"
#. Tag: para
-#: gettingstarted.xml:1015
+#: gettingstarted.xml:1023
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -2205,7 +2215,7 @@
"bean sea destruido, en este caso al final de la petición."
#. Tag: para
-#: gettingstarted.xml:1021
+#: gettingstarted.xml:1029
#, fuzzy, no-c-format
msgid ""
"That concludes our short tour of the Web Beans examples. For more on Web "
@@ -2219,7 +2229,7 @@
"seamframework.org/WebBeans/Development</ulink>."
#. Tag: para
-#: gettingstarted.xml:1027
+#: gettingstarted.xml:1035
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
Modified: doc/trunk/reference/es-ES/producermethods.po
===================================================================
--- doc/trunk/reference/es-ES/producermethods.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/es-ES/producermethods.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: producermethods\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2009-01-19 17:00+1000\n"
"Last-Translator: Gladys Guerrero Lozano <gguerrer(a)redhat.com>\n"
"Language-Team: Spanish <fedora-trans-es(a)redhat.com>\n"
@@ -44,83 +44,29 @@
msgid "According to the spec:"
msgstr "Según las especificaciones:"
-#. Tag: para
-#: producermethods.xml:16
+#. Tag: chapter
+#: producermethods.xml:12
#, no-c-format
msgid ""
-"A Web Beans producer method acts as a source of objects to be injected, "
-"where:"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:20
-#, no-c-format
-msgid ""
-"the objects to be injected are not required to be instances of Web Beans,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:23
-#, no-c-format
-msgid "the concrete type of the objects to be injected may vary at runtime or"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:26
-#, no-c-format
-msgid ""
-"the objects require some custom initialization that is not performed by the "
-"Web Bean constructor"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:33
-#, fuzzy, no-c-format
-msgid "For example, producer methods let us:"
-msgstr "Ámbito de un método de productor"
-
-#. Tag: para
-#: producermethods.xml:37
-#, no-c-format
-msgid "expose a JPA entity as a Web Bean,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:40
-#, no-c-format
-msgid "expose any JDK class as a Web Bean,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:43
-#, no-c-format
-msgid ""
-"define multiple Web Beans, with different scopes or initialization, for the "
-"same implementation class, or"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:47
-#, no-c-format
-msgid "vary the implementation of an API type at runtime."
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:51
-#, no-c-format
-msgid ""
-"In particular, producer methods let us use runtime polymorphism with Web "
-"Beans. As we've seen, deployment types are a powerful solution to the "
-"problem of deployment-time polymorphism. But once the system is deployed, "
-"the Web Bean implementation is fixed. A producer method has no such "
-"limitation:"
-msgstr ""
-
-#. Tag: programlisting
-#: producermethods.xml:56
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[@SessionScoped\n"
+"<blockquote> <para>A Web Beans producer method acts as a source of
objects "
+"to be injected, where:</para> <itemizedlist> <listitem>
<para>the objects to "
+"be injected are not required to be instances of Web Beans,</para>
</"
+"listitem> <listitem> <para>the concrete type of the objects to be
injected "
+"may vary at runtime or</para> </listitem> <listitem>
<para>the objects "
+"require some custom initialization that is not performed by the Web Bean "
+"constructor</para> </listitem> </itemizedlist>
</blockquote> <para>For "
+"example, producer methods let us:</para> <itemizedlist>
<listitem> "
+"<para>expose a JPA entity as a Web Bean,</para> </listitem>
<listitem> "
+"<para>expose any JDK class as a Web Bean,</para> </listitem>
<listitem> "
+"<para>define multiple Web Beans, with different scopes or initialization,
"
+"for the same implementation class, or</para> </listitem>
<listitem> "
+"<para>vary the implementation of an API type at runtime.</para>
</listitem> "
+"</itemizedlist> <para>In particular, producer methods let us use
runtime "
+"polymorphism with Web Beans. As we've seen, deployment types are a powerful
"
+"solution to the problem of deployment-time polymorphism. But once the system
"
+"is deployed, the Web Bean implementation is fixed. A producer method has no "
+"such limitation:</para> <programlisting
role=\"JAVA\"><![CDATA"
+"[@SessionScoped\n"
"public class Preferences {\n"
" \n"
" private PaymentStrategyType paymentStrategy;\n"
@@ -137,52 +83,60 @@
" } \n"
" }\n"
" \n"
-"}]]>"
+"}]]></programlisting> <para>Consider an injection
point:</para> "
+"<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
+"paymentStrat;]]></programlisting> <para>This injection point has the
same "
+"type and binding annotations as the producer method, so it resolves to the "
+"producer method using the usual Web Beans injection rules. The producer "
+"method will be called by the Web Bean manager to obtain an instance to "
+"service this injection point.</para>."
msgstr ""
-"<![CDATA[@Produces @Preferred @SessionScoped\n"
-"public PaymentStrategy getPaymentStrategy(CreditCardPaymentStrategy ccps,\n"
-" ChequePaymentStrategy cps,\n"
-" PayPalPaymentStrategy ppps) {\n"
-" switch (paymentStrategy) {\n"
-" case CREDIT_CARD: return ccps;\n"
-" case CHEQUE: return cps;\n"
-" case PAYPAL: return ppps;\n"
-" default: return null;\n"
-" } \n"
-"}]]>"
-
-#. Tag: para
-#: producermethods.xml:58
-#, no-c-format
-msgid "Consider an injection point:"
-msgstr ""
-
-#. Tag: programlisting
-#: producermethods.xml:60
-#, fuzzy, no-c-format
-msgid "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
-msgstr ""
-"<![CDATA[@Produces @Preferred @SessionScoped\n"
-"public PaymentStrategy getPaymentStrategy() {\n"
+"<blockquote> <para>Un productor de Web Beans actúa como fuente de
objetos a "
+"ser inyectados, donde:</para> <itemizedlist> <listitem>
<para>los objetos "
+"que van a ser inyectados no necesitan ser instancias de Web Beans,</para>
</"
+"listitem> <listitem> <para>el tipo concreto de objetos a ser
inyectado puede "
+"variar en tiempo de ejecución o</para> </listitem> <listitem>
<para>los "
+"objetos requieren alguna especificación de inicialización que no es "
+"realizada por el constructor de Web Bean</para> </listitem>
</itemizedlist> "
+"</blockquote> <para>Por ejemplo, los métodos de productor nos
permiten:</"
+"para> <itemizedlist> <listitem> <para>exponer una entidad JPA
como un Web "
+"Bean,</para> </listitem> <listitem> <para>exponer cualquier
clase JDK como "
+"un Web Bean,</para> </listitem> <listitem> <para>definir
múltiples Web "
+"Beans, con diferentes ámbitos o inicialización para la misma clase de "
+"implementación, o</para> </listitem> <listitem>
<para>variar la "
+"implementación de un tipo API en tiempo de ejecución.</para>
</listitem> </"
+"itemizedlist> <para>En particular, los métodos de productor nos permiten
"
+"utilizar polimorfismo de tiempo de ejecución con Web Beans. Como hemos "
+"visto, los tipos de despliegue son una solución potente para el problema del
"
+"polimorfismo de tiempo de despliegue. Sin embargo, una vez que el sistema es
"
+"desplegado, la implementación de Web Bean es corregida. El método de "
+"productor no tiene dicha limitación:</para> <programlisting
role=\"JAVA\"><!"
+"[CDATA[@SessionScoped\n"
+"public class Preferences {\n"
+" \n"
+" private PaymentStrategyType paymentStrategy;\n"
+" \n"
" ...\n"
-"}]]>"
+" \n"
+" @Produces @Preferred \n"
+" public PaymentStrategy getPaymentStrategy() {\n"
+" switch (paymentStrategy) {\n"
+" case CREDIT_CARD: return new CreditCardPaymentStrategy();\n"
+" case CHEQUE: return new ChequePaymentStrategy();\n"
+" case PAYPAL: return new PayPalPaymentStrategy();\n"
+" default: return null;\n"
+" } \n"
+" }\n"
+" \n"
+"}]]></programlisting> <para>Consider an injection
point:</para> "
+"<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
+"paymentStrat;]]></programlisting> <para>Este punto de inyección
tiene el "
+"mismo tipo de anotaciones de enlace que el método de productor, por lo tanto
"
+"apunta al método de productor mediante las reglas de inyección usuales de "
+"Web Beans. El método del productor será llamado por el administrador de Web "
+"Bean a fin de obtener una instancia para servir a este punto de
inyección.</"
+"para>."
-#. Tag: para
-#: producermethods.xml:62
-#, no-c-format
-msgid ""
-"This injection point has the same type and binding annotations as the "
-"producer method, so it resolves to the producer method using the usual Web "
-"Beans injection rules. The producer method will be called by the Web Bean "
-"manager to obtain an instance to service this injection point."
-msgstr ""
-
-#. Tag: chapter
-#: producermethods.xml:65
-#, no-c-format
-msgid "<chapter>.</chapter>"
-msgstr ""
-
#. Tag: title
#: producermethods.xml:68
#, no-c-format
@@ -411,26 +365,13 @@
"contexto de sesión. El objeto dependiente no será destruido hasta que el "
"objeto <literal>Preferencias</literal> sea destruido, al final de la
sesión."
+#, fuzzy
+#~ msgid "For example, producer methods let us:"
+#~ msgstr "Ámbito de un método de productor"
+
+#, fuzzy
#~ msgid ""
-#~ "<blockquote> <para>A Web Beans producer method acts as a source of
"
-#~ "objects to be injected, where:</para> <itemizedlist>
<listitem> <para>the "
-#~ "objects to be injected are not required to be instances of Web
Beans,</"
-#~ "para> </listitem> <listitem> <para>the concrete type of the
objects to be "
-#~ "injected may vary at runtime or</para> </listitem> <listitem>
<para>the "
-#~ "objects require some custom initialization that is not performed by the "
-#~ "Web Bean constructor</para> </listitem> </itemizedlist>
</blockquote> "
-#~ "<para>For example, producer methods let us:</para>
<itemizedlist> "
-#~ "<listitem> <para>expose a JPA entity as a Web Bean,</para>
</listitem> "
-#~ "<listitem> <para>expose any JDK class as a Web Bean,</para>
</listitem> "
-#~ "<listitem> <para>define multiple Web Beans, with different scopes or
"
-#~ "initialization, for the same implementation class, or</para>
</listitem> "
-#~ "<listitem> <para>vary the implementation of an API type at
runtime.</"
-#~ "para> </listitem> </itemizedlist> <para>In particular,
producer methods "
-#~ "let us use runtime polymorphism with Web Beans. As we've seen, deployment
"
-#~ "types are a powerful solution to the problem of deployment-time "
-#~ "polymorphism. But once the system is deployed, the Web Bean "
-#~ "implementation is fixed. A producer method has no such limitation:</para>
"
-#~ "<programlisting
role=\"JAVA\"><![CDATA[@SessionScoped\n"
+#~ "<![CDATA[@SessionScoped\n"
#~ "public class Preferences {\n"
#~ " \n"
#~ " private PaymentStrategyType paymentStrategy;\n"
@@ -447,57 +388,25 @@
#~ " } \n"
#~ " }\n"
#~ " \n"
-#~ "}]]></programlisting> <para>Consider an injection
point:</para> "
-#~ "<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
-#~ "paymentStrat;]]></programlisting> <para>This injection point has
the same "
-#~ "type and binding annotations as the producer method, so it resolves to "
-#~ "the producer method using the usual Web Beans injection rules. The "
-#~ "producer method will be called by the Web Bean manager to obtain an "
-#~ "instance to service this injection point.</para>."
+#~ "}]]>"
#~ msgstr ""
-#~ "<blockquote> <para>Un productor de Web Beans actúa como fuente de
objetos "
-#~ "a ser inyectados, donde:</para> <itemizedlist> <listitem>
<para>los "
-#~ "objetos que van a ser inyectados no necesitan ser instancias de Web
Beans,"
-#~ "</para> </listitem> <listitem> <para>el tipo concreto de
objetos a ser "
-#~ "inyectado puede variar en tiempo de ejecución o</para> </listitem>
"
-#~ "<listitem> <para>los objetos requieren alguna especificación de
"
-#~ "inicialización que no es realizada por el constructor de Web Bean</para>
"
-#~ "</listitem> </itemizedlist> </blockquote> <para>Por
ejemplo, los métodos "
-#~ "de productor nos permiten:</para> <itemizedlist> <listitem>
<para>exponer "
-#~ "una entidad JPA como un Web Bean,</para> </listitem>
<listitem> "
-#~ "<para>exponer cualquier clase JDK como un Web Bean,</para>
</listitem> "
-#~ "<listitem> <para>definir múltiples Web Beans, con diferentes ámbitos
o "
-#~ "inicialización para la misma clase de implementación, o</para>
</"
-#~ "listitem> <listitem> <para>variar la implementación de un tipo
API en "
-#~ "tiempo de ejecución.</para> </listitem> </itemizedlist>
<para>En "
-#~ "particular, los métodos de productor nos permiten utilizar polimorfismo "
-#~ "de tiempo de ejecución con Web Beans. Como hemos visto, los tipos de "
-#~ "despliegue son una solución potente para el problema del polimorfismo de "
-#~ "tiempo de despliegue. Sin embargo, una vez que el sistema es desplegado, "
-#~ "la implementación de Web Bean es corregida. El método de productor no "
-#~ "tiene dicha limitación:</para> <programlisting
role=\"JAVA\"><![CDATA"
-#~ "[@SessionScoped\n"
-#~ "public class Preferences {\n"
-#~ " \n"
-#~ " private PaymentStrategyType paymentStrategy;\n"
-#~ " \n"
+#~ "<![CDATA[@Produces @Preferred @SessionScoped\n"
+#~ "public PaymentStrategy getPaymentStrategy(CreditCardPaymentStrategy "
+#~ "ccps,\n"
+#~ " ChequePaymentStrategy cps,\n"
+#~ " PayPalPaymentStrategy ppps) {\n"
+#~ " switch (paymentStrategy) {\n"
+#~ " case CREDIT_CARD: return ccps;\n"
+#~ " case CHEQUE: return cps;\n"
+#~ " case PAYPAL: return ppps;\n"
+#~ " default: return null;\n"
+#~ " } \n"
+#~ "}]]>"
+
+#, fuzzy
+#~ msgid "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
+#~ msgstr ""
+#~ "<![CDATA[@Produces @Preferred @SessionScoped\n"
+#~ "public PaymentStrategy getPaymentStrategy() {\n"
#~ " ...\n"
-#~ " \n"
-#~ " @Produces @Preferred \n"
-#~ " public PaymentStrategy getPaymentStrategy() {\n"
-#~ " switch (paymentStrategy) {\n"
-#~ " case CREDIT_CARD: return new CreditCardPaymentStrategy();\n"
-#~ " case CHEQUE: return new ChequePaymentStrategy();\n"
-#~ " case PAYPAL: return new PayPalPaymentStrategy();\n"
-#~ " default: return null;\n"
-#~ " } \n"
-#~ " }\n"
-#~ " \n"
-#~ "}]]></programlisting> <para>Consider an injection
point:</para> "
-#~ "<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
-#~ "paymentStrat;]]></programlisting> <para>Este punto de inyección
tiene el "
-#~ "mismo tipo de anotaciones de enlace que el método de productor, por lo "
-#~ "tanto apunta al método de productor mediante las reglas de inyección "
-#~ "usuales de Web Beans. El método del productor será llamado por el "
-#~ "administrador de Web Bean a fin de obtener una instancia para servir a "
-#~ "este punto de inyección.</para>."
+#~ "}]]>"
Modified: doc/trunk/reference/fr-FR/environments.po
===================================================================
--- doc/trunk/reference/fr-FR/environments.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/fr-FR/environments.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
"Project-Id-Version: Web_Beans:_Java_Contexts_and_Dependency_Injection "
"VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2009-03-28 17:09+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -84,7 +84,7 @@
#. Tag: title
#: environments.xml:47
#, no-c-format
-msgid "Glassfish"
+msgid "GlassFish"
msgstr ""
#. Tag: para
@@ -122,9 +122,9 @@
msgid ""
"Web Beans should be used as a web application library in a servlet "
"container. You should place <literal>webbeans-servlet.jar</literal> in
"
-"<literal>WEB-INF/lib</literal>.
<literal>webbeans-serv;et.jar</literal> is "
-"an \"uber-jar\" provided for your convenience. Instead, you could use its
"
-"component jars:"
+"<literal>WEB-INF/lib</literal>.
<literal>webbeans-servlet.jar</literal> is "
+"an \"uber-jar\" provided for your convenience. Alternatively, you could
use "
+"its component jars:"
msgstr ""
#. Tag: literal
@@ -205,45 +205,46 @@
#, no-c-format
msgid ""
"Tomcat has a read-only JNDI, so Web Beans can't automatically bind the "
-"Manager. To bind the Manager into JNDI, you should add the following to your
"
-"<literal>META-INF/context.xml</literal>:"
+"Manager. To bind the Manager into JNDI, you should populate
<literal>META-"
+"INF/context.xml</literal> with the following contents:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:134
+#: environments.xml:135
#, no-c-format
msgid ""
-"<![CDATA[<Resource name=\"app/Manager\" \n"
-" auth=\"Container\"\n"
-" type=\"javax.inject.manager.Manager\"\n"
-"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
-"]]>"
+"<![CDATA[<Context>\n"
+" <Resource name=\"app/Manager\" \n"
+" auth=\"Container\"\n"
+" type=\"javax.inject.manager.Manager\"\n"
+"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
+"</Context>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:136
+#: environments.xml:137
#, no-c-format
msgid ""
-"and make it available to your deployment by adding this to
<literal>web.xml</"
-"literal>:"
+"and make it available to your deployment by adding this to the bottom of "
+"<literal>web.xml</literal>:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:141
+#: environments.xml:142
#, no-c-format
msgid ""
"<![CDATA[<resource-env-ref>\n"
-" <resource-env-ref-name>\n"
-" app/Manager\n"
-" </resource-env-ref-name>\n"
-" <resource-env-ref-type>\n"
-" javax.inject.manager.Manager\n"
-" </resource-env-ref-type>\n"
+" <resource-env-ref-name>\n"
+" app/Manager\n"
+" </resource-env-ref-name>\n"
+" <resource-env-ref-type>\n"
+" javax.inject.manager.Manager\n"
+" </resource-env-ref-type>\n"
"</resource-env-ref>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:143
+#: environments.xml:144
#, no-c-format
msgid ""
"Tomcat only allows you to bind entries to
<literal>java:comp/env</literal>, "
@@ -252,7 +253,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:149
+#: environments.xml:150
#, no-c-format
msgid ""
"Web Beans also supports Servlet injection in Tomcat. To enable this, place "
@@ -262,21 +263,84 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:156
+#: environments.xml:157
#, no-c-format
msgid ""
"<![CDATA[<Listener
className=\"org.jboss.webbeans.environment.tomcat."
-"WebBeansLifecycleListener\" />]]>"
+"WebBeansLifecycleListener\"/>]]>"
msgstr ""
#. Tag: title
-#: environments.xml:163
+#: environments.xml:162
#, no-c-format
+msgid "Jetty"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:164
+#, no-c-format
+msgid ""
+"Like Tomcat, Jetty has a read-only JNDI, so Web Beans can't automatically
"
+"bind the Manager. To bind the Manager to JNDI, you should populate "
+"<literal>WEB-INF/jetty-env.xml</literal> with the following
contents:"
+msgstr ""
+
+#. Tag: programlisting
+#: environments.xml:171
+#, no-c-format
+msgid ""
+"<![CDATA[<!DOCTYPE Configure PUBLIC \"-//Mort Bay Consulting//DTD
Configure//"
+"EN\"\n"
+" \"http://jetty.mortbay.org/configure.dtd\">\n"
+"<Configure id=\"webAppCtx\"
class=\"org.mortbay.jetty.webapp.WebAppContext"
+"\">\n"
+" <New id=\"appManager\"
class=\"org.mortbay.jetty.plus.naming.Resource\">\n"
+" <Arg><Ref id=\"webAppCtx\"/></Arg> \n"
+" <Arg>app/Manager</Arg>\n"
+" <Arg>\n"
+" <New class=\"javax.naming.Reference\">\n"
+" <Arg>javax.inject.manager.Manager</Arg> \n"
+"
<Arg>org.jboss.webbeans.resources.ManagerObjectFactory</Arg>\n"
+" <Arg/>\n"
+" </New>\n"
+" </Arg>\n"
+" </New>\n"
+"</Configure>]]>"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:173
+#, no-c-format
+msgid ""
+"Notice that Jetty doesn't not have built-in support for an
<literal>javax."
+"naming.spi.ObjectFactory</literal> like Tomcat, so it's necessary to
"
+"manually create the <literal>javax.naming.Reference</literal> to wrap
around "
+"it."
+msgstr ""
+
+#. Tag: para
+#: environments.xml:180
+#, no-c-format
+msgid ""
+"Jetty only allows you to bind entries to
<literal>java:comp/env</literal>, "
+"so the Manager will be available at
<literal>java:comp/env/app/Manager</"
+"literal>"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:186
+#, no-c-format
+msgid "Web Beans does not currently support Servlet injection in Jetty."
+msgstr ""
+
+#. Tag: title
+#: environments.xml:195
+#, no-c-format
msgid "Java SE"
msgstr ""
#. Tag: para
-#: environments.xml:165
+#: environments.xml:197
#, no-c-format
msgid ""
"Apart from improved integration of the Enterprise Java stack, Web Beans also
"
@@ -288,7 +352,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:173
+#: environments.xml:205
#, no-c-format
msgid ""
"When executing in the SE environment the following features of Web Beans are
"
@@ -296,49 +360,55 @@
msgstr ""
#. Tag: literal
-#: environments.xml:179
+#: environments.xml:211
#, no-c-format
msgid "Simple Web Beans (POJOs)"
msgstr ""
#. Tag: literal
-#: environments.xml:184
+#: environments.xml:216
#, no-c-format
msgid "Typesafe Dependency Injection"
msgstr ""
#. Tag: literal
-#: environments.xml:189
+#: environments.xml:221
#, no-c-format
msgid "Application and Dependent Contexts"
msgstr ""
#. Tag: literal
-#: environments.xml:194
+#: environments.xml:226
#, no-c-format
msgid "Binding Types"
msgstr ""
#. Tag: literal
-#: environments.xml:199
+#: environments.xml:231
#, no-c-format
+msgid "Deployment Types"
+msgstr ""
+
+#. Tag: literal
+#: environments.xml:236
+#, no-c-format
msgid "Stereotypes"
msgstr ""
#. Tag: literal
-#: environments.xml:204
+#: environments.xml:241
#, no-c-format
msgid "Typesafe Event Model"
msgstr ""
#. Tag: title
-#: environments.xml:210
+#: environments.xml:247
#, no-c-format
msgid "Web Beans SE Module"
msgstr ""
#. Tag: para
-#: environments.xml:212
+#: environments.xml:249
#, no-c-format
msgid ""
"To make life easy for developers Web Beans provides a special module with a "
@@ -351,7 +421,7 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:221
+#: environments.xml:258
#, no-c-format
msgid ""
"<![CDATA[@Parameters List<String> params;\n"
@@ -360,13 +430,13 @@
msgstr ""
#. Tag: para
-#: environments.xml:222
+#: environments.xml:259
#, no-c-format
msgid "Here's an example of a simple Web Beans SE application:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:226
+#: environments.xml:263
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -382,20 +452,20 @@
msgstr ""
#. Tag: para
-#: environments.xml:228
+#: environments.xml:265
#, no-c-format
msgid ""
"Web Beans SE applications are started by running the following main method."
msgstr ""
#. Tag: programlisting
-#: environments.xml:230
+#: environments.xml:267
#, no-c-format
msgid "<![CDATA[java org.jboss.webbeans.environments.se.StartMain
<args>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:232
+#: environments.xml:269
#, no-c-format
msgid ""
"If you need to do any custom initialization of the Web Beans manager, for "
@@ -405,7 +475,7 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:237
+#: environments.xml:274
#, no-c-format
msgid ""
"<![CDATA[public class PerformSetup\n"
@@ -419,7 +489,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:240
+#: environments.xml:277
#, no-c-format
msgid ""
"The command line parameters do not become available for injection until the "
Modified: doc/trunk/reference/fr-FR/gettingstarted.po
===================================================================
--- doc/trunk/reference/fr-FR/gettingstarted.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/fr-FR/gettingstarted.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: master.xml \n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2008-12-19 20:26+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -89,7 +89,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:49 gettingstarted.xml:170
+#: gettingstarted.xml:49 gettingstarted.xml:177
#, no-c-format
msgid ""
"Next, download Web Beans from <ulink
url=\"http://seamframework.org/Download"
@@ -97,7 +97,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:55 gettingstarted.xml:176
+#: gettingstarted.xml:55 gettingstarted.xml:183
#, no-c-format
msgid ""
"<![CDATA[$ cd ~/\n"
@@ -127,8 +127,16 @@
"<literal>ANT_HOME</literal> environment variable set. For
example:"
msgstr ""
+#. Tag: para
+#: gettingstarted.xml:72
+#, no-c-format
+msgid ""
+"JBoss 5.1.0 comes with Web Beans built in, so there is no need to update the
"
+"server."
+msgstr ""
+
#. Tag: programlisting
-#: gettingstarted.xml:71
+#: gettingstarted.xml:78
#, no-c-format
msgid ""
"$ unzip apache-ant-1.7.0.zip\n"
@@ -136,7 +144,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:73
+#: gettingstarted.xml:80
#, no-c-format
msgid ""
"Then, you can install the update. The update script will use Maven to "
@@ -144,7 +152,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:78
+#: gettingstarted.xml:85
#, no-c-format
msgid ""
"$ cd webbeans-$VERSION/jboss-as\n"
@@ -152,13 +160,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:80
+#: gettingstarted.xml:87
#, no-c-format
msgid "Now, you're ready to deploy your first example!"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:85
+#: gettingstarted.xml:92
#, no-c-format
msgid ""
"The build scripts for the examples offer a number of targets for JBoss AS, "
@@ -166,13 +174,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:91
+#: gettingstarted.xml:98
#, no-c-format
msgid "<literal>ant restart</literal> - deploy the example in exploded
format"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:97
+#: gettingstarted.xml:104
#, no-c-format
msgid ""
"<literal>ant explode</literal> - update an exploded example, without
"
@@ -180,32 +188,32 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:103
+#: gettingstarted.xml:110
#, no-c-format
msgid ""
"<literal>ant deploy</literal> - deploy the example in compressed jar
format"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:108
+#: gettingstarted.xml:115
#, no-c-format
msgid "<literal>ant undeploy</literal> - remove the example from the
server"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:113
+#: gettingstarted.xml:120
#, no-c-format
msgid "<literal>ant clean</literal> - clean the example"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:120
+#: gettingstarted.xml:127
#, no-c-format
msgid "To deploy the numberguess example:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:124
+#: gettingstarted.xml:131
#, no-c-format
msgid ""
"$ cd examples/numberguess\n"
@@ -213,25 +221,25 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:126
+#: gettingstarted.xml:133
#, no-c-format
msgid "Start JBoss AS:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:130
+#: gettingstarted.xml:137
#, no-c-format
msgid "$ /Application/jboss-5.0.0.GA/bin/run.sh"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:133
+#: gettingstarted.xml:140
#, no-c-format
msgid "If you use Windows, use the
<literal>run.bat</literal>script."
msgstr ""
#. Tag: para
-#: gettingstarted.xml:138 gettingstarted.xml:240
+#: gettingstarted.xml:145 gettingstarted.xml:247
#, no-c-format
msgid ""
"Wait for the application to deploy, and enjoy hours of fun at <ulink url="
@@ -239,7 +247,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:143
+#: gettingstarted.xml:150
#, no-c-format
msgid ""
"Web Beans includes a second simple example that will translate your text "
@@ -249,7 +257,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:150
+#: gettingstarted.xml:157
#, no-c-format
msgid ""
"$ cd examples/translator\n"
@@ -257,7 +265,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:152
+#: gettingstarted.xml:159
#, no-c-format
msgid ""
"Wait for the application to deploy, and visit <ulink url=\"http://"
@@ -265,13 +273,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:160
+#: gettingstarted.xml:167
#, no-c-format
msgid "Using Apache Tomcat 6.0"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:162
+#: gettingstarted.xml:169
#, no-c-format
msgid ""
"You'll need to download Tomcat 6.0.18 or later from <ulink
url=\"http://"
@@ -280,7 +288,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:168
+#: gettingstarted.xml:175
#, no-c-format
msgid ""
"<![CDATA[$ cd /Applications\n"
@@ -288,7 +296,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:178
+#: gettingstarted.xml:185
#, no-c-format
msgid ""
"Next, we need to tell Web Beans where Tomcat is located. Edit
<literal>jboss-"
@@ -297,13 +305,13 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:184
+#: gettingstarted.xml:191
#, no-c-format
msgid "tomcat.home=/Applications/apache-tomcat-6.0.18"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:187
+#: gettingstarted.xml:194
#, no-c-format
msgid ""
"The build scripts for the examples offer a number of targets for Tomcat, "
@@ -311,14 +319,14 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:193
+#: gettingstarted.xml:200
#, no-c-format
msgid ""
"<literal>ant tomcat.restart</literal> - deploy the example in exploded
format"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:199
+#: gettingstarted.xml:206
#, no-c-format
msgid ""
"<literal>ant tomcat.explode</literal> - update an exploded example,
without "
@@ -326,7 +334,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:205
+#: gettingstarted.xml:212
#, no-c-format
msgid ""
"<literal>ant tomcat.deploy</literal> - deploy the example in compressed
jar "
@@ -334,26 +342,26 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:210
+#: gettingstarted.xml:217
#, no-c-format
msgid ""
"<literal>ant tomcat.undeploy</literal> - remove the example from the
server"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:215
+#: gettingstarted.xml:222
#, no-c-format
msgid "<literal>ant tomcat.clean</literal> - clean the example"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:222
+#: gettingstarted.xml:229
#, no-c-format
msgid "To deploy the numberguess example for tomcat:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:226
+#: gettingstarted.xml:233
#, no-c-format
msgid ""
"$ cd examples/tomcat\n"
@@ -361,43 +369,43 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:228
+#: gettingstarted.xml:235
#, no-c-format
msgid "Start Tomcat:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:232
+#: gettingstarted.xml:239
#, no-c-format
msgid "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:235
+#: gettingstarted.xml:242
#, no-c-format
msgid "If you use Windows, use the
<literal>startup.bat</literal>script."
msgstr ""
#. Tag: title
-#: gettingstarted.xml:248
+#: gettingstarted.xml:255
#, no-c-format
msgid "Using GlassFish"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:250
+#: gettingstarted.xml:257
#, no-c-format
msgid "TODO"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:254
+#: gettingstarted.xml:261
#, no-c-format
msgid "The numberguess example"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:256
+#: gettingstarted.xml:263
#, no-c-format
msgid ""
"In the numberguess application you get given 10 attempts to guess a number "
@@ -406,7 +414,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:262
+#: gettingstarted.xml:269
#, no-c-format
msgid ""
"The numberguess example is comprised of a number of Web Beans, configuration
"
@@ -415,7 +423,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:268
+#: gettingstarted.xml:275
#, no-c-format
msgid ""
"All the configuration files for this example are located in
<literal>WEB-INF/"
@@ -425,7 +433,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:276
+#: gettingstarted.xml:283
#, no-c-format
msgid ""
"<![CDATA[<?xml version='1.0' encoding='UTF-8'?>\n"
@@ -443,7 +451,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:278
+#: gettingstarted.xml:285
#, no-c-format
msgid ""
"There is an empty <literal>web-beans.xml</literal> file, which marks
this "
@@ -451,13 +459,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:283
+#: gettingstarted.xml:290
#, no-c-format
msgid "Finally there is <literal>web.xml</literal>:"
msgstr ""
#. Tag: section
-#: gettingstarted.xml:285
+#: gettingstarted.xml:292
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"faces.servlet\"
coords=\"12\"/> "
@@ -579,7 +587,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:387
+#: gettingstarted.xml:394
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -588,7 +596,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:393
+#: gettingstarted.xml:400
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -599,7 +607,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:395
+#: gettingstarted.xml:402
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for
"
@@ -607,7 +615,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:400
+#: gettingstarted.xml:407
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -619,7 +627,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:402
+#: gettingstarted.xml:409
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the
"
@@ -628,7 +636,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:408
+#: gettingstarted.xml:415
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -657,7 +665,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:410
+#: gettingstarted.xml:417
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application
scoped; "
@@ -665,7 +673,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:415
+#: gettingstarted.xml:422
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped
<literal>Game</"
@@ -673,7 +681,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:420
+#: gettingstarted.xml:427
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal>
annotation, so "
@@ -684,7 +692,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:428
+#: gettingstarted.xml:435
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -786,13 +794,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:431
+#: gettingstarted.xml:438
#, no-c-format
msgid "The numberguess example in Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:433
+#: gettingstarted.xml:440
#, no-c-format
msgid ""
"The numberguess for Tomcat differs in a couple of ways. Firstly, Web Beans "
@@ -802,7 +810,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:442
+#: gettingstarted.xml:449
#, no-c-format
msgid ""
"Of course, you must also include JSF and EL, as well common annotations "
@@ -810,7 +818,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:449
+#: gettingstarted.xml:456
#, no-c-format
msgid ""
"Secondly, we need to explicitly specify the servlet listener (used to boot "
@@ -819,7 +827,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:455
+#: gettingstarted.xml:462
#, no-c-format
msgid ""
"<![CDATA[<listener>\n"
@@ -829,13 +837,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:460
+#: gettingstarted.xml:467
#, no-c-format
msgid "The numberguess example for Apache Wicket"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:461
+#: gettingstarted.xml:468
#, no-c-format
msgid ""
"Whilst JSR-299 specifies integration with Java ServerFaces, Web Beans allows
"
@@ -845,7 +853,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:470
+#: gettingstarted.xml:477
#, no-c-format
msgid ""
"You may want to review the Wicket documentation at <ulink
url=\"http://"
@@ -853,7 +861,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:476
+#: gettingstarted.xml:483
#, no-c-format
msgid ""
"Like the previous example, the Wicket WebBeans examples make use of the "
@@ -866,7 +874,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:487
+#: gettingstarted.xml:494
#, no-c-format
msgid ""
"These examples make use of the Eclipse IDE; instructions are also given to "
@@ -874,43 +882,45 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:493
+#: gettingstarted.xml:500
#, no-c-format
msgid "Creating the Eclipse project"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:495
+#: gettingstarted.xml:502
#, no-c-format
msgid "To generate an Eclipse project from the example:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:499
+#: gettingstarted.xml:506
#, no-c-format
msgid ""
"<![CDATA[cd examples/wicket/numberguess\n"
-"mvn eclipse:eclipse]]>"
+"mvn -Pjetty eclipse:eclipse]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:501
+#: gettingstarted.xml:508
#, no-c-format
msgid ""
"Then, from eclipse, choose <emphasis>File -> Import -> General ->
Existing "
"Projects into Workspace</emphasis>, select the root directory of the "
-"numberguess example, and click finish. This will create a project in your "
-"workspace called <literal>webbeans-wicket-numberguess</literal>"
+"numberguess example, and click finish. Note that if you do not intend to run
"
+"the example with jetty from within eclipse, omit the \"-Pjetty.\" This
will "
+"create a project in your workspace called <literal>webbeans-wicket-"
+"numberguess</literal>"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:516
+#: gettingstarted.xml:524
#, no-c-format
msgid "Running the example from Eclipse"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:518
+#: gettingstarted.xml:526
#, no-c-format
msgid ""
"This project follows the <literal>wicket-quickstart</literal> approach
of "
@@ -924,13 +934,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:533
+#: gettingstarted.xml:541
#, no-c-format
msgid "Running the example from the command line in JBoss AS or Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:535
+#: gettingstarted.xml:543
#, no-c-format
msgid ""
"This example can also be deployed from the command line in a (similar to the
"
@@ -943,13 +953,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:549
+#: gettingstarted.xml:557
#, no-c-format
msgid "Understanding the code"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:551
+#: gettingstarted.xml:559
#, no-c-format
msgid ""
"JSF uses Unified EL expressions to bind view layer components in JSP or "
@@ -963,7 +973,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:563
+#: gettingstarted.xml:571
#, no-c-format
msgid ""
"The code in the wicket numberguess example is very similar to the JSF-based "
@@ -971,13 +981,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:568
+#: gettingstarted.xml:576
#, no-c-format
msgid "Differences are:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:573
+#: gettingstarted.xml:581
#, no-c-format
msgid ""
"Each wicket application must have a <literal>WebApplication</literal>
"
@@ -986,7 +996,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:579
+#: gettingstarted.xml:587
#, no-c-format
msgid ""
"<![CDATA[public class SampleApplication extends WebBeansApplication {\n"
@@ -998,7 +1008,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:580
+#: gettingstarted.xml:588
#, no-c-format
msgid ""
"This class specifies which page wicket should treat as our home page, in our
"
@@ -1006,7 +1016,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:586
+#: gettingstarted.xml:594
#, no-c-format
msgid ""
"In <literal>HomePage</literal> we see typical wicket code to set up
page "
@@ -1015,13 +1025,13 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:592
+#: gettingstarted.xml:600
#, no-c-format
msgid "<![CDATA[ @Current Game game;]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:594
+#: gettingstarted.xml:602
#, no-c-format
msgid ""
"The <literal>Game</literal> bean is can then be used, for example, by
the "
@@ -1029,7 +1039,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:599
+#: gettingstarted.xml:607
#, no-c-format
msgid ""
"<![CDATA[final Component guessButton = new AjaxButton(\"GuessButton\")
{ \n"
@@ -1038,7 +1048,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:602
+#: gettingstarted.xml:610
#, no-c-format
msgid ""
"All injections may be serialized; actual storage of the bean is managed by "
@@ -1047,7 +1057,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:608
+#: gettingstarted.xml:616
#, no-c-format
msgid ""
"Wicket components allow injection, but they <emphasis>cannot</emphasis>
use "
@@ -1056,7 +1066,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:618
+#: gettingstarted.xml:626
#, no-c-format
msgid ""
"The example uses AJAX for processing of button events, and dynamically hides
"
@@ -1065,7 +1075,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:626
+#: gettingstarted.xml:634
#, no-c-format
msgid ""
"In order to activate wicket for this webapp, the Wicket filter is added to "
@@ -1073,7 +1083,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:631
+#: gettingstarted.xml:639
#, no-c-format
msgid ""
"<![CDATA[<filter>\n"
@@ -1099,7 +1109,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:632
+#: gettingstarted.xml:640
#, no-c-format
msgid ""
"Note that the servlet listener is also added, as in the Tomcat example, in "
@@ -1108,13 +1118,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:645
+#: gettingstarted.xml:653
#, no-c-format
msgid "The numberguess example for Java SE with Swing"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:647
+#: gettingstarted.xml:655
#, no-c-format
msgid ""
"This example can be found in the
<literal>examples/se/numberguess</literal> "
@@ -1122,13 +1132,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:654
+#: gettingstarted.xml:662
#, no-c-format
msgid "To run this example:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:660
+#: gettingstarted.xml:668
#, no-c-format
msgid ""
"Open a command line/terminal window in the
<literal>examples/se/numberguess</"
@@ -1136,13 +1146,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:666
+#: gettingstarted.xml:674
#, no-c-format
msgid "Ensure that Maven 2 is installed and in your PATH"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:671
+#: gettingstarted.xml:679
#, no-c-format
msgid ""
"Ensure that the <literal>JAVA_HOME</literal> environment variable is
"
@@ -1150,19 +1160,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:677
+#: gettingstarted.xml:685
#, no-c-format
msgid "execute the following command"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:680
+#: gettingstarted.xml:688
#, no-c-format
msgid "mvn -Drun"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:686
+#: gettingstarted.xml:694
#, no-c-format
msgid ""
"There is an empty <literal>beans.xml</literal> file in the root package
"
@@ -1171,7 +1181,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:692
+#: gettingstarted.xml:700
#, no-c-format
msgid ""
"The game's main logic is located in <literal>Game.java</literal>.
Here is "
@@ -1180,7 +1190,7 @@
msgstr ""
#. Tag: section
-#: gettingstarted.xml:696
+#: gettingstarted.xml:704
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"scope\"
coords=\"1\"/> <area id="
@@ -1446,13 +1456,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:904
+#: gettingstarted.xml:912
#, no-c-format
msgid "The translator example"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:906
+#: gettingstarted.xml:914
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them
"
@@ -1460,7 +1470,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:911
+#: gettingstarted.xml:919
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs. As a result, "
@@ -1468,7 +1478,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:917
+#: gettingstarted.xml:925
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -1476,7 +1486,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:923
+#: gettingstarted.xml:931
#, no-c-format
msgid ""
"First, let's take a look at the ear aggregator, which is located in "
@@ -1485,7 +1495,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:929
+#: gettingstarted.xml:937
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -1504,7 +1514,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:931
+#: gettingstarted.xml:939
#, no-c-format
msgid ""
"Here we set the context path, which gives us a nice url (<ulink
url=\"http://"
@@ -1513,7 +1523,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:937
+#: gettingstarted.xml:945
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
@@ -1521,7 +1531,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:942
+#: gettingstarted.xml:950
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\"
encoding=\"UTF-8\"?>\n"
@@ -1547,7 +1557,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:945
+#: gettingstarted.xml:953
#, no-c-format
msgid ""
"Next, lets look at the war. Just as in the numberguess example, we have a "
@@ -1556,7 +1566,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:952
+#: gettingstarted.xml:960
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -1565,7 +1575,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:958
+#: gettingstarted.xml:966
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -1598,7 +1608,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:960
+#: gettingstarted.xml:968
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate
"
@@ -1606,7 +1616,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:965
+#: gettingstarted.xml:973
#, no-c-format
msgid ""
"Finally, let's look at the ejb module,
<literal>webbeans-translator-ejb</"
@@ -1616,7 +1626,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:973
+#: gettingstarted.xml:981
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two
"
@@ -1628,7 +1638,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:983
+#: gettingstarted.xml:991
#, no-c-format
msgid ""
"Both <literal>SentenceParser</literal> and
<literal>TextTranslator</literal> "
@@ -1637,7 +1647,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:989
+#: gettingstarted.xml:997
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -1653,7 +1663,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:991
+#: gettingstarted.xml:999
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local
business "
@@ -1662,7 +1672,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:997
+#: gettingstarted.xml:1005
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -1671,7 +1681,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:1003
+#: gettingstarted.xml:1011
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -1684,19 +1694,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1005
+#: gettingstarted.xml:1013
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1009
+#: gettingstarted.xml:1017
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:1013
+#: gettingstarted.xml:1021
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -1707,7 +1717,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1015
+#: gettingstarted.xml:1023
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -1715,7 +1725,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1021
+#: gettingstarted.xml:1029
#, no-c-format
msgid ""
"That concludes our short tour of the Web Beans examples. For more on Web "
@@ -1725,7 +1735,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1027
+#: gettingstarted.xml:1035
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
Modified: doc/trunk/reference/fr-FR/producermethods.po
===================================================================
--- doc/trunk/reference/fr-FR/producermethods.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/fr-FR/producermethods.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: master.xml \n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2008-12-19 20:26+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -36,83 +36,29 @@
msgid "According to the spec:"
msgstr ""
-#. Tag: para
-#: producermethods.xml:16
+#. Tag: chapter
+#: producermethods.xml:12
#, no-c-format
msgid ""
-"A Web Beans producer method acts as a source of objects to be injected, "
-"where:"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:20
-#, no-c-format
-msgid ""
-"the objects to be injected are not required to be instances of Web Beans,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:23
-#, no-c-format
-msgid "the concrete type of the objects to be injected may vary at runtime or"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:26
-#, no-c-format
-msgid ""
-"the objects require some custom initialization that is not performed by the "
-"Web Bean constructor"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:33
-#, no-c-format
-msgid "For example, producer methods let us:"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:37
-#, no-c-format
-msgid "expose a JPA entity as a Web Bean,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:40
-#, no-c-format
-msgid "expose any JDK class as a Web Bean,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:43
-#, no-c-format
-msgid ""
-"define multiple Web Beans, with different scopes or initialization, for the "
-"same implementation class, or"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:47
-#, no-c-format
-msgid "vary the implementation of an API type at runtime."
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:51
-#, no-c-format
-msgid ""
-"In particular, producer methods let us use runtime polymorphism with Web "
-"Beans. As we've seen, deployment types are a powerful solution to the "
-"problem of deployment-time polymorphism. But once the system is deployed, "
-"the Web Bean implementation is fixed. A producer method has no such "
-"limitation:"
-msgstr ""
-
-#. Tag: programlisting
-#: producermethods.xml:56
-#, no-c-format
-msgid ""
-"<![CDATA[@SessionScoped\n"
+"<blockquote> <para>A Web Beans producer method acts as a source of
objects "
+"to be injected, where:</para> <itemizedlist> <listitem>
<para>the objects to "
+"be injected are not required to be instances of Web Beans,</para>
</"
+"listitem> <listitem> <para>the concrete type of the objects to be
injected "
+"may vary at runtime or</para> </listitem> <listitem>
<para>the objects "
+"require some custom initialization that is not performed by the Web Bean "
+"constructor</para> </listitem> </itemizedlist>
</blockquote> <para>For "
+"example, producer methods let us:</para> <itemizedlist>
<listitem> "
+"<para>expose a JPA entity as a Web Bean,</para> </listitem>
<listitem> "
+"<para>expose any JDK class as a Web Bean,</para> </listitem>
<listitem> "
+"<para>define multiple Web Beans, with different scopes or initialization,
"
+"for the same implementation class, or</para> </listitem>
<listitem> "
+"<para>vary the implementation of an API type at runtime.</para>
</listitem> "
+"</itemizedlist> <para>In particular, producer methods let us use
runtime "
+"polymorphism with Web Beans. As we've seen, deployment types are a powerful
"
+"solution to the problem of deployment-time polymorphism. But once the system
"
+"is deployed, the Web Bean implementation is fixed. A producer method has no "
+"such limitation:</para> <programlisting
role=\"JAVA\"><![CDATA"
+"[@SessionScoped\n"
"public class Preferences {\n"
" \n"
" private PaymentStrategyType paymentStrategy;\n"
@@ -129,37 +75,15 @@
" } \n"
" }\n"
" \n"
-"}]]>"
+"}]]></programlisting> <para>Consider an injection
point:</para> "
+"<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
+"paymentStrat;]]></programlisting> <para>This injection point has the
same "
+"type and binding annotations as the producer method, so it resolves to the "
+"producer method using the usual Web Beans injection rules. The producer "
+"method will be called by the Web Bean manager to obtain an instance to "
+"service this injection point.</para>."
msgstr ""
-#. Tag: para
-#: producermethods.xml:58
-#, no-c-format
-msgid "Consider an injection point:"
-msgstr ""
-
-#. Tag: programlisting
-#: producermethods.xml:60
-#, no-c-format
-msgid "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:62
-#, no-c-format
-msgid ""
-"This injection point has the same type and binding annotations as the "
-"producer method, so it resolves to the producer method using the usual Web "
-"Beans injection rules. The producer method will be called by the Web Bean "
-"manager to obtain an instance to service this injection point."
-msgstr ""
-
-#. Tag: chapter
-#: producermethods.xml:65
-#, no-c-format
-msgid "<chapter>.</chapter>"
-msgstr ""
-
#. Tag: title
#: producermethods.xml:68
#, no-c-format
Modified: doc/trunk/reference/it-IT/environments.po
===================================================================
--- doc/trunk/reference/it-IT/environments.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/it-IT/environments.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -5,8 +5,8 @@
msgstr ""
"Project-Id-Version: Web_Beans:_Java_Contexts_and_Dependency_Injection
VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
-"PO-Revision-Date: 2009-04-20 22:05+0100\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"PO-Revision-Date: 2009-05-05 22:49+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -74,8 +74,8 @@
#. Tag: title
#: environments.xml:47
#, no-c-format
-msgid "Glassfish"
-msgstr "Glassfish"
+msgid "GlassFish"
+msgstr "GlassFish"
#. Tag: para
#: environments.xml:49
@@ -104,8 +104,8 @@
#. Tag: para
#: environments.xml:66
#, no-c-format
-msgid "Web Beans should be used as a web application library in a servlet container.
You should place <literal>webbeans-servlet.jar</literal> in
<literal>WEB-INF/lib</literal>.
<literal>webbeans-serv;et.jar</literal> is an \"uber-jar\" provided
for your convenience. Instead, you could use its component jars:"
-msgstr "Web Beans dovrebbe essere usata come libreria per web application in un
servlet container. Si dovrebbe mettere <literal>webbeans-servlet.jar</literal>
in <literal>WEB-INF/lib</literal>.
<literal>webbeans-serv;et.jar</literal> è un \"sovra-jar\" fornito
per comodità. Invece, è possibile usare i suoi jar componenti:"
+msgid "Web Beans should be used as a web application library in a servlet container.
You should place <literal>webbeans-servlet.jar</literal> in
<literal>WEB-INF/lib</literal>.
<literal>webbeans-servlet.jar</literal> is an \"uber-jar\" provided
for your convenience. Alternatively, you could use its component jars:"
+msgstr "Web Beans dovrebbe essere usata come libreria per web application in un
servlet container. Si dovrebbe mettere <literal>webbeans-servlet.jar</literal>
in <literal>WEB-INF/lib</literal>.
<literal>webbeans-servlet.jar</literal> è un \"sovra-jar\" fornito
per comodità. Invece, è possibile usare i suoi jar componenti:"
#. Tag: literal
#: environments.xml:77
@@ -182,139 +182,213 @@
#. Tag: para
#: environments.xml:128
#, no-c-format
-msgid "Tomcat has a read-only JNDI, so Web Beans can't automatically bind the
Manager. To bind the Manager into JNDI, you should add the following to your
<literal>META-INF/context.xml</literal>:"
-msgstr "Tomcat ha un JNDI read-only, e quindi Web Beans non può automaticamente
associare il Manager. Per associare il Manager a JNDI occorre aggiungere a
<literal>META-INF/context.xml</literal>:"
+msgid "Tomcat has a read-only JNDI, so Web Beans can't automatically bind the
Manager. To bind the Manager into JNDI, you should populate
<literal>META-INF/context.xml</literal> with the following contents:"
+msgstr "Tomcat ha un JNDI read-only, e quindi Web Beans non può automaticamente
associare il Manager. Per associare il Manager a JNDI occorre popolare
<literal>META-INF/context.xml</literal> con i seguenti contesti:"
#. Tag: programlisting
-#: environments.xml:134
+#: environments.xml:135
#, no-c-format
msgid ""
-"<![CDATA[<Resource name=\"app/Manager\" \n"
-" auth=\"Container\"\n"
-" type=\"javax.inject.manager.Manager\"\n"
-"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
-"]]>"
+"<![CDATA[<Context>\n"
+" <Resource name=\"app/Manager\" \n"
+" auth=\"Container\"\n"
+" type=\"javax.inject.manager.Manager\"\n"
+"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
+"</Context>]]>"
msgstr ""
-"<![CDATA[<Resource name=\"app/Manager\" \n"
-" auth=\"Container\"\n"
-" type=\"javax.inject.manager.Manager\"\n"
-"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
-"]]>"
+"<![CDATA[<Context>\n"
+" <Resource name=\"app/Manager\" \n"
+" auth=\"Container\"\n"
+" type=\"javax.inject.manager.Manager\"\n"
+"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
+"</Context>]]>"
#. Tag: para
-#: environments.xml:136
+#: environments.xml:137
#, no-c-format
-msgid "and make it available to your deployment by adding this to
<literal>web.xml</literal>:"
-msgstr "e renderlo disponibile nel proprio deploy aggiungendo questo a
<literal>web.xml</literal>:"
+msgid "and make it available to your deployment by adding this to the bottom of
<literal>web.xml</literal>:"
+msgstr "e renderlo disponibile nel proprio deploy aggiungendo questo in fondo a
<literal>web.xml</literal>:"
#. Tag: programlisting
-#: environments.xml:141
+#: environments.xml:142
#, no-c-format
msgid ""
"<![CDATA[<resource-env-ref>\n"
-" <resource-env-ref-name>\n"
-" app/Manager\n"
-" </resource-env-ref-name>\n"
-" <resource-env-ref-type>\n"
-" javax.inject.manager.Manager\n"
-" </resource-env-ref-type>\n"
+" <resource-env-ref-name>\n"
+" app/Manager\n"
+" </resource-env-ref-name>\n"
+" <resource-env-ref-type>\n"
+" javax.inject.manager.Manager\n"
+" </resource-env-ref-type>\n"
"</resource-env-ref>]]>"
msgstr ""
"<![CDATA[<resource-env-ref>\n"
-" <resource-env-ref-name>\n"
-" app/Manager\n"
-" </resource-env-ref-name>\n"
-" <resource-env-ref-type>\n"
-" javax.inject.manager.Manager\n"
-" </resource-env-ref-type>\n"
+" <resource-env-ref-name>\n"
+" app/Manager\n"
+" </resource-env-ref-name>\n"
+" <resource-env-ref-type>\n"
+" javax.inject.manager.Manager\n"
+" </resource-env-ref-type>\n"
"</resource-env-ref>]]>"
#. Tag: para
-#: environments.xml:143
+#: environments.xml:144
#, no-c-format
msgid "Tomcat only allows you to bind entries to
<literal>java:comp/env</literal>, so the Manager will be available at
<literal>java:comp/env/app/Manager</literal>"
msgstr "Tomcat consente solo di associare le entry a
<literal>java:comp/env</literal>, e quindi il Manager sarà disponibile in
<literal>java:comp/env/app/Manager</literal>"
#. Tag: para
-#: environments.xml:149
+#: environments.xml:150
#, no-c-format
msgid "Web Beans also supports Servlet injection in Tomcat. To enable this, place
the <literal>webbeans-tomcat-support.jar</literal> in
<literal>$TOMCAT_HOME/lib</literal>, and add the following to your
<literal>META-INF/context.xml</literal>:"
msgstr "Web Beans supporta anche l'iniezione dei servlet in Tomcat. Per
abilitarla, collocare <literal>webbeans-tomcat-support.jar</literal> in
<literal>$TOMCAT_HOME/lib</literal>, ed aggiungere il seguente codice a
<literal>META-INF/context.xml</literal>:"
#. Tag: programlisting
-#: environments.xml:156
+#: environments.xml:157
#, no-c-format
-msgid "<![CDATA[<Listener
className=\"org.jboss.webbeans.environment.tomcat.WebBeansLifecycleListener\"
/>]]>"
-msgstr "<![CDATA[<Listener
className=\"org.jboss.webbeans.environment.tomcat.WebBeansLifecycleListener\"
/>]]>"
+msgid "<![CDATA[<Listener
className=\"org.jboss.webbeans.environment.tomcat.WebBeansLifecycleListener\"/>]]>"
+msgstr "<![CDATA[<Listener
className=\"org.jboss.webbeans.environment.tomcat.WebBeansLifecycleListener\"/>]]>"
#. Tag: title
-#: environments.xml:163
+#: environments.xml:162
#, no-c-format
+msgid "Jetty"
+msgstr "Jetty"
+
+#. Tag: para
+#: environments.xml:164
+#, no-c-format
+msgid "Like Tomcat, Jetty has a read-only JNDI, so Web Beans can't automatically
bind the Manager. To bind the Manager to JNDI, you should populate
<literal>WEB-INF/jetty-env.xml</literal> with the following contents:"
+msgstr "Come Tomcat, Jetty ha un JNDI read-only, e quindi Web Beans non può
automaticamente associare il Manager. Per associare il Manager a JNDI occorre popolare
<literal>META-INF/jetty-env.xml</literal> con i seguenti contesti:"
+
+#. Tag: programlisting
+#: environments.xml:171
+#, no-c-format
+msgid ""
+"<![CDATA[<!DOCTYPE Configure PUBLIC \"-//Mort Bay Consulting//DTD
Configure//EN\"\n"
+" \"http://jetty.mortbay.org/configure.dtd\">\n"
+"<Configure id=\"webAppCtx\"
class=\"org.mortbay.jetty.webapp.WebAppContext\">\n"
+" <New id=\"appManager\"
class=\"org.mortbay.jetty.plus.naming.Resource\">\n"
+" <Arg><Ref id=\"webAppCtx\"/></Arg> \n"
+" <Arg>app/Manager</Arg>\n"
+" <Arg>\n"
+" <New class=\"javax.naming.Reference\">\n"
+" <Arg>javax.inject.manager.Manager</Arg> \n"
+"
<Arg>org.jboss.webbeans.resources.ManagerObjectFactory</Arg>\n"
+" <Arg/>\n"
+" </New>\n"
+" </Arg>\n"
+" </New>\n"
+"</Configure>]]>"
+msgstr ""
+"<![CDATA[<!DOCTYPE Configure PUBLIC \"-//Mort Bay Consulting//DTD
Configure//EN\"\n"
+" \"http://jetty.mortbay.org/configure.dtd\">\n"
+"<Configure id=\"webAppCtx\"
class=\"org.mortbay.jetty.webapp.WebAppContext\">\n"
+" <New id=\"appManager\"
class=\"org.mortbay.jetty.plus.naming.Resource\">\n"
+" <Arg><Ref id=\"webAppCtx\"/></Arg> \n"
+" <Arg>app/Manager</Arg>\n"
+" <Arg>\n"
+" <New class=\"javax.naming.Reference\">\n"
+" <Arg>javax.inject.manager.Manager</Arg> \n"
+"
<Arg>org.jboss.webbeans.resources.ManagerObjectFactory</Arg>\n"
+" <Arg/>\n"
+" </New>\n"
+" </Arg>\n"
+" </New>\n"
+"</Configure>]]>"
+
+#. Tag: para
+#: environments.xml:173
+#, no-c-format
+msgid "Notice that Jetty doesn't not have built-in support for an
<literal>javax.naming.spi.ObjectFactory</literal> like Tomcat, so it's
necessary to manually create the <literal>javax.naming.Reference</literal> to
wrap around it."
+msgstr "Si noti che Jetty non ha un supporto predefinito per
<literal>javax.naming.spi.ObjectFactory</literal> come Tomcat, quindi è
necessario creare manualmente il <literal>javax.naming.Reference</literal> con
cui fare il wrap."
+
+#. Tag: para
+#: environments.xml:180
+#, no-c-format
+msgid "Jetty only allows you to bind entries to
<literal>java:comp/env</literal>, so the Manager will be available at
<literal>java:comp/env/app/Manager</literal>"
+msgstr "Jetty consente solo di associare le entry a
<literal>java:comp/env</literal>, e quindi il Manager sarà disponibile in
<literal>java:comp/env/app/Manager</literal>"
+
+#. Tag: para
+#: environments.xml:186
+#, no-c-format
+msgid "Web Beans does not currently support Servlet injection in Jetty."
+msgstr "Web Beans non supporta attualmente l'injection dei servlet in
Jetty."
+
+#. Tag: title
+#: environments.xml:195
+#, no-c-format
msgid "Java SE"
msgstr "Java SE"
#. Tag: para
-#: environments.xml:165
+#: environments.xml:197
#, no-c-format
msgid "Apart from improved integration of the Enterprise Java stack, Web Beans also
provides a state of the art typesafe, stateful dependency injection framework. This is
useful in a wide range of application types, enterprise or otherwise. To facilitate this,
Web Beans provides a simple means for executing in the Java Standard Edition environment
independently of any Enterprise Edition features."
msgstr "Oltre alla migliorata integrazione dello stack Java Enterprise, Web Beans
fornisce anche uno stato dell'arte typesafe, con dependency injection stateful .
Questo è utile in un ampio raggio di applicazioni tipo, enterprise o altre. Per facilitare
ciò, Web Beans fornisce semplici mezzi per eseguire in ambiente Java Standard Edition
indipendentemente da qualsiasi caratteristica Enterprise Edition."
#. Tag: para
-#: environments.xml:173
+#: environments.xml:205
#, no-c-format
msgid "When executing in the SE environment the following features of Web Beans are
available:"
msgstr "Eseguendo in ambiente SE sono disponibili le seguenti caratteristiche di Web
Beans:"
#. Tag: literal
-#: environments.xml:179
+#: environments.xml:211
#, no-c-format
msgid "Simple Web Beans (POJOs)"
msgstr "Semplice Web Beans (POJOs)"
#. Tag: literal
-#: environments.xml:184
+#: environments.xml:216
#, no-c-format
msgid "Typesafe Dependency Injection"
msgstr "Iniezioni di dipendenza typesafe"
#. Tag: literal
-#: environments.xml:189
+#: environments.xml:221
#, no-c-format
msgid "Application and Dependent Contexts"
msgstr "Applicazione e contesti dipendenti"
#. Tag: literal
-#: environments.xml:194
+#: environments.xml:226
#, no-c-format
msgid "Binding Types"
msgstr "Tipi di binding"
#. Tag: literal
-#: environments.xml:199
+#: environments.xml:231
#, no-c-format
+msgid "Deployment Types"
+msgstr "Tipi di deploy"
+
+#. Tag: literal
+#: environments.xml:236
+#, no-c-format
msgid "Stereotypes"
msgstr "Stereotipi"
#. Tag: literal
-#: environments.xml:204
+#: environments.xml:241
#, no-c-format
msgid "Typesafe Event Model"
msgstr "Modello a eventi typesafe"
#. Tag: title
-#: environments.xml:210
+#: environments.xml:247
#, no-c-format
msgid "Web Beans SE Module"
msgstr "Module Web Beans SE"
#. Tag: para
-#: environments.xml:212
+#: environments.xml:249
#, no-c-format
msgid "To make life easy for developers Web Beans provides a special module with a
main method which will boot the Web Beans manager, automatically registering all simple
Web Beans found on the classpath. This eliminates the need for application developers to
write any bootstrapping code. The entry point for a Web Beans SE applications is a simple
Web Bean which observes the standard <literal>@Deployed Manager</literal>
event. The command line paramters can be injected using either of the following:"
msgstr "Per semplificare la vita agli sviluppatori Web Beans fornisce un modulo
speciale con un metodo main che avvia il manager Web Beans, registrando automaticamente
tutti i Web BEans semplici trovati nel classpath. Questo elimina il bisogno da parte degli
sviluppatori di scrivere codice per il bootstrap. L'entry point per le applicazioni
Web Beans SE è un semplice Web Bean che osserva l'evento standard
<literal>@Deployed Manager</literal>. I parametri da linea di comando possono
essere iniettati usando una delle seguenti:"
#. Tag: programlisting
-#: environments.xml:221
+#: environments.xml:258
#, no-c-format
msgid ""
"<![CDATA[@Parameters List<String> params;\n"
@@ -324,13 +398,13 @@
"@Parameters String[] paramsArray; // useful for compatability with existing
classes]]>"
#. Tag: para
-#: environments.xml:222
+#: environments.xml:259
#, no-c-format
msgid "Here's an example of a simple Web Beans SE application:"
msgstr "Ecco un esempio di una semplice applicazione Web Beans SE:"
#. Tag: programlisting
-#: environments.xml:226
+#: environments.xml:263
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -356,25 +430,25 @@
"}]]>"
#. Tag: para
-#: environments.xml:228
+#: environments.xml:265
#, no-c-format
msgid "Web Beans SE applications are started by running the following main
method."
msgstr "Le applicazioni Web Beans SE vengono avviate eseguendo il seguente metodo
main."
#. Tag: programlisting
-#: environments.xml:230
+#: environments.xml:267
#, no-c-format
msgid "<![CDATA[java org.jboss.webbeans.environments.se.StartMain
<args>]]>"
msgstr "<![CDATA[java org.jboss.webbeans.environments.se.StartMain
<args>]]>"
#. Tag: para
-#: environments.xml:232
+#: environments.xml:269
#, no-c-format
msgid "If you need to do any custom initialization of the Web Beans manager, for
example registering custom contexts or initializing resources for your beans you can do so
in response to the <literal>@Initialized Manager</literal> event. The
following example registers a custom context:"
msgstr "Se occorre fare una qualsiasi inizializzazione personalizzata del manager
Web Beans, per esempio registrando i contesti personalizzati o inizializzando le risorse
dei bean, si può fare questo in risposta all'evento <literal>@Initialized
Manager</literal>. Il seguente esempio registra un contesto personalizzato:"
#. Tag: programlisting
-#: environments.xml:237
+#: environments.xml:274
#, no-c-format
msgid ""
"<![CDATA[public class PerformSetup\n"
@@ -396,7 +470,7 @@
"}]]>"
#. Tag: para
-#: environments.xml:240
+#: environments.xml:277
#, no-c-format
msgid "The command line parameters do not become available for injection until the
<literal>@Deployed Manager</literal> event is fired. If you need access to the
parameters during initialization you can do so via the <literal>public static String
getParameters()</literal> method in <literal>StartMain</literal>."
msgstr "I parametri da linea di comando non sono disponibili per l'injection
fino a che non viene lanciato l'evento <literal>@Deployed
Manager</literal>. Se serve l'accesso ai parametri durante
l'inizializzazione si può averlo tramite il metodo <literal>public static String
getParameters()</literal> in <literal>StartMain</literal>."
Modified: doc/trunk/reference/it-IT/gettingstarted.po
===================================================================
--- doc/trunk/reference/it-IT/gettingstarted.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/it-IT/gettingstarted.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -5,8 +5,8 @@
msgstr ""
"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
-"PO-Revision-Date: 2009-04-21 20:44+0100\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"PO-Revision-Date: 2009-05-05 22:50+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -79,14 +79,14 @@
#. Tag: para
#: gettingstarted.xml:49
-#: gettingstarted.xml:170
+#: gettingstarted.xml:177
#, no-c-format
msgid "Next, download Web Beans from <ulink
url=\"http://seamframework.org/Download\">seamframework.org&...;,
and unzip it. For example"
msgstr "Scaricare Web Beans da <ulink
url=\"http://seamframework.org/Download\">seamframework.org&...;, e
scompattarlo. Per esempio"
#. Tag: programlisting
#: gettingstarted.xml:55
-#: gettingstarted.xml:176
+#: gettingstarted.xml:183
#, no-c-format
msgid ""
"<![CDATA[$ cd ~/\n"
@@ -113,8 +113,14 @@
msgid "To install Web Beans, you'll need Ant 1.7.0 installed, and the
<literal>ANT_HOME</literal> environment variable set. For example:"
msgstr "Per installare Web Beans, occorre avere installato Ant 1.7.0, e avere
valorizzato la variabile d'ambiente <literal>ANT_HOME</literal>. Per
esempio:"
+#. Tag: para
+#: gettingstarted.xml:72
+#, no-c-format
+msgid "JBoss 5.1.0 comes with Web Beans built in, so there is no need to update the
server."
+msgstr "JBoss 5.1.0 viene fornito con Web Beans al suo interno, quindi non c'è
bisogno di aggiornare il server."
+
#. Tag: programlisting
-#: gettingstarted.xml:71
+#: gettingstarted.xml:78
#, no-c-format
msgid ""
"$ unzip apache-ant-1.7.0.zip\n"
@@ -124,13 +130,13 @@
"$ export ANT_HOME=~/apache-ant-1.7.0"
#. Tag: para
-#: gettingstarted.xml:73
+#: gettingstarted.xml:80
#, no-c-format
msgid "Then, you can install the update. The update script will use Maven to
download Web Beans automatically."
msgstr "Quindi, è possibile installare gli aggiornamenti. Lo script di aggiornamento
userà Maven per scaricare automaticamente Web Beans."
#. Tag: programlisting
-#: gettingstarted.xml:78
+#: gettingstarted.xml:85
#, no-c-format
msgid ""
"$ cd webbeans-$VERSION/jboss-as\n"
@@ -140,55 +146,55 @@
"$ ant update"
#. Tag: para
-#: gettingstarted.xml:80
+#: gettingstarted.xml:87
#, no-c-format
msgid "Now, you're ready to deploy your first example!"
msgstr "Ora, siete pronti a fare il deploy del primo esempio!"
#. Tag: para
-#: gettingstarted.xml:85
+#: gettingstarted.xml:92
#, no-c-format
msgid "The build scripts for the examples offer a number of targets for JBoss AS,
these are:"
msgstr "Gli script di build degli esempio offrono una quantità di target per JBoss
AS, quali:"
#. Tag: para
-#: gettingstarted.xml:91
+#: gettingstarted.xml:98
#, no-c-format
msgid "<literal>ant restart</literal> - deploy the example in exploded
format"
msgstr "<literal>ant restart</literal> - fa il deploy dell'esempio
in formato esploso"
#. Tag: para
-#: gettingstarted.xml:97
+#: gettingstarted.xml:104
#, no-c-format
msgid "<literal>ant explode</literal> - update an exploded example,
without restarting the deployment"
msgstr "<literal>ant explode</literal> - aggiorna un esempio in formato
esploso, senza riavviare il deploy"
#. Tag: para
-#: gettingstarted.xml:103
+#: gettingstarted.xml:110
#, no-c-format
msgid "<literal>ant deploy</literal> - deploy the example in compressed
jar format"
msgstr "<literal>ant deploy</literal> - fa il deploy dell'esempio in
formato jar compresso"
#. Tag: para
-#: gettingstarted.xml:108
+#: gettingstarted.xml:115
#, no-c-format
msgid "<literal>ant undeploy</literal> - remove the example from the
server"
msgstr "<literal>ant undeploy</literal> - rimuove l'esempio dal
server"
#. Tag: para
-#: gettingstarted.xml:113
+#: gettingstarted.xml:120
#, no-c-format
msgid "<literal>ant clean</literal> - clean the example"
msgstr "<literal>ant clean</literal> - ripulisce l'esempio"
#. Tag: para
-#: gettingstarted.xml:120
+#: gettingstarted.xml:127
#, no-c-format
msgid "To deploy the numberguess example:"
msgstr "Per fare il deploy dell'esempio Indovina Numero:"
#. Tag: programlisting
-#: gettingstarted.xml:124
+#: gettingstarted.xml:131
#, no-c-format
msgid ""
"$ cd examples/numberguess\n"
@@ -198,38 +204,38 @@
"ant deploy"
#. Tag: para
-#: gettingstarted.xml:126
+#: gettingstarted.xml:133
#, no-c-format
msgid "Start JBoss AS:"
msgstr "Avviare JBoss AS:"
#. Tag: programlisting
-#: gettingstarted.xml:130
+#: gettingstarted.xml:137
#, no-c-format
msgid "$ /Application/jboss-5.0.0.GA/bin/run.sh"
msgstr "$ /Application/jboss-5.0.0.GA/bin/run.sh"
#. Tag: para
-#: gettingstarted.xml:133
+#: gettingstarted.xml:140
#, no-c-format
msgid "If you use Windows, use the
<literal>run.bat</literal>script."
msgstr "Se si usa Windows, si usi lo script
<literal>run.bat</literal>."
#. Tag: para
-#: gettingstarted.xml:138
-#: gettingstarted.xml:240
+#: gettingstarted.xml:145
+#: gettingstarted.xml:247
#, no-c-format
msgid "Wait for the application to deploy, and enjoy hours of fun at <ulink
url=\"http://localhost:8080/webbeans-numberguess\"></ulink>!"
msgstr "Attendete che l'applicazione sia installata, e godetevi ore di
divertimento all'indirizzo <ulink
url=\"http://localhost:8080/webbeans-numberguess\"></ulink>!"
#. Tag: para
-#: gettingstarted.xml:143
+#: gettingstarted.xml:150
#, no-c-format
msgid "Web Beans includes a second simple example that will translate your text into
Latin. The numberguess example is a war example, and uses only simple beans; the
translator example is an ear example, and includes enterprise beans, packaged in an EJB
module. To try it out:"
msgstr "Web Beans include un secondo semplice esempio che tradurrà i vostri testi in
Latino. L'esempio Indovina Numero è in formato war, e usa soltanto bean semplici;
l'esempio col traduttore è in formato ear, e include dei bean enterprise, assemblati
in un modulo EJB. Per provarlo:"
#. Tag: programlisting
-#: gettingstarted.xml:150
+#: gettingstarted.xml:157
#, no-c-format
msgid ""
"$ cd examples/translator\n"
@@ -239,25 +245,25 @@
"ant deploy"
#. Tag: para
-#: gettingstarted.xml:152
+#: gettingstarted.xml:159
#, no-c-format
msgid "Wait for the application to deploy, and visit <ulink
url=\"http://localhost:8080/webbeans-translator\"></ulink>!"
msgstr "Attendete che l'applicazione sia installata, e visitate l'indirizzo
<ulink
url=\"http://localhost:8080/webbeans-translator\"></ulink>!"
#. Tag: title
-#: gettingstarted.xml:160
+#: gettingstarted.xml:167
#, no-c-format
msgid "Using Apache Tomcat 6.0"
msgstr "Usare Apache Tomcat 6.0"
#. Tag: para
-#: gettingstarted.xml:162
+#: gettingstarted.xml:169
#, no-c-format
msgid "You'll need to download Tomcat 6.0.18 or later from <ulink
url=\"http://tomcat.apache.org/download-60.cgi\">tomcat.apac...;,
and unzip it. For example:"
msgstr "Scaricare Tomcat 6.0.18 o successivo da <ulink
url=\"http://tomcat.apache.org/download-60.cgi\">tomcat.apac...;,
e scompattarlo. Per esempio"
#. Tag: programlisting
-#: gettingstarted.xml:168
+#: gettingstarted.xml:175
#, no-c-format
msgid ""
"<![CDATA[$ cd /Applications\n"
@@ -267,61 +273,61 @@
"$ unzip ~/apache-tomcat-6.0.18.zip]]>"
#. Tag: para
-#: gettingstarted.xml:178
+#: gettingstarted.xml:185
#, no-c-format
msgid "Next, we need to tell Web Beans where Tomcat is located. Edit
<literal>jboss-as/build.properties</literal> and set the
<literal>tomcat.home</literal> property. For example:"
msgstr "Quindi, occorre indicare a Web Beans dove è stato installato Tomcat.
Modificate il file <literal>jboss-as/build.properties</literal> e valorizzate
la proprietà <literal>tomcat.home</literal>. Per esempio:"
#. Tag: programlisting
-#: gettingstarted.xml:184
+#: gettingstarted.xml:191
#, no-c-format
msgid "tomcat.home=/Applications/apache-tomcat-6.0.18"
msgstr "tomcat.home=/Applications/apache-tomcat-6.0.18"
#. Tag: para
-#: gettingstarted.xml:187
+#: gettingstarted.xml:194
#, no-c-format
msgid "The build scripts for the examples offer a number of targets for Tomcat,
these are:"
msgstr "Gli script di build degli esempi offrono una quantità di target per Tomcat,
quali:"
#. Tag: para
-#: gettingstarted.xml:193
+#: gettingstarted.xml:200
#, no-c-format
msgid "<literal>ant tomcat.restart</literal> - deploy the example in
exploded format"
msgstr "<literal>ant tomcat.restart</literal> - esegue il deploy
dell'esempio in formato esploso"
#. Tag: para
-#: gettingstarted.xml:199
+#: gettingstarted.xml:206
#, no-c-format
msgid "<literal>ant tomcat.explode</literal> - update an exploded
example, without restarting the deployment"
msgstr "<literal>ant tomcat.explode</literal> - aggiorna un esempio in
formato esploso, senza riavviare il deploy"
#. Tag: para
-#: gettingstarted.xml:205
+#: gettingstarted.xml:212
#, no-c-format
msgid "<literal>ant tomcat.deploy</literal> - deploy the example in
compressed jar format"
msgstr "<literal>ant tomcat.deploy</literal> - esegue il deploy
dell'esempio in formato jar compresso"
#. Tag: para
-#: gettingstarted.xml:210
+#: gettingstarted.xml:217
#, no-c-format
msgid "<literal>ant tomcat.undeploy</literal> - remove the example from
the server"
msgstr "<literal>ant tomcat.undeploy</literal> - rimuove l'esempio
dal server"
#. Tag: para
-#: gettingstarted.xml:215
+#: gettingstarted.xml:222
#, no-c-format
msgid "<literal>ant tomcat.clean</literal> - clean the example"
msgstr "<literal>ant tomcat.clean</literal> - ripulisce
l'esempio"
#. Tag: para
-#: gettingstarted.xml:222
+#: gettingstarted.xml:229
#, no-c-format
msgid "To deploy the numberguess example for tomcat:"
msgstr "Per eseguire il deploy dell'esempio Indovina Numero per tomcat:"
#. Tag: programlisting
-#: gettingstarted.xml:226
+#: gettingstarted.xml:233
#, no-c-format
msgid ""
"$ cd examples/tomcat\n"
@@ -331,61 +337,61 @@
"ant tomcat.deploy"
#. Tag: para
-#: gettingstarted.xml:228
+#: gettingstarted.xml:235
#, no-c-format
msgid "Start Tomcat:"
msgstr "Avviare Tomcat:"
#. Tag: programlisting
-#: gettingstarted.xml:232
+#: gettingstarted.xml:239
#, no-c-format
msgid "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
msgstr "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
#. Tag: para
-#: gettingstarted.xml:235
+#: gettingstarted.xml:242
#, no-c-format
msgid "If you use Windows, use the
<literal>startup.bat</literal>script."
msgstr "Se si usa Windows, si usi lo script
<literal>startup.bat</literal>."
#. Tag: title
-#: gettingstarted.xml:248
+#: gettingstarted.xml:255
#, no-c-format
msgid "Using GlassFish"
msgstr "Usare GlassFish"
#. Tag: para
-#: gettingstarted.xml:250
+#: gettingstarted.xml:257
#, no-c-format
msgid "TODO"
msgstr "DA FARE"
#. Tag: title
-#: gettingstarted.xml:254
+#: gettingstarted.xml:261
#, no-c-format
msgid "The numberguess example"
msgstr "Esempio Indovina Numero"
#. Tag: para
-#: gettingstarted.xml:256
+#: gettingstarted.xml:263
#, no-c-format
msgid "In the numberguess application you get given 10 attempts to guess a number
between 1 and 100. After each attempt, you will be told whether you are too high, or too
low."
msgstr "Nell'applicazione Indovina Numero avete a disposizione 10 tentativi per
indovinare un numero tra 1 e 100. Dopo ciascun tentativo, siete informati se siete stati
troppo alti o troppo bassi."
#. Tag: para
-#: gettingstarted.xml:262
+#: gettingstarted.xml:269
#, no-c-format
msgid "The numberguess example is comprised of a number of Web Beans, configuration
files, and Facelet JSF pages, packaged as a war. Let's start with the configuration
files."
msgstr "L'esempio Indovina Numero comprende un certo numero di Web Bean, file
di configurazione e pagine JSF, assemblati in un war. Iniziamo dai file di
configurazione."
#. Tag: para
-#: gettingstarted.xml:268
+#: gettingstarted.xml:275
#, no-c-format
msgid "All the configuration files for this example are located in
<literal>WEB-INF/</literal>, which is stored in
<literal>WebContent</literal> in the source tree. First, we have
<literal>faces-config.xml</literal>, in which we tell JSF to use
Facelets:"
msgstr "Tutti i file di configurazione di questo esempio si trovano in
<literal>WEB-INF/</literal>, che è situato in
<literal>WebContent</literal> nell'albero dei sorgenti. Innanzitutto,
c'è <literal>faces-config.xml</literal>, in cui JSF viene informata di
usare Facelets:"
#. Tag: programlisting
-#: gettingstarted.xml:276
+#: gettingstarted.xml:283
#, no-c-format
msgid ""
"<![CDATA[<?xml version='1.0' encoding='UTF-8'?>\n"
@@ -413,19 +419,19 @@
"</faces-config>]]>"
#. Tag: para
-#: gettingstarted.xml:278
+#: gettingstarted.xml:285
#, no-c-format
msgid "There is an empty <literal>web-beans.xml</literal> file, which
marks this application as a Web Beans application."
msgstr "Vi è un file vuoto <literal>web-beans.xml</literal>, che
identifica l'applicazione come applicazione Web Beans."
#. Tag: para
-#: gettingstarted.xml:283
+#: gettingstarted.xml:290
#, no-c-format
msgid "Finally there is <literal>web.xml</literal>:"
msgstr "Infine c'è <literal>web.xml</literal>:"
#. Tag: section
-#: gettingstarted.xml:285
+#: gettingstarted.xml:292
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"faces.servlet\"
coords=\"12\"/> <area id=\"faces.servlet.mapping\"
coords=\"18\"/> <area id=\"faces.default.suffix\"
coords=\"23\"/> <area id=\"session.timeout\"
coords=\"28\"/> <area id=\"webbeans.listener\"
coords=\"32\"/> </areaspec> <programlisting><![CDATA[<?xml
version=\"1.0\" encoding=\"UTF-8\"?>\n"
@@ -581,13 +587,13 @@
"</html>]]></programlisting> <calloutlist> <callout
arearefs=\"template\"> <para> Facelets is a templating language for
JSF, here we are wrapping our page in a template which defines the header. </para>
</callout> <callout arearefs=\"messages2\"> <para> There are a
number of messages which can be sent to the user, \"Higher!\",
\"Lower!\" and \"Correct!\" </para> </callout> <callout
arearefs=\"instructions\"> <para> As the user guesses, the range of
numbers they can guess gets smaller - this sentance changes to make sure they know what
range to guess in. </para> </callout> <callout
arearefs=\"guess\"> <para> This input field is bound to a Web Bean,
using the value expression. </para> </callout> <callout
arearefs=\"validator\"> <para> A range validator is used to make sure
the user doesn't accidentally input a number outside of the range in which they can
guess - if the validator wasn't here, the user might use up a guess on an out of range
number. </para> </callout> <callout!
arearefs=\"submit\"> <para> And, of course, there must be a way for
the user to send their guess to the server. Here we bind to an action method on the Web
Bean. </para> </callout> </calloutlist> </programlistingco>"
#. Tag: para
-#: gettingstarted.xml:387
+#: gettingstarted.xml:394
#, no-c-format
msgid "The example exists of 4 classes, the first two of which are binding types.
First, there is the <literal>@Random</literal> binding type, used for
injecting a random number:"
msgstr "L'esempio consiste di 4 classi, delle quali le prime due sono tipi di
binding. Innanzitutto, c'è il tipo di binding <literal>@Random</literal>,
usato per iniettare un numero casuale:"
#. Tag: programlisting
-#: gettingstarted.xml:393
+#: gettingstarted.xml:400
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -603,13 +609,13 @@
"public @interface Random {}]]>"
#. Tag: para
-#: gettingstarted.xml:395
+#: gettingstarted.xml:402
#, no-c-format
msgid "There is also the <literal>@MaxNumber</literal> binding type,
used for injecting the maximum number that can be injected:"
msgstr "C'è anche il tipo di binding <literal>@MaxNumber</literal>,
usato per iniettare il numero massimo iniettatabile:"
#. Tag: programlisting
-#: gettingstarted.xml:400
+#: gettingstarted.xml:407
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -627,13 +633,13 @@
"]]>"
#. Tag: para
-#: gettingstarted.xml:402
+#: gettingstarted.xml:409
#, no-c-format
msgid "The <literal>Generator</literal> class is responsible for
creating the random number, via a producer method. It also exposes the maximum possible
number via a producer method:"
msgstr "Alla classe <literal>Generator</literal> è affidata la
generazione del numero casuale, per mezzo di un metodo produttore. Inoltre essa espone il
massimo numero possibile attraverso un metodo produttore:"
#. Tag: programlisting
-#: gettingstarted.xml:408
+#: gettingstarted.xml:415
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -683,25 +689,25 @@
"}]]>"
#. Tag: para
-#: gettingstarted.xml:410
+#: gettingstarted.xml:417
#, no-c-format
msgid "You'll notice that the <literal>Generator</literal> is
application scoped; therefore we don't get a different random each time."
msgstr "E' possibile notare che <literal>Generator</literal> ha
scope applicazione; quindi non si ottiene un diverso numero casuale ogni volta."
#. Tag: para
-#: gettingstarted.xml:415
+#: gettingstarted.xml:422
#, no-c-format
msgid "The final Web Bean in the application is the session scoped
<literal>Game</literal>."
msgstr "Il Web Bean finale nell'applicazione è
<literal>Game</literal> avente scope di sessione."
#. Tag: para
-#: gettingstarted.xml:420
+#: gettingstarted.xml:427
#, no-c-format
msgid "You'll note that we've used the <literal>@Named</literal>
annotation, so that we can use the bean through EL in the JSF page. Finally, we've
used constructor injection to initialize the game with a random number. And of course, we
need to tell the player when they've won, so we give feedback with a
<literal>FacesMessage</literal>."
msgstr "Si noti anche che è stata usata l'annotazione
<literal>@Named</literal>, in modo che sia possibile usare il bean in
espressioni EL presenti nelle pagine JSF. Infine, si è utilizzata l'iniezione del
costruttore per inizializzare il gioco con un numero casuale. E naturalmente, è necessario
dire al giocatore se ha vinto, informazione di feedback che viene fornita con un
<literal>FacesMessage</literal>."
#. Tag: programlisting
-#: gettingstarted.xml:428
+#: gettingstarted.xml:435
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -895,31 +901,31 @@
"}]]>"
#. Tag: title
-#: gettingstarted.xml:431
+#: gettingstarted.xml:438
#, no-c-format
msgid "The numberguess example in Tomcat"
msgstr "Esempio Indovina Numero in Tomcat"
#. Tag: para
-#: gettingstarted.xml:433
+#: gettingstarted.xml:440
#, no-c-format
msgid "The numberguess for Tomcat differs in a couple of ways. Firstly, Web Beans
should be deployed as a Web Application library in
<literal>WEB-INF/lib</literal>. For your convenience we provide a single jar
suitable for running Web Beans in any servlet container
<literal>webbeans-servlet.jar</literal>."
msgstr "L'Indovina Numero per Tomcat differisce in un paio di punti.
Innanzitutto Web Beans dovrebbe essere deployato come libreria Web Application in
<literal>WEB-INF/lib</literal>. Per comodità viene fornito un singolo jar
<literal>webbeans-servlet.jar</literal> per eseguire Web Beans in un qualsiasi
servlet container."
#. Tag: para
-#: gettingstarted.xml:442
+#: gettingstarted.xml:449
#, no-c-format
msgid "Of course, you must also include JSF and EL, as well common annotations
(<literal>jsr250-api.jar</literal>) which a JEE server includes by
default."
msgstr "Certamente occorre anche includere JSF e EL, e le annotazioni comuni
(<literal>jsr250-api.jar</literal>) che un server JEE include di
default."
#. Tag: para
-#: gettingstarted.xml:449
+#: gettingstarted.xml:456
#, no-c-format
msgid "Secondly, we need to explicitly specify the servlet listener (used to boot
Web Beans, and control it's interaction with requests) in
<literal>web.xml</literal>:"
msgstr "In secondo luogo, occorre specificare esplicitamente il servlet listener di
Tomcat (usato per avviare Web Beans, e controllare la sua interazione con le richieste) in
<literal>web.xml</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:455
+#: gettingstarted.xml:462
#, no-c-format
msgid ""
"<![CDATA[<listener>\n"
@@ -931,119 +937,119 @@
"</listener>]]>"
#. Tag: title
-#: gettingstarted.xml:460
+#: gettingstarted.xml:467
#, no-c-format
msgid "The numberguess example for Apache Wicket"
msgstr "Esempio Indovina Numero per Apache Wicket"
#. Tag: para
-#: gettingstarted.xml:461
+#: gettingstarted.xml:468
#, no-c-format
msgid "Whilst JSR-299 specifies integration with Java ServerFaces, Web Beans allows
you to inject into Wicket components, and also allows you to use a conversation context
with Wicket. In this section, we'll walk you through the Wicket version of the
numberguess example."
msgstr "Mentre JSR-299 specifica l'integrazione con Java ServerFaces, Web Beans
consente di iniettare nei componenti Wicket e di usare un contesto conversazione con
Wicket. In questa sezione si analizzerà la versione dell'esempio Indovina Numero per
Wicket."
#. Tag: para
-#: gettingstarted.xml:470
+#: gettingstarted.xml:477
#, no-c-format
msgid "You may want to review the Wicket documentation at <ulink
url=\"http://wicket.apache.org/\">http://wicket.apache.org/&...
msgstr "Per vedere la documentazione Wicket si vada a <ulink
url=\"http://wicket.apache.org/\">http://wicket.apache.org/&...
#. Tag: para
-#: gettingstarted.xml:476
+#: gettingstarted.xml:483
#, no-c-format
msgid "Like the previous example, the Wicket WebBeans examples make use of the
<literal>webbeans-servlet</literal> module. The use of the <ulink
url=\"http://jetty.mortbay.org/\">Jetty servlet container</ulink> is
common in the Wicket community, and is chosen here as the runtime container in order to
facilitate comparison between the standard Wicket examples and these examples, and also to
show how the webbeans-servlet integration is not dependent upon Tomcat as the servlet
container."
msgstr ""
#. Tag: para
-#: gettingstarted.xml:487
+#: gettingstarted.xml:494
#, no-c-format
msgid "These examples make use of the Eclipse IDE; instructions are also given to
deploy the application from the command line."
msgstr ""
#. Tag: title
-#: gettingstarted.xml:493
+#: gettingstarted.xml:500
#, no-c-format
msgid "Creating the Eclipse project"
msgstr "Creazione di un progetto Eclipse"
#. Tag: para
-#: gettingstarted.xml:495
+#: gettingstarted.xml:502
#, no-c-format
msgid "To generate an Eclipse project from the example:"
msgstr "Per generare un progetto Eclipse dall'esempio:"
#. Tag: programlisting
-#: gettingstarted.xml:499
+#: gettingstarted.xml:506
#, no-c-format
msgid ""
"<![CDATA[cd examples/wicket/numberguess\n"
-"mvn eclipse:eclipse]]>"
+"mvn -Pjetty eclipse:eclipse]]>"
msgstr ""
"<![CDATA[cd examples/wicket/numberguess\n"
-"mvn eclipse:eclipse]]>"
+"mvn -Pjetty eclipse:eclipse]]>"
#. Tag: para
-#: gettingstarted.xml:501
+#: gettingstarted.xml:508
#, no-c-format
-msgid "Then, from eclipse, choose <emphasis>File -> Import -> General
-> Existing Projects into Workspace</emphasis>, select the root directory of the
numberguess example, and click finish. This will create a project in your workspace called
<literal>webbeans-wicket-numberguess</literal>"
+msgid "Then, from eclipse, choose <emphasis>File -> Import -> General
-> Existing Projects into Workspace</emphasis>, select the root directory of the
numberguess example, and click finish. Note that if you do not intend to run the example
with jetty from within eclipse, omit the \"-Pjetty.\" This will create a project
in your workspace called <literal>webbeans-wicket-numberguess</literal>"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:516
+#: gettingstarted.xml:524
#, no-c-format
msgid "Running the example from Eclipse"
msgstr "Esecuzione dell'esempio da Eclipse"
#. Tag: para
-#: gettingstarted.xml:518
+#: gettingstarted.xml:526
#, no-c-format
msgid "This project follows the <literal>wicket-quickstart</literal>
approach of creating an instance of Jetty in the <literal>Start</literal>
class. So running the example is as simple as right-clicking on that Start class in
<literal>src/test/java</literal> in the <emphasis>Package
Explorer</emphasis> and choosing <emphasis>Run as Java
Application</emphasis>. You should see console output related to Jetty starting up;
then visit able <literal>http://localhost:8080</literal> to view the app. To
debug choose <emphasis>Debug as Java Application</emphasis>."
msgstr ""
#. Tag: title
-#: gettingstarted.xml:533
+#: gettingstarted.xml:541
#, no-c-format
msgid "Running the example from the command line in JBoss AS or Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:535
+#: gettingstarted.xml:543
#, no-c-format
msgid "This example can also be deployed from the command line in a (similar to the
other examples). Assuming you have set up the
<literal>build.properties</literal> file in the
<literal>examples</literal> directory to specify the location of JBoss AS or
Tomcat, as previously described, you can run <literal>ant deploy</literal>
from the <literal>examples/wicket/numberguess</literal> directory, and access
the application at
<literal>http://localhost:8080/webbeans-numberguess-wicket</literal>."
msgstr ""
#. Tag: title
-#: gettingstarted.xml:549
+#: gettingstarted.xml:557
#, no-c-format
msgid "Understanding the code"
msgstr "Comprendere il codice"
#. Tag: para
-#: gettingstarted.xml:551
+#: gettingstarted.xml:559
#, no-c-format
msgid "JSF uses Unified EL expressions to bind view layer components in JSP or
Facelet views to beans, Wicket defines it's components in Java. The markup is plain
html with a one-to-one mapping between html elements and the view components. All view
logic, including binding of components to models and controlling the response of view
actions, is handled in Java. The integration of Web Beans with Wicket takes advantage of
the same binding annotations used in your business layer to provide injection into your
WebPage subclass (or into other custom wicket component subclasses)."
msgstr ""
#. Tag: para
-#: gettingstarted.xml:563
+#: gettingstarted.xml:571
#, no-c-format
msgid "The code in the wicket numberguess example is very similar to the JSF-based
numberguess example. The business layer is identical!"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:568
+#: gettingstarted.xml:576
#, no-c-format
msgid "Differences are:"
msgstr "Le differenze sono:"
#. Tag: para
-#: gettingstarted.xml:573
+#: gettingstarted.xml:581
#, no-c-format
msgid "Each wicket application must have a
<literal>WebApplication</literal> subclass, In our case, our application class
is <literal>SampleApplication</literal>:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:579
+#: gettingstarted.xml:587
#, no-c-format
msgid ""
"<![CDATA[public class SampleApplication extends WebBeansApplication {\n"
@@ -1061,31 +1067,31 @@
"}]]>"
#. Tag: para
-#: gettingstarted.xml:580
+#: gettingstarted.xml:588
#, no-c-format
msgid "This class specifies which page wicket should treat as our home page, in our
case, <literal>HomePage.class</literal>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:586
+#: gettingstarted.xml:594
#, no-c-format
msgid "In <literal>HomePage</literal> we see typical wicket code to set
up page elements. The bit that is interesting is the injection of the
<literal>Game</literal> bean:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:592
+#: gettingstarted.xml:600
#, no-c-format
msgid "<![CDATA[ @Current Game game;]]>"
msgstr "<![CDATA[ @Current Game game;]]>"
#. Tag: para
-#: gettingstarted.xml:594
+#: gettingstarted.xml:602
#, no-c-format
msgid "The <literal>Game</literal> bean is can then be used, for
example, by the code for submitting a guess:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:599
+#: gettingstarted.xml:607
#, no-c-format
msgid ""
"<![CDATA[final Component guessButton = new AjaxButton(\"GuessButton\")
{ \n"
@@ -1097,31 +1103,31 @@
" if (game.check()) {]]>"
#. Tag: para
-#: gettingstarted.xml:602
+#: gettingstarted.xml:610
#, no-c-format
msgid "All injections may be serialized; actual storage of the bean is managed by
JSR-299. Note that Wicket components, like the HomePage and it subcomponents, are
<emphasis>not</emphasis> JSR-299 beans."
msgstr ""
#. Tag: para
-#: gettingstarted.xml:608
+#: gettingstarted.xml:616
#, no-c-format
msgid "Wicket components allow injection, but they
<emphasis>cannot</emphasis> use interceptors, decorators and lifecycle
callbacks such as <literal>@PostConstruct</literal> or
<literal>@Initializer</literal> methods."
msgstr ""
#. Tag: para
-#: gettingstarted.xml:618
+#: gettingstarted.xml:626
#, no-c-format
msgid "The example uses AJAX for processing of button events, and dynamically hides
buttons that are no longer relevant, for example when the user has won the game."
msgstr ""
#. Tag: para
-#: gettingstarted.xml:626
+#: gettingstarted.xml:634
#, no-c-format
msgid "In order to activate wicket for this webapp, the Wicket filter is added to
web.xml, and our application class is specified:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:631
+#: gettingstarted.xml:639
#, no-c-format
msgid ""
"<![CDATA[<filter>\n"
@@ -1161,73 +1167,73 @@
"</listener>]]>"
#. Tag: para
-#: gettingstarted.xml:632
+#: gettingstarted.xml:640
#, no-c-format
msgid "Note that the servlet listener is also added, as in the Tomcat example, in
order to boostrap Web Beans when Jetty starts, and to hook Web Beans into the Jetty
servlet request and session lifecycles."
msgstr ""
#. Tag: title
-#: gettingstarted.xml:645
+#: gettingstarted.xml:653
#, no-c-format
msgid "The numberguess example for Java SE with Swing"
msgstr "Esempio Indovina Numero per Java SE con Swing"
#. Tag: para
-#: gettingstarted.xml:647
+#: gettingstarted.xml:655
#, no-c-format
msgid "This example can be found in the
<literal>examples/se/numberguess</literal> folder of the Web Beans
distribution."
msgstr ""
#. Tag: para
-#: gettingstarted.xml:654
+#: gettingstarted.xml:662
#, no-c-format
msgid "To run this example:"
msgstr "Per eseguire quest'esempio:"
#. Tag: para
-#: gettingstarted.xml:660
+#: gettingstarted.xml:668
#, no-c-format
msgid "Open a command line/terminal window in the
<literal>examples/se/numberguess</literal> directory"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:666
+#: gettingstarted.xml:674
#, no-c-format
msgid "Ensure that Maven 2 is installed and in your PATH"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:671
+#: gettingstarted.xml:679
#, no-c-format
msgid "Ensure that the <literal>JAVA_HOME</literal> environment variable
is pointing to your JDK installation"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:677
+#: gettingstarted.xml:685
#, no-c-format
msgid "execute the following command"
-msgstr ""
+msgstr "eseguire il seguente comando"
#. Tag: programlisting
-#: gettingstarted.xml:680
+#: gettingstarted.xml:688
#, no-c-format
msgid "mvn -Drun"
msgstr "mvn -Drun"
#. Tag: para
-#: gettingstarted.xml:686
+#: gettingstarted.xml:694
#, no-c-format
msgid "There is an empty <literal>beans.xml</literal> file in the root
package (<literal>src/main/resources/beans.xml</literal>), which marks this
application as a Web Beans application."
msgstr "Vi è un file vuoto <literal>beans.xml</literal> nel pacchetto
radice (<literal>src/main/resources/beans.xml</literal>), che identifica
l'applicazione come applicazione Web Beans."
#. Tag: para
-#: gettingstarted.xml:692
+#: gettingstarted.xml:700
#, no-c-format
msgid "The game's main logic is located in
<literal>Game.java</literal>. Here is the code for that class, highlighting
the changes made from the web application version:"
msgstr ""
#. Tag: section
-#: gettingstarted.xml:696
+#: gettingstarted.xml:704
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"scope\"
coords=\"1\"/> <area id=\"name\" coords=\"1\"/>
<area id=\"messages1\" coords=\"26\"/> <area
id=\"validation\" coords=\"39\"/> <area id=\"reset\"
coords=\"68\"/> </areaspec> <programlisting
role=\"JAVA\"><![CDATA[@ApplicationScoped\n"
@@ -1595,37 +1601,37 @@
"}]]></programlisting> <calloutlist> <callout
arearefs=\"gameIn\"> <para> The injected instance of the game (logic
and state). </para> </callout> <callout
arearefs=\"messagesIn\"> <para> The injected message generator for UI
messages. </para> </callout> <callout arearefs=\"start\">
<para> This application is started in the usual Web Beans SE way, by observing the
<literal>@Deployed Manager</literal> event. </para> </callout>
<callout arearefs=\"init\"> <para> This method initialises all of
the Swing components. Note the use of the <literal>msgGenerator</literal>.
</para> </callout> <callout arearefs=\"guess1\"> <para>
<literal>guessButtonActionPerformed</literal> is called when the
'Guess' button is clicked, and it does the following: </para>
<itemizedlist> <listitem> <para> Gets the guess entered by the user and
sets it as the current guess in the <literal>Game</literal> </para>
</listitem> <listitem> <para> Calls
<literal>game.check()</literal> to validate and perform one!
'turn' of the game </para> </listitem> <listitem> <para>
Calls <literal>refreshUI</literal>. If there were validation errors with the
input, this will have been captured during <literal>game.check()</literal> and
as such will be reflected in the messeges returned by
<literal>MessageGenerator</literal> and subsequently presented to the user. If
there are no validation errors then the user will be told to guess again (higher or lower)
or that the game has ended either in a win (correct guess) or a loss (ran out of guesses).
</para> </listitem> </itemizedlist> </callout> <callout
arearefs=\"replay\"> <para>
<literal>replayBtnActionPerformed</literal> simply calls
<literal>game.reset()</literal> to start a new game and refreshes the messages
in the UI. </para> </callout> <callout arearefs=\"refresh\">
<para> <literal>refreshUI</literal> uses the
<literal>MessageGenerator</literal> to update the messages to the user based
on the current state of the Game. </para> </callout> </c!
alloutlist> </programlistingco>"
#. Tag: title
-#: gettingstarted.xml:904
+#: gettingstarted.xml:912
#, no-c-format
msgid "The translator example"
msgstr "Esempio Traduttore"
#. Tag: para
-#: gettingstarted.xml:906
+#: gettingstarted.xml:914
#, no-c-format
msgid "The translator example will take any sentences you enter, and translate them
to Latin."
msgstr "L'esempio Traduttore prende le frasi che vengono inserite e le traduce
in latino."
#. Tag: para
-#: gettingstarted.xml:911
+#: gettingstarted.xml:919
#, no-c-format
msgid "The translator example is built as an ear, and contains EJBs. As a result,
it's structure is more complex than the numberguess example."
msgstr "L'esempio Traduttore è assemblato in un ear, e contiene EJB. Di
conseguenza, la sua struttura è più complessa di quella dell'esempio Indovina
Numero."
#. Tag: para
-#: gettingstarted.xml:917
+#: gettingstarted.xml:925
#, no-c-format
msgid "EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make
this structure much simpler!"
msgstr "EJB 3.1 and Java EE 6 permettono di assemblare gli EJB in un war, cosa che
rende questa struttura molto più semplice!"
#. Tag: para
-#: gettingstarted.xml:923
+#: gettingstarted.xml:931
#, no-c-format
msgid "First, let's take a look at the ear aggregator, which is located in
<literal>webbeans-translator-ear</literal> module. Maven automatically
generates the <literal>application.xml</literal> for us:"
msgstr "Innanzitutto, diamo un'occhiata all'aggregatore ear, che è situato
nel modulo <literal>webbeans-translator-ear</literal>. Maven genera
automaticamente il file <literal>application.xml</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:929
+#: gettingstarted.xml:937
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -1657,19 +1663,19 @@
"</plugin>]]>"
#. Tag: para
-#: gettingstarted.xml:931
+#: gettingstarted.xml:939
#, no-c-format
msgid "Here we set the context path, which gives us a nice url (<ulink
url=\"http://localhost:8080/webbeans-translator\">http://localhost:8080/webbeans-translator</ulink>)."
msgstr "Qua viene impostato il context path, in modo da avere un url gradevole
(<ulink
url=\"http://localhost:8080/webbeans-translator\">http://localhost:8080/webbeans-translator</ulink>)."
#. Tag: para
-#: gettingstarted.xml:937
+#: gettingstarted.xml:945
#, no-c-format
msgid "If you aren't using Maven to generate these files, you would need
<literal>META-INF/application.xml</literal>:"
msgstr "Se non si sta usando Maven per generare questi file, sarebbe necessario
avere il file <literal>META-INF/application.xml</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:942
+#: gettingstarted.xml:950
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\"
encoding=\"UTF-8\"?>\n"
@@ -1711,19 +1717,19 @@
"</application>]]>"
#. Tag: para
-#: gettingstarted.xml:945
+#: gettingstarted.xml:953
#, no-c-format
msgid "Next, lets look at the war. Just as in the numberguess example, we have a
<literal>faces-config.xml</literal> (to enable Facelets) and a
<literal>web.xml</literal> (to enable JSF) in
<literal>WebContent/WEB-INF</literal>."
msgstr "Quindi, esaminiamo il war. Proprio come nell'esempio Indovina Numero,
abbiamo un <literal>faces-config.xml</literal> (per abilitare Facelets) e un
<literal>web.xml</literal> (per abilitare JSF) in
<literal>WebContent/WEB-INF</literal>."
#. Tag: para
-#: gettingstarted.xml:952
+#: gettingstarted.xml:960
#, no-c-format
msgid "More intersting is the facelet used to translate text. Just as in the
numberguess example we have a template, which surrounds the form (ommitted here for
brevity):"
msgstr "Più interessante è il facelet usato per tradurre il testo. Proprio come
nell'esempio Indovina Numero c'è un template, che circoscrive la form (qui omessa
per brevità):"
#. Tag: programlisting
-#: gettingstarted.xml:958
+#: gettingstarted.xml:966
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -1779,31 +1785,31 @@
"</h:form>]]>"
#. Tag: para
-#: gettingstarted.xml:960
+#: gettingstarted.xml:968
#, no-c-format
msgid "The user can enter some text in the lefthand textarea, and hit the translate
button to see the result to the right."
msgstr "L'utente può inserire del testo nell'area di testo sulla sinistra e
premere il pulsante di traduzione per vedere il risultato sulla destra."
#. Tag: para
-#: gettingstarted.xml:965
+#: gettingstarted.xml:973
#, no-c-format
msgid "Finally, let's look at the ejb module,
<literal>webbeans-translator-ejb</literal>. In
<literal>src/main/resources/META-INF</literal> there is just an empty
<literal>web-beans.xml</literal>, used to mark the archive as containing Web
Beans."
msgstr "Infine, si esamini il modulo ejb,
<literal>webbeans-translator-ejb</literal>. In
<literal>src/main/resources/META-INF</literal> si trova un file vuoto
<literal>web-beans.xml</literal>, usato per marcare l'archivio come
contenente Web Beans."
#. Tag: para
-#: gettingstarted.xml:973
+#: gettingstarted.xml:981
#, no-c-format
msgid "We've saved the most interesting bit to last, the code! The project has
two simple beans, <literal>SentenceParser</literal> and
<literal>TextTranslator</literal> and two enterprise beans,
<literal>TranslatorControllerBean</literal> and
<literal>SentenceTranslator</literal>. You should be getting quite familiar
with what a Web Bean looks like by now, so we'll just highlight the most interesting
bits here."
msgstr "Abbiamo lasciato per ultimo il boccone più prelibato, il codice! Il progetto
ha due bean semplici, <literal>SentenceParser</literal> e
<literal>TextTranslator</literal> e due bean enterprise,
<literal>TranslatorControllerBean</literal> e
<literal>SentenceTranslator</literal>. Dovreste ormai essere piuttosto
familiari all'aspetto di un Web Bean, così ci limiteremo a evidenziare le parti più
interessanti."
#. Tag: para
-#: gettingstarted.xml:983
+#: gettingstarted.xml:991
#, no-c-format
msgid "Both <literal>SentenceParser</literal> and
<literal>TextTranslator</literal> are dependent beans, and
<literal>TextTranslator</literal> uses constructor initialization:"
msgstr "Sia <literal>SentenceParser</literal> che
<literal>TextTranslator</literal> sono bean dependenti, e
<literal>TextTranslator</literal> usa l'inizializzazione via
costruttore:"
#. Tag: programlisting
-#: gettingstarted.xml:989
+#: gettingstarted.xml:997
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -1827,7 +1833,7 @@
" this.sentenceTranslator = sentenceTranslator;]]>"
#. Tag: para
-#: gettingstarted.xml:991
+#: gettingstarted.xml:999
#, no-c-format
msgid "<literal>TextTranslator</literal> is a stateless bean (with a
local business interface), where the magic happens - of course, we couldn't develop a
full translator, but we gave it a good go!"
msgstr "<literal>TextTranslator</literal> è un bean stateless (con
un'interfaccia business locale), dove avviene la magia - naturalmente, non potevamo
sviluppare un traduttore completo, ma gli abbiamo dato un buon avvio!"
@@ -1836,13 +1842,13 @@
# se è request scoped come può essere statefull session??????
# vuol dire che è un bean che sta nella sessione ma certe variabili le piglia dalla
richiesta e ogni richiesta vede le proprie?????
#. Tag: para
-#: gettingstarted.xml:997
+#: gettingstarted.xml:1005
#, no-c-format
msgid "Finally, there is UI orientated controller, that collects the text from the
user, and dispatches it to the translator. This is a request scoped, named, stateful
session bean, which injects the translator."
msgstr "Infine, vi è un controller orientato all'UI, che raccoglie il testo
dall'utente, e lo invia al traduttore. Questo è un bean stateful di sessione, dotato
di nome, con scope richiesta, in cui viene iniettato il traduttore."
#. Tag: programlisting
-#: gettingstarted.xml:1003
+#: gettingstarted.xml:1011
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -1862,19 +1868,19 @@
" @Current TextTranslator translator;]]>"
#. Tag: para
-#: gettingstarted.xml:1005
+#: gettingstarted.xml:1013
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr "Il bean possiede pure dei metodi getter e setter per tutti i campi della
pagina."
#. Tag: para
-#: gettingstarted.xml:1009
+#: gettingstarted.xml:1017
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr "Poichè si tratta di un bean stateful di sessione, è necessario un metodo di
rimozione (remove method):"
#. Tag: programlisting
-#: gettingstarted.xml:1013
+#: gettingstarted.xml:1021
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -1890,19 +1896,19 @@
" }]]>"
#. Tag: para
-#: gettingstarted.xml:1015
+#: gettingstarted.xml:1023
#, no-c-format
msgid "The Web Beans manager will call the remove method for you when the bean is
destroyed; in this case at the end of the request."
msgstr "Il manager Web Beans chiamerà il metodo di rimozione quando il bean verrà
distrutto; in questo caso al termine della richiesta."
#. Tag: para
-#: gettingstarted.xml:1021
+#: gettingstarted.xml:1029
#, no-c-format
msgid "That concludes our short tour of the Web Beans examples. For more on Web
Beans , or to help out, please visit <ulink
url=\"http://www.seamframework.org/WebBeans/Development\">ht...
msgstr "Ciò conclude il nostro breve tour degli esempi della RI di Web Beans. Per
saperne di più, o per trovare ulteriore aiuto, per favore visitate <ulink
url=\"http://www.seamframework.org/WebBeans/Development\">ht...
#. Tag: para
-#: gettingstarted.xml:1027
+#: gettingstarted.xml:1035
#, no-c-format
msgid "We need help in all areas - bug fixing, writing new features, writing
examples and translating this reference guide."
msgstr "Abbiamo bisogno di aiuto in tutte le aree - soluzione dei bug, scrittura di
nuove caratteristiche ed esempi e traduzione di questa guida."
Modified: doc/trunk/reference/it-IT/producermethods.po
===================================================================
--- doc/trunk/reference/it-IT/producermethods.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/it-IT/producermethods.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2009-03-31 11:05+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
@@ -41,94 +41,29 @@
msgid "According to the spec:"
msgstr "Secondo la specifica:"
-#. Tag: para
-#: producermethods.xml:16
+#. Tag: chapter
+#: producermethods.xml:12
#, no-c-format
msgid ""
-"A Web Beans producer method acts as a source of objects to be injected, "
-"where:"
-msgstr ""
-"Un metodo produttore Web Beans agisce come sorgente di oggetti da iniettare,
"
-"dove:"
-
-#. Tag: para
-#: producermethods.xml:20
-#, no-c-format
-msgid ""
-"the objects to be injected are not required to be instances of Web Beans,"
-msgstr "gli oggetti da iniettare non sono richiesti come istanze di Web
Beans,"
-
-#. Tag: para
-#: producermethods.xml:23
-#, no-c-format
-msgid "the concrete type of the objects to be injected may vary at runtime or"
-msgstr "il tipo concreto di oggetti da iniettare può variare a runtime o"
-
-#. Tag: para
-#: producermethods.xml:26
-#, no-c-format
-msgid ""
-"the objects require some custom initialization that is not performed by the "
-"Web Bean constructor"
-msgstr ""
-"gli oggetti richiedono alcune inizializzazioni personalizzate che non "
-"vengono eseguite da costruttore Web Bean"
-
-#. Tag: para
-#: producermethods.xml:33
-#, no-c-format
-msgid "For example, producer methods let us:"
-msgstr "Per esempio, i metodi produttori consentono di:"
-
-#. Tag: para
-#: producermethods.xml:37
-#, no-c-format
-msgid "expose a JPA entity as a Web Bean,"
-msgstr "espone un entity JPA come Web Bean,"
-
-#. Tag: para
-#: producermethods.xml:40
-#, no-c-format
-msgid "expose any JDK class as a Web Bean,"
-msgstr "espone qualsiasi classe JDK come Web Bean,"
-
-#. Tag: para
-#: producermethods.xml:43
-#, no-c-format
-msgid ""
-"define multiple Web Beans, with different scopes or initialization, for the "
-"same implementation class, or"
-msgstr ""
-"definisce più Web Bean con differenti scope o inizializzazioni, per la "
-"stessa classe di implementazione, o"
-
-#. Tag: para
-#: producermethods.xml:47
-#, no-c-format
-msgid "vary the implementation of an API type at runtime."
-msgstr "varia l'implementazione di un tipo di API a runtime."
-
-#. Tag: para
-#: producermethods.xml:51
-#, no-c-format
-msgid ""
-"In particular, producer methods let us use runtime polymorphism with Web "
-"Beans. As we've seen, deployment types are a powerful solution to the "
-"problem of deployment-time polymorphism. But once the system is deployed, "
-"the Web Bean implementation is fixed. A producer method has no such "
-"limitation:"
-msgstr ""
-"In particolare i metodi produttori consentono l'uso del polimorfismo a "
-"runtime con Web Beans. Come visto, i tipi di deploy sono soluzioni potenti "
-"al problema del polimorfismo a deployment-time. Ma una volta che il sistema "
-"è deployato, l'implementazione Web Bean è sistemata. Un metodo produttore
"
-"non ha tali limitazioni:"
-
-#. Tag: programlisting
-#: producermethods.xml:56
-#, no-c-format
-msgid ""
-"<![CDATA[@SessionScoped\n"
+"<blockquote> <para>A Web Beans producer method acts as a source of
objects "
+"to be injected, where:</para> <itemizedlist> <listitem>
<para>the objects to "
+"be injected are not required to be instances of Web Beans,</para>
</"
+"listitem> <listitem> <para>the concrete type of the objects to be
injected "
+"may vary at runtime or</para> </listitem> <listitem>
<para>the objects "
+"require some custom initialization that is not performed by the Web Bean "
+"constructor</para> </listitem> </itemizedlist>
</blockquote> <para>For "
+"example, producer methods let us:</para> <itemizedlist>
<listitem> "
+"<para>expose a JPA entity as a Web Bean,</para> </listitem>
<listitem> "
+"<para>expose any JDK class as a Web Bean,</para> </listitem>
<listitem> "
+"<para>define multiple Web Beans, with different scopes or initialization,
"
+"for the same implementation class, or</para> </listitem>
<listitem> "
+"<para>vary the implementation of an API type at runtime.</para>
</listitem> "
+"</itemizedlist> <para>In particular, producer methods let us use
runtime "
+"polymorphism with Web Beans. As we've seen, deployment types are a powerful
"
+"solution to the problem of deployment-time polymorphism. But once the system
"
+"is deployed, the Web Bean implementation is fixed. A producer method has no "
+"such limitation:</para> <programlisting
role=\"JAVA\"><![CDATA"
+"[@SessionScoped\n"
"public class Preferences {\n"
" \n"
" private PaymentStrategyType paymentStrategy;\n"
@@ -145,9 +80,34 @@
" } \n"
" }\n"
" \n"
-"}]]>"
+"}]]></programlisting> <para>Consider an injection
point:</para> "
+"<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
+"paymentStrat;]]></programlisting> <para>This injection point has the
same "
+"type and binding annotations as the producer method, so it resolves to the "
+"producer method using the usual Web Beans injection rules. The producer "
+"method will be called by the Web Bean manager to obtain an instance to "
+"service this injection point.</para>."
msgstr ""
-"<![CDATA[@SessionScoped\n"
+"<blockquote> <para>Un metodo produttore Web Bean agisce come sorgente
di "
+"oggetti da iniettare, dove:</para> <itemizedlist> <listitem>
<para>gli "
+"oggetti da iniettare non è richiesto siano istanze di Web Beans,</para>
</"
+"listitem> <listitem> <para>il tipo concreto di oggetti da iniettare
può "
+"variare a runtime o</para> </listitem> <listitem> <para>gli
oggetti "
+"richiedono alcune inizializzazini personalizzate che non vengono eseguite "
+"dal costruttore Web Bean</para> </listitem> </itemizedlist>
</blockquote> "
+"<para>Per esempio un metodo produttore consente di:</para>
<itemizedlist> "
+"<listitem> <para>esporre un entity JPA comeWeb Bean,</para>
</listitem> "
+"<listitem> <para>esporre qualsiasi classe JDK comeWeb
Bean,</para> </"
+"listitem> <listitem> <para>definire Web Beans multipli, con scope o
"
+"inizializzazione differenti, per la stessa implementazionedi classe, o</"
+"para> </listitem> <listitem> <para>variare
l'implementazione di un tipo di "
+"API a runtime</para> </listitem> </itemizedlist> <para>In
particolare, i "
+"metodi produttori consentono di usare un polimorfismo a runtime con i Web "
+"Beans. Come visto, i tipi di deploy sono soluzioni al problema del "
+"polimorfismo durante la fase di deploy. Ma una volta che il sistema viene "
+"deployato, l'implementazione del Web Bean viene fissata. Un metodo "
+"produttore non ha questi limiti:</para> <programlisting
role=\"JAVA\"><!"
+"[CDATA[@SessionScoped\n"
"public class Preferences {\n"
" \n"
" private PaymentStrategyType paymentStrategy;\n"
@@ -164,41 +124,14 @@
" } \n"
" }\n"
" \n"
-"}]]>"
+"}]]></programlisting> <para>Si consideri un punto di
iniezione:</para> "
+"<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
+"paymentStrat;]]></programlisting> <para>Questo punto di iniezione ha
lo "
+"stesso tipo e annotazioni di binding del metodo produttore, e quindi risolve
"
+"i metodi produttori usando le regole di iniezione dei Web Beans. Il metodo "
+"produttore verrà chiamato dal manager Web Bean per ottenere un'istanza per
"
+"servire questo punto di iniezione.</para>"
-#. Tag: para
-#: producermethods.xml:58
-#, no-c-format
-msgid "Consider an injection point:"
-msgstr "Si consideri un punto di iniezione:"
-
-#. Tag: programlisting
-#: producermethods.xml:60
-#, no-c-format
-msgid "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
-msgstr "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
-
-#. Tag: para
-#: producermethods.xml:62
-#, no-c-format
-msgid ""
-"This injection point has the same type and binding annotations as the "
-"producer method, so it resolves to the producer method using the usual Web "
-"Beans injection rules. The producer method will be called by the Web Bean "
-"manager to obtain an instance to service this injection point."
-msgstr ""
-"Il punto di iniezione ha lo stesso tipo e le stesse annotazioni di binding "
-"del metodo produttore, e quindi risolve il metodo produttore usando le "
-"solite regole di iniezione Web Beans. Il metodo produttore verrà chiamato "
-"dal manager Web Bean per ottenere un'istanza per servire questo punto di
"
-"iniezione:"
-
-#. Tag: chapter
-#: producermethods.xml:65
-#, no-c-format
-msgid "<chapter>.</chapter>"
-msgstr "<chapter>.</chapter>"
-
#. Tag: title
#: producermethods.xml:68
#, no-c-format
@@ -427,25 +360,62 @@
"<literal>Preferences</literal> non viene distrutto, cioè a fine
sessione."
#~ msgid ""
-#~ "<blockquote> <para>A Web Beans producer method acts as a source of
"
-#~ "objects to be injected, where:</para> <itemizedlist>
<listitem> <para>the "
-#~ "objects to be injected are not required to be instances of Web
Beans,</"
-#~ "para> </listitem> <listitem> <para>the concrete type of the
objects to be "
-#~ "injected may vary at runtime or</para> </listitem> <listitem>
<para>the "
-#~ "objects require some custom initialization that is not performed by the "
-#~ "Web Bean constructor</para> </listitem> </itemizedlist>
</blockquote> "
-#~ "<para>For example, producer methods let us:</para>
<itemizedlist> "
-#~ "<listitem> <para>expose a JPA entity as a Web Bean,</para>
</listitem> "
-#~ "<listitem> <para>expose any JDK class as a Web Bean,</para>
</listitem> "
-#~ "<listitem> <para>define multiple Web Beans, with different scopes or
"
-#~ "initialization, for the same implementation class, or</para>
</listitem> "
-#~ "<listitem> <para>vary the implementation of an API type at
runtime.</"
-#~ "para> </listitem> </itemizedlist> <para>In particular,
producer methods "
-#~ "let us use runtime polymorphism with Web Beans. As we've seen, deployment
"
-#~ "types are a powerful solution to the problem of deployment-time "
-#~ "polymorphism. But once the system is deployed, the Web Bean "
-#~ "implementation is fixed. A producer method has no such limitation:</para>
"
-#~ "<programlisting
role=\"JAVA\"><![CDATA[@SessionScoped\n"
+#~ "A Web Beans producer method acts as a source of objects to be injected, "
+#~ "where:"
+#~ msgstr ""
+#~ "Un metodo produttore Web Beans agisce come sorgente di oggetti da "
+#~ "iniettare, dove:"
+
+#~ msgid ""
+#~ "the objects to be injected are not required to be instances of Web Beans,"
+#~ msgstr ""
+#~ "gli oggetti da iniettare non sono richiesti come istanze di Web Beans,"
+
+#~ msgid ""
+#~ "the concrete type of the objects to be injected may vary at runtime or"
+#~ msgstr "il tipo concreto di oggetti da iniettare può variare a runtime o"
+
+#~ msgid ""
+#~ "the objects require some custom initialization that is not performed by "
+#~ "the Web Bean constructor"
+#~ msgstr ""
+#~ "gli oggetti richiedono alcune inizializzazioni personalizzate che non "
+#~ "vengono eseguite da costruttore Web Bean"
+
+#~ msgid "For example, producer methods let us:"
+#~ msgstr "Per esempio, i metodi produttori consentono di:"
+
+#~ msgid "expose a JPA entity as a Web Bean,"
+#~ msgstr "espone un entity JPA come Web Bean,"
+
+#~ msgid "expose any JDK class as a Web Bean,"
+#~ msgstr "espone qualsiasi classe JDK come Web Bean,"
+
+#~ msgid ""
+#~ "define multiple Web Beans, with different scopes or initialization, for "
+#~ "the same implementation class, or"
+#~ msgstr ""
+#~ "definisce più Web Bean con differenti scope o inizializzazioni, per la "
+#~ "stessa classe di implementazione, o"
+
+#~ msgid "vary the implementation of an API type at runtime."
+#~ msgstr "varia l'implementazione di un tipo di API a runtime."
+
+#~ msgid ""
+#~ "In particular, producer methods let us use runtime polymorphism with Web "
+#~ "Beans. As we've seen, deployment types are a powerful solution to the
"
+#~ "problem of deployment-time polymorphism. But once the system is deployed,
"
+#~ "the Web Bean implementation is fixed. A producer method has no such "
+#~ "limitation:"
+#~ msgstr ""
+#~ "In particolare i metodi produttori consentono l'uso del polimorfismo a
"
+#~ "runtime con Web Beans. Come visto, i tipi di deploy sono soluzioni "
+#~ "potenti al problema del polimorfismo a deployment-time. Ma una volta che "
+#~ "il sistema è deployato, l'implementazione Web Bean è sistemata. Un metodo
"
+#~ "produttore non ha tali limitazioni:"
+
+#~ msgid ""
+#~ "<![CDATA[@SessionScoped\n"
#~ "public class Preferences {\n"
#~ " \n"
#~ " private PaymentStrategyType paymentStrategy;\n"
@@ -462,34 +432,9 @@
#~ " } \n"
#~ " }\n"
#~ " \n"
-#~ "}]]></programlisting> <para>Consider an injection
point:</para> "
-#~ "<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
-#~ "paymentStrat;]]></programlisting> <para>This injection point has
the same "
-#~ "type and binding annotations as the producer method, so it resolves to "
-#~ "the producer method using the usual Web Beans injection rules. The "
-#~ "producer method will be called by the Web Bean manager to obtain an "
-#~ "instance to service this injection point.</para>."
+#~ "}]]>"
#~ msgstr ""
-#~ "<blockquote> <para>Un metodo produttore Web Bean agisce come
sorgente di "
-#~ "oggetti da iniettare, dove:</para> <itemizedlist> <listitem>
<para>gli "
-#~ "oggetti da iniettare non è richiesto siano istanze di Web Beans,</para>
</"
-#~ "listitem> <listitem> <para>il tipo concreto di oggetti da
iniettare può "
-#~ "variare a runtime o</para> </listitem> <listitem>
<para>gli oggetti "
-#~ "richiedono alcune inizializzazini personalizzate che non vengono eseguite
"
-#~ "dal costruttore Web Bean</para> </listitem> </itemizedlist>
</blockquote> "
-#~ "<para>Per esempio un metodo produttore consente di:</para>
<itemizedlist> "
-#~ "<listitem> <para>esporre un entity JPA comeWeb Bean,</para>
</listitem> "
-#~ "<listitem> <para>esporre qualsiasi classe JDK comeWeb
Bean,</para> </"
-#~ "listitem> <listitem> <para>definire Web Beans multipli, con scope
o "
-#~ "inizializzazione differenti, per la stessa implementazionedi classe,
o</"
-#~ "para> </listitem> <listitem> <para>variare
l'implementazione di un tipo "
-#~ "di API a runtime</para> </listitem> </itemizedlist>
<para>In particolare, "
-#~ "i metodi produttori consentono di usare un polimorfismo a runtime con i "
-#~ "Web Beans. Come visto, i tipi di deploy sono soluzioni al problema del "
-#~ "polimorfismo durante la fase di deploy. Ma una volta che il sistema viene
"
-#~ "deployato, l'implementazione del Web Bean viene fissata. Un metodo "
-#~ "produttore non ha questi limiti:</para> <programlisting
role=\"JAVA\"><!"
-#~ "[CDATA[@SessionScoped\n"
+#~ "<![CDATA[@SessionScoped\n"
#~ "public class Preferences {\n"
#~ " \n"
#~ " private PaymentStrategyType paymentStrategy;\n"
@@ -506,10 +451,25 @@
#~ " } \n"
#~ " }\n"
#~ " \n"
-#~ "}]]></programlisting> <para>Si consideri un punto di
iniezione:</para> "
-#~ "<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
-#~ "paymentStrat;]]></programlisting> <para>Questo punto di iniezione
ha lo "
-#~ "stesso tipo e annotazioni di binding del metodo produttore, e quindi "
-#~ "risolve i metodi produttori usando le regole di iniezione dei Web Beans. "
-#~ "Il metodo produttore verrà chiamato dal manager Web Bean per ottenere "
-#~ "un'istanza per servire questo punto di iniezione.</para>"
+#~ "}]]>"
+
+#~ msgid "Consider an injection point:"
+#~ msgstr "Si consideri un punto di iniezione:"
+
+#~ msgid "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
+#~ msgstr "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
+
+#~ msgid ""
+#~ "This injection point has the same type and binding annotations as the "
+#~ "producer method, so it resolves to the producer method using the usual "
+#~ "Web Beans injection rules. The producer method will be called by the Web "
+#~ "Bean manager to obtain an instance to service this injection point."
+#~ msgstr ""
+#~ "Il punto di iniezione ha lo stesso tipo e le stesse annotazioni di "
+#~ "binding del metodo produttore, e quindi risolve il metodo produttore "
+#~ "usando le solite regole di iniezione Web Beans. Il metodo produttore "
+#~ "verrà chiamato dal manager Web Bean per ottenere un'istanza per servire
"
+#~ "questo punto di iniezione:"
+
+#~ msgid "<chapter>.</chapter>"
+#~ msgstr "<chapter>.</chapter>"
Modified: doc/trunk/reference/ja-JP/environments.po
===================================================================
--- doc/trunk/reference/ja-JP/environments.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/ja-JP/environments.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
"Project-Id-Version: Web_Beans:_Java_Contexts_and_Dependency_Injection "
"VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2009-03-28 17:09+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -84,7 +84,7 @@
#. Tag: title
#: environments.xml:47
#, no-c-format
-msgid "Glassfish"
+msgid "GlassFish"
msgstr ""
#. Tag: para
@@ -122,9 +122,9 @@
msgid ""
"Web Beans should be used as a web application library in a servlet "
"container. You should place <literal>webbeans-servlet.jar</literal> in
"
-"<literal>WEB-INF/lib</literal>.
<literal>webbeans-serv;et.jar</literal> is "
-"an \"uber-jar\" provided for your convenience. Instead, you could use its
"
-"component jars:"
+"<literal>WEB-INF/lib</literal>.
<literal>webbeans-servlet.jar</literal> is "
+"an \"uber-jar\" provided for your convenience. Alternatively, you could
use "
+"its component jars:"
msgstr ""
#. Tag: literal
@@ -205,45 +205,46 @@
#, no-c-format
msgid ""
"Tomcat has a read-only JNDI, so Web Beans can't automatically bind the "
-"Manager. To bind the Manager into JNDI, you should add the following to your
"
-"<literal>META-INF/context.xml</literal>:"
+"Manager. To bind the Manager into JNDI, you should populate
<literal>META-"
+"INF/context.xml</literal> with the following contents:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:134
+#: environments.xml:135
#, no-c-format
msgid ""
-"<![CDATA[<Resource name=\"app/Manager\" \n"
-" auth=\"Container\"\n"
-" type=\"javax.inject.manager.Manager\"\n"
-"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
-"]]>"
+"<![CDATA[<Context>\n"
+" <Resource name=\"app/Manager\" \n"
+" auth=\"Container\"\n"
+" type=\"javax.inject.manager.Manager\"\n"
+"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
+"</Context>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:136
+#: environments.xml:137
#, no-c-format
msgid ""
-"and make it available to your deployment by adding this to
<literal>web.xml</"
-"literal>:"
+"and make it available to your deployment by adding this to the bottom of "
+"<literal>web.xml</literal>:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:141
+#: environments.xml:142
#, no-c-format
msgid ""
"<![CDATA[<resource-env-ref>\n"
-" <resource-env-ref-name>\n"
-" app/Manager\n"
-" </resource-env-ref-name>\n"
-" <resource-env-ref-type>\n"
-" javax.inject.manager.Manager\n"
-" </resource-env-ref-type>\n"
+" <resource-env-ref-name>\n"
+" app/Manager\n"
+" </resource-env-ref-name>\n"
+" <resource-env-ref-type>\n"
+" javax.inject.manager.Manager\n"
+" </resource-env-ref-type>\n"
"</resource-env-ref>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:143
+#: environments.xml:144
#, no-c-format
msgid ""
"Tomcat only allows you to bind entries to
<literal>java:comp/env</literal>, "
@@ -252,7 +253,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:149
+#: environments.xml:150
#, no-c-format
msgid ""
"Web Beans also supports Servlet injection in Tomcat. To enable this, place "
@@ -262,21 +263,84 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:156
+#: environments.xml:157
#, no-c-format
msgid ""
"<![CDATA[<Listener
className=\"org.jboss.webbeans.environment.tomcat."
-"WebBeansLifecycleListener\" />]]>"
+"WebBeansLifecycleListener\"/>]]>"
msgstr ""
#. Tag: title
-#: environments.xml:163
+#: environments.xml:162
#, no-c-format
+msgid "Jetty"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:164
+#, no-c-format
+msgid ""
+"Like Tomcat, Jetty has a read-only JNDI, so Web Beans can't automatically
"
+"bind the Manager. To bind the Manager to JNDI, you should populate "
+"<literal>WEB-INF/jetty-env.xml</literal> with the following
contents:"
+msgstr ""
+
+#. Tag: programlisting
+#: environments.xml:171
+#, no-c-format
+msgid ""
+"<![CDATA[<!DOCTYPE Configure PUBLIC \"-//Mort Bay Consulting//DTD
Configure//"
+"EN\"\n"
+" \"http://jetty.mortbay.org/configure.dtd\">\n"
+"<Configure id=\"webAppCtx\"
class=\"org.mortbay.jetty.webapp.WebAppContext"
+"\">\n"
+" <New id=\"appManager\"
class=\"org.mortbay.jetty.plus.naming.Resource\">\n"
+" <Arg><Ref id=\"webAppCtx\"/></Arg> \n"
+" <Arg>app/Manager</Arg>\n"
+" <Arg>\n"
+" <New class=\"javax.naming.Reference\">\n"
+" <Arg>javax.inject.manager.Manager</Arg> \n"
+"
<Arg>org.jboss.webbeans.resources.ManagerObjectFactory</Arg>\n"
+" <Arg/>\n"
+" </New>\n"
+" </Arg>\n"
+" </New>\n"
+"</Configure>]]>"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:173
+#, no-c-format
+msgid ""
+"Notice that Jetty doesn't not have built-in support for an
<literal>javax."
+"naming.spi.ObjectFactory</literal> like Tomcat, so it's necessary to
"
+"manually create the <literal>javax.naming.Reference</literal> to wrap
around "
+"it."
+msgstr ""
+
+#. Tag: para
+#: environments.xml:180
+#, no-c-format
+msgid ""
+"Jetty only allows you to bind entries to
<literal>java:comp/env</literal>, "
+"so the Manager will be available at
<literal>java:comp/env/app/Manager</"
+"literal>"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:186
+#, no-c-format
+msgid "Web Beans does not currently support Servlet injection in Jetty."
+msgstr ""
+
+#. Tag: title
+#: environments.xml:195
+#, no-c-format
msgid "Java SE"
msgstr ""
#. Tag: para
-#: environments.xml:165
+#: environments.xml:197
#, no-c-format
msgid ""
"Apart from improved integration of the Enterprise Java stack, Web Beans also
"
@@ -288,7 +352,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:173
+#: environments.xml:205
#, no-c-format
msgid ""
"When executing in the SE environment the following features of Web Beans are
"
@@ -296,49 +360,55 @@
msgstr ""
#. Tag: literal
-#: environments.xml:179
+#: environments.xml:211
#, no-c-format
msgid "Simple Web Beans (POJOs)"
msgstr ""
#. Tag: literal
-#: environments.xml:184
+#: environments.xml:216
#, no-c-format
msgid "Typesafe Dependency Injection"
msgstr ""
#. Tag: literal
-#: environments.xml:189
+#: environments.xml:221
#, no-c-format
msgid "Application and Dependent Contexts"
msgstr ""
#. Tag: literal
-#: environments.xml:194
+#: environments.xml:226
#, no-c-format
msgid "Binding Types"
msgstr ""
#. Tag: literal
-#: environments.xml:199
+#: environments.xml:231
#, no-c-format
+msgid "Deployment Types"
+msgstr ""
+
+#. Tag: literal
+#: environments.xml:236
+#, no-c-format
msgid "Stereotypes"
msgstr ""
#. Tag: literal
-#: environments.xml:204
+#: environments.xml:241
#, no-c-format
msgid "Typesafe Event Model"
msgstr ""
#. Tag: title
-#: environments.xml:210
+#: environments.xml:247
#, no-c-format
msgid "Web Beans SE Module"
msgstr ""
#. Tag: para
-#: environments.xml:212
+#: environments.xml:249
#, no-c-format
msgid ""
"To make life easy for developers Web Beans provides a special module with a "
@@ -351,7 +421,7 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:221
+#: environments.xml:258
#, no-c-format
msgid ""
"<![CDATA[@Parameters List<String> params;\n"
@@ -360,13 +430,13 @@
msgstr ""
#. Tag: para
-#: environments.xml:222
+#: environments.xml:259
#, no-c-format
msgid "Here's an example of a simple Web Beans SE application:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:226
+#: environments.xml:263
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -382,20 +452,20 @@
msgstr ""
#. Tag: para
-#: environments.xml:228
+#: environments.xml:265
#, no-c-format
msgid ""
"Web Beans SE applications are started by running the following main method."
msgstr ""
#. Tag: programlisting
-#: environments.xml:230
+#: environments.xml:267
#, no-c-format
msgid "<![CDATA[java org.jboss.webbeans.environments.se.StartMain
<args>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:232
+#: environments.xml:269
#, no-c-format
msgid ""
"If you need to do any custom initialization of the Web Beans manager, for "
@@ -405,7 +475,7 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:237
+#: environments.xml:274
#, no-c-format
msgid ""
"<![CDATA[public class PerformSetup\n"
@@ -419,7 +489,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:240
+#: environments.xml:277
#, no-c-format
msgid ""
"The command line parameters do not become available for injection until the "
Modified: doc/trunk/reference/ja-JP/gettingstarted.po
===================================================================
--- doc/trunk/reference/ja-JP/gettingstarted.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/ja-JP/gettingstarted.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: master.xml \n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2008-12-19 20:26+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -89,7 +89,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:49 gettingstarted.xml:170
+#: gettingstarted.xml:49 gettingstarted.xml:177
#, no-c-format
msgid ""
"Next, download Web Beans from <ulink
url=\"http://seamframework.org/Download"
@@ -97,7 +97,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:55 gettingstarted.xml:176
+#: gettingstarted.xml:55 gettingstarted.xml:183
#, no-c-format
msgid ""
"<![CDATA[$ cd ~/\n"
@@ -127,8 +127,16 @@
"<literal>ANT_HOME</literal> environment variable set. For
example:"
msgstr ""
+#. Tag: para
+#: gettingstarted.xml:72
+#, no-c-format
+msgid ""
+"JBoss 5.1.0 comes with Web Beans built in, so there is no need to update the
"
+"server."
+msgstr ""
+
#. Tag: programlisting
-#: gettingstarted.xml:71
+#: gettingstarted.xml:78
#, no-c-format
msgid ""
"$ unzip apache-ant-1.7.0.zip\n"
@@ -136,7 +144,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:73
+#: gettingstarted.xml:80
#, no-c-format
msgid ""
"Then, you can install the update. The update script will use Maven to "
@@ -144,7 +152,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:78
+#: gettingstarted.xml:85
#, no-c-format
msgid ""
"$ cd webbeans-$VERSION/jboss-as\n"
@@ -152,13 +160,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:80
+#: gettingstarted.xml:87
#, no-c-format
msgid "Now, you're ready to deploy your first example!"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:85
+#: gettingstarted.xml:92
#, no-c-format
msgid ""
"The build scripts for the examples offer a number of targets for JBoss AS, "
@@ -166,13 +174,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:91
+#: gettingstarted.xml:98
#, no-c-format
msgid "<literal>ant restart</literal> - deploy the example in exploded
format"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:97
+#: gettingstarted.xml:104
#, no-c-format
msgid ""
"<literal>ant explode</literal> - update an exploded example, without
"
@@ -180,32 +188,32 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:103
+#: gettingstarted.xml:110
#, no-c-format
msgid ""
"<literal>ant deploy</literal> - deploy the example in compressed jar
format"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:108
+#: gettingstarted.xml:115
#, no-c-format
msgid "<literal>ant undeploy</literal> - remove the example from the
server"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:113
+#: gettingstarted.xml:120
#, no-c-format
msgid "<literal>ant clean</literal> - clean the example"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:120
+#: gettingstarted.xml:127
#, no-c-format
msgid "To deploy the numberguess example:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:124
+#: gettingstarted.xml:131
#, no-c-format
msgid ""
"$ cd examples/numberguess\n"
@@ -213,25 +221,25 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:126
+#: gettingstarted.xml:133
#, no-c-format
msgid "Start JBoss AS:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:130
+#: gettingstarted.xml:137
#, no-c-format
msgid "$ /Application/jboss-5.0.0.GA/bin/run.sh"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:133
+#: gettingstarted.xml:140
#, no-c-format
msgid "If you use Windows, use the
<literal>run.bat</literal>script."
msgstr ""
#. Tag: para
-#: gettingstarted.xml:138 gettingstarted.xml:240
+#: gettingstarted.xml:145 gettingstarted.xml:247
#, no-c-format
msgid ""
"Wait for the application to deploy, and enjoy hours of fun at <ulink url="
@@ -239,7 +247,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:143
+#: gettingstarted.xml:150
#, no-c-format
msgid ""
"Web Beans includes a second simple example that will translate your text "
@@ -249,7 +257,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:150
+#: gettingstarted.xml:157
#, no-c-format
msgid ""
"$ cd examples/translator\n"
@@ -257,7 +265,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:152
+#: gettingstarted.xml:159
#, no-c-format
msgid ""
"Wait for the application to deploy, and visit <ulink url=\"http://"
@@ -265,13 +273,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:160
+#: gettingstarted.xml:167
#, no-c-format
msgid "Using Apache Tomcat 6.0"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:162
+#: gettingstarted.xml:169
#, no-c-format
msgid ""
"You'll need to download Tomcat 6.0.18 or later from <ulink
url=\"http://"
@@ -280,7 +288,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:168
+#: gettingstarted.xml:175
#, no-c-format
msgid ""
"<![CDATA[$ cd /Applications\n"
@@ -288,7 +296,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:178
+#: gettingstarted.xml:185
#, no-c-format
msgid ""
"Next, we need to tell Web Beans where Tomcat is located. Edit
<literal>jboss-"
@@ -297,13 +305,13 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:184
+#: gettingstarted.xml:191
#, no-c-format
msgid "tomcat.home=/Applications/apache-tomcat-6.0.18"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:187
+#: gettingstarted.xml:194
#, no-c-format
msgid ""
"The build scripts for the examples offer a number of targets for Tomcat, "
@@ -311,14 +319,14 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:193
+#: gettingstarted.xml:200
#, no-c-format
msgid ""
"<literal>ant tomcat.restart</literal> - deploy the example in exploded
format"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:199
+#: gettingstarted.xml:206
#, no-c-format
msgid ""
"<literal>ant tomcat.explode</literal> - update an exploded example,
without "
@@ -326,7 +334,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:205
+#: gettingstarted.xml:212
#, no-c-format
msgid ""
"<literal>ant tomcat.deploy</literal> - deploy the example in compressed
jar "
@@ -334,26 +342,26 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:210
+#: gettingstarted.xml:217
#, no-c-format
msgid ""
"<literal>ant tomcat.undeploy</literal> - remove the example from the
server"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:215
+#: gettingstarted.xml:222
#, no-c-format
msgid "<literal>ant tomcat.clean</literal> - clean the example"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:222
+#: gettingstarted.xml:229
#, no-c-format
msgid "To deploy the numberguess example for tomcat:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:226
+#: gettingstarted.xml:233
#, no-c-format
msgid ""
"$ cd examples/tomcat\n"
@@ -361,43 +369,43 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:228
+#: gettingstarted.xml:235
#, no-c-format
msgid "Start Tomcat:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:232
+#: gettingstarted.xml:239
#, no-c-format
msgid "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:235
+#: gettingstarted.xml:242
#, no-c-format
msgid "If you use Windows, use the
<literal>startup.bat</literal>script."
msgstr ""
#. Tag: title
-#: gettingstarted.xml:248
+#: gettingstarted.xml:255
#, no-c-format
msgid "Using GlassFish"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:250
+#: gettingstarted.xml:257
#, no-c-format
msgid "TODO"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:254
+#: gettingstarted.xml:261
#, no-c-format
msgid "The numberguess example"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:256
+#: gettingstarted.xml:263
#, no-c-format
msgid ""
"In the numberguess application you get given 10 attempts to guess a number "
@@ -406,7 +414,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:262
+#: gettingstarted.xml:269
#, no-c-format
msgid ""
"The numberguess example is comprised of a number of Web Beans, configuration
"
@@ -415,7 +423,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:268
+#: gettingstarted.xml:275
#, no-c-format
msgid ""
"All the configuration files for this example are located in
<literal>WEB-INF/"
@@ -425,7 +433,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:276
+#: gettingstarted.xml:283
#, no-c-format
msgid ""
"<![CDATA[<?xml version='1.0' encoding='UTF-8'?>\n"
@@ -443,7 +451,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:278
+#: gettingstarted.xml:285
#, no-c-format
msgid ""
"There is an empty <literal>web-beans.xml</literal> file, which marks
this "
@@ -451,13 +459,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:283
+#: gettingstarted.xml:290
#, no-c-format
msgid "Finally there is <literal>web.xml</literal>:"
msgstr ""
#. Tag: section
-#: gettingstarted.xml:285
+#: gettingstarted.xml:292
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"faces.servlet\"
coords=\"12\"/> "
@@ -579,7 +587,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:387
+#: gettingstarted.xml:394
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -588,7 +596,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:393
+#: gettingstarted.xml:400
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -599,7 +607,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:395
+#: gettingstarted.xml:402
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for
"
@@ -607,7 +615,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:400
+#: gettingstarted.xml:407
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -619,7 +627,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:402
+#: gettingstarted.xml:409
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the
"
@@ -628,7 +636,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:408
+#: gettingstarted.xml:415
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -657,7 +665,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:410
+#: gettingstarted.xml:417
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application
scoped; "
@@ -665,7 +673,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:415
+#: gettingstarted.xml:422
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped
<literal>Game</"
@@ -673,7 +681,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:420
+#: gettingstarted.xml:427
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal>
annotation, so "
@@ -684,7 +692,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:428
+#: gettingstarted.xml:435
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -786,13 +794,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:431
+#: gettingstarted.xml:438
#, no-c-format
msgid "The numberguess example in Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:433
+#: gettingstarted.xml:440
#, no-c-format
msgid ""
"The numberguess for Tomcat differs in a couple of ways. Firstly, Web Beans "
@@ -802,7 +810,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:442
+#: gettingstarted.xml:449
#, no-c-format
msgid ""
"Of course, you must also include JSF and EL, as well common annotations "
@@ -810,7 +818,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:449
+#: gettingstarted.xml:456
#, no-c-format
msgid ""
"Secondly, we need to explicitly specify the servlet listener (used to boot "
@@ -819,7 +827,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:455
+#: gettingstarted.xml:462
#, no-c-format
msgid ""
"<![CDATA[<listener>\n"
@@ -829,13 +837,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:460
+#: gettingstarted.xml:467
#, no-c-format
msgid "The numberguess example for Apache Wicket"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:461
+#: gettingstarted.xml:468
#, no-c-format
msgid ""
"Whilst JSR-299 specifies integration with Java ServerFaces, Web Beans allows
"
@@ -845,7 +853,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:470
+#: gettingstarted.xml:477
#, no-c-format
msgid ""
"You may want to review the Wicket documentation at <ulink
url=\"http://"
@@ -853,7 +861,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:476
+#: gettingstarted.xml:483
#, no-c-format
msgid ""
"Like the previous example, the Wicket WebBeans examples make use of the "
@@ -866,7 +874,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:487
+#: gettingstarted.xml:494
#, no-c-format
msgid ""
"These examples make use of the Eclipse IDE; instructions are also given to "
@@ -874,43 +882,45 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:493
+#: gettingstarted.xml:500
#, no-c-format
msgid "Creating the Eclipse project"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:495
+#: gettingstarted.xml:502
#, no-c-format
msgid "To generate an Eclipse project from the example:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:499
+#: gettingstarted.xml:506
#, no-c-format
msgid ""
"<![CDATA[cd examples/wicket/numberguess\n"
-"mvn eclipse:eclipse]]>"
+"mvn -Pjetty eclipse:eclipse]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:501
+#: gettingstarted.xml:508
#, no-c-format
msgid ""
"Then, from eclipse, choose <emphasis>File -> Import -> General ->
Existing "
"Projects into Workspace</emphasis>, select the root directory of the "
-"numberguess example, and click finish. This will create a project in your "
-"workspace called <literal>webbeans-wicket-numberguess</literal>"
+"numberguess example, and click finish. Note that if you do not intend to run
"
+"the example with jetty from within eclipse, omit the \"-Pjetty.\" This
will "
+"create a project in your workspace called <literal>webbeans-wicket-"
+"numberguess</literal>"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:516
+#: gettingstarted.xml:524
#, no-c-format
msgid "Running the example from Eclipse"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:518
+#: gettingstarted.xml:526
#, no-c-format
msgid ""
"This project follows the <literal>wicket-quickstart</literal> approach
of "
@@ -924,13 +934,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:533
+#: gettingstarted.xml:541
#, no-c-format
msgid "Running the example from the command line in JBoss AS or Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:535
+#: gettingstarted.xml:543
#, no-c-format
msgid ""
"This example can also be deployed from the command line in a (similar to the
"
@@ -943,13 +953,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:549
+#: gettingstarted.xml:557
#, no-c-format
msgid "Understanding the code"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:551
+#: gettingstarted.xml:559
#, no-c-format
msgid ""
"JSF uses Unified EL expressions to bind view layer components in JSP or "
@@ -963,7 +973,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:563
+#: gettingstarted.xml:571
#, no-c-format
msgid ""
"The code in the wicket numberguess example is very similar to the JSF-based "
@@ -971,13 +981,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:568
+#: gettingstarted.xml:576
#, no-c-format
msgid "Differences are:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:573
+#: gettingstarted.xml:581
#, no-c-format
msgid ""
"Each wicket application must have a <literal>WebApplication</literal>
"
@@ -986,7 +996,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:579
+#: gettingstarted.xml:587
#, no-c-format
msgid ""
"<![CDATA[public class SampleApplication extends WebBeansApplication {\n"
@@ -998,7 +1008,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:580
+#: gettingstarted.xml:588
#, no-c-format
msgid ""
"This class specifies which page wicket should treat as our home page, in our
"
@@ -1006,7 +1016,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:586
+#: gettingstarted.xml:594
#, no-c-format
msgid ""
"In <literal>HomePage</literal> we see typical wicket code to set up
page "
@@ -1015,13 +1025,13 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:592
+#: gettingstarted.xml:600
#, no-c-format
msgid "<![CDATA[ @Current Game game;]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:594
+#: gettingstarted.xml:602
#, no-c-format
msgid ""
"The <literal>Game</literal> bean is can then be used, for example, by
the "
@@ -1029,7 +1039,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:599
+#: gettingstarted.xml:607
#, no-c-format
msgid ""
"<![CDATA[final Component guessButton = new AjaxButton(\"GuessButton\")
{ \n"
@@ -1038,7 +1048,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:602
+#: gettingstarted.xml:610
#, no-c-format
msgid ""
"All injections may be serialized; actual storage of the bean is managed by "
@@ -1047,7 +1057,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:608
+#: gettingstarted.xml:616
#, no-c-format
msgid ""
"Wicket components allow injection, but they <emphasis>cannot</emphasis>
use "
@@ -1056,7 +1066,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:618
+#: gettingstarted.xml:626
#, no-c-format
msgid ""
"The example uses AJAX for processing of button events, and dynamically hides
"
@@ -1065,7 +1075,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:626
+#: gettingstarted.xml:634
#, no-c-format
msgid ""
"In order to activate wicket for this webapp, the Wicket filter is added to "
@@ -1073,7 +1083,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:631
+#: gettingstarted.xml:639
#, no-c-format
msgid ""
"<![CDATA[<filter>\n"
@@ -1099,7 +1109,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:632
+#: gettingstarted.xml:640
#, no-c-format
msgid ""
"Note that the servlet listener is also added, as in the Tomcat example, in "
@@ -1108,13 +1118,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:645
+#: gettingstarted.xml:653
#, no-c-format
msgid "The numberguess example for Java SE with Swing"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:647
+#: gettingstarted.xml:655
#, no-c-format
msgid ""
"This example can be found in the
<literal>examples/se/numberguess</literal> "
@@ -1122,13 +1132,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:654
+#: gettingstarted.xml:662
#, no-c-format
msgid "To run this example:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:660
+#: gettingstarted.xml:668
#, no-c-format
msgid ""
"Open a command line/terminal window in the
<literal>examples/se/numberguess</"
@@ -1136,13 +1146,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:666
+#: gettingstarted.xml:674
#, no-c-format
msgid "Ensure that Maven 2 is installed and in your PATH"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:671
+#: gettingstarted.xml:679
#, no-c-format
msgid ""
"Ensure that the <literal>JAVA_HOME</literal> environment variable is
"
@@ -1150,19 +1160,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:677
+#: gettingstarted.xml:685
#, no-c-format
msgid "execute the following command"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:680
+#: gettingstarted.xml:688
#, no-c-format
msgid "mvn -Drun"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:686
+#: gettingstarted.xml:694
#, no-c-format
msgid ""
"There is an empty <literal>beans.xml</literal> file in the root package
"
@@ -1171,7 +1181,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:692
+#: gettingstarted.xml:700
#, no-c-format
msgid ""
"The game's main logic is located in <literal>Game.java</literal>.
Here is "
@@ -1180,7 +1190,7 @@
msgstr ""
#. Tag: section
-#: gettingstarted.xml:696
+#: gettingstarted.xml:704
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"scope\"
coords=\"1\"/> <area id="
@@ -1446,13 +1456,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:904
+#: gettingstarted.xml:912
#, no-c-format
msgid "The translator example"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:906
+#: gettingstarted.xml:914
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them
"
@@ -1460,7 +1470,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:911
+#: gettingstarted.xml:919
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs. As a result, "
@@ -1468,7 +1478,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:917
+#: gettingstarted.xml:925
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -1476,7 +1486,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:923
+#: gettingstarted.xml:931
#, no-c-format
msgid ""
"First, let's take a look at the ear aggregator, which is located in "
@@ -1485,7 +1495,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:929
+#: gettingstarted.xml:937
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -1504,7 +1514,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:931
+#: gettingstarted.xml:939
#, no-c-format
msgid ""
"Here we set the context path, which gives us a nice url (<ulink
url=\"http://"
@@ -1513,7 +1523,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:937
+#: gettingstarted.xml:945
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
@@ -1521,7 +1531,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:942
+#: gettingstarted.xml:950
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\"
encoding=\"UTF-8\"?>\n"
@@ -1547,7 +1557,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:945
+#: gettingstarted.xml:953
#, no-c-format
msgid ""
"Next, lets look at the war. Just as in the numberguess example, we have a "
@@ -1556,7 +1566,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:952
+#: gettingstarted.xml:960
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -1565,7 +1575,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:958
+#: gettingstarted.xml:966
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -1598,7 +1608,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:960
+#: gettingstarted.xml:968
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate
"
@@ -1606,7 +1616,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:965
+#: gettingstarted.xml:973
#, no-c-format
msgid ""
"Finally, let's look at the ejb module,
<literal>webbeans-translator-ejb</"
@@ -1616,7 +1626,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:973
+#: gettingstarted.xml:981
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two
"
@@ -1628,7 +1638,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:983
+#: gettingstarted.xml:991
#, no-c-format
msgid ""
"Both <literal>SentenceParser</literal> and
<literal>TextTranslator</literal> "
@@ -1637,7 +1647,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:989
+#: gettingstarted.xml:997
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -1653,7 +1663,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:991
+#: gettingstarted.xml:999
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local
business "
@@ -1662,7 +1672,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:997
+#: gettingstarted.xml:1005
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -1671,7 +1681,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:1003
+#: gettingstarted.xml:1011
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -1684,19 +1694,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1005
+#: gettingstarted.xml:1013
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1009
+#: gettingstarted.xml:1017
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:1013
+#: gettingstarted.xml:1021
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -1707,7 +1717,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1015
+#: gettingstarted.xml:1023
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -1715,7 +1725,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1021
+#: gettingstarted.xml:1029
#, no-c-format
msgid ""
"That concludes our short tour of the Web Beans examples. For more on Web "
@@ -1725,7 +1735,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1027
+#: gettingstarted.xml:1035
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
Modified: doc/trunk/reference/ja-JP/producermethods.po
===================================================================
--- doc/trunk/reference/ja-JP/producermethods.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/ja-JP/producermethods.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: master.xml \n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2008-12-19 20:26+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -36,83 +36,29 @@
msgid "According to the spec:"
msgstr ""
-#. Tag: para
-#: producermethods.xml:16
+#. Tag: chapter
+#: producermethods.xml:12
#, no-c-format
msgid ""
-"A Web Beans producer method acts as a source of objects to be injected, "
-"where:"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:20
-#, no-c-format
-msgid ""
-"the objects to be injected are not required to be instances of Web Beans,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:23
-#, no-c-format
-msgid "the concrete type of the objects to be injected may vary at runtime or"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:26
-#, no-c-format
-msgid ""
-"the objects require some custom initialization that is not performed by the "
-"Web Bean constructor"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:33
-#, no-c-format
-msgid "For example, producer methods let us:"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:37
-#, no-c-format
-msgid "expose a JPA entity as a Web Bean,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:40
-#, no-c-format
-msgid "expose any JDK class as a Web Bean,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:43
-#, no-c-format
-msgid ""
-"define multiple Web Beans, with different scopes or initialization, for the "
-"same implementation class, or"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:47
-#, no-c-format
-msgid "vary the implementation of an API type at runtime."
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:51
-#, no-c-format
-msgid ""
-"In particular, producer methods let us use runtime polymorphism with Web "
-"Beans. As we've seen, deployment types are a powerful solution to the "
-"problem of deployment-time polymorphism. But once the system is deployed, "
-"the Web Bean implementation is fixed. A producer method has no such "
-"limitation:"
-msgstr ""
-
-#. Tag: programlisting
-#: producermethods.xml:56
-#, no-c-format
-msgid ""
-"<![CDATA[@SessionScoped\n"
+"<blockquote> <para>A Web Beans producer method acts as a source of
objects "
+"to be injected, where:</para> <itemizedlist> <listitem>
<para>the objects to "
+"be injected are not required to be instances of Web Beans,</para>
</"
+"listitem> <listitem> <para>the concrete type of the objects to be
injected "
+"may vary at runtime or</para> </listitem> <listitem>
<para>the objects "
+"require some custom initialization that is not performed by the Web Bean "
+"constructor</para> </listitem> </itemizedlist>
</blockquote> <para>For "
+"example, producer methods let us:</para> <itemizedlist>
<listitem> "
+"<para>expose a JPA entity as a Web Bean,</para> </listitem>
<listitem> "
+"<para>expose any JDK class as a Web Bean,</para> </listitem>
<listitem> "
+"<para>define multiple Web Beans, with different scopes or initialization,
"
+"for the same implementation class, or</para> </listitem>
<listitem> "
+"<para>vary the implementation of an API type at runtime.</para>
</listitem> "
+"</itemizedlist> <para>In particular, producer methods let us use
runtime "
+"polymorphism with Web Beans. As we've seen, deployment types are a powerful
"
+"solution to the problem of deployment-time polymorphism. But once the system
"
+"is deployed, the Web Bean implementation is fixed. A producer method has no "
+"such limitation:</para> <programlisting
role=\"JAVA\"><![CDATA"
+"[@SessionScoped\n"
"public class Preferences {\n"
" \n"
" private PaymentStrategyType paymentStrategy;\n"
@@ -129,37 +75,15 @@
" } \n"
" }\n"
" \n"
-"}]]>"
+"}]]></programlisting> <para>Consider an injection
point:</para> "
+"<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
+"paymentStrat;]]></programlisting> <para>This injection point has the
same "
+"type and binding annotations as the producer method, so it resolves to the "
+"producer method using the usual Web Beans injection rules. The producer "
+"method will be called by the Web Bean manager to obtain an instance to "
+"service this injection point.</para>."
msgstr ""
-#. Tag: para
-#: producermethods.xml:58
-#, no-c-format
-msgid "Consider an injection point:"
-msgstr ""
-
-#. Tag: programlisting
-#: producermethods.xml:60
-#, no-c-format
-msgid "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:62
-#, no-c-format
-msgid ""
-"This injection point has the same type and binding annotations as the "
-"producer method, so it resolves to the producer method using the usual Web "
-"Beans injection rules. The producer method will be called by the Web Bean "
-"manager to obtain an instance to service this injection point."
-msgstr ""
-
-#. Tag: chapter
-#: producermethods.xml:65
-#, no-c-format
-msgid "<chapter>.</chapter>"
-msgstr ""
-
#. Tag: title
#: producermethods.xml:68
#, no-c-format
Modified: doc/trunk/reference/ko-KR/environments.po
===================================================================
--- doc/trunk/reference/ko-KR/environments.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/ko-KR/environments.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
"Project-Id-Version: Web_Beans:_Java_Contexts_and_Dependency_Injection "
"VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2009-03-28 17:09+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -84,7 +84,7 @@
#. Tag: title
#: environments.xml:47
#, no-c-format
-msgid "Glassfish"
+msgid "GlassFish"
msgstr ""
#. Tag: para
@@ -122,9 +122,9 @@
msgid ""
"Web Beans should be used as a web application library in a servlet "
"container. You should place <literal>webbeans-servlet.jar</literal> in
"
-"<literal>WEB-INF/lib</literal>.
<literal>webbeans-serv;et.jar</literal> is "
-"an \"uber-jar\" provided for your convenience. Instead, you could use its
"
-"component jars:"
+"<literal>WEB-INF/lib</literal>.
<literal>webbeans-servlet.jar</literal> is "
+"an \"uber-jar\" provided for your convenience. Alternatively, you could
use "
+"its component jars:"
msgstr ""
#. Tag: literal
@@ -205,45 +205,46 @@
#, no-c-format
msgid ""
"Tomcat has a read-only JNDI, so Web Beans can't automatically bind the "
-"Manager. To bind the Manager into JNDI, you should add the following to your
"
-"<literal>META-INF/context.xml</literal>:"
+"Manager. To bind the Manager into JNDI, you should populate
<literal>META-"
+"INF/context.xml</literal> with the following contents:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:134
+#: environments.xml:135
#, no-c-format
msgid ""
-"<![CDATA[<Resource name=\"app/Manager\" \n"
-" auth=\"Container\"\n"
-" type=\"javax.inject.manager.Manager\"\n"
-"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
-"]]>"
+"<![CDATA[<Context>\n"
+" <Resource name=\"app/Manager\" \n"
+" auth=\"Container\"\n"
+" type=\"javax.inject.manager.Manager\"\n"
+"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
+"</Context>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:136
+#: environments.xml:137
#, no-c-format
msgid ""
-"and make it available to your deployment by adding this to
<literal>web.xml</"
-"literal>:"
+"and make it available to your deployment by adding this to the bottom of "
+"<literal>web.xml</literal>:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:141
+#: environments.xml:142
#, no-c-format
msgid ""
"<![CDATA[<resource-env-ref>\n"
-" <resource-env-ref-name>\n"
-" app/Manager\n"
-" </resource-env-ref-name>\n"
-" <resource-env-ref-type>\n"
-" javax.inject.manager.Manager\n"
-" </resource-env-ref-type>\n"
+" <resource-env-ref-name>\n"
+" app/Manager\n"
+" </resource-env-ref-name>\n"
+" <resource-env-ref-type>\n"
+" javax.inject.manager.Manager\n"
+" </resource-env-ref-type>\n"
"</resource-env-ref>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:143
+#: environments.xml:144
#, no-c-format
msgid ""
"Tomcat only allows you to bind entries to
<literal>java:comp/env</literal>, "
@@ -252,7 +253,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:149
+#: environments.xml:150
#, no-c-format
msgid ""
"Web Beans also supports Servlet injection in Tomcat. To enable this, place "
@@ -262,21 +263,84 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:156
+#: environments.xml:157
#, no-c-format
msgid ""
"<![CDATA[<Listener
className=\"org.jboss.webbeans.environment.tomcat."
-"WebBeansLifecycleListener\" />]]>"
+"WebBeansLifecycleListener\"/>]]>"
msgstr ""
#. Tag: title
-#: environments.xml:163
+#: environments.xml:162
#, no-c-format
+msgid "Jetty"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:164
+#, no-c-format
+msgid ""
+"Like Tomcat, Jetty has a read-only JNDI, so Web Beans can't automatically
"
+"bind the Manager. To bind the Manager to JNDI, you should populate "
+"<literal>WEB-INF/jetty-env.xml</literal> with the following
contents:"
+msgstr ""
+
+#. Tag: programlisting
+#: environments.xml:171
+#, no-c-format
+msgid ""
+"<![CDATA[<!DOCTYPE Configure PUBLIC \"-//Mort Bay Consulting//DTD
Configure//"
+"EN\"\n"
+" \"http://jetty.mortbay.org/configure.dtd\">\n"
+"<Configure id=\"webAppCtx\"
class=\"org.mortbay.jetty.webapp.WebAppContext"
+"\">\n"
+" <New id=\"appManager\"
class=\"org.mortbay.jetty.plus.naming.Resource\">\n"
+" <Arg><Ref id=\"webAppCtx\"/></Arg> \n"
+" <Arg>app/Manager</Arg>\n"
+" <Arg>\n"
+" <New class=\"javax.naming.Reference\">\n"
+" <Arg>javax.inject.manager.Manager</Arg> \n"
+"
<Arg>org.jboss.webbeans.resources.ManagerObjectFactory</Arg>\n"
+" <Arg/>\n"
+" </New>\n"
+" </Arg>\n"
+" </New>\n"
+"</Configure>]]>"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:173
+#, no-c-format
+msgid ""
+"Notice that Jetty doesn't not have built-in support for an
<literal>javax."
+"naming.spi.ObjectFactory</literal> like Tomcat, so it's necessary to
"
+"manually create the <literal>javax.naming.Reference</literal> to wrap
around "
+"it."
+msgstr ""
+
+#. Tag: para
+#: environments.xml:180
+#, no-c-format
+msgid ""
+"Jetty only allows you to bind entries to
<literal>java:comp/env</literal>, "
+"so the Manager will be available at
<literal>java:comp/env/app/Manager</"
+"literal>"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:186
+#, no-c-format
+msgid "Web Beans does not currently support Servlet injection in Jetty."
+msgstr ""
+
+#. Tag: title
+#: environments.xml:195
+#, no-c-format
msgid "Java SE"
msgstr ""
#. Tag: para
-#: environments.xml:165
+#: environments.xml:197
#, no-c-format
msgid ""
"Apart from improved integration of the Enterprise Java stack, Web Beans also
"
@@ -288,7 +352,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:173
+#: environments.xml:205
#, no-c-format
msgid ""
"When executing in the SE environment the following features of Web Beans are
"
@@ -296,49 +360,55 @@
msgstr ""
#. Tag: literal
-#: environments.xml:179
+#: environments.xml:211
#, no-c-format
msgid "Simple Web Beans (POJOs)"
msgstr ""
#. Tag: literal
-#: environments.xml:184
+#: environments.xml:216
#, no-c-format
msgid "Typesafe Dependency Injection"
msgstr ""
#. Tag: literal
-#: environments.xml:189
+#: environments.xml:221
#, no-c-format
msgid "Application and Dependent Contexts"
msgstr ""
#. Tag: literal
-#: environments.xml:194
+#: environments.xml:226
#, no-c-format
msgid "Binding Types"
msgstr ""
#. Tag: literal
-#: environments.xml:199
+#: environments.xml:231
#, no-c-format
+msgid "Deployment Types"
+msgstr ""
+
+#. Tag: literal
+#: environments.xml:236
+#, no-c-format
msgid "Stereotypes"
msgstr ""
#. Tag: literal
-#: environments.xml:204
+#: environments.xml:241
#, no-c-format
msgid "Typesafe Event Model"
msgstr ""
#. Tag: title
-#: environments.xml:210
+#: environments.xml:247
#, no-c-format
msgid "Web Beans SE Module"
msgstr ""
#. Tag: para
-#: environments.xml:212
+#: environments.xml:249
#, no-c-format
msgid ""
"To make life easy for developers Web Beans provides a special module with a "
@@ -351,7 +421,7 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:221
+#: environments.xml:258
#, no-c-format
msgid ""
"<![CDATA[@Parameters List<String> params;\n"
@@ -360,13 +430,13 @@
msgstr ""
#. Tag: para
-#: environments.xml:222
+#: environments.xml:259
#, no-c-format
msgid "Here's an example of a simple Web Beans SE application:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:226
+#: environments.xml:263
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -382,20 +452,20 @@
msgstr ""
#. Tag: para
-#: environments.xml:228
+#: environments.xml:265
#, no-c-format
msgid ""
"Web Beans SE applications are started by running the following main method."
msgstr ""
#. Tag: programlisting
-#: environments.xml:230
+#: environments.xml:267
#, no-c-format
msgid "<![CDATA[java org.jboss.webbeans.environments.se.StartMain
<args>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:232
+#: environments.xml:269
#, no-c-format
msgid ""
"If you need to do any custom initialization of the Web Beans manager, for "
@@ -405,7 +475,7 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:237
+#: environments.xml:274
#, no-c-format
msgid ""
"<![CDATA[public class PerformSetup\n"
@@ -419,7 +489,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:240
+#: environments.xml:277
#, no-c-format
msgid ""
"The command line parameters do not become available for injection until the "
Modified: doc/trunk/reference/ko-KR/gettingstarted.po
===================================================================
--- doc/trunk/reference/ko-KR/gettingstarted.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/ko-KR/gettingstarted.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: ri\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2009-01-23 11:14+1000\n"
"Last-Translator: Eunju Kim <eukim(a)redhat.com>\n"
"Language-Team: Korean <ko(a)li.org>\n"
@@ -114,7 +114,7 @@
"$ unzip ~/jboss-5.0.0.GA.zip]]>"
#. Tag: para
-#: gettingstarted.xml:49 gettingstarted.xml:170
+#: gettingstarted.xml:49 gettingstarted.xml:177
#, fuzzy, no-c-format
msgid ""
"Next, download Web Beans from <ulink
url=\"http://seamframework.org/Download"
@@ -124,7 +124,7 @@
"ulink>에서 Web Beans RI를 다운로드하여 압축 풀기를 합니다. 예: "
#. Tag: programlisting
-#: gettingstarted.xml:55 gettingstarted.xml:176
+#: gettingstarted.xml:55 gettingstarted.xml:183
#, fuzzy, no-c-format
msgid ""
"<![CDATA[$ cd ~/\n"
@@ -161,8 +161,16 @@
"업데이트를 설치하려면, Ant 1.7.0을 설치하고 <literal>ANT_HOME</literal> 환경 "
"변수 모음을 설치합니다. 예: "
+#. Tag: para
+#: gettingstarted.xml:72
+#, no-c-format
+msgid ""
+"JBoss 5.1.0 comes with Web Beans built in, so there is no need to update the
"
+"server."
+msgstr ""
+
#. Tag: programlisting
-#: gettingstarted.xml:71
+#: gettingstarted.xml:78
#, no-c-format
msgid ""
"$ unzip apache-ant-1.7.0.zip\n"
@@ -172,7 +180,7 @@
"$ export ANT_HOME=~/apache-ant-1.7.0"
#. Tag: para
-#: gettingstarted.xml:73
+#: gettingstarted.xml:80
#, fuzzy, no-c-format
msgid ""
"Then, you can install the update. The update script will use Maven to "
@@ -182,7 +190,7 @@
"여 Web Beans 및 EJB3를 자동으로 다운로드합니다. "
#. Tag: programlisting
-#: gettingstarted.xml:78
+#: gettingstarted.xml:85
#, fuzzy, no-c-format
msgid ""
"$ cd webbeans-$VERSION/jboss-as\n"
@@ -192,13 +200,13 @@
"$ ant update"
#. Tag: para
-#: gettingstarted.xml:80
+#: gettingstarted.xml:87
#, no-c-format
msgid "Now, you're ready to deploy your first example!"
msgstr "이제, 첫번째 예제를 배치할 준비가 되었습니다! "
#. Tag: para
-#: gettingstarted.xml:85
+#: gettingstarted.xml:92
#, fuzzy, no-c-format
msgid ""
"The build scripts for the examples offer a number of targets for JBoss AS, "
@@ -208,14 +216,14 @@
"니다: "
#. Tag: para
-#: gettingstarted.xml:91
+#: gettingstarted.xml:98
#, no-c-format
msgid "<literal>ant restart</literal> - deploy the example in exploded
format"
msgstr ""
"<literal>ant restart</literal> - exploded 형식으로 예제를 배치합니다 "
#. Tag: para
-#: gettingstarted.xml:97
+#: gettingstarted.xml:104
#, no-c-format
msgid ""
"<literal>ant explode</literal> - update an exploded example, without
"
@@ -225,7 +233,7 @@
"를 업데이트합니다 "
#. Tag: para
-#: gettingstarted.xml:103
+#: gettingstarted.xml:110
#, no-c-format
msgid ""
"<literal>ant deploy</literal> - deploy the example in compressed jar
format"
@@ -233,25 +241,25 @@
"<literal>ant deploy</literal> - 압축된 jar 포맷으로 예제를 배치합니다 "
#. Tag: para
-#: gettingstarted.xml:108
+#: gettingstarted.xml:115
#, no-c-format
msgid "<literal>ant undeploy</literal> - remove the example from the
server"
msgstr "<literal>ant undeploy</literal> - 서버에서 예제를 제거합니다 "
#. Tag: para
-#: gettingstarted.xml:113
+#: gettingstarted.xml:120
#, no-c-format
msgid "<literal>ant clean</literal> - clean the example"
msgstr "<literal>ant clean</literal> - 예제를 지웁니다 "
#. Tag: para
-#: gettingstarted.xml:120
+#: gettingstarted.xml:127
#, no-c-format
msgid "To deploy the numberguess example:"
msgstr "numberguess 예제를 배치하려면: "
#. Tag: programlisting
-#: gettingstarted.xml:124
+#: gettingstarted.xml:131
#, no-c-format
msgid ""
"$ cd examples/numberguess\n"
@@ -261,25 +269,25 @@
"ant deploy"
#. Tag: para
-#: gettingstarted.xml:126
+#: gettingstarted.xml:133
#, no-c-format
msgid "Start JBoss AS:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:130
+#: gettingstarted.xml:137
#, fuzzy, no-c-format
msgid "$ /Application/jboss-5.0.0.GA/bin/run.sh"
msgstr "jboss.home=/Applications/jboss-5.0.0.GA"
#. Tag: para
-#: gettingstarted.xml:133
+#: gettingstarted.xml:140
#, no-c-format
msgid "If you use Windows, use the
<literal>run.bat</literal>script."
msgstr ""
#. Tag: para
-#: gettingstarted.xml:138 gettingstarted.xml:240
+#: gettingstarted.xml:145 gettingstarted.xml:247
#, no-c-format
msgid ""
"Wait for the application to deploy, and enjoy hours of fun at <ulink url="
@@ -289,7 +297,7 @@
"numberguess\"></ulink>에서 살펴보시기 바랍니다! "
#. Tag: para
-#: gettingstarted.xml:143
+#: gettingstarted.xml:150
#, fuzzy, no-c-format
msgid ""
"Web Beans includes a second simple example that will translate your text "
@@ -303,7 +311,7 @@
"려면 다음을 실행합니다: "
#. Tag: programlisting
-#: gettingstarted.xml:150
+#: gettingstarted.xml:157
#, no-c-format
msgid ""
"$ cd examples/translator\n"
@@ -313,7 +321,7 @@
"ant deploy"
#. Tag: para
-#: gettingstarted.xml:152
+#: gettingstarted.xml:159
#, no-c-format
msgid ""
"Wait for the application to deploy, and visit <ulink url=\"http://"
@@ -323,13 +331,13 @@
"translator\"></ulink>에 가보십시오! "
#. Tag: title
-#: gettingstarted.xml:160
+#: gettingstarted.xml:167
#, no-c-format
msgid "Using Apache Tomcat 6.0"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:162
+#: gettingstarted.xml:169
#, fuzzy, no-c-format
msgid ""
"You'll need to download Tomcat 6.0.18 or later from <ulink
url=\"http://"
@@ -340,7 +348,7 @@
"ulink>에서 Web Beans RI를 다운로드하여 압축 풀기를 합니다. 예: "
#. Tag: programlisting
-#: gettingstarted.xml:168
+#: gettingstarted.xml:175
#, fuzzy, no-c-format
msgid ""
"<![CDATA[$ cd /Applications\n"
@@ -350,7 +358,7 @@
"$ unzip ~/jboss-5.0.0.GA.zip]]>"
#. Tag: para
-#: gettingstarted.xml:178
+#: gettingstarted.xml:185
#, fuzzy, no-c-format
msgid ""
"Next, we need to tell Web Beans where Tomcat is located. Edit
<literal>jboss-"
@@ -362,13 +370,13 @@
"literal> 속성을 설정합니다. 예: "
#. Tag: programlisting
-#: gettingstarted.xml:184
+#: gettingstarted.xml:191
#, fuzzy, no-c-format
msgid "tomcat.home=/Applications/apache-tomcat-6.0.18"
msgstr "jboss.home=/Applications/jboss-5.0.0.GA"
#. Tag: para
-#: gettingstarted.xml:187
+#: gettingstarted.xml:194
#, fuzzy, no-c-format
msgid ""
"The build scripts for the examples offer a number of targets for Tomcat, "
@@ -378,7 +386,7 @@
"니다: "
#. Tag: para
-#: gettingstarted.xml:193
+#: gettingstarted.xml:200
#, fuzzy, no-c-format
msgid ""
"<literal>ant tomcat.restart</literal> - deploy the example in exploded
format"
@@ -386,7 +394,7 @@
"<literal>ant restart</literal> - exploded 형식으로 예제를 배치합니다 "
#. Tag: para
-#: gettingstarted.xml:199
+#: gettingstarted.xml:206
#, fuzzy, no-c-format
msgid ""
"<literal>ant tomcat.explode</literal> - update an exploded example,
without "
@@ -396,7 +404,7 @@
"를 업데이트합니다 "
#. Tag: para
-#: gettingstarted.xml:205
+#: gettingstarted.xml:212
#, fuzzy, no-c-format
msgid ""
"<literal>ant tomcat.deploy</literal> - deploy the example in compressed
jar "
@@ -405,26 +413,26 @@
"<literal>ant deploy</literal> - 압축된 jar 포맷으로 예제를 배치합니다 "
#. Tag: para
-#: gettingstarted.xml:210
+#: gettingstarted.xml:217
#, fuzzy, no-c-format
msgid ""
"<literal>ant tomcat.undeploy</literal> - remove the example from the
server"
msgstr "<literal>ant undeploy</literal> - 서버에서 예제를 제거합니다 "
#. Tag: para
-#: gettingstarted.xml:215
+#: gettingstarted.xml:222
#, fuzzy, no-c-format
msgid "<literal>ant tomcat.clean</literal> - clean the example"
msgstr "<literal>ant clean</literal> - 예제를 지웁니다 "
#. Tag: para
-#: gettingstarted.xml:222
+#: gettingstarted.xml:229
#, fuzzy, no-c-format
msgid "To deploy the numberguess example for tomcat:"
msgstr "numberguess 예제를 배치하려면: "
#. Tag: programlisting
-#: gettingstarted.xml:226
+#: gettingstarted.xml:233
#, fuzzy, no-c-format
msgid ""
"$ cd examples/tomcat\n"
@@ -434,43 +442,43 @@
"ant deploy"
#. Tag: para
-#: gettingstarted.xml:228
+#: gettingstarted.xml:235
#, no-c-format
msgid "Start Tomcat:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:232
+#: gettingstarted.xml:239
#, fuzzy, no-c-format
msgid "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
msgstr "jboss.home=/Applications/jboss-5.0.0.GA"
#. Tag: para
-#: gettingstarted.xml:235
+#: gettingstarted.xml:242
#, no-c-format
msgid "If you use Windows, use the
<literal>startup.bat</literal>script."
msgstr ""
#. Tag: title
-#: gettingstarted.xml:248
+#: gettingstarted.xml:255
#, no-c-format
msgid "Using GlassFish"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:250
+#: gettingstarted.xml:257
#, no-c-format
msgid "TODO"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:254
+#: gettingstarted.xml:261
#, no-c-format
msgid "The numberguess example"
msgstr "numberguess 예제 "
#. Tag: para
-#: gettingstarted.xml:256
+#: gettingstarted.xml:263
#, no-c-format
msgid ""
"In the numberguess application you get given 10 attempts to guess a number "
@@ -482,7 +490,7 @@
"려주게 됩니다. "
#. Tag: para
-#: gettingstarted.xml:262
+#: gettingstarted.xml:269
#, no-c-format
msgid ""
"The numberguess example is comprised of a number of Web Beans, configuration
"
@@ -493,7 +501,7 @@
"있으며, war로 패키지되어 있습니다 설정 파일부터 시작합시다. "
#. Tag: para
-#: gettingstarted.xml:268
+#: gettingstarted.xml:275
#, no-c-format
msgid ""
"All the configuration files for this example are located in
<literal>WEB-INF/"
@@ -507,7 +515,7 @@
"를 알려주게 됩니다: "
#. Tag: programlisting
-#: gettingstarted.xml:276
+#: gettingstarted.xml:283
#, no-c-format
msgid ""
"<![CDATA[<?xml version='1.0' encoding='UTF-8'?>\n"
@@ -537,7 +545,7 @@
"</faces-config>]]>"
#. Tag: para
-#: gettingstarted.xml:278
+#: gettingstarted.xml:285
#, no-c-format
msgid ""
"There is an empty <literal>web-beans.xml</literal> file, which marks
this "
@@ -547,13 +555,13 @@
"리케이션으로 애플리케이션을 표시합니다. "
#. Tag: para
-#: gettingstarted.xml:283
+#: gettingstarted.xml:290
#, no-c-format
msgid "Finally there is <literal>web.xml</literal>:"
msgstr "마지막으로, <literal>web.xml</literal> 파일이 있습니다: "
#. Tag: section
-#: gettingstarted.xml:285
+#: gettingstarted.xml:292
#, fuzzy, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"faces.servlet\"
coords=\"12\"/> "
@@ -791,7 +799,7 @@
"programlistingco>"
#. Tag: para
-#: gettingstarted.xml:387
+#: gettingstarted.xml:394
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -803,7 +811,7 @@
"형이 있습니다: "
#. Tag: programlisting
-#: gettingstarted.xml:393
+#: gettingstarted.xml:400
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -819,7 +827,7 @@
"public @interface Random {}]]>"
#. Tag: para
-#: gettingstarted.xml:395
+#: gettingstarted.xml:402
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for
"
@@ -829,7 +837,7 @@
"literal> 바인딩 유형도 있습니다: "
#. Tag: programlisting
-#: gettingstarted.xml:400
+#: gettingstarted.xml:407
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -847,7 +855,7 @@
"]]>"
#. Tag: para
-#: gettingstarted.xml:402
+#: gettingstarted.xml:409
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the
"
@@ -859,7 +867,7 @@
"냅니다: "
#. Tag: programlisting
-#: gettingstarted.xml:408
+#: gettingstarted.xml:415
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -911,7 +919,7 @@
"}]]>"
#. Tag: para
-#: gettingstarted.xml:410
+#: gettingstarted.xml:417
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application
scoped; "
@@ -921,7 +929,7 @@
"니다; 따라서 매번 다른 임의 숫자를 갖지 않게 됩니다. "
#. Tag: para
-#: gettingstarted.xml:415
+#: gettingstarted.xml:422
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped
<literal>Game</"
@@ -931,7 +939,7 @@
"다. "
#. Tag: para
-#: gettingstarted.xml:420
+#: gettingstarted.xml:427
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal>
annotation, so "
@@ -947,7 +955,7 @@
"다. "
#. Tag: programlisting
-#: gettingstarted.xml:428
+#: gettingstarted.xml:435
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -1145,13 +1153,13 @@
"}]]>"
#. Tag: title
-#: gettingstarted.xml:431
+#: gettingstarted.xml:438
#, fuzzy, no-c-format
msgid "The numberguess example in Tomcat"
msgstr "numberguess 예제 "
#. Tag: para
-#: gettingstarted.xml:433
+#: gettingstarted.xml:440
#, no-c-format
msgid ""
"The numberguess for Tomcat differs in a couple of ways. Firstly, Web Beans "
@@ -1161,7 +1169,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:442
+#: gettingstarted.xml:449
#, no-c-format
msgid ""
"Of course, you must also include JSF and EL, as well common annotations "
@@ -1169,7 +1177,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:449
+#: gettingstarted.xml:456
#, no-c-format
msgid ""
"Secondly, we need to explicitly specify the servlet listener (used to boot "
@@ -1178,7 +1186,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:455
+#: gettingstarted.xml:462
#, no-c-format
msgid ""
"<![CDATA[<listener>\n"
@@ -1188,13 +1196,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:460
+#: gettingstarted.xml:467
#, fuzzy, no-c-format
msgid "The numberguess example for Apache Wicket"
msgstr "numberguess 예제 "
#. Tag: para
-#: gettingstarted.xml:461
+#: gettingstarted.xml:468
#, no-c-format
msgid ""
"Whilst JSR-299 specifies integration with Java ServerFaces, Web Beans allows
"
@@ -1204,7 +1212,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:470
+#: gettingstarted.xml:477
#, no-c-format
msgid ""
"You may want to review the Wicket documentation at <ulink
url=\"http://"
@@ -1212,7 +1220,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:476
+#: gettingstarted.xml:483
#, no-c-format
msgid ""
"Like the previous example, the Wicket WebBeans examples make use of the "
@@ -1225,7 +1233,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:487
+#: gettingstarted.xml:494
#, no-c-format
msgid ""
"These examples make use of the Eclipse IDE; instructions are also given to "
@@ -1233,43 +1241,45 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:493
+#: gettingstarted.xml:500
#, no-c-format
msgid "Creating the Eclipse project"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:495
+#: gettingstarted.xml:502
#, no-c-format
msgid "To generate an Eclipse project from the example:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:499
+#: gettingstarted.xml:506
#, no-c-format
msgid ""
"<![CDATA[cd examples/wicket/numberguess\n"
-"mvn eclipse:eclipse]]>"
+"mvn -Pjetty eclipse:eclipse]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:501
+#: gettingstarted.xml:508
#, no-c-format
msgid ""
"Then, from eclipse, choose <emphasis>File -> Import -> General ->
Existing "
"Projects into Workspace</emphasis>, select the root directory of the "
-"numberguess example, and click finish. This will create a project in your "
-"workspace called <literal>webbeans-wicket-numberguess</literal>"
+"numberguess example, and click finish. Note that if you do not intend to run
"
+"the example with jetty from within eclipse, omit the \"-Pjetty.\" This
will "
+"create a project in your workspace called <literal>webbeans-wicket-"
+"numberguess</literal>"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:516
+#: gettingstarted.xml:524
#, no-c-format
msgid "Running the example from Eclipse"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:518
+#: gettingstarted.xml:526
#, no-c-format
msgid ""
"This project follows the <literal>wicket-quickstart</literal> approach
of "
@@ -1283,13 +1293,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:533
+#: gettingstarted.xml:541
#, no-c-format
msgid "Running the example from the command line in JBoss AS or Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:535
+#: gettingstarted.xml:543
#, no-c-format
msgid ""
"This example can also be deployed from the command line in a (similar to the
"
@@ -1302,13 +1312,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:549
+#: gettingstarted.xml:557
#, no-c-format
msgid "Understanding the code"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:551
+#: gettingstarted.xml:559
#, no-c-format
msgid ""
"JSF uses Unified EL expressions to bind view layer components in JSP or "
@@ -1322,7 +1332,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:563
+#: gettingstarted.xml:571
#, no-c-format
msgid ""
"The code in the wicket numberguess example is very similar to the JSF-based "
@@ -1330,13 +1340,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:568
+#: gettingstarted.xml:576
#, no-c-format
msgid "Differences are:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:573
+#: gettingstarted.xml:581
#, no-c-format
msgid ""
"Each wicket application must have a <literal>WebApplication</literal>
"
@@ -1345,7 +1355,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:579
+#: gettingstarted.xml:587
#, no-c-format
msgid ""
"<![CDATA[public class SampleApplication extends WebBeansApplication {\n"
@@ -1357,7 +1367,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:580
+#: gettingstarted.xml:588
#, no-c-format
msgid ""
"This class specifies which page wicket should treat as our home page, in our
"
@@ -1365,7 +1375,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:586
+#: gettingstarted.xml:594
#, no-c-format
msgid ""
"In <literal>HomePage</literal> we see typical wicket code to set up
page "
@@ -1374,13 +1384,13 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:592
+#: gettingstarted.xml:600
#, no-c-format
msgid "<![CDATA[ @Current Game game;]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:594
+#: gettingstarted.xml:602
#, no-c-format
msgid ""
"The <literal>Game</literal> bean is can then be used, for example, by
the "
@@ -1388,7 +1398,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:599
+#: gettingstarted.xml:607
#, no-c-format
msgid ""
"<![CDATA[final Component guessButton = new AjaxButton(\"GuessButton\")
{ \n"
@@ -1397,7 +1407,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:602
+#: gettingstarted.xml:610
#, no-c-format
msgid ""
"All injections may be serialized; actual storage of the bean is managed by "
@@ -1406,7 +1416,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:608
+#: gettingstarted.xml:616
#, no-c-format
msgid ""
"Wicket components allow injection, but they <emphasis>cannot</emphasis>
use "
@@ -1415,7 +1425,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:618
+#: gettingstarted.xml:626
#, no-c-format
msgid ""
"The example uses AJAX for processing of button events, and dynamically hides
"
@@ -1424,7 +1434,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:626
+#: gettingstarted.xml:634
#, no-c-format
msgid ""
"In order to activate wicket for this webapp, the Wicket filter is added to "
@@ -1432,7 +1442,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:631
+#: gettingstarted.xml:639
#, no-c-format
msgid ""
"<![CDATA[<filter>\n"
@@ -1458,7 +1468,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:632
+#: gettingstarted.xml:640
#, no-c-format
msgid ""
"Note that the servlet listener is also added, as in the Tomcat example, in "
@@ -1467,13 +1477,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:645
+#: gettingstarted.xml:653
#, fuzzy, no-c-format
msgid "The numberguess example for Java SE with Swing"
msgstr "numberguess 예제 "
#. Tag: para
-#: gettingstarted.xml:647
+#: gettingstarted.xml:655
#, no-c-format
msgid ""
"This example can be found in the
<literal>examples/se/numberguess</literal> "
@@ -1481,13 +1491,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:654
+#: gettingstarted.xml:662
#, fuzzy, no-c-format
msgid "To run this example:"
msgstr "번역 예제 "
#. Tag: para
-#: gettingstarted.xml:660
+#: gettingstarted.xml:668
#, no-c-format
msgid ""
"Open a command line/terminal window in the
<literal>examples/se/numberguess</"
@@ -1495,13 +1505,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:666
+#: gettingstarted.xml:674
#, no-c-format
msgid "Ensure that Maven 2 is installed and in your PATH"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:671
+#: gettingstarted.xml:679
#, no-c-format
msgid ""
"Ensure that the <literal>JAVA_HOME</literal> environment variable is
"
@@ -1509,19 +1519,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:677
+#: gettingstarted.xml:685
#, no-c-format
msgid "execute the following command"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:680
+#: gettingstarted.xml:688
#, no-c-format
msgid "mvn -Drun"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:686
+#: gettingstarted.xml:694
#, fuzzy, no-c-format
msgid ""
"There is an empty <literal>beans.xml</literal> file in the root package
"
@@ -1532,7 +1542,7 @@
"리케이션으로 애플리케이션을 표시합니다. "
#. Tag: para
-#: gettingstarted.xml:692
+#: gettingstarted.xml:700
#, no-c-format
msgid ""
"The game's main logic is located in <literal>Game.java</literal>.
Here is "
@@ -1541,7 +1551,7 @@
msgstr ""
#. Tag: section
-#: gettingstarted.xml:696
+#: gettingstarted.xml:704
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"scope\"
coords=\"1\"/> <area id="
@@ -1807,13 +1817,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:904
+#: gettingstarted.xml:912
#, no-c-format
msgid "The translator example"
msgstr "번역 예제 "
#. Tag: para
-#: gettingstarted.xml:906
+#: gettingstarted.xml:914
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them
"
@@ -1821,7 +1831,7 @@
msgstr "번역 예제는 입력하신 아무 문장을 가져가 이를 라틴어로 번역합니다. "
#. Tag: para
-#: gettingstarted.xml:911
+#: gettingstarted.xml:919
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs. As a result, "
@@ -1831,7 +1841,7 @@
"numberguess 예보다 훨씬 복잡합니다. "
#. Tag: para
-#: gettingstarted.xml:917
+#: gettingstarted.xml:925
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -1841,7 +1851,7 @@
"게 만들게 됩니다! "
#. Tag: para
-#: gettingstarted.xml:923
+#: gettingstarted.xml:931
#, no-c-format
msgid ""
"First, let's take a look at the ear aggregator, which is located in "
@@ -1853,7 +1863,7 @@
"다: "
#. Tag: programlisting
-#: gettingstarted.xml:929
+#: gettingstarted.xml:937
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -1885,7 +1895,7 @@
"</plugin>]]>"
#. Tag: para
-#: gettingstarted.xml:931
+#: gettingstarted.xml:939
#, no-c-format
msgid ""
"Here we set the context path, which gives us a nice url (<ulink
url=\"http://"
@@ -1897,7 +1907,7 @@
"니다. "
#. Tag: para
-#: gettingstarted.xml:937
+#: gettingstarted.xml:945
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
@@ -1907,7 +1917,7 @@
"xml</literal>이 필요합니다: "
#. Tag: programlisting
-#: gettingstarted.xml:942
+#: gettingstarted.xml:950
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\"
encoding=\"UTF-8\"?>\n"
@@ -1953,7 +1963,7 @@
"</application>]]>"
#. Tag: para
-#: gettingstarted.xml:945
+#: gettingstarted.xml:953
#, fuzzy, no-c-format
msgid ""
"Next, lets look at the war. Just as in the numberguess example, we have a "
@@ -1965,7 +1975,7 @@
"및 <literal>web.xml</literal> (JSF를 활성화)을 갖습니다. "
#. Tag: para
-#: gettingstarted.xml:952
+#: gettingstarted.xml:960
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -1976,7 +1986,7 @@
"된 템플릿이 있습니다 (간결하게 하기 위해 여기서는 생략됨): "
#. Tag: programlisting
-#: gettingstarted.xml:958
+#: gettingstarted.xml:966
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -2036,7 +2046,7 @@
"</h:form>]]>"
#. Tag: para
-#: gettingstarted.xml:960
+#: gettingstarted.xml:968
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate
"
@@ -2046,7 +2056,7 @@
"면 오른쪽에 번역 결과가 나타나게 됩니다. "
#. Tag: para
-#: gettingstarted.xml:965
+#: gettingstarted.xml:973
#, no-c-format
msgid ""
"Finally, let's look at the ejb module,
<literal>webbeans-translator-ejb</"
@@ -2060,7 +2070,7 @@
"이 있습니다. "
#. Tag: para
-#: gettingstarted.xml:973
+#: gettingstarted.xml:981
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two
"
@@ -2078,7 +2088,7 @@
"다. "
#. Tag: para
-#: gettingstarted.xml:983
+#: gettingstarted.xml:991
#, no-c-format
msgid ""
"Both <literal>SentenceParser</literal> and
<literal>TextTranslator</literal> "
@@ -2090,7 +2100,7 @@
"니다: "
#. Tag: programlisting
-#: gettingstarted.xml:989
+#: gettingstarted.xml:997
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -2116,7 +2126,7 @@
" this.sentenceTranslator = sentenceTranslator;]]>"
#. Tag: para
-#: gettingstarted.xml:991
+#: gettingstarted.xml:999
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local
business "
@@ -2127,7 +2137,7 @@
"스와 함께), 완전한 번역기를 개발할 수는 없지만, 잘 작동하고 있습니다! "
#. Tag: para
-#: gettingstarted.xml:997
+#: gettingstarted.xml:1005
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -2139,7 +2149,7 @@
"되어 있습니다. "
#. Tag: programlisting
-#: gettingstarted.xml:1003
+#: gettingstarted.xml:1011
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -2159,19 +2169,19 @@
" @Current TextTranslator translator;]]>"
#. Tag: para
-#: gettingstarted.xml:1005
+#: gettingstarted.xml:1013
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr "bean은 페이지에 있는 모든 영역에 대해 getter 및 setter를 갖습니다. "
#. Tag: para
-#: gettingstarted.xml:1009
+#: gettingstarted.xml:1017
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr "이는 상태 유지 세션 빈이므로, 제거 방식을 갖고 있어야 합니다: "
#. Tag: programlisting
-#: gettingstarted.xml:1013
+#: gettingstarted.xml:1021
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -2187,7 +2197,7 @@
" }]]>"
#. Tag: para
-#: gettingstarted.xml:1015
+#: gettingstarted.xml:1023
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -2197,7 +2207,7 @@
"요청 마지막에 호출하게 됩니다. "
#. Tag: para
-#: gettingstarted.xml:1021
+#: gettingstarted.xml:1029
#, fuzzy, no-c-format
msgid ""
"That concludes our short tour of the Web Beans examples. For more on Web "
@@ -2210,7 +2220,7 @@
"seamframework.org/WebBeans/Development</ulink>에서 살펴보시기 바랍니다. "
#. Tag: para
-#: gettingstarted.xml:1027
+#: gettingstarted.xml:1035
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
Modified: doc/trunk/reference/ko-KR/producermethods.po
===================================================================
--- doc/trunk/reference/ko-KR/producermethods.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/ko-KR/producermethods.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: producermethods\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2009-01-23 11:12+1000\n"
"Last-Translator: Eunju Kim <eukim(a)redhat.com>\n"
"Language-Team: Korean <ko(a)li.org>\n"
@@ -47,83 +47,29 @@
msgid "According to the spec:"
msgstr "spec에 의하면: "
-#. Tag: para
-#: producermethods.xml:16
+#. Tag: chapter
+#: producermethods.xml:12
#, no-c-format
msgid ""
-"A Web Beans producer method acts as a source of objects to be injected, "
-"where:"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:20
-#, no-c-format
-msgid ""
-"the objects to be injected are not required to be instances of Web Beans,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:23
-#, no-c-format
-msgid "the concrete type of the objects to be injected may vary at runtime or"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:26
-#, no-c-format
-msgid ""
-"the objects require some custom initialization that is not performed by the "
-"Web Bean constructor"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:33
-#, fuzzy, no-c-format
-msgid "For example, producer methods let us:"
-msgstr "생산자 방식의 범위 "
-
-#. Tag: para
-#: producermethods.xml:37
-#, no-c-format
-msgid "expose a JPA entity as a Web Bean,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:40
-#, no-c-format
-msgid "expose any JDK class as a Web Bean,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:43
-#, no-c-format
-msgid ""
-"define multiple Web Beans, with different scopes or initialization, for the "
-"same implementation class, or"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:47
-#, no-c-format
-msgid "vary the implementation of an API type at runtime."
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:51
-#, no-c-format
-msgid ""
-"In particular, producer methods let us use runtime polymorphism with Web "
-"Beans. As we've seen, deployment types are a powerful solution to the "
-"problem of deployment-time polymorphism. But once the system is deployed, "
-"the Web Bean implementation is fixed. A producer method has no such "
-"limitation:"
-msgstr ""
-
-#. Tag: programlisting
-#: producermethods.xml:56
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[@SessionScoped\n"
+"<blockquote> <para>A Web Beans producer method acts as a source of
objects "
+"to be injected, where:</para> <itemizedlist> <listitem>
<para>the objects to "
+"be injected are not required to be instances of Web Beans,</para>
</"
+"listitem> <listitem> <para>the concrete type of the objects to be
injected "
+"may vary at runtime or</para> </listitem> <listitem>
<para>the objects "
+"require some custom initialization that is not performed by the Web Bean "
+"constructor</para> </listitem> </itemizedlist>
</blockquote> <para>For "
+"example, producer methods let us:</para> <itemizedlist>
<listitem> "
+"<para>expose a JPA entity as a Web Bean,</para> </listitem>
<listitem> "
+"<para>expose any JDK class as a Web Bean,</para> </listitem>
<listitem> "
+"<para>define multiple Web Beans, with different scopes or initialization,
"
+"for the same implementation class, or</para> </listitem>
<listitem> "
+"<para>vary the implementation of an API type at runtime.</para>
</listitem> "
+"</itemizedlist> <para>In particular, producer methods let us use
runtime "
+"polymorphism with Web Beans. As we've seen, deployment types are a powerful
"
+"solution to the problem of deployment-time polymorphism. But once the system
"
+"is deployed, the Web Bean implementation is fixed. A producer method has no "
+"such limitation:</para> <programlisting
role=\"JAVA\"><![CDATA"
+"[@SessionScoped\n"
"public class Preferences {\n"
" \n"
" private PaymentStrategyType paymentStrategy;\n"
@@ -140,52 +86,53 @@
" } \n"
" }\n"
" \n"
-"}]]>"
+"}]]></programlisting> <para>Consider an injection
point:</para> "
+"<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
+"paymentStrat;]]></programlisting> <para>This injection point has the
same "
+"type and binding annotations as the producer method, so it resolves to the "
+"producer method using the usual Web Beans injection rules. The producer "
+"method will be called by the Web Bean manager to obtain an instance to "
+"service this injection point.</para>."
msgstr ""
-"<![CDATA[@Produces @Preferred @SessionScoped\n"
-"public PaymentStrategy getPaymentStrategy(CreditCardPaymentStrategy ccps,\n"
-" ChequePaymentStrategy cps,\n"
-" PayPalPaymentStrategy ppps) {\n"
-" switch (paymentStrategy) {\n"
-" case CREDIT_CARD: return ccps;\n"
-" case CHEQUE: return cps;\n"
-" case PAYPAL: return ppps;\n"
-" default: return null;\n"
-" } \n"
-"}]]>"
-
-#. Tag: para
-#: producermethods.xml:58
-#, no-c-format
-msgid "Consider an injection point:"
-msgstr ""
-
-#. Tag: programlisting
-#: producermethods.xml:60
-#, fuzzy, no-c-format
-msgid "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
-msgstr ""
-"<![CDATA[@Produces @Preferred @SessionScoped\n"
-"public PaymentStrategy getPaymentStrategy() {\n"
+"<blockquote> <para> Web Beans 생산자 방식은 삽입될 객체 소스로 작동합니다, 여"
+"기서 </para> <itemizedlist> <listitem> <para> 삽입될 객체는 Web
Beans의 인스"
+"턴스가 될 필요가 없습니다,</para> </listitem> <listitem> <para> 삽입되야 할
"
+"객체의 구체적 타입은 런타임 시 달라질 수 있습니다 </para> </listitem> "
+"<listitem> <para> 사용자 정의 초기화가 필요한 객체는 Web Bean 생성자에 의해 "
+"실행되지 않습니다</para> </listitem> </itemizedlist> </blockquote>
<para> 예"
+"를 들어, 생산자 방식은 다음을 허용합니다: </para> <itemizedlist> <listitem>
"
+"<para>Web Bean으로서 JPA 엔티티 노출,</para> </listitem> <listitem>
"
+"<para>Web Bean으로서 JDK 클래스 노출,</para> </listitem> <listitem>
<para>동"
+"일한 구현 클래스에 대해 다른 범위 또는 초기화를 사용하여 여러 Web Beans를 정"
+"의, </para> </listitem> <listitem> <para>런타임 시 다양한 API 유형
구현.</"
+"para> </listitem> </itemizedlist> <para> 특히, 생산자 방식은 Web
Beans를 사용"
+"하여 런타임 다형성을 사용하게 합니다. 이미 알고 있듯이, 배치 유형은 배치 시"
+"간 다형성 문제의 강력한 해결책입니다. 하지만 일단 시스템이 운용되면 Web Bean "
+"구현은 고정됩니다. 생산자 방식은 이러한 한계를 갖지 않습니다:</para> "
+"<programlisting role=\"JAVA\"><![CDATA[@SessionScoped\n"
+"public class Preferences {\n"
+" \n"
+" private PaymentStrategyType paymentStrategy;\n"
+" \n"
" ...\n"
-"}]]>"
+" \n"
+" @Produces @Preferred \n"
+" public PaymentStrategy getPaymentStrategy() {\n"
+" switch (paymentStrategy) {\n"
+" case CREDIT_CARD: return new CreditCardPaymentStrategy();\n"
+" case CHEQUE: return new ChequePaymentStrategy();\n"
+" case PAYPAL: return new PayPalPaymentStrategy();\n"
+" default: return null;\n"
+" } \n"
+" }\n"
+" \n"
+"}]]></programlisting> <para>삽입 지점 고려:</para>
<programlisting role="
+"\"JAVA\"><![CDATA[@Preferred PaymentStrategy
paymentStrat;]]></"
+"programlisting> <para> 이러한 삽입 지점은 동일한 유형을 갖으며 생산자 방식으"
+"로 어노테이션을 바인딩하므로, 일반적인 Web Beans 삽입 규칙을 사용하여 생산자 "
+"방식을 해결합니다. 생산자 방식은 Web Bean 관리자에 의해 호출되어 이러한 삽입 "
+"지점을 서비스하기 위해 인스턴스를 획득합니다.</para>. "
-#. Tag: para
-#: producermethods.xml:62
-#, no-c-format
-msgid ""
-"This injection point has the same type and binding annotations as the "
-"producer method, so it resolves to the producer method using the usual Web "
-"Beans injection rules. The producer method will be called by the Web Bean "
-"manager to obtain an instance to service this injection point."
-msgstr ""
-
-#. Tag: chapter
-#: producermethods.xml:65
-#, no-c-format
-msgid "<chapter>.</chapter>"
-msgstr ""
-
#. Tag: title
#: producermethods.xml:68
#, no-c-format
@@ -411,26 +358,13 @@
"에 <literal>Preferences</literal> 객체가 삭제될 때 까지 삭제되지 않습니"
"다. "
+#, fuzzy
+#~ msgid "For example, producer methods let us:"
+#~ msgstr "생산자 방식의 범위 "
+
+#, fuzzy
#~ msgid ""
-#~ "<blockquote> <para>A Web Beans producer method acts as a source of
"
-#~ "objects to be injected, where:</para> <itemizedlist>
<listitem> <para>the "
-#~ "objects to be injected are not required to be instances of Web
Beans,</"
-#~ "para> </listitem> <listitem> <para>the concrete type of the
objects to be "
-#~ "injected may vary at runtime or</para> </listitem> <listitem>
<para>the "
-#~ "objects require some custom initialization that is not performed by the "
-#~ "Web Bean constructor</para> </listitem> </itemizedlist>
</blockquote> "
-#~ "<para>For example, producer methods let us:</para>
<itemizedlist> "
-#~ "<listitem> <para>expose a JPA entity as a Web Bean,</para>
</listitem> "
-#~ "<listitem> <para>expose any JDK class as a Web Bean,</para>
</listitem> "
-#~ "<listitem> <para>define multiple Web Beans, with different scopes or
"
-#~ "initialization, for the same implementation class, or</para>
</listitem> "
-#~ "<listitem> <para>vary the implementation of an API type at
runtime.</"
-#~ "para> </listitem> </itemizedlist> <para>In particular,
producer methods "
-#~ "let us use runtime polymorphism with Web Beans. As we've seen, deployment
"
-#~ "types are a powerful solution to the problem of deployment-time "
-#~ "polymorphism. But once the system is deployed, the Web Bean "
-#~ "implementation is fixed. A producer method has no such limitation:</para>
"
-#~ "<programlisting
role=\"JAVA\"><![CDATA[@SessionScoped\n"
+#~ "<![CDATA[@SessionScoped\n"
#~ "public class Preferences {\n"
#~ " \n"
#~ " private PaymentStrategyType paymentStrategy;\n"
@@ -447,50 +381,25 @@
#~ " } \n"
#~ " }\n"
#~ " \n"
-#~ "}]]></programlisting> <para>Consider an injection
point:</para> "
-#~ "<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
-#~ "paymentStrat;]]></programlisting> <para>This injection point has
the same "
-#~ "type and binding annotations as the producer method, so it resolves to "
-#~ "the producer method using the usual Web Beans injection rules. The "
-#~ "producer method will be called by the Web Bean manager to obtain an "
-#~ "instance to service this injection point.</para>."
+#~ "}]]>"
#~ msgstr ""
-#~ "<blockquote> <para> Web Beans 생산자 방식은 삽입될 객체 소스로 작동합니"
-#~ "다, 여기서 </para> <itemizedlist> <listitem> <para> 삽입될 객체는
Web "
-#~ "Beans의 인스턴스가 될 필요가 없습니다,</para> </listitem> <listitem> "
-#~ "<para> 삽입되야 할 객체의 구체적 타입은 런타임 시 달라질 수 있습니다 </"
-#~ "para> </listitem> <listitem> <para> 사용자 정의 초기화가 필요한 객체는
"
-#~ "Web Bean 생성자에 의해 실행되지 않습니다</para> </listitem> </"
-#~ "itemizedlist> </blockquote> <para> 예를 들어, 생산자 방식은 다음을 허용합"
-#~ "니다: </para> <itemizedlist> <listitem> <para>Web Bean으로서
JPA 엔티티 노"
-#~ "출,</para> </listitem> <listitem> <para>Web Bean으로서 JDK
클래스 노출,</"
-#~ "para> </listitem> <listitem> <para>동일한 구현 클래스에 대해 다른 범위
또"
-#~ "는 초기화를 사용하여 여러 Web Beans를 정의, </para> </listitem> "
-#~ "<listitem> <para>런타임 시 다양한 API 유형 구현.</para> </listitem>
</"
-#~ "itemizedlist> <para> 특히, 생산자 방식은 Web Beans를 사용하여 런타임 다형"
-#~ "성을 사용하게 합니다. 이미 알고 있듯이, 배치 유형은 배치 시간 다형성 문제"
-#~ "의 강력한 해결책입니다. 하지만 일단 시스템이 운용되면 Web Bean 구현은 고정"
-#~ "됩니다. 생산자 방식은 이러한 한계를 갖지 않습니다:</para> <programlisting "
-#~ "role=\"JAVA\"><![CDATA[@SessionScoped\n"
-#~ "public class Preferences {\n"
-#~ " \n"
-#~ " private PaymentStrategyType paymentStrategy;\n"
-#~ " \n"
+#~ "<![CDATA[@Produces @Preferred @SessionScoped\n"
+#~ "public PaymentStrategy getPaymentStrategy(CreditCardPaymentStrategy "
+#~ "ccps,\n"
+#~ " ChequePaymentStrategy cps,\n"
+#~ " PayPalPaymentStrategy ppps) {\n"
+#~ " switch (paymentStrategy) {\n"
+#~ " case CREDIT_CARD: return ccps;\n"
+#~ " case CHEQUE: return cps;\n"
+#~ " case PAYPAL: return ppps;\n"
+#~ " default: return null;\n"
+#~ " } \n"
+#~ "}]]>"
+
+#, fuzzy
+#~ msgid "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
+#~ msgstr ""
+#~ "<![CDATA[@Produces @Preferred @SessionScoped\n"
+#~ "public PaymentStrategy getPaymentStrategy() {\n"
#~ " ...\n"
-#~ " \n"
-#~ " @Produces @Preferred \n"
-#~ " public PaymentStrategy getPaymentStrategy() {\n"
-#~ " switch (paymentStrategy) {\n"
-#~ " case CREDIT_CARD: return new CreditCardPaymentStrategy();\n"
-#~ " case CHEQUE: return new ChequePaymentStrategy();\n"
-#~ " case PAYPAL: return new PayPalPaymentStrategy();\n"
-#~ " default: return null;\n"
-#~ " } \n"
-#~ " }\n"
-#~ " \n"
-#~ "}]]></programlisting> <para>삽입 지점 고려:</para>
<programlisting role="
-#~ "\"JAVA\"><![CDATA[@Preferred PaymentStrategy
paymentStrat;]]></"
-#~ "programlisting> <para> 이러한 삽입 지점은 동일한 유형을 갖으며 생산자 방식"
-#~ "으로 어노테이션을 바인딩하므로, 일반적인 Web Beans 삽입 규칙을 사용하여 생"
-#~ "산자 방식을 해결합니다. 생산자 방식은 Web Bean 관리자에 의해 호출되어 이러"
-#~ "한 삽입 지점을 서비스하기 위해 인스턴스를 획득합니다.</para>. "
+#~ "}]]>"
Modified: doc/trunk/reference/pot/Author_Group.pot
===================================================================
--- doc/trunk/reference/pot/Author_Group.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/Author_Group.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/Book_Info.pot
===================================================================
--- doc/trunk/reference/pot/Book_Info.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/Book_Info.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/decorators.pot
===================================================================
--- doc/trunk/reference/pot/decorators.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/decorators.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/ee.pot
===================================================================
--- doc/trunk/reference/pot/ee.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/ee.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/environments.pot
===================================================================
--- doc/trunk/reference/pot/environments.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/environments.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
@@ -84,7 +84,7 @@
#. Tag: title
#: environments.xml:47
#, no-c-format
-msgid "Glassfish"
+msgid "GlassFish"
msgstr ""
#. Tag: para
@@ -122,9 +122,9 @@
msgid ""
"Web Beans should be used as a web application library in a servlet "
"container. You should place <literal>webbeans-servlet.jar</literal> in
"
-"<literal>WEB-INF/lib</literal>.
<literal>webbeans-serv;et.jar</literal> is "
-"an \"uber-jar\" provided for your convenience. Instead, you could use its
"
-"component jars:"
+"<literal>WEB-INF/lib</literal>.
<literal>webbeans-servlet.jar</literal> is "
+"an \"uber-jar\" provided for your convenience. Alternatively, you could
use "
+"its component jars:"
msgstr ""
#. Tag: literal
@@ -205,45 +205,46 @@
#, no-c-format
msgid ""
"Tomcat has a read-only JNDI, so Web Beans can't automatically bind the "
-"Manager. To bind the Manager into JNDI, you should add the following to your
"
-"<literal>META-INF/context.xml</literal>:"
+"Manager. To bind the Manager into JNDI, you should populate
<literal>META-"
+"INF/context.xml</literal> with the following contents:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:134
+#: environments.xml:135
#, no-c-format
msgid ""
-"<![CDATA[<Resource name=\"app/Manager\" \n"
-" auth=\"Container\"\n"
-" type=\"javax.inject.manager.Manager\"\n"
-"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
-"]]>"
+"<![CDATA[<Context>\n"
+" <Resource name=\"app/Manager\" \n"
+" auth=\"Container\"\n"
+" type=\"javax.inject.manager.Manager\"\n"
+"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
+"</Context>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:136
+#: environments.xml:137
#, no-c-format
msgid ""
-"and make it available to your deployment by adding this to
<literal>web.xml</"
-"literal>:"
+"and make it available to your deployment by adding this to the bottom of "
+"<literal>web.xml</literal>:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:141
+#: environments.xml:142
#, no-c-format
msgid ""
"<![CDATA[<resource-env-ref>\n"
-" <resource-env-ref-name>\n"
-" app/Manager\n"
-" </resource-env-ref-name>\n"
-" <resource-env-ref-type>\n"
-" javax.inject.manager.Manager\n"
-" </resource-env-ref-type>\n"
+" <resource-env-ref-name>\n"
+" app/Manager\n"
+" </resource-env-ref-name>\n"
+" <resource-env-ref-type>\n"
+" javax.inject.manager.Manager\n"
+" </resource-env-ref-type>\n"
"</resource-env-ref>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:143
+#: environments.xml:144
#, no-c-format
msgid ""
"Tomcat only allows you to bind entries to
<literal>java:comp/env</literal>, "
@@ -252,7 +253,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:149
+#: environments.xml:150
#, no-c-format
msgid ""
"Web Beans also supports Servlet injection in Tomcat. To enable this, place "
@@ -262,21 +263,84 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:156
+#: environments.xml:157
#, no-c-format
msgid ""
"<![CDATA[<Listener
className=\"org.jboss.webbeans.environment.tomcat."
-"WebBeansLifecycleListener\" />]]>"
+"WebBeansLifecycleListener\"/>]]>"
msgstr ""
#. Tag: title
-#: environments.xml:163
+#: environments.xml:162
#, no-c-format
+msgid "Jetty"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:164
+#, no-c-format
+msgid ""
+"Like Tomcat, Jetty has a read-only JNDI, so Web Beans can't automatically
"
+"bind the Manager. To bind the Manager to JNDI, you should populate "
+"<literal>WEB-INF/jetty-env.xml</literal> with the following
contents:"
+msgstr ""
+
+#. Tag: programlisting
+#: environments.xml:171
+#, no-c-format
+msgid ""
+"<![CDATA[<!DOCTYPE Configure PUBLIC \"-//Mort Bay Consulting//DTD
Configure//"
+"EN\"\n"
+" \"http://jetty.mortbay.org/configure.dtd\">\n"
+"<Configure id=\"webAppCtx\"
class=\"org.mortbay.jetty.webapp.WebAppContext"
+"\">\n"
+" <New id=\"appManager\"
class=\"org.mortbay.jetty.plus.naming.Resource\">\n"
+" <Arg><Ref id=\"webAppCtx\"/></Arg> \n"
+" <Arg>app/Manager</Arg>\n"
+" <Arg>\n"
+" <New class=\"javax.naming.Reference\">\n"
+" <Arg>javax.inject.manager.Manager</Arg> \n"
+"
<Arg>org.jboss.webbeans.resources.ManagerObjectFactory</Arg>\n"
+" <Arg/>\n"
+" </New>\n"
+" </Arg>\n"
+" </New>\n"
+"</Configure>]]>"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:173
+#, no-c-format
+msgid ""
+"Notice that Jetty doesn't not have built-in support for an
<literal>javax."
+"naming.spi.ObjectFactory</literal> like Tomcat, so it's necessary to
"
+"manually create the <literal>javax.naming.Reference</literal> to wrap
around "
+"it."
+msgstr ""
+
+#. Tag: para
+#: environments.xml:180
+#, no-c-format
+msgid ""
+"Jetty only allows you to bind entries to
<literal>java:comp/env</literal>, "
+"so the Manager will be available at
<literal>java:comp/env/app/Manager</"
+"literal>"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:186
+#, no-c-format
+msgid "Web Beans does not currently support Servlet injection in Jetty."
+msgstr ""
+
+#. Tag: title
+#: environments.xml:195
+#, no-c-format
msgid "Java SE"
msgstr ""
#. Tag: para
-#: environments.xml:165
+#: environments.xml:197
#, no-c-format
msgid ""
"Apart from improved integration of the Enterprise Java stack, Web Beans also
"
@@ -288,7 +352,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:173
+#: environments.xml:205
#, no-c-format
msgid ""
"When executing in the SE environment the following features of Web Beans are
"
@@ -296,49 +360,55 @@
msgstr ""
#. Tag: literal
-#: environments.xml:179
+#: environments.xml:211
#, no-c-format
msgid "Simple Web Beans (POJOs)"
msgstr ""
#. Tag: literal
-#: environments.xml:184
+#: environments.xml:216
#, no-c-format
msgid "Typesafe Dependency Injection"
msgstr ""
#. Tag: literal
-#: environments.xml:189
+#: environments.xml:221
#, no-c-format
msgid "Application and Dependent Contexts"
msgstr ""
#. Tag: literal
-#: environments.xml:194
+#: environments.xml:226
#, no-c-format
msgid "Binding Types"
msgstr ""
#. Tag: literal
-#: environments.xml:199
+#: environments.xml:231
#, no-c-format
+msgid "Deployment Types"
+msgstr ""
+
+#. Tag: literal
+#: environments.xml:236
+#, no-c-format
msgid "Stereotypes"
msgstr ""
#. Tag: literal
-#: environments.xml:204
+#: environments.xml:241
#, no-c-format
msgid "Typesafe Event Model"
msgstr ""
#. Tag: title
-#: environments.xml:210
+#: environments.xml:247
#, no-c-format
msgid "Web Beans SE Module"
msgstr ""
#. Tag: para
-#: environments.xml:212
+#: environments.xml:249
#, no-c-format
msgid ""
"To make life easy for developers Web Beans provides a special module with a "
@@ -351,7 +421,7 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:221
+#: environments.xml:258
#, no-c-format
msgid ""
"<![CDATA[@Parameters List<String> params;\n"
@@ -360,13 +430,13 @@
msgstr ""
#. Tag: para
-#: environments.xml:222
+#: environments.xml:259
#, no-c-format
msgid "Here's an example of a simple Web Beans SE application:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:226
+#: environments.xml:263
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -382,20 +452,20 @@
msgstr ""
#. Tag: para
-#: environments.xml:228
+#: environments.xml:265
#, no-c-format
msgid ""
"Web Beans SE applications are started by running the following main method."
msgstr ""
#. Tag: programlisting
-#: environments.xml:230
+#: environments.xml:267
#, no-c-format
msgid "<![CDATA[java org.jboss.webbeans.environments.se.StartMain
<args>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:232
+#: environments.xml:269
#, no-c-format
msgid ""
"If you need to do any custom initialization of the Web Beans manager, for "
@@ -405,7 +475,7 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:237
+#: environments.xml:274
#, no-c-format
msgid ""
"<![CDATA[public class PerformSetup\n"
@@ -419,7 +489,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:240
+#: environments.xml:277
#, no-c-format
msgid ""
"The command line parameters do not become available for injection until the "
Modified: doc/trunk/reference/pot/events.pot
===================================================================
--- doc/trunk/reference/pot/events.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/events.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/example.pot
===================================================================
--- doc/trunk/reference/pot/example.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/example.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/extend.pot
===================================================================
--- doc/trunk/reference/pot/extend.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/extend.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/extensions.pot
===================================================================
--- doc/trunk/reference/pot/extensions.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/extensions.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/gettingstarted.pot
===================================================================
--- doc/trunk/reference/pot/gettingstarted.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/gettingstarted.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
@@ -90,7 +90,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:49 gettingstarted.xml:170
+#: gettingstarted.xml:49 gettingstarted.xml:177
#, no-c-format
msgid ""
"Next, download Web Beans from <ulink
url=\"http://seamframework.org/Download"
@@ -98,7 +98,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:55 gettingstarted.xml:176
+#: gettingstarted.xml:55 gettingstarted.xml:183
#, no-c-format
msgid ""
"<![CDATA[$ cd ~/\n"
@@ -128,8 +128,16 @@
"<literal>ANT_HOME</literal> environment variable set. For
example:"
msgstr ""
+#. Tag: para
+#: gettingstarted.xml:72
+#, no-c-format
+msgid ""
+"JBoss 5.1.0 comes with Web Beans built in, so there is no need to update the
"
+"server."
+msgstr ""
+
#. Tag: programlisting
-#: gettingstarted.xml:71
+#: gettingstarted.xml:78
#, no-c-format
msgid ""
"$ unzip apache-ant-1.7.0.zip\n"
@@ -137,7 +145,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:73
+#: gettingstarted.xml:80
#, no-c-format
msgid ""
"Then, you can install the update. The update script will use Maven to "
@@ -145,7 +153,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:78
+#: gettingstarted.xml:85
#, no-c-format
msgid ""
"$ cd webbeans-$VERSION/jboss-as\n"
@@ -153,13 +161,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:80
+#: gettingstarted.xml:87
#, no-c-format
msgid "Now, you're ready to deploy your first example!"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:85
+#: gettingstarted.xml:92
#, no-c-format
msgid ""
"The build scripts for the examples offer a number of targets for JBoss AS, "
@@ -167,13 +175,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:91
+#: gettingstarted.xml:98
#, no-c-format
msgid "<literal>ant restart</literal> - deploy the example in exploded
format"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:97
+#: gettingstarted.xml:104
#, no-c-format
msgid ""
"<literal>ant explode</literal> - update an exploded example, without
"
@@ -181,32 +189,32 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:103
+#: gettingstarted.xml:110
#, no-c-format
msgid ""
"<literal>ant deploy</literal> - deploy the example in compressed jar
format"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:108
+#: gettingstarted.xml:115
#, no-c-format
msgid "<literal>ant undeploy</literal> - remove the example from the
server"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:113
+#: gettingstarted.xml:120
#, no-c-format
msgid "<literal>ant clean</literal> - clean the example"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:120
+#: gettingstarted.xml:127
#, no-c-format
msgid "To deploy the numberguess example:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:124
+#: gettingstarted.xml:131
#, no-c-format
msgid ""
"$ cd examples/numberguess\n"
@@ -214,25 +222,25 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:126
+#: gettingstarted.xml:133
#, no-c-format
msgid "Start JBoss AS:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:130
+#: gettingstarted.xml:137
#, no-c-format
msgid "$ /Application/jboss-5.0.0.GA/bin/run.sh"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:133
+#: gettingstarted.xml:140
#, no-c-format
msgid "If you use Windows, use the
<literal>run.bat</literal>script."
msgstr ""
#. Tag: para
-#: gettingstarted.xml:138 gettingstarted.xml:240
+#: gettingstarted.xml:145 gettingstarted.xml:247
#, no-c-format
msgid ""
"Wait for the application to deploy, and enjoy hours of fun at <ulink url="
@@ -240,7 +248,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:143
+#: gettingstarted.xml:150
#, no-c-format
msgid ""
"Web Beans includes a second simple example that will translate your text "
@@ -250,7 +258,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:150
+#: gettingstarted.xml:157
#, no-c-format
msgid ""
"$ cd examples/translator\n"
@@ -258,7 +266,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:152
+#: gettingstarted.xml:159
#, no-c-format
msgid ""
"Wait for the application to deploy, and visit <ulink url=\"http://"
@@ -266,13 +274,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:160
+#: gettingstarted.xml:167
#, no-c-format
msgid "Using Apache Tomcat 6.0"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:162
+#: gettingstarted.xml:169
#, no-c-format
msgid ""
"You'll need to download Tomcat 6.0.18 or later from <ulink
url=\"http://"
@@ -281,7 +289,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:168
+#: gettingstarted.xml:175
#, no-c-format
msgid ""
"<![CDATA[$ cd /Applications\n"
@@ -289,7 +297,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:178
+#: gettingstarted.xml:185
#, no-c-format
msgid ""
"Next, we need to tell Web Beans where Tomcat is located. Edit
<literal>jboss-"
@@ -298,13 +306,13 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:184
+#: gettingstarted.xml:191
#, no-c-format
msgid "tomcat.home=/Applications/apache-tomcat-6.0.18"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:187
+#: gettingstarted.xml:194
#, no-c-format
msgid ""
"The build scripts for the examples offer a number of targets for Tomcat, "
@@ -312,14 +320,14 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:193
+#: gettingstarted.xml:200
#, no-c-format
msgid ""
"<literal>ant tomcat.restart</literal> - deploy the example in exploded
format"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:199
+#: gettingstarted.xml:206
#, no-c-format
msgid ""
"<literal>ant tomcat.explode</literal> - update an exploded example,
without "
@@ -327,7 +335,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:205
+#: gettingstarted.xml:212
#, no-c-format
msgid ""
"<literal>ant tomcat.deploy</literal> - deploy the example in compressed
jar "
@@ -335,26 +343,26 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:210
+#: gettingstarted.xml:217
#, no-c-format
msgid ""
"<literal>ant tomcat.undeploy</literal> - remove the example from the
server"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:215
+#: gettingstarted.xml:222
#, no-c-format
msgid "<literal>ant tomcat.clean</literal> - clean the example"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:222
+#: gettingstarted.xml:229
#, no-c-format
msgid "To deploy the numberguess example for tomcat:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:226
+#: gettingstarted.xml:233
#, no-c-format
msgid ""
"$ cd examples/tomcat\n"
@@ -362,43 +370,43 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:228
+#: gettingstarted.xml:235
#, no-c-format
msgid "Start Tomcat:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:232
+#: gettingstarted.xml:239
#, no-c-format
msgid "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:235
+#: gettingstarted.xml:242
#, no-c-format
msgid "If you use Windows, use the
<literal>startup.bat</literal>script."
msgstr ""
#. Tag: title
-#: gettingstarted.xml:248
+#: gettingstarted.xml:255
#, no-c-format
msgid "Using GlassFish"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:250
+#: gettingstarted.xml:257
#, no-c-format
msgid "TODO"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:254
+#: gettingstarted.xml:261
#, no-c-format
msgid "The numberguess example"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:256
+#: gettingstarted.xml:263
#, no-c-format
msgid ""
"In the numberguess application you get given 10 attempts to guess a number "
@@ -407,7 +415,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:262
+#: gettingstarted.xml:269
#, no-c-format
msgid ""
"The numberguess example is comprised of a number of Web Beans, configuration
"
@@ -416,7 +424,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:268
+#: gettingstarted.xml:275
#, no-c-format
msgid ""
"All the configuration files for this example are located in
<literal>WEB-INF/"
@@ -426,7 +434,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:276
+#: gettingstarted.xml:283
#, no-c-format
msgid ""
"<![CDATA[<?xml version='1.0' encoding='UTF-8'?>\n"
@@ -444,7 +452,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:278
+#: gettingstarted.xml:285
#, no-c-format
msgid ""
"There is an empty <literal>web-beans.xml</literal> file, which marks
this "
@@ -452,13 +460,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:283
+#: gettingstarted.xml:290
#, no-c-format
msgid "Finally there is <literal>web.xml</literal>:"
msgstr ""
#. Tag: section
-#: gettingstarted.xml:285
+#: gettingstarted.xml:292
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"faces.servlet\"
coords=\"12\"/> "
@@ -580,7 +588,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:387
+#: gettingstarted.xml:394
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -589,7 +597,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:393
+#: gettingstarted.xml:400
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -600,7 +608,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:395
+#: gettingstarted.xml:402
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for
"
@@ -608,7 +616,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:400
+#: gettingstarted.xml:407
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -620,7 +628,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:402
+#: gettingstarted.xml:409
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the
"
@@ -629,7 +637,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:408
+#: gettingstarted.xml:415
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -658,7 +666,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:410
+#: gettingstarted.xml:417
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application
scoped; "
@@ -666,7 +674,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:415
+#: gettingstarted.xml:422
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped
<literal>Game</"
@@ -674,7 +682,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:420
+#: gettingstarted.xml:427
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal>
annotation, so "
@@ -685,7 +693,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:428
+#: gettingstarted.xml:435
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -787,13 +795,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:431
+#: gettingstarted.xml:438
#, no-c-format
msgid "The numberguess example in Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:433
+#: gettingstarted.xml:440
#, no-c-format
msgid ""
"The numberguess for Tomcat differs in a couple of ways. Firstly, Web Beans "
@@ -803,7 +811,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:442
+#: gettingstarted.xml:449
#, no-c-format
msgid ""
"Of course, you must also include JSF and EL, as well common annotations "
@@ -811,7 +819,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:449
+#: gettingstarted.xml:456
#, no-c-format
msgid ""
"Secondly, we need to explicitly specify the servlet listener (used to boot "
@@ -820,7 +828,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:455
+#: gettingstarted.xml:462
#, no-c-format
msgid ""
"<![CDATA[<listener>\n"
@@ -830,13 +838,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:460
+#: gettingstarted.xml:467
#, no-c-format
msgid "The numberguess example for Apache Wicket"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:461
+#: gettingstarted.xml:468
#, no-c-format
msgid ""
"Whilst JSR-299 specifies integration with Java ServerFaces, Web Beans allows
"
@@ -846,7 +854,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:470
+#: gettingstarted.xml:477
#, no-c-format
msgid ""
"You may want to review the Wicket documentation at <ulink
url=\"http://"
@@ -854,7 +862,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:476
+#: gettingstarted.xml:483
#, no-c-format
msgid ""
"Like the previous example, the Wicket WebBeans examples make use of the "
@@ -867,7 +875,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:487
+#: gettingstarted.xml:494
#, no-c-format
msgid ""
"These examples make use of the Eclipse IDE; instructions are also given to "
@@ -875,43 +883,45 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:493
+#: gettingstarted.xml:500
#, no-c-format
msgid "Creating the Eclipse project"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:495
+#: gettingstarted.xml:502
#, no-c-format
msgid "To generate an Eclipse project from the example:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:499
+#: gettingstarted.xml:506
#, no-c-format
msgid ""
"<![CDATA[cd examples/wicket/numberguess\n"
-"mvn eclipse:eclipse]]>"
+"mvn -Pjetty eclipse:eclipse]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:501
+#: gettingstarted.xml:508
#, no-c-format
msgid ""
"Then, from eclipse, choose <emphasis>File -> Import -> General ->
Existing "
"Projects into Workspace</emphasis>, select the root directory of the "
-"numberguess example, and click finish. This will create a project in your "
-"workspace called <literal>webbeans-wicket-numberguess</literal>"
+"numberguess example, and click finish. Note that if you do not intend to run
"
+"the example with jetty from within eclipse, omit the \"-Pjetty.\" This
will "
+"create a project in your workspace called <literal>webbeans-wicket-"
+"numberguess</literal>"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:516
+#: gettingstarted.xml:524
#, no-c-format
msgid "Running the example from Eclipse"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:518
+#: gettingstarted.xml:526
#, no-c-format
msgid ""
"This project follows the <literal>wicket-quickstart</literal> approach
of "
@@ -925,13 +935,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:533
+#: gettingstarted.xml:541
#, no-c-format
msgid "Running the example from the command line in JBoss AS or Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:535
+#: gettingstarted.xml:543
#, no-c-format
msgid ""
"This example can also be deployed from the command line in a (similar to the
"
@@ -944,13 +954,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:549
+#: gettingstarted.xml:557
#, no-c-format
msgid "Understanding the code"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:551
+#: gettingstarted.xml:559
#, no-c-format
msgid ""
"JSF uses Unified EL expressions to bind view layer components in JSP or "
@@ -964,7 +974,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:563
+#: gettingstarted.xml:571
#, no-c-format
msgid ""
"The code in the wicket numberguess example is very similar to the JSF-based "
@@ -972,13 +982,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:568
+#: gettingstarted.xml:576
#, no-c-format
msgid "Differences are:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:573
+#: gettingstarted.xml:581
#, no-c-format
msgid ""
"Each wicket application must have a <literal>WebApplication</literal>
"
@@ -987,7 +997,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:579
+#: gettingstarted.xml:587
#, no-c-format
msgid ""
"<![CDATA[public class SampleApplication extends WebBeansApplication {\n"
@@ -999,7 +1009,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:580
+#: gettingstarted.xml:588
#, no-c-format
msgid ""
"This class specifies which page wicket should treat as our home page, in our
"
@@ -1007,7 +1017,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:586
+#: gettingstarted.xml:594
#, no-c-format
msgid ""
"In <literal>HomePage</literal> we see typical wicket code to set up
page "
@@ -1016,13 +1026,13 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:592
+#: gettingstarted.xml:600
#, no-c-format
msgid "<![CDATA[ @Current Game game;]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:594
+#: gettingstarted.xml:602
#, no-c-format
msgid ""
"The <literal>Game</literal> bean is can then be used, for example, by
the "
@@ -1030,7 +1040,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:599
+#: gettingstarted.xml:607
#, no-c-format
msgid ""
"<![CDATA[final Component guessButton = new AjaxButton(\"GuessButton\")
{ \n"
@@ -1039,7 +1049,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:602
+#: gettingstarted.xml:610
#, no-c-format
msgid ""
"All injections may be serialized; actual storage of the bean is managed by "
@@ -1048,7 +1058,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:608
+#: gettingstarted.xml:616
#, no-c-format
msgid ""
"Wicket components allow injection, but they <emphasis>cannot</emphasis>
use "
@@ -1057,7 +1067,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:618
+#: gettingstarted.xml:626
#, no-c-format
msgid ""
"The example uses AJAX for processing of button events, and dynamically hides
"
@@ -1066,7 +1076,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:626
+#: gettingstarted.xml:634
#, no-c-format
msgid ""
"In order to activate wicket for this webapp, the Wicket filter is added to "
@@ -1074,7 +1084,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:631
+#: gettingstarted.xml:639
#, no-c-format
msgid ""
"<![CDATA[<filter>\n"
@@ -1100,7 +1110,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:632
+#: gettingstarted.xml:640
#, no-c-format
msgid ""
"Note that the servlet listener is also added, as in the Tomcat example, in "
@@ -1109,13 +1119,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:645
+#: gettingstarted.xml:653
#, no-c-format
msgid "The numberguess example for Java SE with Swing"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:647
+#: gettingstarted.xml:655
#, no-c-format
msgid ""
"This example can be found in the
<literal>examples/se/numberguess</literal> "
@@ -1123,13 +1133,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:654
+#: gettingstarted.xml:662
#, no-c-format
msgid "To run this example:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:660
+#: gettingstarted.xml:668
#, no-c-format
msgid ""
"Open a command line/terminal window in the
<literal>examples/se/numberguess</"
@@ -1137,13 +1147,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:666
+#: gettingstarted.xml:674
#, no-c-format
msgid "Ensure that Maven 2 is installed and in your PATH"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:671
+#: gettingstarted.xml:679
#, no-c-format
msgid ""
"Ensure that the <literal>JAVA_HOME</literal> environment variable is
"
@@ -1151,19 +1161,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:677
+#: gettingstarted.xml:685
#, no-c-format
msgid "execute the following command"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:680
+#: gettingstarted.xml:688
#, no-c-format
msgid "mvn -Drun"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:686
+#: gettingstarted.xml:694
#, no-c-format
msgid ""
"There is an empty <literal>beans.xml</literal> file in the root package
"
@@ -1172,7 +1182,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:692
+#: gettingstarted.xml:700
#, no-c-format
msgid ""
"The game's main logic is located in <literal>Game.java</literal>.
Here is "
@@ -1181,7 +1191,7 @@
msgstr ""
#. Tag: section
-#: gettingstarted.xml:696
+#: gettingstarted.xml:704
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"scope\"
coords=\"1\"/> <area id="
@@ -1447,13 +1457,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:904
+#: gettingstarted.xml:912
#, no-c-format
msgid "The translator example"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:906
+#: gettingstarted.xml:914
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them
"
@@ -1461,7 +1471,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:911
+#: gettingstarted.xml:919
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs. As a result, "
@@ -1469,7 +1479,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:917
+#: gettingstarted.xml:925
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -1477,7 +1487,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:923
+#: gettingstarted.xml:931
#, no-c-format
msgid ""
"First, let's take a look at the ear aggregator, which is located in "
@@ -1486,7 +1496,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:929
+#: gettingstarted.xml:937
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -1505,7 +1515,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:931
+#: gettingstarted.xml:939
#, no-c-format
msgid ""
"Here we set the context path, which gives us a nice url (<ulink
url=\"http://"
@@ -1514,7 +1524,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:937
+#: gettingstarted.xml:945
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
@@ -1522,7 +1532,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:942
+#: gettingstarted.xml:950
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\"
encoding=\"UTF-8\"?>\n"
@@ -1548,7 +1558,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:945
+#: gettingstarted.xml:953
#, no-c-format
msgid ""
"Next, lets look at the war. Just as in the numberguess example, we have a "
@@ -1557,7 +1567,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:952
+#: gettingstarted.xml:960
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -1566,7 +1576,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:958
+#: gettingstarted.xml:966
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -1599,7 +1609,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:960
+#: gettingstarted.xml:968
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate
"
@@ -1607,7 +1617,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:965
+#: gettingstarted.xml:973
#, no-c-format
msgid ""
"Finally, let's look at the ejb module,
<literal>webbeans-translator-ejb</"
@@ -1617,7 +1627,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:973
+#: gettingstarted.xml:981
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two
"
@@ -1629,7 +1639,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:983
+#: gettingstarted.xml:991
#, no-c-format
msgid ""
"Both <literal>SentenceParser</literal> and
<literal>TextTranslator</literal> "
@@ -1638,7 +1648,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:989
+#: gettingstarted.xml:997
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -1654,7 +1664,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:991
+#: gettingstarted.xml:999
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local
business "
@@ -1663,7 +1673,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:997
+#: gettingstarted.xml:1005
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -1672,7 +1682,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:1003
+#: gettingstarted.xml:1011
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -1685,19 +1695,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1005
+#: gettingstarted.xml:1013
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1009
+#: gettingstarted.xml:1017
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:1013
+#: gettingstarted.xml:1021
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -1708,7 +1718,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1015
+#: gettingstarted.xml:1023
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -1716,7 +1726,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1021
+#: gettingstarted.xml:1029
#, no-c-format
msgid ""
"That concludes our short tour of the Web Beans examples. For more on Web "
@@ -1726,7 +1736,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1027
+#: gettingstarted.xml:1035
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
Modified: doc/trunk/reference/pot/injection.pot
===================================================================
--- doc/trunk/reference/pot/injection.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/injection.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/interceptors.pot
===================================================================
--- doc/trunk/reference/pot/interceptors.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/interceptors.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/intro.pot
===================================================================
--- doc/trunk/reference/pot/intro.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/intro.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/master.pot
===================================================================
--- doc/trunk/reference/pot/master.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/master.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/next.pot
===================================================================
--- doc/trunk/reference/pot/next.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/next.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/part1.pot
===================================================================
--- doc/trunk/reference/pot/part1.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/part1.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/part2.pot
===================================================================
--- doc/trunk/reference/pot/part2.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/part2.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/part3.pot
===================================================================
--- doc/trunk/reference/pot/part3.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/part3.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/part4.pot
===================================================================
--- doc/trunk/reference/pot/part4.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/part4.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/part5.pot
===================================================================
--- doc/trunk/reference/pot/part5.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/part5.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/producermethods.pot
===================================================================
--- doc/trunk/reference/pot/producermethods.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/producermethods.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
@@ -37,83 +37,29 @@
msgid "According to the spec:"
msgstr ""
-#. Tag: para
-#: producermethods.xml:16
+#. Tag: chapter
+#: producermethods.xml:12
#, no-c-format
msgid ""
-"A Web Beans producer method acts as a source of objects to be injected, "
-"where:"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:20
-#, no-c-format
-msgid ""
-"the objects to be injected are not required to be instances of Web Beans,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:23
-#, no-c-format
-msgid "the concrete type of the objects to be injected may vary at runtime or"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:26
-#, no-c-format
-msgid ""
-"the objects require some custom initialization that is not performed by the "
-"Web Bean constructor"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:33
-#, no-c-format
-msgid "For example, producer methods let us:"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:37
-#, no-c-format
-msgid "expose a JPA entity as a Web Bean,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:40
-#, no-c-format
-msgid "expose any JDK class as a Web Bean,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:43
-#, no-c-format
-msgid ""
-"define multiple Web Beans, with different scopes or initialization, for the "
-"same implementation class, or"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:47
-#, no-c-format
-msgid "vary the implementation of an API type at runtime."
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:51
-#, no-c-format
-msgid ""
-"In particular, producer methods let us use runtime polymorphism with Web "
-"Beans. As we've seen, deployment types are a powerful solution to the "
-"problem of deployment-time polymorphism. But once the system is deployed, "
-"the Web Bean implementation is fixed. A producer method has no such "
-"limitation:"
-msgstr ""
-
-#. Tag: programlisting
-#: producermethods.xml:56
-#, no-c-format
-msgid ""
-"<![CDATA[@SessionScoped\n"
+"<blockquote> <para>A Web Beans producer method acts as a source of
objects "
+"to be injected, where:</para> <itemizedlist> <listitem>
<para>the objects to "
+"be injected are not required to be instances of Web Beans,</para>
</"
+"listitem> <listitem> <para>the concrete type of the objects to be
injected "
+"may vary at runtime or</para> </listitem> <listitem>
<para>the objects "
+"require some custom initialization that is not performed by the Web Bean "
+"constructor</para> </listitem> </itemizedlist>
</blockquote> <para>For "
+"example, producer methods let us:</para> <itemizedlist>
<listitem> "
+"<para>expose a JPA entity as a Web Bean,</para> </listitem>
<listitem> "
+"<para>expose any JDK class as a Web Bean,</para> </listitem>
<listitem> "
+"<para>define multiple Web Beans, with different scopes or initialization,
"
+"for the same implementation class, or</para> </listitem>
<listitem> "
+"<para>vary the implementation of an API type at runtime.</para>
</listitem> "
+"</itemizedlist> <para>In particular, producer methods let us use
runtime "
+"polymorphism with Web Beans. As we've seen, deployment types are a powerful
"
+"solution to the problem of deployment-time polymorphism. But once the system
"
+"is deployed, the Web Bean implementation is fixed. A producer method has no "
+"such limitation:</para> <programlisting
role=\"JAVA\"><![CDATA"
+"[@SessionScoped\n"
"public class Preferences {\n"
" \n"
" private PaymentStrategyType paymentStrategy;\n"
@@ -130,37 +76,15 @@
" } \n"
" }\n"
" \n"
-"}]]>"
+"}]]></programlisting> <para>Consider an injection
point:</para> "
+"<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
+"paymentStrat;]]></programlisting> <para>This injection point has the
same "
+"type and binding annotations as the producer method, so it resolves to the "
+"producer method using the usual Web Beans injection rules. The producer "
+"method will be called by the Web Bean manager to obtain an instance to "
+"service this injection point.</para>."
msgstr ""
-#. Tag: para
-#: producermethods.xml:58
-#, no-c-format
-msgid "Consider an injection point:"
-msgstr ""
-
-#. Tag: programlisting
-#: producermethods.xml:60
-#, no-c-format
-msgid "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:62
-#, no-c-format
-msgid ""
-"This injection point has the same type and binding annotations as the "
-"producer method, so it resolves to the producer method using the usual Web "
-"Beans injection rules. The producer method will be called by the Web Bean "
-"manager to obtain an instance to service this injection point."
-msgstr ""
-
-#. Tag: chapter
-#: producermethods.xml:65
-#, no-c-format
-msgid "<chapter>.</chapter>"
-msgstr ""
-
#. Tag: title
#: producermethods.xml:68
#, no-c-format
Modified: doc/trunk/reference/pot/ri-spi.pot
===================================================================
--- doc/trunk/reference/pot/ri-spi.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/ri-spi.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/scopescontexts.pot
===================================================================
--- doc/trunk/reference/pot/scopescontexts.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/scopescontexts.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/specialization.pot
===================================================================
--- doc/trunk/reference/pot/specialization.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/specialization.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/stereotypes.pot
===================================================================
--- doc/trunk/reference/pot/stereotypes.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/stereotypes.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/viewlayers.pot
===================================================================
--- doc/trunk/reference/pot/viewlayers.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/viewlayers.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/xml.pot
===================================================================
--- doc/trunk/reference/pot/xml.pot 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pot/xml.pot 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pt-BR/environments.po
===================================================================
--- doc/trunk/reference/pt-BR/environments.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pt-BR/environments.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
"Project-Id-Version: Web_Beans:_Java_Contexts_and_Dependency_Injection "
"VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2009-04-10 09:57-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
@@ -98,8 +98,8 @@
#. Tag: title
#: environments.xml:47
-#, no-c-format
-msgid "Glassfish"
+#, fuzzy, no-c-format
+msgid "GlassFish"
msgstr "Glassfish"
#. Tag: para
@@ -140,9 +140,9 @@
msgid ""
"Web Beans should be used as a web application library in a servlet "
"container. You should place <literal>webbeans-servlet.jar</literal> in
"
-"<literal>WEB-INF/lib</literal>.
<literal>webbeans-serv;et.jar</literal> is "
-"an \"uber-jar\" provided for your convenience. Instead, you could use its
"
-"component jars:"
+"<literal>WEB-INF/lib</literal>.
<literal>webbeans-servlet.jar</literal> is "
+"an \"uber-jar\" provided for your convenience. Alternatively, you could
use "
+"its component jars:"
msgstr ""
"A Web Beans deveria ser utilizada como uma bibilioteca de aplicação web no "
"Tomcat. Você deve colocar o <literal>webbeans-tomcat.jar</literal> em
"
@@ -232,25 +232,26 @@
#. Tag: para
#: environments.xml:128
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"Tomcat has a read-only JNDI, so Web Beans can't automatically bind the "
-"Manager. To bind the Manager into JNDI, you should add the following to your
"
-"<literal>META-INF/context.xml</literal>:"
+"Manager. To bind the Manager into JNDI, you should populate
<literal>META-"
+"INF/context.xml</literal> with the following contents:"
msgstr ""
"O Tomcat tem um JNDI apenas de leitura. Assim, a Web Beans não pode vincular
"
"automaticamente o Manager. Para vincular o Manager no JNDI, você deve "
"adicionar o seguinte ao seu
<literal>META-INF/context.xml</literal>:"
#. Tag: programlisting
-#: environments.xml:134
-#, no-c-format
+#: environments.xml:135
+#, fuzzy, no-c-format
msgid ""
-"<![CDATA[<Resource name=\"app/Manager\" \n"
-" auth=\"Container\"\n"
-" type=\"javax.inject.manager.Manager\"\n"
-"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
-"]]>"
+"<![CDATA[<Context>\n"
+" <Resource name=\"app/Manager\" \n"
+" auth=\"Container\"\n"
+" type=\"javax.inject.manager.Manager\"\n"
+"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
+"</Context>]]>"
msgstr ""
"<![CDATA[<Resource name=\"app/Manager\" \n"
" auth=\"Container\"\n"
@@ -259,26 +260,26 @@
"]]>"
#. Tag: para
-#: environments.xml:136
-#, no-c-format
+#: environments.xml:137
+#, fuzzy, no-c-format
msgid ""
-"and make it available to your deployment by adding this to
<literal>web.xml</"
-"literal>:"
+"and make it available to your deployment by adding this to the bottom of "
+"<literal>web.xml</literal>:"
msgstr ""
"e torná-lo disponível para a sua implantação, acrescentando-o ao "
"<literal>web.xml</literal>:"
#. Tag: programlisting
-#: environments.xml:141
-#, no-c-format
+#: environments.xml:142
+#, fuzzy, no-c-format
msgid ""
"<![CDATA[<resource-env-ref>\n"
-" <resource-env-ref-name>\n"
-" app/Manager\n"
-" </resource-env-ref-name>\n"
-" <resource-env-ref-type>\n"
-" javax.inject.manager.Manager\n"
-" </resource-env-ref-type>\n"
+" <resource-env-ref-name>\n"
+" app/Manager\n"
+" </resource-env-ref-name>\n"
+" <resource-env-ref-type>\n"
+" javax.inject.manager.Manager\n"
+" </resource-env-ref-type>\n"
"</resource-env-ref>]]>"
msgstr ""
"<![CDATA[<resource-env-ref>\n"
@@ -291,7 +292,7 @@
"</resource-env-ref>]]>"
#. Tag: para
-#: environments.xml:143
+#: environments.xml:144
#, fuzzy, no-c-format
msgid ""
"Tomcat only allows you to bind entries to
<literal>java:comp/env</literal>, "
@@ -303,7 +304,7 @@
"env/app/Manager</literal>"
#. Tag: para
-#: environments.xml:149
+#: environments.xml:150
#, no-c-format
msgid ""
"Web Beans also supports Servlet injection in Tomcat. To enable this, place "
@@ -313,11 +314,11 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:156
+#: environments.xml:157
#, fuzzy, no-c-format
msgid ""
"<![CDATA[<Listener
className=\"org.jboss.webbeans.environment.tomcat."
-"WebBeansLifecycleListener\" />]]>"
+"WebBeansLifecycleListener\"/>]]>"
msgstr ""
"<![CDATA[<listener>\n"
"
<listener-class>org.jboss.webbeans.environment.tomcat.Listener</listener-"
@@ -325,13 +326,82 @@
"</listener>]]>"
#. Tag: title
-#: environments.xml:163
+#: environments.xml:162
#, no-c-format
+msgid "Jetty"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:164
+#, fuzzy, no-c-format
+msgid ""
+"Like Tomcat, Jetty has a read-only JNDI, so Web Beans can't automatically
"
+"bind the Manager. To bind the Manager to JNDI, you should populate "
+"<literal>WEB-INF/jetty-env.xml</literal> with the following
contents:"
+msgstr ""
+"O Tomcat tem um JNDI apenas de leitura. Assim, a Web Beans não pode vincular
"
+"automaticamente o Manager. Para vincular o Manager no JNDI, você deve "
+"adicionar o seguinte ao seu
<literal>META-INF/context.xml</literal>:"
+
+#. Tag: programlisting
+#: environments.xml:171
+#, no-c-format
+msgid ""
+"<![CDATA[<!DOCTYPE Configure PUBLIC \"-//Mort Bay Consulting//DTD
Configure//"
+"EN\"\n"
+" \"http://jetty.mortbay.org/configure.dtd\">\n"
+"<Configure id=\"webAppCtx\"
class=\"org.mortbay.jetty.webapp.WebAppContext"
+"\">\n"
+" <New id=\"appManager\"
class=\"org.mortbay.jetty.plus.naming.Resource\">\n"
+" <Arg><Ref id=\"webAppCtx\"/></Arg> \n"
+" <Arg>app/Manager</Arg>\n"
+" <Arg>\n"
+" <New class=\"javax.naming.Reference\">\n"
+" <Arg>javax.inject.manager.Manager</Arg> \n"
+"
<Arg>org.jboss.webbeans.resources.ManagerObjectFactory</Arg>\n"
+" <Arg/>\n"
+" </New>\n"
+" </Arg>\n"
+" </New>\n"
+"</Configure>]]>"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:173
+#, no-c-format
+msgid ""
+"Notice that Jetty doesn't not have built-in support for an
<literal>javax."
+"naming.spi.ObjectFactory</literal> like Tomcat, so it's necessary to
"
+"manually create the <literal>javax.naming.Reference</literal> to wrap
around "
+"it."
+msgstr ""
+
+#. Tag: para
+#: environments.xml:180
+#, fuzzy, no-c-format
+msgid ""
+"Jetty only allows you to bind entries to
<literal>java:comp/env</literal>, "
+"so the Manager will be available at
<literal>java:comp/env/app/Manager</"
+"literal>"
+msgstr ""
+"O Tomcat não só permite a você vincular as entradas para
<literal>java:comp/"
+"env</literal>, assim que o Manager estará disponível em
<literal>java:comp/"
+"env/app/Manager</literal>"
+
+#. Tag: para
+#: environments.xml:186
+#, no-c-format
+msgid "Web Beans does not currently support Servlet injection in Jetty."
+msgstr ""
+
+#. Tag: title
+#: environments.xml:195
+#, no-c-format
msgid "Java SE"
msgstr "Java SE"
#. Tag: para
-#: environments.xml:165
+#: environments.xml:197
#, no-c-format
msgid ""
"Apart from improved integration of the Enterprise Java stack, Web Beans also
"
@@ -343,7 +413,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:173
+#: environments.xml:205
#, no-c-format
msgid ""
"When executing in the SE environment the following features of Web Beans are
"
@@ -351,49 +421,55 @@
msgstr ""
#. Tag: literal
-#: environments.xml:179
+#: environments.xml:211
#, no-c-format
msgid "Simple Web Beans (POJOs)"
msgstr ""
#. Tag: literal
-#: environments.xml:184
+#: environments.xml:216
#, no-c-format
msgid "Typesafe Dependency Injection"
msgstr ""
#. Tag: literal
-#: environments.xml:189
+#: environments.xml:221
#, no-c-format
msgid "Application and Dependent Contexts"
msgstr ""
#. Tag: literal
-#: environments.xml:194
+#: environments.xml:226
#, no-c-format
msgid "Binding Types"
msgstr ""
#. Tag: literal
-#: environments.xml:199
+#: environments.xml:231
#, no-c-format
+msgid "Deployment Types"
+msgstr ""
+
+#. Tag: literal
+#: environments.xml:236
+#, no-c-format
msgid "Stereotypes"
msgstr ""
#. Tag: literal
-#: environments.xml:204
+#: environments.xml:241
#, no-c-format
msgid "Typesafe Event Model"
msgstr ""
#. Tag: title
-#: environments.xml:210
+#: environments.xml:247
#, no-c-format
msgid "Web Beans SE Module"
msgstr ""
#. Tag: para
-#: environments.xml:212
+#: environments.xml:249
#, no-c-format
msgid ""
"To make life easy for developers Web Beans provides a special module with a "
@@ -406,7 +482,7 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:221
+#: environments.xml:258
#, no-c-format
msgid ""
"<![CDATA[@Parameters List<String> params;\n"
@@ -415,13 +491,13 @@
msgstr ""
#. Tag: para
-#: environments.xml:222
+#: environments.xml:259
#, no-c-format
msgid "Here's an example of a simple Web Beans SE application:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:226
+#: environments.xml:263
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -437,20 +513,20 @@
msgstr ""
#. Tag: para
-#: environments.xml:228
+#: environments.xml:265
#, no-c-format
msgid ""
"Web Beans SE applications are started by running the following main method."
msgstr ""
#. Tag: programlisting
-#: environments.xml:230
+#: environments.xml:267
#, no-c-format
msgid "<![CDATA[java org.jboss.webbeans.environments.se.StartMain
<args>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:232
+#: environments.xml:269
#, no-c-format
msgid ""
"If you need to do any custom initialization of the Web Beans manager, for "
@@ -460,7 +536,7 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:237
+#: environments.xml:274
#, no-c-format
msgid ""
"<![CDATA[public class PerformSetup\n"
@@ -474,7 +550,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:240
+#: environments.xml:277
#, no-c-format
msgid ""
"The command line parameters do not become available for injection until the "
Modified: doc/trunk/reference/pt-BR/gettingstarted.po
===================================================================
--- doc/trunk/reference/pt-BR/gettingstarted.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pt-BR/gettingstarted.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2009-04-10 16:32-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
@@ -105,7 +105,7 @@
"$ unzip ~/jboss-5.0.1.GA.zip]]>"
#. Tag: para
-#: gettingstarted.xml:49 gettingstarted.xml:170
+#: gettingstarted.xml:49 gettingstarted.xml:177
#, no-c-format
msgid ""
"Next, download Web Beans from <ulink
url=\"http://seamframework.org/Download"
@@ -115,7 +115,7 @@
"org/Download\">seamframework.org</ulink> e descompacte-o. Por
exemplo"
#. Tag: programlisting
-#: gettingstarted.xml:55 gettingstarted.xml:176
+#: gettingstarted.xml:55 gettingstarted.xml:183
#, no-c-format
msgid ""
"<![CDATA[$ cd ~/\n"
@@ -152,8 +152,16 @@
"Para instalar a Web Beans, você precisará do Ant 1.7.0 instalado e a "
"variável de ambiente <literal>ANT_HOME</literal> setada. Por
exemplo:"
+#. Tag: para
+#: gettingstarted.xml:72
+#, no-c-format
+msgid ""
+"JBoss 5.1.0 comes with Web Beans built in, so there is no need to update the
"
+"server."
+msgstr ""
+
#. Tag: programlisting
-#: gettingstarted.xml:71
+#: gettingstarted.xml:78
#, no-c-format
msgid ""
"$ unzip apache-ant-1.7.0.zip\n"
@@ -163,7 +171,7 @@
"$ export ANT_HOME=~/apache-ant-1.7.0"
#. Tag: para
-#: gettingstarted.xml:73
+#: gettingstarted.xml:80
#, no-c-format
msgid ""
"Then, you can install the update. The update script will use Maven to "
@@ -173,7 +181,7 @@
"o Maven para fazer o download da Web Beans automaticamente."
#. Tag: programlisting
-#: gettingstarted.xml:78
+#: gettingstarted.xml:85
#, no-c-format
msgid ""
"$ cd webbeans-$VERSION/jboss-as\n"
@@ -183,14 +191,14 @@
"$ ant update"
#. Tag: para
-#: gettingstarted.xml:80
+#: gettingstarted.xml:87
#, no-c-format
msgid "Now, you're ready to deploy your first example!"
msgstr ""
"Agora, você está pronto para fazer a publicação do seu primeiro exemplo!"
#. Tag: para
-#: gettingstarted.xml:85
+#: gettingstarted.xml:92
#, no-c-format
msgid ""
"The build scripts for the examples offer a number of targets for JBoss AS, "
@@ -200,14 +208,14 @@
"entre eles:"
#. Tag: para
-#: gettingstarted.xml:91
+#: gettingstarted.xml:98
#, no-c-format
msgid "<literal>ant restart</literal> - deploy the example in exploded
format"
msgstr ""
"<literal>ant restart</literal> - implanta o exemplo no formato
explodido"
#. Tag: para
-#: gettingstarted.xml:97
+#: gettingstarted.xml:104
#, no-c-format
msgid ""
"<literal>ant explode</literal> - update an exploded example, without
"
@@ -216,7 +224,7 @@
"<literal>ant explode</literal> - atualiza o exemplo explodido, sem
reiniciar "
#. Tag: para
-#: gettingstarted.xml:103
+#: gettingstarted.xml:110
#, no-c-format
msgid ""
"<literal>ant deploy</literal> - deploy the example in compressed jar
format"
@@ -224,25 +232,25 @@
"<literal>ant deploy</literal> - implanta o exemplo no formato jar
compactado"
#. Tag: para
-#: gettingstarted.xml:108
+#: gettingstarted.xml:115
#, no-c-format
msgid "<literal>ant undeploy</literal> - remove the example from the
server"
msgstr "<literal>ant undeploy</literal> - remove o exemplo do
servidor"
#. Tag: para
-#: gettingstarted.xml:113
+#: gettingstarted.xml:120
#, no-c-format
msgid "<literal>ant clean</literal> - clean the example"
msgstr "<literal>ant clean</literal> - limpa o exemplo"
#. Tag: para
-#: gettingstarted.xml:120
+#: gettingstarted.xml:127
#, no-c-format
msgid "To deploy the numberguess example:"
msgstr "Para implantar o exemplo numberguess:"
#. Tag: programlisting
-#: gettingstarted.xml:124
+#: gettingstarted.xml:131
#, no-c-format
msgid ""
"$ cd examples/numberguess\n"
@@ -252,26 +260,26 @@
"ant deploy"
#. Tag: para
-#: gettingstarted.xml:126
+#: gettingstarted.xml:133
#, no-c-format
msgid "Start JBoss AS:"
msgstr "Inicializando o JBoss AS:"
#. Tag: programlisting
-#: gettingstarted.xml:130
+#: gettingstarted.xml:137
#, no-c-format
msgid "$ /Application/jboss-5.0.0.GA/bin/run.sh"
msgstr "$ /Application/jboss-5.0.0.GA/bin/run.sh"
#. Tag: para
-#: gettingstarted.xml:133
+#: gettingstarted.xml:140
#, no-c-format
msgid "If you use Windows, use the
<literal>run.bat</literal>script."
msgstr ""
"Se você utiliza o Windows, utilize o script
<literal>run.bat</literal>."
#. Tag: para
-#: gettingstarted.xml:138 gettingstarted.xml:240
+#: gettingstarted.xml:145 gettingstarted.xml:247
#, no-c-format
msgid ""
"Wait for the application to deploy, and enjoy hours of fun at <ulink url="
@@ -281,7 +289,7 @@
"em <ulink
url=\"http://localhost:8080/webbeans-numberguess\"></ulink>!"
#. Tag: para
-#: gettingstarted.xml:143
+#: gettingstarted.xml:150
#, no-c-format
msgid ""
"Web Beans includes a second simple example that will translate your text "
@@ -295,7 +303,7 @@
"em um módulo EJB. Para experimentá-lo:"
#. Tag: programlisting
-#: gettingstarted.xml:150
+#: gettingstarted.xml:157
#, no-c-format
msgid ""
"$ cd examples/translator\n"
@@ -305,7 +313,7 @@
"ant deploy"
#. Tag: para
-#: gettingstarted.xml:152
+#: gettingstarted.xml:159
#, no-c-format
msgid ""
"Wait for the application to deploy, and visit <ulink url=\"http://"
@@ -315,13 +323,13 @@
"localhost:8080/webbeans-translator\"></ulink>!"
#. Tag: title
-#: gettingstarted.xml:160
+#: gettingstarted.xml:167
#, no-c-format
msgid "Using Apache Tomcat 6.0"
msgstr "Utilizando o Apache Tomcat 6.0"
#. Tag: para
-#: gettingstarted.xml:162
+#: gettingstarted.xml:169
#, no-c-format
msgid ""
"You'll need to download Tomcat 6.0.18 or later from <ulink
url=\"http://"
@@ -333,7 +341,7 @@
"o. Por exemplo"
#. Tag: programlisting
-#: gettingstarted.xml:168
+#: gettingstarted.xml:175
#, no-c-format
msgid ""
"<![CDATA[$ cd /Applications\n"
@@ -343,7 +351,7 @@
"$ unzip ~/apache-tomcat-6.0.18.zip]]>"
#. Tag: para
-#: gettingstarted.xml:178
+#: gettingstarted.xml:185
#, no-c-format
msgid ""
"Next, we need to tell Web Beans where Tomcat is located. Edit
<literal>jboss-"
@@ -355,13 +363,13 @@
"propriedade <literal>tomcat.home</literal>. Por exemplo:"
#. Tag: programlisting
-#: gettingstarted.xml:184
+#: gettingstarted.xml:191
#, no-c-format
msgid "tomcat.home=/Applications/apache-tomcat-6.0.18"
msgstr "tomcat.home=/Applications/apache-tomcat-6.0.18"
#. Tag: para
-#: gettingstarted.xml:187
+#: gettingstarted.xml:194
#, no-c-format
msgid ""
"The build scripts for the examples offer a number of targets for Tomcat, "
@@ -371,7 +379,7 @@
"São eles:"
#. Tag: para
-#: gettingstarted.xml:193
+#: gettingstarted.xml:200
#, no-c-format
msgid ""
"<literal>ant tomcat.restart</literal> - deploy the example in exploded
format"
@@ -380,7 +388,7 @@
"explodido"
#. Tag: para
-#: gettingstarted.xml:199
+#: gettingstarted.xml:206
#, no-c-format
msgid ""
"<literal>ant tomcat.explode</literal> - update an exploded example,
without "
@@ -390,7 +398,7 @@
"reiniciar "
#. Tag: para
-#: gettingstarted.xml:205
+#: gettingstarted.xml:212
#, no-c-format
msgid ""
"<literal>ant tomcat.deploy</literal> - deploy the example in compressed
jar "
@@ -400,26 +408,26 @@
"compactado"
#. Tag: para
-#: gettingstarted.xml:210
+#: gettingstarted.xml:217
#, no-c-format
msgid ""
"<literal>ant tomcat.undeploy</literal> - remove the example from the
server"
msgstr "<literal>ant tomcat.undeploy</literal> - remove o exemplo do
servidor"
#. Tag: para
-#: gettingstarted.xml:215
+#: gettingstarted.xml:222
#, no-c-format
msgid "<literal>ant tomcat.clean</literal> - clean the example"
msgstr "<literal>ant tomcat.clean</literal> - clean the example"
#. Tag: para
-#: gettingstarted.xml:222
+#: gettingstarted.xml:229
#, no-c-format
msgid "To deploy the numberguess example for tomcat:"
msgstr "Para implantar o exemplo numberguess no tomcat:"
#. Tag: programlisting
-#: gettingstarted.xml:226
+#: gettingstarted.xml:233
#, no-c-format
msgid ""
"$ cd examples/tomcat\n"
@@ -429,44 +437,44 @@
"ant tomcat.deploy"
#. Tag: para
-#: gettingstarted.xml:228
+#: gettingstarted.xml:235
#, no-c-format
msgid "Start Tomcat:"
msgstr "Inicializando o Tomcat:"
#. Tag: programlisting
-#: gettingstarted.xml:232
+#: gettingstarted.xml:239
#, no-c-format
msgid "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
msgstr "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
#. Tag: para
-#: gettingstarted.xml:235
+#: gettingstarted.xml:242
#, no-c-format
msgid "If you use Windows, use the
<literal>startup.bat</literal>script."
msgstr ""
"Se você utiliza o Windows, utilize o script
<literal>startup.bat</literal>."
#. Tag: title
-#: gettingstarted.xml:248
+#: gettingstarted.xml:255
#, no-c-format
msgid "Using GlassFish"
msgstr "Utilizando o GlassFish"
#. Tag: para
-#: gettingstarted.xml:250
+#: gettingstarted.xml:257
#, no-c-format
msgid "TODO"
msgstr "TODO"
#. Tag: title
-#: gettingstarted.xml:254
+#: gettingstarted.xml:261
#, no-c-format
msgid "The numberguess example"
msgstr "O exemplo numberguess"
#. Tag: para
-#: gettingstarted.xml:256
+#: gettingstarted.xml:263
#, no-c-format
msgid ""
"In the numberguess application you get given 10 attempts to guess a number "
@@ -478,7 +486,7 @@
"acima, ou muito abaixo."
#. Tag: para
-#: gettingstarted.xml:262
+#: gettingstarted.xml:269
#, no-c-format
msgid ""
"The numberguess example is comprised of a number of Web Beans, configuration
"
@@ -490,7 +498,7 @@
"com os arquivos de configuração."
#. Tag: para
-#: gettingstarted.xml:268
+#: gettingstarted.xml:275
#, no-c-format
msgid ""
"All the configuration files for this example are located in
<literal>WEB-INF/"
@@ -504,7 +512,7 @@
"literal>, onde dizemos para o JSF usar o Facelets:"
#. Tag: programlisting
-#: gettingstarted.xml:276
+#: gettingstarted.xml:283
#, no-c-format
msgid ""
"<![CDATA[<?xml version='1.0' encoding='UTF-8'?>\n"
@@ -534,7 +542,7 @@
"</faces-config>]]>"
#. Tag: para
-#: gettingstarted.xml:278
+#: gettingstarted.xml:285
#, no-c-format
msgid ""
"There is an empty <literal>web-beans.xml</literal> file, which marks
this "
@@ -544,13 +552,13 @@
"aplicação como uma aplicação Web Beans."
#. Tag: para
-#: gettingstarted.xml:283
+#: gettingstarted.xml:290
#, no-c-format
msgid "Finally there is <literal>web.xml</literal>:"
msgstr "Finalmente no <literal>web.xml</literal>:"
#. Tag: section
-#: gettingstarted.xml:285
+#: gettingstarted.xml:292
#, fuzzy, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"faces.servlet\"
coords=\"12\"/> "
@@ -788,7 +796,7 @@
"programlistingco>"
#. Tag: para
-#: gettingstarted.xml:387
+#: gettingstarted.xml:394
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -800,7 +808,7 @@
"injeção de um número aleatório:"
#. Tag: programlisting
-#: gettingstarted.xml:393
+#: gettingstarted.xml:400
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -816,7 +824,7 @@
"public @interface Random {}]]>"
#. Tag: para
-#: gettingstarted.xml:395
+#: gettingstarted.xml:402
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for
"
@@ -826,7 +834,7 @@
"injetar o número máximo que pode ser injetado:"
#. Tag: programlisting
-#: gettingstarted.xml:400
+#: gettingstarted.xml:407
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -844,7 +852,7 @@
"]]>"
#. Tag: para
-#: gettingstarted.xml:402
+#: gettingstarted.xml:409
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the
"
@@ -856,7 +864,7 @@
"possível através de um método produtor:"
#. Tag: programlisting
-#: gettingstarted.xml:408
+#: gettingstarted.xml:415
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -908,7 +916,7 @@
"}]]>"
#. Tag: para
-#: gettingstarted.xml:410
+#: gettingstarted.xml:417
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application
scoped; "
@@ -918,7 +926,7 @@
"aplicação; portanto, não obtemos um número aleatório diferente a cada vez."
#. Tag: para
-#: gettingstarted.xml:415
+#: gettingstarted.xml:422
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped
<literal>Game</"
@@ -928,7 +936,7 @@
"sessão."
#. Tag: para
-#: gettingstarted.xml:420
+#: gettingstarted.xml:427
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal>
annotation, so "
@@ -944,7 +952,7 @@
"isso, informaremos através do <literal>FacesMessage</literal>."
#. Tag: programlisting
-#: gettingstarted.xml:428
+#: gettingstarted.xml:435
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -1142,13 +1150,13 @@
"}]]>"
#. Tag: title
-#: gettingstarted.xml:431
+#: gettingstarted.xml:438
#, fuzzy, no-c-format
msgid "The numberguess example in Tomcat"
msgstr "O exemplo numberguess para o Tomcat"
#. Tag: para
-#: gettingstarted.xml:433
+#: gettingstarted.xml:440
#, fuzzy, no-c-format
msgid ""
"The numberguess for Tomcat differs in a couple of ways. Firstly, Web Beans "
@@ -1163,7 +1171,7 @@
"literal>."
#. Tag: para
-#: gettingstarted.xml:442
+#: gettingstarted.xml:449
#, no-c-format
msgid ""
"Of course, you must also include JSF and EL, as well common annotations "
@@ -1174,7 +1182,7 @@
"inclui por padrão."
#. Tag: para
-#: gettingstarted.xml:449
+#: gettingstarted.xml:456
#, fuzzy, no-c-format
msgid ""
"Secondly, we need to explicitly specify the servlet listener (used to boot "
@@ -1186,7 +1194,7 @@
"com as requisições) no <literal>web.xml</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:455
+#: gettingstarted.xml:462
#, fuzzy, no-c-format
msgid ""
"<![CDATA[<listener>\n"
@@ -1200,13 +1208,13 @@
"</listener>]]>"
#. Tag: title
-#: gettingstarted.xml:460
+#: gettingstarted.xml:467
#, fuzzy, no-c-format
msgid "The numberguess example for Apache Wicket"
msgstr "O exemplo numberguess para o Tomcat"
#. Tag: para
-#: gettingstarted.xml:461
+#: gettingstarted.xml:468
#, no-c-format
msgid ""
"Whilst JSR-299 specifies integration with Java ServerFaces, Web Beans allows
"
@@ -1216,7 +1224,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:470
+#: gettingstarted.xml:477
#, no-c-format
msgid ""
"You may want to review the Wicket documentation at <ulink
url=\"http://"
@@ -1224,7 +1232,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:476
+#: gettingstarted.xml:483
#, no-c-format
msgid ""
"Like the previous example, the Wicket WebBeans examples make use of the "
@@ -1237,7 +1245,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:487
+#: gettingstarted.xml:494
#, no-c-format
msgid ""
"These examples make use of the Eclipse IDE; instructions are also given to "
@@ -1245,43 +1253,45 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:493
+#: gettingstarted.xml:500
#, no-c-format
msgid "Creating the Eclipse project"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:495
+#: gettingstarted.xml:502
#, no-c-format
msgid "To generate an Eclipse project from the example:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:499
+#: gettingstarted.xml:506
#, no-c-format
msgid ""
"<![CDATA[cd examples/wicket/numberguess\n"
-"mvn eclipse:eclipse]]>"
+"mvn -Pjetty eclipse:eclipse]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:501
+#: gettingstarted.xml:508
#, no-c-format
msgid ""
"Then, from eclipse, choose <emphasis>File -> Import -> General ->
Existing "
"Projects into Workspace</emphasis>, select the root directory of the "
-"numberguess example, and click finish. This will create a project in your "
-"workspace called <literal>webbeans-wicket-numberguess</literal>"
+"numberguess example, and click finish. Note that if you do not intend to run
"
+"the example with jetty from within eclipse, omit the \"-Pjetty.\" This
will "
+"create a project in your workspace called <literal>webbeans-wicket-"
+"numberguess</literal>"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:516
+#: gettingstarted.xml:524
#, no-c-format
msgid "Running the example from Eclipse"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:518
+#: gettingstarted.xml:526
#, no-c-format
msgid ""
"This project follows the <literal>wicket-quickstart</literal> approach
of "
@@ -1295,13 +1305,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:533
+#: gettingstarted.xml:541
#, no-c-format
msgid "Running the example from the command line in JBoss AS or Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:535
+#: gettingstarted.xml:543
#, no-c-format
msgid ""
"This example can also be deployed from the command line in a (similar to the
"
@@ -1314,13 +1324,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:549
+#: gettingstarted.xml:557
#, no-c-format
msgid "Understanding the code"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:551
+#: gettingstarted.xml:559
#, no-c-format
msgid ""
"JSF uses Unified EL expressions to bind view layer components in JSP or "
@@ -1334,7 +1344,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:563
+#: gettingstarted.xml:571
#, no-c-format
msgid ""
"The code in the wicket numberguess example is very similar to the JSF-based "
@@ -1342,13 +1352,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:568
+#: gettingstarted.xml:576
#, no-c-format
msgid "Differences are:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:573
+#: gettingstarted.xml:581
#, no-c-format
msgid ""
"Each wicket application must have a <literal>WebApplication</literal>
"
@@ -1357,7 +1367,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:579
+#: gettingstarted.xml:587
#, no-c-format
msgid ""
"<![CDATA[public class SampleApplication extends WebBeansApplication {\n"
@@ -1369,7 +1379,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:580
+#: gettingstarted.xml:588
#, no-c-format
msgid ""
"This class specifies which page wicket should treat as our home page, in our
"
@@ -1377,7 +1387,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:586
+#: gettingstarted.xml:594
#, no-c-format
msgid ""
"In <literal>HomePage</literal> we see typical wicket code to set up
page "
@@ -1386,13 +1396,13 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:592
+#: gettingstarted.xml:600
#, no-c-format
msgid "<![CDATA[ @Current Game game;]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:594
+#: gettingstarted.xml:602
#, no-c-format
msgid ""
"The <literal>Game</literal> bean is can then be used, for example, by
the "
@@ -1400,7 +1410,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:599
+#: gettingstarted.xml:607
#, no-c-format
msgid ""
"<![CDATA[final Component guessButton = new AjaxButton(\"GuessButton\")
{ \n"
@@ -1409,7 +1419,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:602
+#: gettingstarted.xml:610
#, no-c-format
msgid ""
"All injections may be serialized; actual storage of the bean is managed by "
@@ -1418,7 +1428,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:608
+#: gettingstarted.xml:616
#, no-c-format
msgid ""
"Wicket components allow injection, but they <emphasis>cannot</emphasis>
use "
@@ -1427,7 +1437,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:618
+#: gettingstarted.xml:626
#, no-c-format
msgid ""
"The example uses AJAX for processing of button events, and dynamically hides
"
@@ -1436,7 +1446,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:626
+#: gettingstarted.xml:634
#, no-c-format
msgid ""
"In order to activate wicket for this webapp, the Wicket filter is added to "
@@ -1444,7 +1454,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:631
+#: gettingstarted.xml:639
#, no-c-format
msgid ""
"<![CDATA[<filter>\n"
@@ -1470,7 +1480,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:632
+#: gettingstarted.xml:640
#, no-c-format
msgid ""
"Note that the servlet listener is also added, as in the Tomcat example, in "
@@ -1479,13 +1489,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:645
+#: gettingstarted.xml:653
#, fuzzy, no-c-format
msgid "The numberguess example for Java SE with Swing"
msgstr "O exemplo numberguess para o Tomcat"
#. Tag: para
-#: gettingstarted.xml:647
+#: gettingstarted.xml:655
#, no-c-format
msgid ""
"This example can be found in the
<literal>examples/se/numberguess</literal> "
@@ -1493,13 +1503,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:654
+#: gettingstarted.xml:662
#, fuzzy, no-c-format
msgid "To run this example:"
msgstr "O exemplo translator"
#. Tag: para
-#: gettingstarted.xml:660
+#: gettingstarted.xml:668
#, no-c-format
msgid ""
"Open a command line/terminal window in the
<literal>examples/se/numberguess</"
@@ -1507,13 +1517,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:666
+#: gettingstarted.xml:674
#, no-c-format
msgid "Ensure that Maven 2 is installed and in your PATH"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:671
+#: gettingstarted.xml:679
#, no-c-format
msgid ""
"Ensure that the <literal>JAVA_HOME</literal> environment variable is
"
@@ -1521,19 +1531,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:677
+#: gettingstarted.xml:685
#, no-c-format
msgid "execute the following command"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:680
+#: gettingstarted.xml:688
#, no-c-format
msgid "mvn -Drun"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:686
+#: gettingstarted.xml:694
#, fuzzy, no-c-format
msgid ""
"There is an empty <literal>beans.xml</literal> file in the root package
"
@@ -1544,7 +1554,7 @@
"aplicação como uma aplicação Web Beans."
#. Tag: para
-#: gettingstarted.xml:692
+#: gettingstarted.xml:700
#, no-c-format
msgid ""
"The game's main logic is located in <literal>Game.java</literal>.
Here is "
@@ -1553,7 +1563,7 @@
msgstr ""
#. Tag: section
-#: gettingstarted.xml:696
+#: gettingstarted.xml:704
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"scope\"
coords=\"1\"/> <area id="
@@ -1819,13 +1829,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:904
+#: gettingstarted.xml:912
#, no-c-format
msgid "The translator example"
msgstr "O exemplo translator"
#. Tag: para
-#: gettingstarted.xml:906
+#: gettingstarted.xml:914
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them
"
@@ -1835,7 +1845,7 @@
"para o Latim."
#. Tag: para
-#: gettingstarted.xml:911
+#: gettingstarted.xml:919
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs. As a result, "
@@ -1845,7 +1855,7 @@
"a sua estrutura é mais complexa do que o exemplo numberguess."
#. Tag: para
-#: gettingstarted.xml:917
+#: gettingstarted.xml:925
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -1855,7 +1865,7 @@
"esta estrutura muito mais simples!"
#. Tag: para
-#: gettingstarted.xml:923
+#: gettingstarted.xml:931
#, no-c-format
msgid ""
"First, let's take a look at the ear aggregator, which is located in "
@@ -1867,7 +1877,7 @@
"o<literal>application.xml</literal> para nós:"
#. Tag: programlisting
-#: gettingstarted.xml:929
+#: gettingstarted.xml:937
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -1899,7 +1909,7 @@
"</plugin>]]>"
#. Tag: para
-#: gettingstarted.xml:931
+#: gettingstarted.xml:939
#, no-c-format
msgid ""
"Here we set the context path, which gives us a nice url (<ulink
url=\"http://"
@@ -1911,7 +1921,7 @@
"localhost:8080/webbeans-translator</ulink>). ulink>) ."
#. Tag: para
-#: gettingstarted.xml:937
+#: gettingstarted.xml:945
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
@@ -1921,7 +1931,7 @@
"<literal>META-INF/application.xml</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:942
+#: gettingstarted.xml:950
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\"
encoding=\"UTF-8\"?>\n"
@@ -1967,7 +1977,7 @@
"</application>]]>"
#. Tag: para
-#: gettingstarted.xml:945
+#: gettingstarted.xml:953
#, no-c-format
msgid ""
"Next, lets look at the war. Just as in the numberguess example, we have a "
@@ -1980,7 +1990,7 @@
"INF</literal>."
#. Tag: para
-#: gettingstarted.xml:952
+#: gettingstarted.xml:960
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -1992,7 +2002,7 @@
"aqui por brevitude):"
#. Tag: programlisting
-#: gettingstarted.xml:958
+#: gettingstarted.xml:966
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -2052,7 +2062,7 @@
"</h:form>]]>"
#. Tag: para
-#: gettingstarted.xml:960
+#: gettingstarted.xml:968
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate
"
@@ -2062,7 +2072,7 @@
"traduzir para ver o resultado à direita."
#. Tag: para
-#: gettingstarted.xml:965
+#: gettingstarted.xml:973
#, no-c-format
msgid ""
"Finally, let's look at the ejb module,
<literal>webbeans-translator-ejb</"
@@ -2076,7 +2086,7 @@
"contendo Web Beans."
#. Tag: para
-#: gettingstarted.xml:973
+#: gettingstarted.xml:981
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two
"
@@ -2095,7 +2105,7 @@
"destacar as partes mais interessantes aqui."
#. Tag: para
-#: gettingstarted.xml:983
+#: gettingstarted.xml:991
#, no-c-format
msgid ""
"Both <literal>SentenceParser</literal> and
<literal>TextTranslator</literal> "
@@ -2107,7 +2117,7 @@
"inicialização por construtor :"
#. Tag: programlisting
-#: gettingstarted.xml:989
+#: gettingstarted.xml:997
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -2150,7 +2160,7 @@
"</h:form>]]>"
#. Tag: para
-#: gettingstarted.xml:991
+#: gettingstarted.xml:999
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local
business "
@@ -2162,7 +2172,7 @@
"desenvolver um tradutor completo, mas lhe demos um bom caminho!"
#. Tag: para
-#: gettingstarted.xml:997
+#: gettingstarted.xml:1005
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -2174,7 +2184,7 @@
"nome, stateful session bean, que injeta o tradutor."
#. Tag: programlisting
-#: gettingstarted.xml:1003
+#: gettingstarted.xml:1011
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -2194,20 +2204,20 @@
" @Current TextTranslator translator;]]>"
#. Tag: para
-#: gettingstarted.xml:1005
+#: gettingstarted.xml:1013
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr "O bean também tem getters e setters para todos os campos da página."
#. Tag: para
-#: gettingstarted.xml:1009
+#: gettingstarted.xml:1017
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
"Como esse é um stateful session bean, temos de ter um método de remoção:"
#. Tag: programlisting
-#: gettingstarted.xml:1013
+#: gettingstarted.xml:1021
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -2223,7 +2233,7 @@
" }]]>"
#. Tag: para
-#: gettingstarted.xml:1015
+#: gettingstarted.xml:1023
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -2233,7 +2243,7 @@
"for destruído - neste caso, no final da requisição."
#. Tag: para
-#: gettingstarted.xml:1021
+#: gettingstarted.xml:1029
#, no-c-format
msgid ""
"That concludes our short tour of the Web Beans examples. For more on Web "
@@ -2247,7 +2257,7 @@
"seamframework.org/WebBeans/Development</ulink>."
#. Tag: para
-#: gettingstarted.xml:1027
+#: gettingstarted.xml:1035
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
Modified: doc/trunk/reference/pt-BR/producermethods.po
===================================================================
--- doc/trunk/reference/pt-BR/producermethods.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/pt-BR/producermethods.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2009-04-10 16:06-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
@@ -41,98 +41,29 @@
msgid "According to the spec:"
msgstr "De acordo com a especificação:"
-#. Tag: para
-#: producermethods.xml:16
+#. Tag: chapter
+#: producermethods.xml:12
#, no-c-format
msgid ""
-"A Web Beans producer method acts as a source of objects to be injected, "
-"where:"
-msgstr ""
-"Um método produtor Web Beans funciona como uma fonte de objetos a ser "
-"injetado, quando:"
-
-#. Tag: para
-#: producermethods.xml:20
-#, no-c-format
-msgid ""
-"the objects to be injected are not required to be instances of Web Beans,"
-msgstr ""
-"os objetos a serem injetados não forem obrigados a ser instâncias de Web "
-"Beans,"
-
-#. Tag: para
-#: producermethods.xml:23
-#, no-c-format
-msgid "the concrete type of the objects to be injected may vary at runtime or"
-msgstr ""
-"o tipo concreto dos objetos a serem injetados pode variar em tempo de "
-"execução ou"
-
-#. Tag: para
-#: producermethods.xml:26
-#, no-c-format
-msgid ""
-"the objects require some custom initialization that is not performed by the "
-"Web Bean constructor"
-msgstr ""
-"os objetos requerem alguma inicialização personalizada que não é realizada "
-"pelo construtor do Web Bean"
-
-#. Tag: para
-#: producermethods.xml:33
-#, no-c-format
-msgid "For example, producer methods let us:"
-msgstr "Por exemplo, métodos produtores permitem:"
-
-#. Tag: para
-#: producermethods.xml:37
-#, no-c-format
-msgid "expose a JPA entity as a Web Bean,"
-msgstr "expor uma entidade JPA como um Web Bean,"
-
-#. Tag: para
-#: producermethods.xml:40
-#, no-c-format
-msgid "expose any JDK class as a Web Bean,"
-msgstr "expor qualquer classe do JDK como um Web Bean,"
-
-#. Tag: para
-#: producermethods.xml:43
-#, no-c-format
-msgid ""
-"define multiple Web Beans, with different scopes or initialization, for the "
-"same implementation class, or"
-msgstr ""
-"definir vários Web Beans, com diferentes escopos ou inicialização, para a "
-"mesma implementação da classe, ou"
-
-#. Tag: para
-#: producermethods.xml:47
-#, no-c-format
-msgid "vary the implementation of an API type at runtime."
-msgstr "variar a implementação de um tipo da API em tempo de execução."
-
-#. Tag: para
-#: producermethods.xml:51
-#, no-c-format
-msgid ""
-"In particular, producer methods let us use runtime polymorphism with Web "
-"Beans. As we've seen, deployment types are a powerful solution to the "
-"problem of deployment-time polymorphism. But once the system is deployed, "
-"the Web Bean implementation is fixed. A producer method has no such "
-"limitation:"
-msgstr ""
-"Em particular, métodos produtores permite-nos utilizar o polimorfismo em "
-"tempo de execução com Web Beans. Como vimos, os tipo de implantação são uma "
-"poderosa solução para o problema do polimorfismo em tempo de implantação. "
-"Mas, uma vez que o sistema está implantado, a implementação do Web Bean é "
-"fixada. Um método produtor não tem essa limitação:"
-
-#. Tag: programlisting
-#: producermethods.xml:56
-#, no-c-format
-msgid ""
-"<![CDATA[@SessionScoped\n"
+"<blockquote> <para>A Web Beans producer method acts as a source of
objects "
+"to be injected, where:</para> <itemizedlist> <listitem>
<para>the objects to "
+"be injected are not required to be instances of Web Beans,</para>
</"
+"listitem> <listitem> <para>the concrete type of the objects to be
injected "
+"may vary at runtime or</para> </listitem> <listitem>
<para>the objects "
+"require some custom initialization that is not performed by the Web Bean "
+"constructor</para> </listitem> </itemizedlist>
</blockquote> <para>For "
+"example, producer methods let us:</para> <itemizedlist>
<listitem> "
+"<para>expose a JPA entity as a Web Bean,</para> </listitem>
<listitem> "
+"<para>expose any JDK class as a Web Bean,</para> </listitem>
<listitem> "
+"<para>define multiple Web Beans, with different scopes or initialization,
"
+"for the same implementation class, or</para> </listitem>
<listitem> "
+"<para>vary the implementation of an API type at runtime.</para>
</listitem> "
+"</itemizedlist> <para>In particular, producer methods let us use
runtime "
+"polymorphism with Web Beans. As we've seen, deployment types are a powerful
"
+"solution to the problem of deployment-time polymorphism. But once the system
"
+"is deployed, the Web Bean implementation is fixed. A producer method has no "
+"such limitation:</para> <programlisting
role=\"JAVA\"><![CDATA"
+"[@SessionScoped\n"
"public class Preferences {\n"
" \n"
" private PaymentStrategyType paymentStrategy;\n"
@@ -149,59 +80,15 @@
" } \n"
" }\n"
" \n"
-"}]]>"
+"}]]></programlisting> <para>Consider an injection
point:</para> "
+"<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
+"paymentStrat;]]></programlisting> <para>This injection point has the
same "
+"type and binding annotations as the producer method, so it resolves to the "
+"producer method using the usual Web Beans injection rules. The producer "
+"method will be called by the Web Bean manager to obtain an instance to "
+"service this injection point.</para>."
msgstr ""
-"<![CDATA[@SessionScoped\n"
-"public class Preferences {\n"
-" \n"
-" private PaymentStrategyType paymentStrategy;\n"
-" \n"
-" ...\n"
-" \n"
-" @Produces @Preferred \n"
-" public PaymentStrategy getPaymentStrategy() {\n"
-" switch (paymentStrategy) {\n"
-" case CREDIT_CARD: return new CreditCardPaymentStrategy();\n"
-" case CHEQUE: return new ChequePaymentStrategy();\n"
-" case PAYPAL: return new PayPalPaymentStrategy();\n"
-" default: return null;\n"
-" } \n"
-" }\n"
-" \n"
-"}]]>"
-#. Tag: para
-#: producermethods.xml:58
-#, no-c-format
-msgid "Consider an injection point:"
-msgstr "Considere o ponto de injeção:"
-
-#. Tag: programlisting
-#: producermethods.xml:60
-#, no-c-format
-msgid "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
-msgstr "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
-
-#. Tag: para
-#: producermethods.xml:62
-#, no-c-format
-msgid ""
-"This injection point has the same type and binding annotations as the "
-"producer method, so it resolves to the producer method using the usual Web "
-"Beans injection rules. The producer method will be called by the Web Bean "
-"manager to obtain an instance to service this injection point."
-msgstr ""
-"Esse ponto de injeção tem o mesmo tipo e anotações de binding que o método "
-"produtor. Assim, resolve para o método produtor utilizando as regras de "
-"injeção da Web Beans. O método produtor será invocado pelo gerenciador do "
-"Bean Web para obter uma instância para servir esse ponto de injeção."
-
-#. Tag: chapter
-#: producermethods.xml:65
-#, no-c-format
-msgid "<chapter>.</chapter>"
-msgstr "<chapter>.</chapter>"
-
#. Tag: title
#: producermethods.xml:68
#, no-c-format
@@ -428,3 +315,121 @@
"método produtor, retornada pelo método produtor e, finalmente, associada ao "
"contexto de sessão. O objeto dependente não será destruído até que o objeto "
"<literal>Preferences</literal> seja destruído, no término da
sessão."
+
+#~ msgid ""
+#~ "A Web Beans producer method acts as a source of objects to be injected, "
+#~ "where:"
+#~ msgstr ""
+#~ "Um método produtor Web Beans funciona como uma fonte de objetos a ser "
+#~ "injetado, quando:"
+
+#~ msgid ""
+#~ "the objects to be injected are not required to be instances of Web Beans,"
+#~ msgstr ""
+#~ "os objetos a serem injetados não forem obrigados a ser instâncias de Web "
+#~ "Beans,"
+
+#~ msgid ""
+#~ "the concrete type of the objects to be injected may vary at runtime or"
+#~ msgstr ""
+#~ "o tipo concreto dos objetos a serem injetados pode variar em tempo de "
+#~ "execução ou"
+
+#~ msgid ""
+#~ "the objects require some custom initialization that is not performed by "
+#~ "the Web Bean constructor"
+#~ msgstr ""
+#~ "os objetos requerem alguma inicialização personalizada que não é "
+#~ "realizada pelo construtor do Web Bean"
+
+#~ msgid "For example, producer methods let us:"
+#~ msgstr "Por exemplo, métodos produtores permitem:"
+
+#~ msgid "expose a JPA entity as a Web Bean,"
+#~ msgstr "expor uma entidade JPA como um Web Bean,"
+
+#~ msgid "expose any JDK class as a Web Bean,"
+#~ msgstr "expor qualquer classe do JDK como um Web Bean,"
+
+#~ msgid ""
+#~ "define multiple Web Beans, with different scopes or initialization, for "
+#~ "the same implementation class, or"
+#~ msgstr ""
+#~ "definir vários Web Beans, com diferentes escopos ou inicialização, para a
"
+#~ "mesma implementação da classe, ou"
+
+#~ msgid "vary the implementation of an API type at runtime."
+#~ msgstr "variar a implementação de um tipo da API em tempo de execução."
+
+#~ msgid ""
+#~ "In particular, producer methods let us use runtime polymorphism with Web "
+#~ "Beans. As we've seen, deployment types are a powerful solution to the
"
+#~ "problem of deployment-time polymorphism. But once the system is deployed,
"
+#~ "the Web Bean implementation is fixed. A producer method has no such "
+#~ "limitation:"
+#~ msgstr ""
+#~ "Em particular, métodos produtores permite-nos utilizar o polimorfismo em "
+#~ "tempo de execução com Web Beans. Como vimos, os tipo de implantação são "
+#~ "uma poderosa solução para o problema do polimorfismo em tempo de "
+#~ "implantação. Mas, uma vez que o sistema está implantado, a implementação "
+#~ "do Web Bean é fixada. Um método produtor não tem essa limitação:"
+
+#~ msgid ""
+#~ "<![CDATA[@SessionScoped\n"
+#~ "public class Preferences {\n"
+#~ " \n"
+#~ " private PaymentStrategyType paymentStrategy;\n"
+#~ " \n"
+#~ " ...\n"
+#~ " \n"
+#~ " @Produces @Preferred \n"
+#~ " public PaymentStrategy getPaymentStrategy() {\n"
+#~ " switch (paymentStrategy) {\n"
+#~ " case CREDIT_CARD: return new CreditCardPaymentStrategy();\n"
+#~ " case CHEQUE: return new ChequePaymentStrategy();\n"
+#~ " case PAYPAL: return new PayPalPaymentStrategy();\n"
+#~ " default: return null;\n"
+#~ " } \n"
+#~ " }\n"
+#~ " \n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[@SessionScoped\n"
+#~ "public class Preferences {\n"
+#~ " \n"
+#~ " private PaymentStrategyType paymentStrategy;\n"
+#~ " \n"
+#~ " ...\n"
+#~ " \n"
+#~ " @Produces @Preferred \n"
+#~ " public PaymentStrategy getPaymentStrategy() {\n"
+#~ " switch (paymentStrategy) {\n"
+#~ " case CREDIT_CARD: return new CreditCardPaymentStrategy();\n"
+#~ " case CHEQUE: return new ChequePaymentStrategy();\n"
+#~ " case PAYPAL: return new PayPalPaymentStrategy();\n"
+#~ " default: return null;\n"
+#~ " } \n"
+#~ " }\n"
+#~ " \n"
+#~ "}]]>"
+
+#~ msgid "Consider an injection point:"
+#~ msgstr "Considere o ponto de injeção:"
+
+#~ msgid "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
+#~ msgstr "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
+
+#~ msgid ""
+#~ "This injection point has the same type and binding annotations as the "
+#~ "producer method, so it resolves to the producer method using the usual "
+#~ "Web Beans injection rules. The producer method will be called by the Web "
+#~ "Bean manager to obtain an instance to service this injection point."
+#~ msgstr ""
+#~ "Esse ponto de injeção tem o mesmo tipo e anotações de binding que o "
+#~ "método produtor. Assim, resolve para o método produtor utilizando as "
+#~ "regras de injeção da Web Beans. O método produtor será invocado pelo "
+#~ "gerenciador do Bean Web para obter uma instância para servir esse ponto "
+#~ "de injeção."
+
+#~ msgid "<chapter>.</chapter>"
+#~ msgstr "<chapter>.</chapter>"
Modified: doc/trunk/reference/zh-CN/environments.po
===================================================================
--- doc/trunk/reference/zh-CN/environments.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/zh-CN/environments.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
"Project-Id-Version: Web_Beans:_Java_Contexts_and_Dependency_Injection "
"VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2009-03-28 17:09+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -84,7 +84,7 @@
#. Tag: title
#: environments.xml:47
#, no-c-format
-msgid "Glassfish"
+msgid "GlassFish"
msgstr ""
#. Tag: para
@@ -122,9 +122,9 @@
msgid ""
"Web Beans should be used as a web application library in a servlet "
"container. You should place <literal>webbeans-servlet.jar</literal> in
"
-"<literal>WEB-INF/lib</literal>.
<literal>webbeans-serv;et.jar</literal> is "
-"an \"uber-jar\" provided for your convenience. Instead, you could use its
"
-"component jars:"
+"<literal>WEB-INF/lib</literal>.
<literal>webbeans-servlet.jar</literal> is "
+"an \"uber-jar\" provided for your convenience. Alternatively, you could
use "
+"its component jars:"
msgstr ""
#. Tag: literal
@@ -205,45 +205,46 @@
#, no-c-format
msgid ""
"Tomcat has a read-only JNDI, so Web Beans can't automatically bind the "
-"Manager. To bind the Manager into JNDI, you should add the following to your
"
-"<literal>META-INF/context.xml</literal>:"
+"Manager. To bind the Manager into JNDI, you should populate
<literal>META-"
+"INF/context.xml</literal> with the following contents:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:134
+#: environments.xml:135
#, no-c-format
msgid ""
-"<![CDATA[<Resource name=\"app/Manager\" \n"
-" auth=\"Container\"\n"
-" type=\"javax.inject.manager.Manager\"\n"
-"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
-"]]>"
+"<![CDATA[<Context>\n"
+" <Resource name=\"app/Manager\" \n"
+" auth=\"Container\"\n"
+" type=\"javax.inject.manager.Manager\"\n"
+"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
+"</Context>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:136
+#: environments.xml:137
#, no-c-format
msgid ""
-"and make it available to your deployment by adding this to
<literal>web.xml</"
-"literal>:"
+"and make it available to your deployment by adding this to the bottom of "
+"<literal>web.xml</literal>:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:141
+#: environments.xml:142
#, no-c-format
msgid ""
"<![CDATA[<resource-env-ref>\n"
-" <resource-env-ref-name>\n"
-" app/Manager\n"
-" </resource-env-ref-name>\n"
-" <resource-env-ref-type>\n"
-" javax.inject.manager.Manager\n"
-" </resource-env-ref-type>\n"
+" <resource-env-ref-name>\n"
+" app/Manager\n"
+" </resource-env-ref-name>\n"
+" <resource-env-ref-type>\n"
+" javax.inject.manager.Manager\n"
+" </resource-env-ref-type>\n"
"</resource-env-ref>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:143
+#: environments.xml:144
#, no-c-format
msgid ""
"Tomcat only allows you to bind entries to
<literal>java:comp/env</literal>, "
@@ -252,7 +253,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:149
+#: environments.xml:150
#, no-c-format
msgid ""
"Web Beans also supports Servlet injection in Tomcat. To enable this, place "
@@ -262,21 +263,84 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:156
+#: environments.xml:157
#, no-c-format
msgid ""
"<![CDATA[<Listener
className=\"org.jboss.webbeans.environment.tomcat."
-"WebBeansLifecycleListener\" />]]>"
+"WebBeansLifecycleListener\"/>]]>"
msgstr ""
#. Tag: title
-#: environments.xml:163
+#: environments.xml:162
#, no-c-format
+msgid "Jetty"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:164
+#, no-c-format
+msgid ""
+"Like Tomcat, Jetty has a read-only JNDI, so Web Beans can't automatically
"
+"bind the Manager. To bind the Manager to JNDI, you should populate "
+"<literal>WEB-INF/jetty-env.xml</literal> with the following
contents:"
+msgstr ""
+
+#. Tag: programlisting
+#: environments.xml:171
+#, no-c-format
+msgid ""
+"<![CDATA[<!DOCTYPE Configure PUBLIC \"-//Mort Bay Consulting//DTD
Configure//"
+"EN\"\n"
+" \"http://jetty.mortbay.org/configure.dtd\">\n"
+"<Configure id=\"webAppCtx\"
class=\"org.mortbay.jetty.webapp.WebAppContext"
+"\">\n"
+" <New id=\"appManager\"
class=\"org.mortbay.jetty.plus.naming.Resource\">\n"
+" <Arg><Ref id=\"webAppCtx\"/></Arg> \n"
+" <Arg>app/Manager</Arg>\n"
+" <Arg>\n"
+" <New class=\"javax.naming.Reference\">\n"
+" <Arg>javax.inject.manager.Manager</Arg> \n"
+"
<Arg>org.jboss.webbeans.resources.ManagerObjectFactory</Arg>\n"
+" <Arg/>\n"
+" </New>\n"
+" </Arg>\n"
+" </New>\n"
+"</Configure>]]>"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:173
+#, no-c-format
+msgid ""
+"Notice that Jetty doesn't not have built-in support for an
<literal>javax."
+"naming.spi.ObjectFactory</literal> like Tomcat, so it's necessary to
"
+"manually create the <literal>javax.naming.Reference</literal> to wrap
around "
+"it."
+msgstr ""
+
+#. Tag: para
+#: environments.xml:180
+#, no-c-format
+msgid ""
+"Jetty only allows you to bind entries to
<literal>java:comp/env</literal>, "
+"so the Manager will be available at
<literal>java:comp/env/app/Manager</"
+"literal>"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:186
+#, no-c-format
+msgid "Web Beans does not currently support Servlet injection in Jetty."
+msgstr ""
+
+#. Tag: title
+#: environments.xml:195
+#, no-c-format
msgid "Java SE"
msgstr ""
#. Tag: para
-#: environments.xml:165
+#: environments.xml:197
#, no-c-format
msgid ""
"Apart from improved integration of the Enterprise Java stack, Web Beans also
"
@@ -288,7 +352,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:173
+#: environments.xml:205
#, no-c-format
msgid ""
"When executing in the SE environment the following features of Web Beans are
"
@@ -296,49 +360,55 @@
msgstr ""
#. Tag: literal
-#: environments.xml:179
+#: environments.xml:211
#, no-c-format
msgid "Simple Web Beans (POJOs)"
msgstr ""
#. Tag: literal
-#: environments.xml:184
+#: environments.xml:216
#, no-c-format
msgid "Typesafe Dependency Injection"
msgstr ""
#. Tag: literal
-#: environments.xml:189
+#: environments.xml:221
#, no-c-format
msgid "Application and Dependent Contexts"
msgstr ""
#. Tag: literal
-#: environments.xml:194
+#: environments.xml:226
#, no-c-format
msgid "Binding Types"
msgstr ""
#. Tag: literal
-#: environments.xml:199
+#: environments.xml:231
#, no-c-format
+msgid "Deployment Types"
+msgstr ""
+
+#. Tag: literal
+#: environments.xml:236
+#, no-c-format
msgid "Stereotypes"
msgstr ""
#. Tag: literal
-#: environments.xml:204
+#: environments.xml:241
#, no-c-format
msgid "Typesafe Event Model"
msgstr ""
#. Tag: title
-#: environments.xml:210
+#: environments.xml:247
#, no-c-format
msgid "Web Beans SE Module"
msgstr ""
#. Tag: para
-#: environments.xml:212
+#: environments.xml:249
#, no-c-format
msgid ""
"To make life easy for developers Web Beans provides a special module with a "
@@ -351,7 +421,7 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:221
+#: environments.xml:258
#, no-c-format
msgid ""
"<![CDATA[@Parameters List<String> params;\n"
@@ -360,13 +430,13 @@
msgstr ""
#. Tag: para
-#: environments.xml:222
+#: environments.xml:259
#, no-c-format
msgid "Here's an example of a simple Web Beans SE application:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:226
+#: environments.xml:263
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -382,20 +452,20 @@
msgstr ""
#. Tag: para
-#: environments.xml:228
+#: environments.xml:265
#, no-c-format
msgid ""
"Web Beans SE applications are started by running the following main method."
msgstr ""
#. Tag: programlisting
-#: environments.xml:230
+#: environments.xml:267
#, no-c-format
msgid "<![CDATA[java org.jboss.webbeans.environments.se.StartMain
<args>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:232
+#: environments.xml:269
#, no-c-format
msgid ""
"If you need to do any custom initialization of the Web Beans manager, for "
@@ -405,7 +475,7 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:237
+#: environments.xml:274
#, no-c-format
msgid ""
"<![CDATA[public class PerformSetup\n"
@@ -419,7 +489,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:240
+#: environments.xml:277
#, no-c-format
msgid ""
"The command line parameters do not become available for injection until the "
Modified: doc/trunk/reference/zh-CN/producermethods.po
===================================================================
--- doc/trunk/reference/zh-CN/producermethods.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/zh-CN/producermethods.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2009-03-12 11:20+0800\n"
"Last-Translator: Sean Wu <alartin(a)gmail.com>\n"
"Language-Team: none\n"
@@ -39,83 +39,29 @@
msgid "According to the spec:"
msgstr "根据规范:"
-#. Tag: para
-#: producermethods.xml:16
+#. Tag: chapter
+#: producermethods.xml:12
#, no-c-format
msgid ""
-"A Web Beans producer method acts as a source of objects to be injected, "
-"where:"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:20
-#, no-c-format
-msgid ""
-"the objects to be injected are not required to be instances of Web Beans,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:23
-#, no-c-format
-msgid "the concrete type of the objects to be injected may vary at runtime or"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:26
-#, no-c-format
-msgid ""
-"the objects require some custom initialization that is not performed by the "
-"Web Bean constructor"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:33
-#, fuzzy, no-c-format
-msgid "For example, producer methods let us:"
-msgstr "生产者方法的范围"
-
-#. Tag: para
-#: producermethods.xml:37
-#, no-c-format
-msgid "expose a JPA entity as a Web Bean,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:40
-#, no-c-format
-msgid "expose any JDK class as a Web Bean,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:43
-#, no-c-format
-msgid ""
-"define multiple Web Beans, with different scopes or initialization, for the "
-"same implementation class, or"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:47
-#, no-c-format
-msgid "vary the implementation of an API type at runtime."
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:51
-#, no-c-format
-msgid ""
-"In particular, producer methods let us use runtime polymorphism with Web "
-"Beans. As we've seen, deployment types are a powerful solution to the "
-"problem of deployment-time polymorphism. But once the system is deployed, "
-"the Web Bean implementation is fixed. A producer method has no such "
-"limitation:"
-msgstr ""
-
-#. Tag: programlisting
-#: producermethods.xml:56
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[@SessionScoped\n"
+"<blockquote> <para>A Web Beans producer method acts as a source of
objects "
+"to be injected, where:</para> <itemizedlist> <listitem>
<para>the objects to "
+"be injected are not required to be instances of Web Beans,</para>
</"
+"listitem> <listitem> <para>the concrete type of the objects to be
injected "
+"may vary at runtime or</para> </listitem> <listitem>
<para>the objects "
+"require some custom initialization that is not performed by the Web Bean "
+"constructor</para> </listitem> </itemizedlist>
</blockquote> <para>For "
+"example, producer methods let us:</para> <itemizedlist>
<listitem> "
+"<para>expose a JPA entity as a Web Bean,</para> </listitem>
<listitem> "
+"<para>expose any JDK class as a Web Bean,</para> </listitem>
<listitem> "
+"<para>define multiple Web Beans, with different scopes or initialization,
"
+"for the same implementation class, or</para> </listitem>
<listitem> "
+"<para>vary the implementation of an API type at runtime.</para>
</listitem> "
+"</itemizedlist> <para>In particular, producer methods let us use
runtime "
+"polymorphism with Web Beans. As we've seen, deployment types are a powerful
"
+"solution to the problem of deployment-time polymorphism. But once the system
"
+"is deployed, the Web Bean implementation is fixed. A producer method has no "
+"such limitation:</para> <programlisting
role=\"JAVA\"><![CDATA"
+"[@SessionScoped\n"
"public class Preferences {\n"
" \n"
" private PaymentStrategyType paymentStrategy;\n"
@@ -132,52 +78,51 @@
" } \n"
" }\n"
" \n"
-"}]]>"
+"}]]></programlisting> <para>Consider an injection
point:</para> "
+"<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
+"paymentStrat;]]></programlisting> <para>This injection point has the
same "
+"type and binding annotations as the producer method, so it resolves to the "
+"producer method using the usual Web Beans injection rules. The producer "
+"method will be called by the Web Bean manager to obtain an instance to "
+"service this injection point.</para>."
msgstr ""
-"<![CDATA[@Produces @Preferred @SessionScoped\n"
-"public PaymentStrategy getPaymentStrategy(CreditCardPaymentStrategy ccps,\n"
-" ChequePaymentStrategy cps,\n"
-" PayPalPaymentStrategy ppps) {\n"
-" switch (paymentStrategy) {\n"
-" case CREDIT_CARD: return ccps;\n"
-" case CHEQUE: return cps;\n"
-" case PAYPAL: return ppps;\n"
-" default: return null;\n"
-" } \n"
-"}]]>"
-
-#. Tag: para
-#: producermethods.xml:58
-#, no-c-format
-msgid "Consider an injection point:"
-msgstr ""
-
-#. Tag: programlisting
-#: producermethods.xml:60
-#, fuzzy, no-c-format
-msgid "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
-msgstr ""
-"<![CDATA[@Produces @Preferred @SessionScoped\n"
-"public PaymentStrategy getPaymentStrategy() {\n"
+"<blockquote> <para>一个Web Bean生产者方法在下列情况下作为注入对象的源:</"
+"para> <itemizedlist> <listitem> <para>所要注入的对象并不要求是一个Web
Bean的"
+"实例,</para> </listitem> <listitem>
<para>所要注入的对象的具体类型有可能在运"
+"行时变化,或者</para> </listitem> <listitem> <para>对象需要一些Web
Bean构造器"
+"无法完成的一些自定义的初始化工作</para> </listitem> </itemizedlist> </"
+"blockquote> <para>例如,生产者方法能够让我们:</para> <itemizedlist> "
+"<listitem> <para>将JPA实体作为一个Web Bean暴露出来,</para> </listitem>
"
+"<listitem> <para>将任何JDK类作为Web Bean暴露出来,</para> </listitem>
"
+"<listitem> <para>为相同的一个实现类定义多个Web Beans,每个都拥有不同的范围或"
+"者初始化,或者</para> </listitem> <listitem>
<para>在运行时改变一个接口类型的"
+"具体实现。</para> </listitem> </itemizedlist>
<para>特别是生产者方法让我们能"
+"够使用Web Beans实现运行时多态性。就像我们看到的那样,部署类型是解决部署时多态"
+"性的解决方案。不过一旦系统被部署之后,Web Bean的实现也就固定了。一个生产者方"
+"法并没有这样的限制:</para> <programlisting
role=\"JAVA\"><![CDATA"
+"[@SessionScoped\n"
+"public class Preferences {\n"
+" \n"
+" private PaymentStrategyType paymentStrategy;\n"
+" \n"
" ...\n"
-"}]]>"
+" \n"
+" @Produces @Preferred \n"
+" public PaymentStrategy getPaymentStrategy() {\n"
+" switch (paymentStrategy) {\n"
+" case CREDIT_CARD: return new CreditCardPaymentStrategy();\n"
+" case CHEQUE: return new ChequePaymentStrategy();\n"
+" case PAYPAL: return new PayPalPaymentStrategy();\n"
+" default: return null;\n"
+" } \n"
+" }\n"
+" \n"
+"}]]></programlisting> <para>我们看一下注入点:</para>
<programlisting role="
+"\"JAVA\"><![CDATA[@Preferred PaymentStrategy
paymentStrat;]]></"
+"programlisting> <para>这个注入点和生产者方法拥有相同的类型和绑定注释,所以使"
+"用常见的Web Bean注入规则。生产者方法将被Web Bean管理器调用,从而获得一个实例"
+"来供给这个注入点。</para>."
-#. Tag: para
-#: producermethods.xml:62
-#, no-c-format
-msgid ""
-"This injection point has the same type and binding annotations as the "
-"producer method, so it resolves to the producer method using the usual Web "
-"Beans injection rules. The producer method will be called by the Web Bean "
-"manager to obtain an instance to service this injection point."
-msgstr ""
-
-#. Tag: chapter
-#: producermethods.xml:65
-#, no-c-format
-msgid "<chapter>.</chapter>"
-msgstr ""
-
#. Tag: title
#: producermethods.xml:68
#, no-c-format
@@ -393,26 +338,13 @@
"实例将被绑定到会话上下文。这个依赖对象不会被提前销毁,而是在会话结束时跟随 "
"<literal>Preferences</literal> 一起被销毁。"
+#, fuzzy
+#~ msgid "For example, producer methods let us:"
+#~ msgstr "生产者方法的范围"
+
+#, fuzzy
#~ msgid ""
-#~ "<blockquote> <para>A Web Beans producer method acts as a source of
"
-#~ "objects to be injected, where:</para> <itemizedlist>
<listitem> <para>the "
-#~ "objects to be injected are not required to be instances of Web
Beans,</"
-#~ "para> </listitem> <listitem> <para>the concrete type of the
objects to be "
-#~ "injected may vary at runtime or</para> </listitem> <listitem>
<para>the "
-#~ "objects require some custom initialization that is not performed by the "
-#~ "Web Bean constructor</para> </listitem> </itemizedlist>
</blockquote> "
-#~ "<para>For example, producer methods let us:</para>
<itemizedlist> "
-#~ "<listitem> <para>expose a JPA entity as a Web Bean,</para>
</listitem> "
-#~ "<listitem> <para>expose any JDK class as a Web Bean,</para>
</listitem> "
-#~ "<listitem> <para>define multiple Web Beans, with different scopes or
"
-#~ "initialization, for the same implementation class, or</para>
</listitem> "
-#~ "<listitem> <para>vary the implementation of an API type at
runtime.</"
-#~ "para> </listitem> </itemizedlist> <para>In particular,
producer methods "
-#~ "let us use runtime polymorphism with Web Beans. As we've seen, deployment
"
-#~ "types are a powerful solution to the problem of deployment-time "
-#~ "polymorphism. But once the system is deployed, the Web Bean "
-#~ "implementation is fixed. A producer method has no such limitation:</para>
"
-#~ "<programlisting
role=\"JAVA\"><![CDATA[@SessionScoped\n"
+#~ "<![CDATA[@SessionScoped\n"
#~ "public class Preferences {\n"
#~ " \n"
#~ " private PaymentStrategyType paymentStrategy;\n"
@@ -429,47 +361,25 @@
#~ " } \n"
#~ " }\n"
#~ " \n"
-#~ "}]]></programlisting> <para>Consider an injection
point:</para> "
-#~ "<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
-#~ "paymentStrat;]]></programlisting> <para>This injection point has
the same "
-#~ "type and binding annotations as the producer method, so it resolves to "
-#~ "the producer method using the usual Web Beans injection rules. The "
-#~ "producer method will be called by the Web Bean manager to obtain an "
-#~ "instance to service this injection point.</para>."
+#~ "}]]>"
#~ msgstr ""
-#~ "<blockquote> <para>一个Web Bean生产者方法在下列情况下作为注入对象的源:</"
-#~ "para> <itemizedlist> <listitem> <para>所要注入的对象并不要求是一个Web
Bean"
-#~ "的实例,</para> </listitem> <listitem>
<para>所要注入的对象的具体类型有可"
-#~ "能在运行时变化,或者</para> </listitem> <listitem> <para>对象需要一些Web
"
-#~ "Bean构造器无法完成的一些自定义的初始化工作</para> </listitem> </"
-#~ "itemizedlist> </blockquote> <para>例如,生产者方法能够让我们:</para>
"
-#~ "<itemizedlist> <listitem> <para>将JPA实体作为一个Web
Bean暴露出来,</"
-#~ "para> </listitem> <listitem> <para>将任何JDK类作为Web
Bean暴露出来,</"
-#~ "para> </listitem> <listitem> <para>为相同的一个实现类定义多个Web
Beans,每"
-#~ "个都拥有不同的范围或者初始化,或者</para> </listitem> <listitem>
<para>在"
-#~ "运行时改变一个接口类型的具体实现。</para> </listitem> </itemizedlist> "
-#~ "<para>特别是生产者方法让我们能够使用Web Beans实现运行时多态性。就像我们看"
-#~ "到的那样,部署类型是解决部署时多态性的解决方案。不过一旦系统被部署之后,"
-#~ "Web Bean的实现也就固定了。一个生产者方法并没有这样的限制:</para> "
-#~ "<programlisting
role=\"JAVA\"><![CDATA[@SessionScoped\n"
-#~ "public class Preferences {\n"
-#~ " \n"
-#~ " private PaymentStrategyType paymentStrategy;\n"
-#~ " \n"
+#~ "<![CDATA[@Produces @Preferred @SessionScoped\n"
+#~ "public PaymentStrategy getPaymentStrategy(CreditCardPaymentStrategy "
+#~ "ccps,\n"
+#~ " ChequePaymentStrategy cps,\n"
+#~ " PayPalPaymentStrategy ppps) {\n"
+#~ " switch (paymentStrategy) {\n"
+#~ " case CREDIT_CARD: return ccps;\n"
+#~ " case CHEQUE: return cps;\n"
+#~ " case PAYPAL: return ppps;\n"
+#~ " default: return null;\n"
+#~ " } \n"
+#~ "}]]>"
+
+#, fuzzy
+#~ msgid "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
+#~ msgstr ""
+#~ "<![CDATA[@Produces @Preferred @SessionScoped\n"
+#~ "public PaymentStrategy getPaymentStrategy() {\n"
#~ " ...\n"
-#~ " \n"
-#~ " @Produces @Preferred \n"
-#~ " public PaymentStrategy getPaymentStrategy() {\n"
-#~ " switch (paymentStrategy) {\n"
-#~ " case CREDIT_CARD: return new CreditCardPaymentStrategy();\n"
-#~ " case CHEQUE: return new ChequePaymentStrategy();\n"
-#~ " case PAYPAL: return new PayPalPaymentStrategy();\n"
-#~ " default: return null;\n"
-#~ " } \n"
-#~ " }\n"
-#~ " \n"
-#~ "}]]></programlisting> <para>我们看一下注入点:</para>
<programlisting "
-#~ "role=\"JAVA\"><![CDATA[@Preferred PaymentStrategy
paymentStrat;]]></"
-#~ "programlisting> <para>这个注入点和生产者方法拥有相同的类型和绑定注释,所以"
-#~ "使用常见的Web Bean注入规则。生产者方法将被Web Bean管理器调用,从而获得一个"
-#~ "实例来供给这个注入点。</para>."
+#~ "}]]>"
Modified: doc/trunk/reference/zh-TW/environments.po
===================================================================
--- doc/trunk/reference/zh-TW/environments.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/zh-TW/environments.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -6,7 +6,7 @@
"Project-Id-Version: Web_Beans:_Java_Contexts_and_Dependency_Injection "
"VERSION\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2009-03-28 17:09+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -84,7 +84,7 @@
#. Tag: title
#: environments.xml:47
#, no-c-format
-msgid "Glassfish"
+msgid "GlassFish"
msgstr ""
#. Tag: para
@@ -122,9 +122,9 @@
msgid ""
"Web Beans should be used as a web application library in a servlet "
"container. You should place <literal>webbeans-servlet.jar</literal> in
"
-"<literal>WEB-INF/lib</literal>.
<literal>webbeans-serv;et.jar</literal> is "
-"an \"uber-jar\" provided for your convenience. Instead, you could use its
"
-"component jars:"
+"<literal>WEB-INF/lib</literal>.
<literal>webbeans-servlet.jar</literal> is "
+"an \"uber-jar\" provided for your convenience. Alternatively, you could
use "
+"its component jars:"
msgstr ""
#. Tag: literal
@@ -205,45 +205,46 @@
#, no-c-format
msgid ""
"Tomcat has a read-only JNDI, so Web Beans can't automatically bind the "
-"Manager. To bind the Manager into JNDI, you should add the following to your
"
-"<literal>META-INF/context.xml</literal>:"
+"Manager. To bind the Manager into JNDI, you should populate
<literal>META-"
+"INF/context.xml</literal> with the following contents:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:134
+#: environments.xml:135
#, no-c-format
msgid ""
-"<![CDATA[<Resource name=\"app/Manager\" \n"
-" auth=\"Container\"\n"
-" type=\"javax.inject.manager.Manager\"\n"
-"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
-"]]>"
+"<![CDATA[<Context>\n"
+" <Resource name=\"app/Manager\" \n"
+" auth=\"Container\"\n"
+" type=\"javax.inject.manager.Manager\"\n"
+"
factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
+"</Context>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:136
+#: environments.xml:137
#, no-c-format
msgid ""
-"and make it available to your deployment by adding this to
<literal>web.xml</"
-"literal>:"
+"and make it available to your deployment by adding this to the bottom of "
+"<literal>web.xml</literal>:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:141
+#: environments.xml:142
#, no-c-format
msgid ""
"<![CDATA[<resource-env-ref>\n"
-" <resource-env-ref-name>\n"
-" app/Manager\n"
-" </resource-env-ref-name>\n"
-" <resource-env-ref-type>\n"
-" javax.inject.manager.Manager\n"
-" </resource-env-ref-type>\n"
+" <resource-env-ref-name>\n"
+" app/Manager\n"
+" </resource-env-ref-name>\n"
+" <resource-env-ref-type>\n"
+" javax.inject.manager.Manager\n"
+" </resource-env-ref-type>\n"
"</resource-env-ref>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:143
+#: environments.xml:144
#, no-c-format
msgid ""
"Tomcat only allows you to bind entries to
<literal>java:comp/env</literal>, "
@@ -252,7 +253,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:149
+#: environments.xml:150
#, no-c-format
msgid ""
"Web Beans also supports Servlet injection in Tomcat. To enable this, place "
@@ -262,21 +263,84 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:156
+#: environments.xml:157
#, no-c-format
msgid ""
"<![CDATA[<Listener
className=\"org.jboss.webbeans.environment.tomcat."
-"WebBeansLifecycleListener\" />]]>"
+"WebBeansLifecycleListener\"/>]]>"
msgstr ""
#. Tag: title
-#: environments.xml:163
+#: environments.xml:162
#, no-c-format
+msgid "Jetty"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:164
+#, no-c-format
+msgid ""
+"Like Tomcat, Jetty has a read-only JNDI, so Web Beans can't automatically
"
+"bind the Manager. To bind the Manager to JNDI, you should populate "
+"<literal>WEB-INF/jetty-env.xml</literal> with the following
contents:"
+msgstr ""
+
+#. Tag: programlisting
+#: environments.xml:171
+#, no-c-format
+msgid ""
+"<![CDATA[<!DOCTYPE Configure PUBLIC \"-//Mort Bay Consulting//DTD
Configure//"
+"EN\"\n"
+" \"http://jetty.mortbay.org/configure.dtd\">\n"
+"<Configure id=\"webAppCtx\"
class=\"org.mortbay.jetty.webapp.WebAppContext"
+"\">\n"
+" <New id=\"appManager\"
class=\"org.mortbay.jetty.plus.naming.Resource\">\n"
+" <Arg><Ref id=\"webAppCtx\"/></Arg> \n"
+" <Arg>app/Manager</Arg>\n"
+" <Arg>\n"
+" <New class=\"javax.naming.Reference\">\n"
+" <Arg>javax.inject.manager.Manager</Arg> \n"
+"
<Arg>org.jboss.webbeans.resources.ManagerObjectFactory</Arg>\n"
+" <Arg/>\n"
+" </New>\n"
+" </Arg>\n"
+" </New>\n"
+"</Configure>]]>"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:173
+#, no-c-format
+msgid ""
+"Notice that Jetty doesn't not have built-in support for an
<literal>javax."
+"naming.spi.ObjectFactory</literal> like Tomcat, so it's necessary to
"
+"manually create the <literal>javax.naming.Reference</literal> to wrap
around "
+"it."
+msgstr ""
+
+#. Tag: para
+#: environments.xml:180
+#, no-c-format
+msgid ""
+"Jetty only allows you to bind entries to
<literal>java:comp/env</literal>, "
+"so the Manager will be available at
<literal>java:comp/env/app/Manager</"
+"literal>"
+msgstr ""
+
+#. Tag: para
+#: environments.xml:186
+#, no-c-format
+msgid "Web Beans does not currently support Servlet injection in Jetty."
+msgstr ""
+
+#. Tag: title
+#: environments.xml:195
+#, no-c-format
msgid "Java SE"
msgstr ""
#. Tag: para
-#: environments.xml:165
+#: environments.xml:197
#, no-c-format
msgid ""
"Apart from improved integration of the Enterprise Java stack, Web Beans also
"
@@ -288,7 +352,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:173
+#: environments.xml:205
#, no-c-format
msgid ""
"When executing in the SE environment the following features of Web Beans are
"
@@ -296,49 +360,55 @@
msgstr ""
#. Tag: literal
-#: environments.xml:179
+#: environments.xml:211
#, no-c-format
msgid "Simple Web Beans (POJOs)"
msgstr ""
#. Tag: literal
-#: environments.xml:184
+#: environments.xml:216
#, no-c-format
msgid "Typesafe Dependency Injection"
msgstr ""
#. Tag: literal
-#: environments.xml:189
+#: environments.xml:221
#, no-c-format
msgid "Application and Dependent Contexts"
msgstr ""
#. Tag: literal
-#: environments.xml:194
+#: environments.xml:226
#, no-c-format
msgid "Binding Types"
msgstr ""
#. Tag: literal
-#: environments.xml:199
+#: environments.xml:231
#, no-c-format
+msgid "Deployment Types"
+msgstr ""
+
+#. Tag: literal
+#: environments.xml:236
+#, no-c-format
msgid "Stereotypes"
msgstr ""
#. Tag: literal
-#: environments.xml:204
+#: environments.xml:241
#, no-c-format
msgid "Typesafe Event Model"
msgstr ""
#. Tag: title
-#: environments.xml:210
+#: environments.xml:247
#, no-c-format
msgid "Web Beans SE Module"
msgstr ""
#. Tag: para
-#: environments.xml:212
+#: environments.xml:249
#, no-c-format
msgid ""
"To make life easy for developers Web Beans provides a special module with a "
@@ -351,7 +421,7 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:221
+#: environments.xml:258
#, no-c-format
msgid ""
"<![CDATA[@Parameters List<String> params;\n"
@@ -360,13 +430,13 @@
msgstr ""
#. Tag: para
-#: environments.xml:222
+#: environments.xml:259
#, no-c-format
msgid "Here's an example of a simple Web Beans SE application:"
msgstr ""
#. Tag: programlisting
-#: environments.xml:226
+#: environments.xml:263
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -382,20 +452,20 @@
msgstr ""
#. Tag: para
-#: environments.xml:228
+#: environments.xml:265
#, no-c-format
msgid ""
"Web Beans SE applications are started by running the following main method."
msgstr ""
#. Tag: programlisting
-#: environments.xml:230
+#: environments.xml:267
#, no-c-format
msgid "<![CDATA[java org.jboss.webbeans.environments.se.StartMain
<args>]]>"
msgstr ""
#. Tag: para
-#: environments.xml:232
+#: environments.xml:269
#, no-c-format
msgid ""
"If you need to do any custom initialization of the Web Beans manager, for "
@@ -405,7 +475,7 @@
msgstr ""
#. Tag: programlisting
-#: environments.xml:237
+#: environments.xml:274
#, no-c-format
msgid ""
"<![CDATA[public class PerformSetup\n"
@@ -419,7 +489,7 @@
msgstr ""
#. Tag: para
-#: environments.xml:240
+#: environments.xml:277
#, no-c-format
msgid ""
"The command line parameters do not become available for injection until the "
Modified: doc/trunk/reference/zh-TW/gettingstarted.po
===================================================================
--- doc/trunk/reference/zh-TW/gettingstarted.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/zh-TW/gettingstarted.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: ri\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2009-01-19 18:21+1000\n"
"Last-Translator: Terry Chuang <tchuang(a)redhat.com>\n"
"Language-Team: Traditional Chinese <zh(a)li.org>\n"
@@ -105,7 +105,7 @@
"$ unzip ~/jboss-5.0.0.GA.zip]]>"
#. Tag: para
-#: gettingstarted.xml:49 gettingstarted.xml:170
+#: gettingstarted.xml:49 gettingstarted.xml:177
#, fuzzy, no-c-format
msgid ""
"Next, download Web Beans from <ulink
url=\"http://seamframework.org/Download"
@@ -115,7 +115,7 @@
"org</ulink> 下載 Web Beans RI 並將它解壓縮。例如"
#. Tag: programlisting
-#: gettingstarted.xml:55 gettingstarted.xml:176
+#: gettingstarted.xml:55 gettingstarted.xml:183
#, fuzzy, no-c-format
msgid ""
"<![CDATA[$ cd ~/\n"
@@ -152,8 +152,16 @@
"若要安裝更新,您將需要先安裝 Ant 1.7.0,並設置 <literal>ANT_HOME</literal> 環"
"境變數。例如:"
+#. Tag: para
+#: gettingstarted.xml:72
+#, no-c-format
+msgid ""
+"JBoss 5.1.0 comes with Web Beans built in, so there is no need to update the
"
+"server."
+msgstr ""
+
#. Tag: programlisting
-#: gettingstarted.xml:71
+#: gettingstarted.xml:78
#, no-c-format
msgid ""
"$ unzip apache-ant-1.7.0.zip\n"
@@ -163,7 +171,7 @@
"$ export ANT_HOME=~/apache-ant-1.7.0"
#. Tag: para
-#: gettingstarted.xml:73
+#: gettingstarted.xml:80
#, fuzzy, no-c-format
msgid ""
"Then, you can install the update. The update script will use Maven to "
@@ -173,7 +181,7 @@
"及 EJB3。"
#. Tag: programlisting
-#: gettingstarted.xml:78
+#: gettingstarted.xml:85
#, fuzzy, no-c-format
msgid ""
"$ cd webbeans-$VERSION/jboss-as\n"
@@ -183,13 +191,13 @@
"$ ant update"
#. Tag: para
-#: gettingstarted.xml:80
+#: gettingstarted.xml:87
#, no-c-format
msgid "Now, you're ready to deploy your first example!"
msgstr "現在,您已準備好建置您的第一個範例!"
#. Tag: para
-#: gettingstarted.xml:85
+#: gettingstarted.xml:92
#, fuzzy, no-c-format
msgid ""
"The build scripts for the examples offer a number of targets for JBoss AS, "
@@ -197,13 +205,13 @@
msgstr "這些範例的建置 script 提供了一些目標,它們包含了:"
#. Tag: para
-#: gettingstarted.xml:91
+#: gettingstarted.xml:98
#, no-c-format
msgid "<literal>ant restart</literal> - deploy the example in exploded
format"
msgstr "<literal>ant restart</literal> - 以分解的格式來建置範例"
#. Tag: para
-#: gettingstarted.xml:97
+#: gettingstarted.xml:104
#, no-c-format
msgid ""
"<literal>ant explode</literal> - update an exploded example, without
"
@@ -212,32 +220,32 @@
"<literal>ant explode</literal> - 在不重新建置的情況下更新一個已分解的範例"
#. Tag: para
-#: gettingstarted.xml:103
+#: gettingstarted.xml:110
#, no-c-format
msgid ""
"<literal>ant deploy</literal> - deploy the example in compressed jar
format"
msgstr "<literal>ant deploy</literal> - 以 jar 格式來建置範例"
#. Tag: para
-#: gettingstarted.xml:108
+#: gettingstarted.xml:115
#, no-c-format
msgid "<literal>ant undeploy</literal> - remove the example from the
server"
msgstr "<literal>ant undeploy</literal> - 將範例由伺服器中移除"
#. Tag: para
-#: gettingstarted.xml:113
+#: gettingstarted.xml:120
#, no-c-format
msgid "<literal>ant clean</literal> - clean the example"
msgstr "<literal>ant clean</literal> - 清除範例"
#. Tag: para
-#: gettingstarted.xml:120
+#: gettingstarted.xml:127
#, no-c-format
msgid "To deploy the numberguess example:"
msgstr "若要建置 numberguess 範例:"
#. Tag: programlisting
-#: gettingstarted.xml:124
+#: gettingstarted.xml:131
#, no-c-format
msgid ""
"$ cd examples/numberguess\n"
@@ -247,25 +255,25 @@
"ant deploy"
#. Tag: para
-#: gettingstarted.xml:126
+#: gettingstarted.xml:133
#, no-c-format
msgid "Start JBoss AS:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:130
+#: gettingstarted.xml:137
#, fuzzy, no-c-format
msgid "$ /Application/jboss-5.0.0.GA/bin/run.sh"
msgstr "jboss.home=/Applications/jboss-5.0.0.GA"
#. Tag: para
-#: gettingstarted.xml:133
+#: gettingstarted.xml:140
#, no-c-format
msgid "If you use Windows, use the
<literal>run.bat</literal>script."
msgstr ""
#. Tag: para
-#: gettingstarted.xml:138 gettingstarted.xml:240
+#: gettingstarted.xml:145 gettingstarted.xml:247
#, no-c-format
msgid ""
"Wait for the application to deploy, and enjoy hours of fun at <ulink url="
@@ -275,7 +283,7 @@
"numberguess\"></ulink> 花上幾個小時!"
#. Tag: para
-#: gettingstarted.xml:143
+#: gettingstarted.xml:150
#, fuzzy, no-c-format
msgid ""
"Web Beans includes a second simple example that will translate your text "
@@ -288,7 +296,7 @@
"企業級的 bean,封裝於一個 EJB 模組中。若要嘗試:"
#. Tag: programlisting
-#: gettingstarted.xml:150
+#: gettingstarted.xml:157
#, no-c-format
msgid ""
"$ cd examples/translator\n"
@@ -298,7 +306,7 @@
"ant deploy"
#. Tag: para
-#: gettingstarted.xml:152
+#: gettingstarted.xml:159
#, no-c-format
msgid ""
"Wait for the application to deploy, and visit <ulink url=\"http://"
@@ -308,13 +316,13 @@
"translator\"></ulink>!"
#. Tag: title
-#: gettingstarted.xml:160
+#: gettingstarted.xml:167
#, no-c-format
msgid "Using Apache Tomcat 6.0"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:162
+#: gettingstarted.xml:169
#, fuzzy, no-c-format
msgid ""
"You'll need to download Tomcat 6.0.18 or later from <ulink
url=\"http://"
@@ -325,7 +333,7 @@
"org</ulink> 下載 Web Beans RI 並將它解壓縮。例如"
#. Tag: programlisting
-#: gettingstarted.xml:168
+#: gettingstarted.xml:175
#, fuzzy, no-c-format
msgid ""
"<![CDATA[$ cd /Applications\n"
@@ -335,7 +343,7 @@
"$ unzip ~/jboss-5.0.0.GA.zip]]>"
#. Tag: para
-#: gettingstarted.xml:178
+#: gettingstarted.xml:185
#, fuzzy, no-c-format
msgid ""
"Next, we need to tell Web Beans where Tomcat is located. Edit
<literal>jboss-"
@@ -347,13 +355,13 @@
"如:"
#. Tag: programlisting
-#: gettingstarted.xml:184
+#: gettingstarted.xml:191
#, fuzzy, no-c-format
msgid "tomcat.home=/Applications/apache-tomcat-6.0.18"
msgstr "jboss.home=/Applications/jboss-5.0.0.GA"
#. Tag: para
-#: gettingstarted.xml:187
+#: gettingstarted.xml:194
#, fuzzy, no-c-format
msgid ""
"The build scripts for the examples offer a number of targets for Tomcat, "
@@ -361,14 +369,14 @@
msgstr "這些範例的建置 script 提供了一些目標,它們包含了:"
#. Tag: para
-#: gettingstarted.xml:193
+#: gettingstarted.xml:200
#, fuzzy, no-c-format
msgid ""
"<literal>ant tomcat.restart</literal> - deploy the example in exploded
format"
msgstr "<literal>ant restart</literal> - 以分解的格式來建置範例"
#. Tag: para
-#: gettingstarted.xml:199
+#: gettingstarted.xml:206
#, fuzzy, no-c-format
msgid ""
"<literal>ant tomcat.explode</literal> - update an exploded example,
without "
@@ -377,7 +385,7 @@
"<literal>ant explode</literal> - 在不重新建置的情況下更新一個已分解的範例"
#. Tag: para
-#: gettingstarted.xml:205
+#: gettingstarted.xml:212
#, fuzzy, no-c-format
msgid ""
"<literal>ant tomcat.deploy</literal> - deploy the example in compressed
jar "
@@ -385,26 +393,26 @@
msgstr "<literal>ant deploy</literal> - 以 jar 格式來建置範例"
#. Tag: para
-#: gettingstarted.xml:210
+#: gettingstarted.xml:217
#, fuzzy, no-c-format
msgid ""
"<literal>ant tomcat.undeploy</literal> - remove the example from the
server"
msgstr "<literal>ant undeploy</literal> - 將範例由伺服器中移除"
#. Tag: para
-#: gettingstarted.xml:215
+#: gettingstarted.xml:222
#, fuzzy, no-c-format
msgid "<literal>ant tomcat.clean</literal> - clean the example"
msgstr "<literal>ant clean</literal> - 清除範例"
#. Tag: para
-#: gettingstarted.xml:222
+#: gettingstarted.xml:229
#, fuzzy, no-c-format
msgid "To deploy the numberguess example for tomcat:"
msgstr "若要建置 numberguess 範例:"
#. Tag: programlisting
-#: gettingstarted.xml:226
+#: gettingstarted.xml:233
#, fuzzy, no-c-format
msgid ""
"$ cd examples/tomcat\n"
@@ -414,43 +422,43 @@
"ant deploy"
#. Tag: para
-#: gettingstarted.xml:228
+#: gettingstarted.xml:235
#, no-c-format
msgid "Start Tomcat:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:232
+#: gettingstarted.xml:239
#, fuzzy, no-c-format
msgid "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
msgstr "jboss.home=/Applications/jboss-5.0.0.GA"
#. Tag: para
-#: gettingstarted.xml:235
+#: gettingstarted.xml:242
#, no-c-format
msgid "If you use Windows, use the
<literal>startup.bat</literal>script."
msgstr ""
#. Tag: title
-#: gettingstarted.xml:248
+#: gettingstarted.xml:255
#, no-c-format
msgid "Using GlassFish"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:250
+#: gettingstarted.xml:257
#, no-c-format
msgid "TODO"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:254
+#: gettingstarted.xml:261
#, no-c-format
msgid "The numberguess example"
msgstr "numberguess 範例"
#. Tag: para
-#: gettingstarted.xml:256
+#: gettingstarted.xml:263
#, no-c-format
msgid ""
"In the numberguess application you get given 10 attempts to guess a number "
@@ -461,7 +469,7 @@
"碼。每當猜過一遍,系統便會告知您您所輸入的數字是否太大或太小。"
#. Tag: para
-#: gettingstarted.xml:262
+#: gettingstarted.xml:269
#, no-c-format
msgid ""
"The numberguess example is comprised of a number of Web Beans, configuration
"
@@ -472,7 +480,7 @@
"並且封裝為 war。讓我們先從配置檔案開始。"
#. Tag: para
-#: gettingstarted.xml:268
+#: gettingstarted.xml:275
#, no-c-format
msgid ""
"All the configuration files for this example are located in
<literal>WEB-INF/"
@@ -485,7 +493,7 @@
"用 Facelet 的 <literal>faces-config.xml</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:276
+#: gettingstarted.xml:283
#, no-c-format
msgid ""
"<![CDATA[<?xml version='1.0' encoding='UTF-8'?>\n"
@@ -515,7 +523,7 @@
"</faces-config>]]>"
#. Tag: para
-#: gettingstarted.xml:278
+#: gettingstarted.xml:285
#, no-c-format
msgid ""
"There is an empty <literal>web-beans.xml</literal> file, which marks
this "
@@ -525,13 +533,13 @@
"Web Bean 應用程式。"
#. Tag: para
-#: gettingstarted.xml:283
+#: gettingstarted.xml:290
#, no-c-format
msgid "Finally there is <literal>web.xml</literal>:"
msgstr "最後為 <literal>web.xml</literal>:"
#. Tag: section
-#: gettingstarted.xml:285
+#: gettingstarted.xml:292
#, fuzzy, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"faces.servlet\"
coords=\"12\"/> "
@@ -769,7 +777,7 @@
"programlistingco>"
#. Tag: para
-#: gettingstarted.xml:387
+#: gettingstarted.xml:394
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -780,7 +788,7 @@
"<literal>@Random</literal> 綁定類型:"
#. Tag: programlisting
-#: gettingstarted.xml:393
+#: gettingstarted.xml:400
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -796,7 +804,7 @@
"public @interface Random {}]]>"
#. Tag: para
-#: gettingstarted.xml:395
+#: gettingstarted.xml:402
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for
"
@@ -805,7 +813,7 @@
"還有個用來注入可注入之最大號碼的 <literal>@MaxNumber</literal> 綁定類型:"
#. Tag: programlisting
-#: gettingstarted.xml:400
+#: gettingstarted.xml:407
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -823,7 +831,7 @@
"]]>"
#. Tag: para
-#: gettingstarted.xml:402
+#: gettingstarted.xml:409
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the
"
@@ -834,7 +842,7 @@
"過一個產生器的方式來顯示最大的可能號碼:"
#. Tag: programlisting
-#: gettingstarted.xml:408
+#: gettingstarted.xml:415
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -886,7 +894,7 @@
"}]]>"
#. Tag: para
-#: gettingstarted.xml:410
+#: gettingstarted.xml:417
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application
scoped; "
@@ -896,7 +904,7 @@
"會每次都一定能得到不同的亂數號碼。"
#. Tag: para
-#: gettingstarted.xml:415
+#: gettingstarted.xml:422
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped
<literal>Game</"
@@ -904,7 +912,7 @@
msgstr "應用程式中最後的 Web Bean 為 session 導向的 <literal>Game</literal>。"
#. Tag: para
-#: gettingstarted.xml:420
+#: gettingstarted.xml:427
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal>
annotation, so "
@@ -919,7 +927,7 @@
"<literal>FacesMessage</literal> 來給予回應。"
#. Tag: programlisting
-#: gettingstarted.xml:428
+#: gettingstarted.xml:435
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -1117,13 +1125,13 @@
"}]]>"
#. Tag: title
-#: gettingstarted.xml:431
+#: gettingstarted.xml:438
#, fuzzy, no-c-format
msgid "The numberguess example in Tomcat"
msgstr "numberguess 範例"
#. Tag: para
-#: gettingstarted.xml:433
+#: gettingstarted.xml:440
#, no-c-format
msgid ""
"The numberguess for Tomcat differs in a couple of ways. Firstly, Web Beans "
@@ -1133,7 +1141,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:442
+#: gettingstarted.xml:449
#, no-c-format
msgid ""
"Of course, you must also include JSF and EL, as well common annotations "
@@ -1141,7 +1149,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:449
+#: gettingstarted.xml:456
#, no-c-format
msgid ""
"Secondly, we need to explicitly specify the servlet listener (used to boot "
@@ -1150,7 +1158,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:455
+#: gettingstarted.xml:462
#, no-c-format
msgid ""
"<![CDATA[<listener>\n"
@@ -1160,13 +1168,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:460
+#: gettingstarted.xml:467
#, fuzzy, no-c-format
msgid "The numberguess example for Apache Wicket"
msgstr "numberguess 範例"
#. Tag: para
-#: gettingstarted.xml:461
+#: gettingstarted.xml:468
#, no-c-format
msgid ""
"Whilst JSR-299 specifies integration with Java ServerFaces, Web Beans allows
"
@@ -1176,7 +1184,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:470
+#: gettingstarted.xml:477
#, no-c-format
msgid ""
"You may want to review the Wicket documentation at <ulink
url=\"http://"
@@ -1184,7 +1192,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:476
+#: gettingstarted.xml:483
#, no-c-format
msgid ""
"Like the previous example, the Wicket WebBeans examples make use of the "
@@ -1197,7 +1205,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:487
+#: gettingstarted.xml:494
#, no-c-format
msgid ""
"These examples make use of the Eclipse IDE; instructions are also given to "
@@ -1205,43 +1213,45 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:493
+#: gettingstarted.xml:500
#, no-c-format
msgid "Creating the Eclipse project"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:495
+#: gettingstarted.xml:502
#, no-c-format
msgid "To generate an Eclipse project from the example:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:499
+#: gettingstarted.xml:506
#, no-c-format
msgid ""
"<![CDATA[cd examples/wicket/numberguess\n"
-"mvn eclipse:eclipse]]>"
+"mvn -Pjetty eclipse:eclipse]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:501
+#: gettingstarted.xml:508
#, no-c-format
msgid ""
"Then, from eclipse, choose <emphasis>File -> Import -> General ->
Existing "
"Projects into Workspace</emphasis>, select the root directory of the "
-"numberguess example, and click finish. This will create a project in your "
-"workspace called <literal>webbeans-wicket-numberguess</literal>"
+"numberguess example, and click finish. Note that if you do not intend to run
"
+"the example with jetty from within eclipse, omit the \"-Pjetty.\" This
will "
+"create a project in your workspace called <literal>webbeans-wicket-"
+"numberguess</literal>"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:516
+#: gettingstarted.xml:524
#, no-c-format
msgid "Running the example from Eclipse"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:518
+#: gettingstarted.xml:526
#, no-c-format
msgid ""
"This project follows the <literal>wicket-quickstart</literal> approach
of "
@@ -1255,13 +1265,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:533
+#: gettingstarted.xml:541
#, no-c-format
msgid "Running the example from the command line in JBoss AS or Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:535
+#: gettingstarted.xml:543
#, no-c-format
msgid ""
"This example can also be deployed from the command line in a (similar to the
"
@@ -1274,13 +1284,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:549
+#: gettingstarted.xml:557
#, no-c-format
msgid "Understanding the code"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:551
+#: gettingstarted.xml:559
#, no-c-format
msgid ""
"JSF uses Unified EL expressions to bind view layer components in JSP or "
@@ -1294,7 +1304,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:563
+#: gettingstarted.xml:571
#, no-c-format
msgid ""
"The code in the wicket numberguess example is very similar to the JSF-based "
@@ -1302,13 +1312,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:568
+#: gettingstarted.xml:576
#, no-c-format
msgid "Differences are:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:573
+#: gettingstarted.xml:581
#, no-c-format
msgid ""
"Each wicket application must have a <literal>WebApplication</literal>
"
@@ -1317,7 +1327,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:579
+#: gettingstarted.xml:587
#, no-c-format
msgid ""
"<![CDATA[public class SampleApplication extends WebBeansApplication {\n"
@@ -1329,7 +1339,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:580
+#: gettingstarted.xml:588
#, no-c-format
msgid ""
"This class specifies which page wicket should treat as our home page, in our
"
@@ -1337,7 +1347,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:586
+#: gettingstarted.xml:594
#, no-c-format
msgid ""
"In <literal>HomePage</literal> we see typical wicket code to set up
page "
@@ -1346,13 +1356,13 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:592
+#: gettingstarted.xml:600
#, no-c-format
msgid "<![CDATA[ @Current Game game;]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:594
+#: gettingstarted.xml:602
#, no-c-format
msgid ""
"The <literal>Game</literal> bean is can then be used, for example, by
the "
@@ -1360,7 +1370,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:599
+#: gettingstarted.xml:607
#, no-c-format
msgid ""
"<![CDATA[final Component guessButton = new AjaxButton(\"GuessButton\")
{ \n"
@@ -1369,7 +1379,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:602
+#: gettingstarted.xml:610
#, no-c-format
msgid ""
"All injections may be serialized; actual storage of the bean is managed by "
@@ -1378,7 +1388,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:608
+#: gettingstarted.xml:616
#, no-c-format
msgid ""
"Wicket components allow injection, but they <emphasis>cannot</emphasis>
use "
@@ -1387,7 +1397,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:618
+#: gettingstarted.xml:626
#, no-c-format
msgid ""
"The example uses AJAX for processing of button events, and dynamically hides
"
@@ -1396,7 +1406,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:626
+#: gettingstarted.xml:634
#, no-c-format
msgid ""
"In order to activate wicket for this webapp, the Wicket filter is added to "
@@ -1404,7 +1414,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:631
+#: gettingstarted.xml:639
#, no-c-format
msgid ""
"<![CDATA[<filter>\n"
@@ -1430,7 +1440,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:632
+#: gettingstarted.xml:640
#, no-c-format
msgid ""
"Note that the servlet listener is also added, as in the Tomcat example, in "
@@ -1439,13 +1449,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:645
+#: gettingstarted.xml:653
#, fuzzy, no-c-format
msgid "The numberguess example for Java SE with Swing"
msgstr "numberguess 範例"
#. Tag: para
-#: gettingstarted.xml:647
+#: gettingstarted.xml:655
#, no-c-format
msgid ""
"This example can be found in the
<literal>examples/se/numberguess</literal> "
@@ -1453,13 +1463,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:654
+#: gettingstarted.xml:662
#, fuzzy, no-c-format
msgid "To run this example:"
msgstr "轉譯器範例"
#. Tag: para
-#: gettingstarted.xml:660
+#: gettingstarted.xml:668
#, no-c-format
msgid ""
"Open a command line/terminal window in the
<literal>examples/se/numberguess</"
@@ -1467,13 +1477,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:666
+#: gettingstarted.xml:674
#, no-c-format
msgid "Ensure that Maven 2 is installed and in your PATH"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:671
+#: gettingstarted.xml:679
#, no-c-format
msgid ""
"Ensure that the <literal>JAVA_HOME</literal> environment variable is
"
@@ -1481,19 +1491,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:677
+#: gettingstarted.xml:685
#, no-c-format
msgid "execute the following command"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:680
+#: gettingstarted.xml:688
#, no-c-format
msgid "mvn -Drun"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:686
+#: gettingstarted.xml:694
#, fuzzy, no-c-format
msgid ""
"There is an empty <literal>beans.xml</literal> file in the root package
"
@@ -1504,7 +1514,7 @@
"Web Bean 應用程式。"
#. Tag: para
-#: gettingstarted.xml:692
+#: gettingstarted.xml:700
#, no-c-format
msgid ""
"The game's main logic is located in <literal>Game.java</literal>.
Here is "
@@ -1513,7 +1523,7 @@
msgstr ""
#. Tag: section
-#: gettingstarted.xml:696
+#: gettingstarted.xml:704
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"scope\"
coords=\"1\"/> <area id="
@@ -1779,13 +1789,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:904
+#: gettingstarted.xml:912
#, no-c-format
msgid "The translator example"
msgstr "轉譯器範例"
#. Tag: para
-#: gettingstarted.xml:906
+#: gettingstarted.xml:914
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them
"
@@ -1793,7 +1803,7 @@
msgstr "轉譯器範例能接受您所輸入的任何句子,然後將它們翻譯成拉丁文。"
#. Tag: para
-#: gettingstarted.xml:911
+#: gettingstarted.xml:919
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs. As a result, "
@@ -1803,7 +1813,7 @@
"例要複雜得多。"
#. Tag: para
-#: gettingstarted.xml:917
+#: gettingstarted.xml:925
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -1812,7 +1822,7 @@
"EJB 3.1 和 Jave EE 6 能讓您將 EJB 封裝為 war,並使得該結構變得更為簡樸!"
#. Tag: para
-#: gettingstarted.xml:923
+#: gettingstarted.xml:931
#, no-c-format
msgid ""
"First, let's take a look at the ear aggregator, which is located in "
@@ -1824,7 +1834,7 @@
"literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:929
+#: gettingstarted.xml:937
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -1856,7 +1866,7 @@
"</plugin>]]>"
#. Tag: para
-#: gettingstarted.xml:931
+#: gettingstarted.xml:939
#, no-c-format
msgid ""
"Here we set the context path, which gives us a nice url (<ulink
url=\"http://"
@@ -1868,7 +1878,7 @@
"translator</ulink>)。"
#. Tag: para
-#: gettingstarted.xml:937
+#: gettingstarted.xml:945
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
@@ -1878,7 +1888,7 @@
"xml</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:942
+#: gettingstarted.xml:950
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\"
encoding=\"UTF-8\"?>\n"
@@ -1924,7 +1934,7 @@
"</application>]]>"
#. Tag: para
-#: gettingstarted.xml:945
+#: gettingstarted.xml:953
#, fuzzy, no-c-format
msgid ""
"Next, lets look at the war. Just as in the numberguess example, we have a "
@@ -1937,7 +1947,7 @@
"JSF)。"
#. Tag: para
-#: gettingstarted.xml:952
+#: gettingstarted.xml:960
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -1948,7 +1958,7 @@
"個圍繞著 form 的頁面格式(在此將省略不提):"
#. Tag: programlisting
-#: gettingstarted.xml:958
+#: gettingstarted.xml:966
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -2008,7 +2018,7 @@
"</h:form>]]>"
#. Tag: para
-#: gettingstarted.xml:960
+#: gettingstarted.xml:968
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate
"
@@ -2018,7 +2028,7 @@
"看結果。"
#. Tag: para
-#: gettingstarted.xml:965
+#: gettingstarted.xml:973
#, no-c-format
msgid ""
"Finally, let's look at the ejb module,
<literal>webbeans-translator-ejb</"
@@ -2031,7 +2041,7 @@
"為包含著 Web Bean 的空 <literal>web-beans.xml</literal>。"
#. Tag: para
-#: gettingstarted.xml:973
+#: gettingstarted.xml:981
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two
"
@@ -2048,7 +2058,7 @@
"如何了,因此我們在此將只著重於其它較有趣的部份。"
#. Tag: para
-#: gettingstarted.xml:983
+#: gettingstarted.xml:991
#, no-c-format
msgid ""
"Both <literal>SentenceParser</literal> and
<literal>TextTranslator</literal> "
@@ -2060,7 +2070,7 @@
"始化:"
#. Tag: programlisting
-#: gettingstarted.xml:989
+#: gettingstarted.xml:997
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -2086,7 +2096,7 @@
" this.sentenceTranslator = sentenceTranslator;]]>"
#. Tag: para
-#: gettingstarted.xml:991
+#: gettingstarted.xml:999
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local
business "
@@ -2097,7 +2107,7 @@
"面)- 當然,我們無法開發一個完整的轉譯器。"
#. Tag: para
-#: gettingstarted.xml:997
+#: gettingstarted.xml:1005
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -2108,7 +2118,7 @@
"請求導向、被命名,而有狀態的 session bean,並且會注入轉譯器。"
#. Tag: programlisting
-#: gettingstarted.xml:1003
+#: gettingstarted.xml:1011
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -2128,13 +2138,13 @@
" @Current TextTranslator translator;]]>"
#. Tag: para
-#: gettingstarted.xml:1005
+#: gettingstarted.xml:1013
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr "這個 bean 針對於頁面上所有欄位都有 getter 與 setter。"
#. Tag: para
-#: gettingstarted.xml:1009
+#: gettingstarted.xml:1017
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
@@ -2142,7 +2152,7 @@
"method:"
#. Tag: programlisting
-#: gettingstarted.xml:1013
+#: gettingstarted.xml:1021
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -2158,7 +2168,7 @@
" }]]>"
#. Tag: para
-#: gettingstarted.xml:1015
+#: gettingstarted.xml:1023
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -2168,7 +2178,7 @@
"請求結束之後。"
#. Tag: para
-#: gettingstarted.xml:1021
+#: gettingstarted.xml:1029
#, fuzzy, no-c-format
msgid ""
"That concludes our short tour of the Web Beans examples. For more on Web "
@@ -2181,7 +2191,7 @@
"Development\">http://www.seamframework.org/WebBeans/Development</ulink>。"
#. Tag: para
-#: gettingstarted.xml:1027
+#: gettingstarted.xml:1035
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
Modified: doc/trunk/reference/zh-TW/producermethods.po
===================================================================
--- doc/trunk/reference/zh-TW/producermethods.po 2009-05-05 20:40:49 UTC (rev 2653)
+++ doc/trunk/reference/zh-TW/producermethods.po 2009-05-05 20:51:31 UTC (rev 2654)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: producermethods\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-04-19 20:36+0000\n"
+"POT-Creation-Date: 2009-05-05 20:42+0000\n"
"PO-Revision-Date: 2009-01-16 12:31+1000\n"
"Last-Translator: Terry Chuang <tchuang(a)redhat.com>\n"
"Language-Team: Traditional Chinese <zh(a)li.org>\n"
@@ -43,83 +43,29 @@
msgid "According to the spec:"
msgstr "根據規格:"
-#. Tag: para
-#: producermethods.xml:16
+#. Tag: chapter
+#: producermethods.xml:12
#, no-c-format
msgid ""
-"A Web Beans producer method acts as a source of objects to be injected, "
-"where:"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:20
-#, no-c-format
-msgid ""
-"the objects to be injected are not required to be instances of Web Beans,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:23
-#, no-c-format
-msgid "the concrete type of the objects to be injected may vary at runtime or"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:26
-#, no-c-format
-msgid ""
-"the objects require some custom initialization that is not performed by the "
-"Web Bean constructor"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:33
-#, fuzzy, no-c-format
-msgid "For example, producer methods let us:"
-msgstr "producer method 的 scope"
-
-#. Tag: para
-#: producermethods.xml:37
-#, no-c-format
-msgid "expose a JPA entity as a Web Bean,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:40
-#, no-c-format
-msgid "expose any JDK class as a Web Bean,"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:43
-#, no-c-format
-msgid ""
-"define multiple Web Beans, with different scopes or initialization, for the "
-"same implementation class, or"
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:47
-#, no-c-format
-msgid "vary the implementation of an API type at runtime."
-msgstr ""
-
-#. Tag: para
-#: producermethods.xml:51
-#, no-c-format
-msgid ""
-"In particular, producer methods let us use runtime polymorphism with Web "
-"Beans. As we've seen, deployment types are a powerful solution to the "
-"problem of deployment-time polymorphism. But once the system is deployed, "
-"the Web Bean implementation is fixed. A producer method has no such "
-"limitation:"
-msgstr ""
-
-#. Tag: programlisting
-#: producermethods.xml:56
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[@SessionScoped\n"
+"<blockquote> <para>A Web Beans producer method acts as a source of
objects "
+"to be injected, where:</para> <itemizedlist> <listitem>
<para>the objects to "
+"be injected are not required to be instances of Web Beans,</para>
</"
+"listitem> <listitem> <para>the concrete type of the objects to be
injected "
+"may vary at runtime or</para> </listitem> <listitem>
<para>the objects "
+"require some custom initialization that is not performed by the Web Bean "
+"constructor</para> </listitem> </itemizedlist>
</blockquote> <para>For "
+"example, producer methods let us:</para> <itemizedlist>
<listitem> "
+"<para>expose a JPA entity as a Web Bean,</para> </listitem>
<listitem> "
+"<para>expose any JDK class as a Web Bean,</para> </listitem>
<listitem> "
+"<para>define multiple Web Beans, with different scopes or initialization,
"
+"for the same implementation class, or</para> </listitem>
<listitem> "
+"<para>vary the implementation of an API type at runtime.</para>
</listitem> "
+"</itemizedlist> <para>In particular, producer methods let us use
runtime "
+"polymorphism with Web Beans. As we've seen, deployment types are a powerful
"
+"solution to the problem of deployment-time polymorphism. But once the system
"
+"is deployed, the Web Bean implementation is fixed. A producer method has no "
+"such limitation:</para> <programlisting
role=\"JAVA\"><![CDATA"
+"[@SessionScoped\n"
"public class Preferences {\n"
" \n"
" private PaymentStrategyType paymentStrategy;\n"
@@ -136,52 +82,52 @@
" } \n"
" }\n"
" \n"
-"}]]>"
+"}]]></programlisting> <para>Consider an injection
point:</para> "
+"<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
+"paymentStrat;]]></programlisting> <para>This injection point has the
same "
+"type and binding annotations as the producer method, so it resolves to the "
+"producer method using the usual Web Beans injection rules. The producer "
+"method will be called by the Web Bean manager to obtain an instance to "
+"service this injection point.</para>."
msgstr ""
-"<![CDATA[@Produces @Preferred @SessionScoped\n"
-"public PaymentStrategy getPaymentStrategy(CreditCardPaymentStrategy ccps,\n"
-" ChequePaymentStrategy cps,\n"
-" PayPalPaymentStrategy ppps) {\n"
-" switch (paymentStrategy) {\n"
-" case CREDIT_CARD: return ccps;\n"
-" case CHEQUE: return cps;\n"
-" case PAYPAL: return ppps;\n"
-" default: return null;\n"
-" } \n"
-"}]]>"
-
-#. Tag: para
-#: producermethods.xml:58
-#, no-c-format
-msgid "Consider an injection point:"
-msgstr ""
-
-#. Tag: programlisting
-#: producermethods.xml:60
-#, fuzzy, no-c-format
-msgid "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
-msgstr ""
-"<![CDATA[@Produces @Preferred @SessionScoped\n"
-"public PaymentStrategy getPaymentStrategy() {\n"
+"<blockquote> <para>Web Bean 的 producer method 的作用為要被注入之物件的來源:"
+"</para> <itemizedlist> <listitem> <para>要被注入的物件無須是 Web Bean
的 "
+"instance,</para> </listitem> <listitem>
<para>要被注入的物件的具體類型取決"
+"於 runtime,或是</para> </listitem> <listitem>
<para>該物件需要進行一些並非"
+"由 Web Bean 建構函式所實施的自訂初始化</para> </listitem> </itemizedlist>
</"
+"blockquote> <para>比方說,producer method 能讓我們:</para>
<itemizedlist> "
+"<listitem> <para>將 JPA entity 顯示為 Web Bean、</para>
</listitem> "
+"<listitem> <para>將任何 JDK class 顯示為 Web Bean、</para>
</listitem> "
+"<listitem> <para>為相同的實做 class 定義多重 Web Bean 以及不同的 scope 或初始"
+"化,或是</para> </listitem> <listitem> <para>在 runtime 時改變一個
API 類型的"
+"實做。</para> </listitem> </itemizedlist> <para>特別是,producer
method 讓我"
+"們可以同時使用 Web Bean 和執行期多型性(runtime polymorphism)。就如我們所"
+"見,建置類型(deployment type)對於建置期多型性(deployment-time "
+"polymorphism)的問題來說是個強大的解決方法。不過一旦系統被建置後,Web Bean 實"
+"做便會是故定的。Producer method 則沒有這方面的限制:</para> <programlisting "
+"role=\"JAVA\"><![CDATA[@SessionScoped\n"
+"public class Preferences {\n"
+" \n"
+" private PaymentStrategyType paymentStrategy;\n"
+" \n"
" ...\n"
-"}]]>"
+" \n"
+" @Produces @Preferred \n"
+" public PaymentStrategy getPaymentStrategy() {\n"
+" switch (paymentStrategy) {\n"
+" case CREDIT_CARD: return new CreditCardPaymentStrategy();\n"
+" case CHEQUE: return new ChequePaymentStrategy();\n"
+" case PAYPAL: return new PayPalPaymentStrategy();\n"
+" default: return null;\n"
+" } \n"
+" }\n"
+" \n"
+"}]]></programlisting> <para>考慮這個注入點:</para> <programlisting
role="
+"\"JAVA\"><![CDATA[@Preferred PaymentStrategy
paymentStrat;]]></"
+"programlisting> <para>這個注入點擁有和 producer method 相同的類型和綁定標記,"
+"因此它會使用一般的 Web Bean 注入規則來解析 producer method。Producer method "
+"會被 Web Bean 管理員調用來取得一個 instance 來服務這個注入點。</para>"
-#. Tag: para
-#: producermethods.xml:62
-#, no-c-format
-msgid ""
-"This injection point has the same type and binding annotations as the "
-"producer method, so it resolves to the producer method using the usual Web "
-"Beans injection rules. The producer method will be called by the Web Bean "
-"manager to obtain an instance to service this injection point."
-msgstr ""
-
-#. Tag: chapter
-#: producermethods.xml:65
-#, no-c-format
-msgid "<chapter>.</chapter>"
-msgstr ""
-
#. Tag: title
#: producermethods.xml:68
#, no-c-format
@@ -404,26 +350,13 @@
"<literal>Preferences</literal> 物件於 session 結束時被毀掉之前,dependent 物"
"件不會被毀掉。"
+#, fuzzy
+#~ msgid "For example, producer methods let us:"
+#~ msgstr "producer method 的 scope"
+
+#, fuzzy
#~ msgid ""
-#~ "<blockquote> <para>A Web Beans producer method acts as a source of
"
-#~ "objects to be injected, where:</para> <itemizedlist>
<listitem> <para>the "
-#~ "objects to be injected are not required to be instances of Web
Beans,</"
-#~ "para> </listitem> <listitem> <para>the concrete type of the
objects to be "
-#~ "injected may vary at runtime or</para> </listitem> <listitem>
<para>the "
-#~ "objects require some custom initialization that is not performed by the "
-#~ "Web Bean constructor</para> </listitem> </itemizedlist>
</blockquote> "
-#~ "<para>For example, producer methods let us:</para>
<itemizedlist> "
-#~ "<listitem> <para>expose a JPA entity as a Web Bean,</para>
</listitem> "
-#~ "<listitem> <para>expose any JDK class as a Web Bean,</para>
</listitem> "
-#~ "<listitem> <para>define multiple Web Beans, with different scopes or
"
-#~ "initialization, for the same implementation class, or</para>
</listitem> "
-#~ "<listitem> <para>vary the implementation of an API type at
runtime.</"
-#~ "para> </listitem> </itemizedlist> <para>In particular,
producer methods "
-#~ "let us use runtime polymorphism with Web Beans. As we've seen, deployment
"
-#~ "types are a powerful solution to the problem of deployment-time "
-#~ "polymorphism. But once the system is deployed, the Web Bean "
-#~ "implementation is fixed. A producer method has no such limitation:</para>
"
-#~ "<programlisting
role=\"JAVA\"><![CDATA[@SessionScoped\n"
+#~ "<![CDATA[@SessionScoped\n"
#~ "public class Preferences {\n"
#~ " \n"
#~ " private PaymentStrategyType paymentStrategy;\n"
@@ -440,49 +373,25 @@
#~ " } \n"
#~ " }\n"
#~ " \n"
-#~ "}]]></programlisting> <para>Consider an injection
point:</para> "
-#~ "<programlisting role=\"JAVA\"><![CDATA[@Preferred
PaymentStrategy "
-#~ "paymentStrat;]]></programlisting> <para>This injection point has
the same "
-#~ "type and binding annotations as the producer method, so it resolves to "
-#~ "the producer method using the usual Web Beans injection rules. The "
-#~ "producer method will be called by the Web Bean manager to obtain an "
-#~ "instance to service this injection point.</para>."
+#~ "}]]>"
#~ msgstr ""
-#~ "<blockquote> <para>Web Bean 的 producer method 的作用為要被注入之物件的來"
-#~ "源:</para> <itemizedlist> <listitem> <para>要被注入的物件無須是 Web
Bean "
-#~ "的 instance,</para> </listitem> <listitem>
<para>要被注入的物件的具體類型"
-#~ "取決於 runtime,或是</para> </listitem> <listitem>
<para>該物件需要進行一"
-#~ "些並非由 Web Bean 建構函式所實施的自訂初始化</para> </listitem> </"
-#~ "itemizedlist> </blockquote> <para>比方說,producer method
能讓我們:</"
-#~ "para> <itemizedlist> <listitem> <para>將 JPA entity 顯示為 Web
Bean、</"
-#~ "para> </listitem> <listitem> <para>將任何 JDK class 顯示為 Web
Bean、</"
-#~ "para> </listitem> <listitem> <para>為相同的實做 class 定義多重 Web
Bean 以"
-#~ "及不同的 scope 或初始化,或是</para> </listitem> <listitem> <para>在
"
-#~ "runtime 時改變一個 API 類型的實做。</para> </listitem> </itemizedlist>
"
-#~ "<para>特別是,producer method 讓我們可以同時使用 Web Bean 和執行期多型性"
-#~ "(runtime polymorphism)。就如我們所見,建置類型(deployment type)對於建"
-#~ "置期多型性(deployment-time polymorphism)的問題來說是個強大的解決方法。不"
-#~ "過一旦系統被建置後,Web Bean 實做便會是故定的。Producer method 則沒有這方"
-#~ "面的限制:</para> <programlisting
role=\"JAVA\"><![CDATA[@SessionScoped\n"
-#~ "public class Preferences {\n"
-#~ " \n"
-#~ " private PaymentStrategyType paymentStrategy;\n"
-#~ " \n"
+#~ "<![CDATA[@Produces @Preferred @SessionScoped\n"
+#~ "public PaymentStrategy getPaymentStrategy(CreditCardPaymentStrategy "
+#~ "ccps,\n"
+#~ " ChequePaymentStrategy cps,\n"
+#~ " PayPalPaymentStrategy ppps) {\n"
+#~ " switch (paymentStrategy) {\n"
+#~ " case CREDIT_CARD: return ccps;\n"
+#~ " case CHEQUE: return cps;\n"
+#~ " case PAYPAL: return ppps;\n"
+#~ " default: return null;\n"
+#~ " } \n"
+#~ "}]]>"
+
+#, fuzzy
+#~ msgid "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
+#~ msgstr ""
+#~ "<![CDATA[@Produces @Preferred @SessionScoped\n"
+#~ "public PaymentStrategy getPaymentStrategy() {\n"
#~ " ...\n"
-#~ " \n"
-#~ " @Produces @Preferred \n"
-#~ " public PaymentStrategy getPaymentStrategy() {\n"
-#~ " switch (paymentStrategy) {\n"
-#~ " case CREDIT_CARD: return new CreditCardPaymentStrategy();\n"
-#~ " case CHEQUE: return new ChequePaymentStrategy();\n"
-#~ " case PAYPAL: return new PayPalPaymentStrategy();\n"
-#~ " default: return null;\n"
-#~ " } \n"
-#~ " }\n"
-#~ " \n"
-#~ "}]]></programlisting> <para>考慮這個注入點:</para>
<programlisting role="
-#~ "\"JAVA\"><![CDATA[@Preferred PaymentStrategy
paymentStrat;]]></"
-#~ "programlisting> <para>這個注入點擁有和 producer method 相同的類型和綁定標"
-#~ "記,因此它會使用一般的 Web Bean 注入規則來解析 producer method。Producer "
-#~ "method 會被 Web Bean 管理員調用來取得一個 instance 來服務這個注入點。</"
-#~ "para>"
+#~ "}]]>"