[webbeans-commits] Webbeans SVN: r831 - ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/ejb/spi.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-01-08 11:47:30 -0500 (Thu, 08 Jan 2009)
New Revision: 831
Modified:
ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/ejb/spi/EjbResolver.java
Log:
Javadoc
Modified: ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/ejb/spi/EjbResolver.java
===================================================================
--- ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/ejb/spi/EjbResolver.java 2009-01-08 14:36:26 UTC (rev 830)
+++ ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/ejb/spi/EjbResolver.java 2009-01-08 16:47:30 UTC (rev 831)
@@ -2,7 +2,7 @@
import java.lang.annotation.Annotation;
-import javax.persistence.EntityManager;
+import javax.webbeans.DefinitionException;
import javax.webbeans.InjectionPoint;
import org.jboss.webbeans.resources.spi.Naming;
@@ -20,23 +20,60 @@
public static final String PROPERTY_NAME = EjbResolver.class.getName();
/**
- * Resolve the value for the given @EJB injection point
+ * Resolve the value for the given
*
- * @param injectionPoint The injection point metadata
+ * @EJB injection point
+ *
+ * @param injectionPoint
+ * The injection point metadata
* @return the JNDI name
+ * @throws IllegalArgumentException
+ * if the injection point is not annotated with
+ * @EJB
+ * @throws DefinitionException
+ * if the injection point is not suitable for injection
+ * @throws IllegalStateException
+ * if no EJBs can be resolved for injection
*/
public Object resolveEjb(InjectionPoint injectionPoint, Naming naming);
/**
- * Resolve the value for the given @PersistenceContext injection point
+ * Resolve the value for the given
*
- * @param injectionPoint The injection point metadata
+ * @PersistenceContext injection point
+ *
+ * @param injectionPoint
+ * The injection point metadata
* @return the JNDI name
+ * @throws IllegalArgumentException
+ * if the injection point is not annotated with
+ * @PersistenceContext
+ * @throws UnsupportedOperationException
+ * if the injection point is annotated
+ * @PersistenceContext(EXTENTED)
+ * @throws IllegalStateException
+ * if no suitable persistence units can be resolved for injection
*/
public Object resolvePersistenceUnit(InjectionPoint injectionPoint, Naming naming);
+ /**
+ * Get the annotation which defines an
+ *
+ * @EJB injection point
+ *
+ * @return the annotation which defines an
+ * @EJB injection point
+ */
public Class<? extends Annotation> getEJBAnnotation();
+ /**
+ * Get the annoation which defines a
+ *
+ * @PersistenceContext injection point
+ *
+ * @return the annoation which defines a
+ * @PersistenceContext injection point
+ */
public Class<? extends Annotation> getPersistenceContextAnnotation();
}
16 years
[webbeans-commits] Webbeans SVN: r830 - doc/trunk/reference.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-01-08 09:36:26 -0500 (Thu, 08 Jan 2009)
New Revision: 830
Modified:
doc/trunk/reference/pom.xml
Log:
Add translations to the build
Modified: doc/trunk/reference/pom.xml
===================================================================
--- doc/trunk/reference/pom.xml 2009-01-08 14:13:34 UTC (rev 829)
+++ doc/trunk/reference/pom.xml 2009-01-08 14:36:26 UTC (rev 830)
@@ -67,6 +67,9 @@
<translations>
<translation>it-IT</translation>
<translation>zh-CN</translation>
+ <translation>zh-TW</translation>
+ <translation>es-ES</translation>
+ <translation>ko-KR</translation>
</translations>
<imageResource>
<directory>${pom.basedir}/en-US</directory>
16 years
[webbeans-commits] Webbeans SVN: r829 - in doc/trunk/reference: fr-FR and 6 other directories.
by webbeans-commits@lists.jboss.org
Author: nico.ben
Date: 2009-01-08 09:13:34 -0500 (Thu, 08 Jan 2009)
New Revision: 829
Modified:
doc/trunk/reference/es-ES/Author_Group.po
doc/trunk/reference/es-ES/ri-spi.po
doc/trunk/reference/es-ES/ri.po
doc/trunk/reference/fr-FR/ri-spi.po
doc/trunk/reference/fr-FR/ri.po
doc/trunk/reference/ja-JP/ri-spi.po
doc/trunk/reference/ja-JP/ri.po
doc/trunk/reference/ko-KR/ri-spi.po
doc/trunk/reference/ko-KR/ri.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/events.pot
doc/trunk/reference/pot/example.pot
doc/trunk/reference/pot/extend.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/producermethods.pot
doc/trunk/reference/pot/ri-spi.pot
doc/trunk/reference/pot/ri.pot
doc/trunk/reference/pot/scopescontexts.pot
doc/trunk/reference/pot/specialization.pot
doc/trunk/reference/pot/stereotypes.pot
doc/trunk/reference/pot/xml.pot
doc/trunk/reference/pt-BR/ri-spi.po
doc/trunk/reference/pt-BR/ri.po
doc/trunk/reference/zh-CN/ri-spi.po
doc/trunk/reference/zh-CN/ri.po
doc/trunk/reference/zh-TW/ri-spi.po
doc/trunk/reference/zh-TW/ri.po
Log:
Updated POT, rigenerate all PO files.
Modified: doc/trunk/reference/es-ES/Author_Group.po
===================================================================
--- doc/trunk/reference/es-ES/Author_Group.po 2009-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/es-ES/Author_Group.po 2009-01-08 14:13:34 UTC (rev 829)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: Author_Group\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-04 23:18+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+0000\n"
"PO-Revision-Date: 2009-01-08 12:17+1000\n"
"Last-Translator: Gladys Guerrero Lozano <gguerrer(a)redhat.com>\n"
"Language-Team: Spanish <fedora-trans-es(a)redhat.com>\n"
@@ -29,8 +29,8 @@
"<jobtitle>Web Beans (JSR-299) specification lead</jobtitle> <orgname>Red Hat "
"Middleware LLC</orgname>"
msgstr ""
-"<jobtitle>información de especificación de Web Beans (JSR-299) </jobtitle> <orgname>Red Hat "
-"Middleware LLC</orgname>"
+"<jobtitle>información de especificación de Web Beans (JSR-299) </jobtitle> "
+"<orgname>Red Hat Middleware LLC</orgname>"
#. Tag: author
#: Author_Group.xml:12
@@ -40,8 +40,7 @@
#. Tag: affiliation
#: Author_Group.xml:15
-#, no-c-format
-#, fuzzy
+#, fuzzy, no-c-format
msgid ""
"<jobtitle>Web Beans (JSR-299) Reference Implementation lead </jobtitle> "
"<orgname>Red Hat Middleware LLC</orgname>"
@@ -66,4 +65,3 @@
#, no-c-format
msgid "<firstname>Francesco</firstname> <surname>Milesi</surname>"
msgstr "<firstname>Francesco</firstname> <surname>Milesi</surname>"
-
Modified: doc/trunk/reference/es-ES/ri-spi.po
===================================================================
--- doc/trunk/reference/es-ES/ri-spi.po 2009-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/es-ES/ri-spi.po 2009-01-08 14:13:34 UTC (rev 829)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: master.xml \n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+0000\n"
"PO-Revision-Date: 2008-12-20 22:07+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -367,21 +367,55 @@
#: ri-spi.xml:138
#, no-c-format
msgid ""
-"If you are integrating the Web Beans into an environment that supports "
-"deployment of applications, you must enable, automatically, or through user "
-"configuation, classloader isolation for each Web Beans application"
+"If you are integrating the Web Beans RI into an environment that supports "
+"deployment of multiple applications, you must enable, automatically, or "
+"through user configuation, classloader isolation for each Web Beans "
+"application."
msgstr ""
#. Tag: term
#: ri-spi.xml:147
#, no-c-format
-msgid "The <literal>webbeans-ri.jar</literal>"
+msgid "Servlet listener"
msgstr ""
#. Tag: para
#: ri-spi.xml:151
#, no-c-format
msgid ""
+"If you are integrating the Web Beans into a Servlet environment you must "
+"register <literal>org.jboss.webbeans.servlet.WebBeansListener</literal> as a "
+"Servlet listener, either automatically, or through user configuration, for "
+"each Web Beans application which uses Servlet."
+msgstr ""
+
+#. Tag: term
+#: ri-spi.xml:162
+#, no-c-format
+msgid "Session Bean Interceptor"
+msgstr ""
+
+#. Tag: para
+#: ri-spi.xml:166
+#, no-c-format
+msgid ""
+"If you are integrating the Web Beans into an EJB environment you must "
+"register <literal>org.jboss.webbeans.ejb.SessionBeanInterceptor</literal> as "
+"a EJB interceptor for all EJBs in the application, either automatically, or "
+"through user configuration, for each Web Beans application which uses "
+"enterprise beans."
+msgstr ""
+
+#. Tag: term
+#: ri-spi.xml:177
+#, no-c-format
+msgid "The <literal>webbeans-ri.jar</literal>"
+msgstr ""
+
+#. Tag: para
+#: ri-spi.xml:181
+#, no-c-format
+msgid ""
"If you are integrating the Web Beans into an environment that supports "
"deployment of applications, you must insert the <literal>webbeans-ri.jar</"
"literal> into the applications isolated classloader. It cannot be loaded "
Modified: doc/trunk/reference/es-ES/ri.po
===================================================================
--- doc/trunk/reference/es-ES/ri.po 2009-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/es-ES/ri.po 2009-01-08 14:13:34 UTC (rev 829)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: master.xml \n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-04 23:18+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+0000\n"
"PO-Revision-Date: 2008-12-19 20:26+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -356,11 +356,6 @@
" <session-config>\n"
" <session-timeout>10</session-timeout>\n"
" </session-config>\n"
-" \n"
-" <listener>\n"
-" <listener-class>org.jboss.webbeans.servlet.WebBeansListener</listener-"
-"class>\n"
-" </listener>\n"
"\n"
"</web-app>]]></programlisting> <calloutlist> <callout arearefs=\"faces."
"servlet\"> <para> Enable and load the JSF servlet </para> </callout> "
@@ -369,20 +364,16 @@
"<callout arearefs=\"faces.default.suffix\"> <para> Tell JSF that we will be "
"giving our source files (facelets) an extension of <literal>.jsf</literal> </"
"para> </callout> <callout arearefs=\"session.timeout\"> <para> Configure a "
-"session timeout of 10 minutes </para> </callout> <callout arearefs="
-"\"webbeans.listener\"> <para> Configure the Web Beans listener, so that Web "
-"Beans services can be used in the servlet request </para> </callout> </"
-"calloutlist> </programlistingco> <note> <para> The only configuration "
-"required by the Web Beans RI in <literal>web.xml</literal> is to add the Web "
-"Beans listener. </para> <para> Whilst this demo is a JSF demo, you can use "
-"the Web Beans RI with any Servlet based web framework; just configure the "
-"Web Beans listener. </para> </note> <para> Let's take a look at the Facelet "
-"view: </para> <programlistingco> <areaspec> <area id=\"template\" coords=\"8"
-"\"/> <area id=\"messages\" coords=\"12\"/> <area id=\"instructions\" coords="
-"\"19\"/> <area id=\"guess\" coords=\"25\"/> <area id=\"validator\" coords="
-"\"30\"/> <area id=\"submit\" coords=\"33\"/> </areaspec> <programlisting><!"
-"[CDATA[<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" "
-"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
+"session timeout of 10 minutes </para> </callout> </calloutlist> </"
+"programlistingco> <note> <para> Whilst this demo is a JSF demo, you can use "
+"the Web Beans RI with any Servlet based web framework. </para> </note> "
+"<para> Let's take a look at the Facelet view: </para> <programlistingco> "
+"<areaspec> <area id=\"template\" coords=\"8\"/> <area id=\"messages\" coords="
+"\"12\"/> <area id=\"instructions\" coords=\"19\"/> <area id=\"guess\" coords="
+"\"25\"/> <area id=\"validator\" coords=\"30\"/> <area id=\"submit\" coords="
+"\"33\"/> </areaspec> <programlisting><![CDATA[<!DOCTYPE html PUBLIC \"-//"
+"W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/"
+"xhtml1-transitional.dtd\">\n"
"<html xmlns=\"http://www.w3.org/1999/xhtml\"\n"
" xmlns:ui=\"http://java.sun.com/jsf/facelets\"\n"
" xmlns:h=\"http://java.sun.com/jsf/html\"\n"
@@ -449,7 +440,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:298
+#: ri.xml:287
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -458,7 +449,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:304
+#: ri.xml:293
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -469,7 +460,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:306
+#: ri.xml:295
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for "
@@ -477,7 +468,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:311
+#: ri.xml:300
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -489,7 +480,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:313
+#: ri.xml:302
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the "
@@ -498,7 +489,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:319
+#: ri.xml:308
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -527,7 +518,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:321
+#: ri.xml:310
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application scoped; "
@@ -535,7 +526,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:326
+#: ri.xml:315
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped <literal>Game</"
@@ -543,7 +534,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:331
+#: ri.xml:320
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal> annotation, so "
@@ -554,7 +545,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:339
+#: ri.xml:328
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -656,13 +647,13 @@
msgstr ""
#. Tag: title
-#: ri.xml:343
+#: ri.xml:332
#, no-c-format
msgid "The translator example"
msgstr ""
#. Tag: para
-#: ri.xml:345
+#: ri.xml:334
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them "
@@ -670,7 +661,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:350
+#: ri.xml:339
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs and enterprise "
@@ -679,7 +670,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:357
+#: ri.xml:346
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -687,17 +678,16 @@
msgstr ""
#. Tag: para
-#: ri.xml:363
+#: ri.xml:352
#, 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> and <literal>jboss-app.xml</"
-"literal> for us:"
+"generates the <literal>application.xml</literal> for us:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:370
+#: ri.xml:358
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -711,57 +701,32 @@
" <contextRoot>/webbeans-translator</contextRoot>\n"
" </webModule>\n"
" </modules>\n"
-" <jboss>\n"
-" <loader-repository>webbeans.jboss.org:loader=webbeans-translator</"
-"loader-repository>\n"
-" </jboss>\n"
" </configuration>\n"
"</plugin>]]>"
msgstr ""
#. Tag: para
-#: ri.xml:372
+#: ri.xml:360
#, no-c-format
msgid ""
-"We're doing a couple of things here - firstly we set the context path, which "
-"gives us a nice url (<ulink url=\"http://localhost:8080/webbeans-translator"
-"\">http://localhost:8080/webbeans-translator</ulink>) and we also enable "
-"class loader isolation for JBoss AS."
+"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 ""
#. Tag: para
-#: ri.xml:380
+#: ri.xml:366
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
-"<literal>META-INF/jboss-app.xml</literal>:"
+"<literal>META-INF/application.xml</literal>:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:385
+#: ri.xml:371
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<!DOCTYPE jboss-app\n"
-" PUBLIC \"-//JBoss//DTD J2EE Application 4.2//EN\"\n"
-" \"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd\">\n"
-"<jboss-app>\n"
-" <loader-repository>webbeans.jboss.org:loader=webbeans-translator</loader-"
-"repository>\n"
-"</jboss-app>]]>"
-msgstr ""
-
-#. Tag: para
-#: ri.xml:387
-#, no-c-format
-msgid "and <literal>META-INF/application.xml</literal>:"
-msgstr ""
-
-#. Tag: programlisting
-#: ri.xml:391
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<application xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://"
@@ -784,17 +749,16 @@
msgstr ""
#. Tag: para
-#: ri.xml:394
+#: ri.xml:374
#, 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 enabled Facelets) and a <literal>web."
-"xml</literal> (to enable JSF and attach Web Beans services to the servlet "
-"container) in <literal>WebContent/WEB-INF</literal>."
+"xml</literal> (to enable JSF) in <literal>WebContent/WEB-INF</literal>."
msgstr ""
#. Tag: para
-#: ri.xml:401
+#: ri.xml:381
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -803,7 +767,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:407
+#: ri.xml:387
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -836,7 +800,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:409
+#: ri.xml:389
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate "
@@ -844,49 +808,17 @@
msgstr ""
#. Tag: para
-#: ri.xml:414
+#: ri.xml:394
#, no-c-format
msgid ""
"Finally, let's look at the ejb module, <literal>webbeans-translator-ejb</"
-"literal>. There are two configuration files in <literal>src/main/resources/"
-"META-INF</literal>, an empty <literal>web-beans.xml</literal>, used to mark "
-"the archive as containing Web Beans, and <literal>ejb-jar.xml</literal>. Web "
-"Beans provides injection and initializtion services for all EJBs, and uses "
-"<literal>ejb-jar.xml</literal> to enable this, you'll need this in any EJB "
-"project which uses Web Beans:"
+"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 ""
-#. Tag: programlisting
-#: ri.xml:426
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<ejb-jar xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n"
-" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java."
-"sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n"
-" version=\"3.0\">\n"
-" \n"
-" <interceptors>\n"
-" <interceptor>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor>\n"
-" </interceptors>\n"
-" \n"
-" <assembly-descriptor>\n"
-" <interceptor-binding>\n"
-" <ejb-name>*</ejb-name>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor-binding>\n"
-" </assembly-descriptor>\n"
-" \n"
-"</ejb-jar>]]>"
-msgstr ""
-
#. Tag: para
-#: ri.xml:428
+#: ri.xml:402
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two "
@@ -898,7 +830,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:438
+#: ri.xml:412
#, no-c-format
msgid ""
"Both <literal>SentanceParser</literal> and <literal>TextTranslator</literal> "
@@ -907,7 +839,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:444
+#: ri.xml:418
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -923,7 +855,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:446
+#: ri.xml:420
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local business "
@@ -932,7 +864,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:452
+#: ri.xml:426
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -941,7 +873,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:458
+#: ri.xml:432
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -954,19 +886,19 @@
msgstr ""
#. Tag: para
-#: ri.xml:460
+#: ri.xml:434
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr ""
#. Tag: para
-#: ri.xml:464
+#: ri.xml:438
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:468
+#: ri.xml:442
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -977,7 +909,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:470
+#: ri.xml:444
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -985,7 +917,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:476
+#: ri.xml:450
#, no-c-format
msgid ""
"That concludes our short tour of the Web Beans RI examples. For more on the "
@@ -995,7 +927,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:482
+#: ri.xml:456
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
Modified: doc/trunk/reference/fr-FR/ri-spi.po
===================================================================
--- doc/trunk/reference/fr-FR/ri-spi.po 2009-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/fr-FR/ri-spi.po 2009-01-08 14:13:34 UTC (rev 829)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: master.xml \n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+0000\n"
"PO-Revision-Date: 2008-12-20 22:07+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -367,21 +367,55 @@
#: ri-spi.xml:138
#, no-c-format
msgid ""
-"If you are integrating the Web Beans into an environment that supports "
-"deployment of applications, you must enable, automatically, or through user "
-"configuation, classloader isolation for each Web Beans application"
+"If you are integrating the Web Beans RI into an environment that supports "
+"deployment of multiple applications, you must enable, automatically, or "
+"through user configuation, classloader isolation for each Web Beans "
+"application."
msgstr ""
#. Tag: term
#: ri-spi.xml:147
#, no-c-format
-msgid "The <literal>webbeans-ri.jar</literal>"
+msgid "Servlet listener"
msgstr ""
#. Tag: para
#: ri-spi.xml:151
#, no-c-format
msgid ""
+"If you are integrating the Web Beans into a Servlet environment you must "
+"register <literal>org.jboss.webbeans.servlet.WebBeansListener</literal> as a "
+"Servlet listener, either automatically, or through user configuration, for "
+"each Web Beans application which uses Servlet."
+msgstr ""
+
+#. Tag: term
+#: ri-spi.xml:162
+#, no-c-format
+msgid "Session Bean Interceptor"
+msgstr ""
+
+#. Tag: para
+#: ri-spi.xml:166
+#, no-c-format
+msgid ""
+"If you are integrating the Web Beans into an EJB environment you must "
+"register <literal>org.jboss.webbeans.ejb.SessionBeanInterceptor</literal> as "
+"a EJB interceptor for all EJBs in the application, either automatically, or "
+"through user configuration, for each Web Beans application which uses "
+"enterprise beans."
+msgstr ""
+
+#. Tag: term
+#: ri-spi.xml:177
+#, no-c-format
+msgid "The <literal>webbeans-ri.jar</literal>"
+msgstr ""
+
+#. Tag: para
+#: ri-spi.xml:181
+#, no-c-format
+msgid ""
"If you are integrating the Web Beans into an environment that supports "
"deployment of applications, you must insert the <literal>webbeans-ri.jar</"
"literal> into the applications isolated classloader. It cannot be loaded "
Modified: doc/trunk/reference/fr-FR/ri.po
===================================================================
--- doc/trunk/reference/fr-FR/ri.po 2009-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/fr-FR/ri.po 2009-01-08 14:13:34 UTC (rev 829)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: master.xml \n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-04 23:18+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+0000\n"
"PO-Revision-Date: 2008-12-19 20:26+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -356,11 +356,6 @@
" <session-config>\n"
" <session-timeout>10</session-timeout>\n"
" </session-config>\n"
-" \n"
-" <listener>\n"
-" <listener-class>org.jboss.webbeans.servlet.WebBeansListener</listener-"
-"class>\n"
-" </listener>\n"
"\n"
"</web-app>]]></programlisting> <calloutlist> <callout arearefs=\"faces."
"servlet\"> <para> Enable and load the JSF servlet </para> </callout> "
@@ -369,20 +364,16 @@
"<callout arearefs=\"faces.default.suffix\"> <para> Tell JSF that we will be "
"giving our source files (facelets) an extension of <literal>.jsf</literal> </"
"para> </callout> <callout arearefs=\"session.timeout\"> <para> Configure a "
-"session timeout of 10 minutes </para> </callout> <callout arearefs="
-"\"webbeans.listener\"> <para> Configure the Web Beans listener, so that Web "
-"Beans services can be used in the servlet request </para> </callout> </"
-"calloutlist> </programlistingco> <note> <para> The only configuration "
-"required by the Web Beans RI in <literal>web.xml</literal> is to add the Web "
-"Beans listener. </para> <para> Whilst this demo is a JSF demo, you can use "
-"the Web Beans RI with any Servlet based web framework; just configure the "
-"Web Beans listener. </para> </note> <para> Let's take a look at the Facelet "
-"view: </para> <programlistingco> <areaspec> <area id=\"template\" coords=\"8"
-"\"/> <area id=\"messages\" coords=\"12\"/> <area id=\"instructions\" coords="
-"\"19\"/> <area id=\"guess\" coords=\"25\"/> <area id=\"validator\" coords="
-"\"30\"/> <area id=\"submit\" coords=\"33\"/> </areaspec> <programlisting><!"
-"[CDATA[<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" "
-"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
+"session timeout of 10 minutes </para> </callout> </calloutlist> </"
+"programlistingco> <note> <para> Whilst this demo is a JSF demo, you can use "
+"the Web Beans RI with any Servlet based web framework. </para> </note> "
+"<para> Let's take a look at the Facelet view: </para> <programlistingco> "
+"<areaspec> <area id=\"template\" coords=\"8\"/> <area id=\"messages\" coords="
+"\"12\"/> <area id=\"instructions\" coords=\"19\"/> <area id=\"guess\" coords="
+"\"25\"/> <area id=\"validator\" coords=\"30\"/> <area id=\"submit\" coords="
+"\"33\"/> </areaspec> <programlisting><![CDATA[<!DOCTYPE html PUBLIC \"-//"
+"W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/"
+"xhtml1-transitional.dtd\">\n"
"<html xmlns=\"http://www.w3.org/1999/xhtml\"\n"
" xmlns:ui=\"http://java.sun.com/jsf/facelets\"\n"
" xmlns:h=\"http://java.sun.com/jsf/html\"\n"
@@ -449,7 +440,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:298
+#: ri.xml:287
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -458,7 +449,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:304
+#: ri.xml:293
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -469,7 +460,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:306
+#: ri.xml:295
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for "
@@ -477,7 +468,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:311
+#: ri.xml:300
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -489,7 +480,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:313
+#: ri.xml:302
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the "
@@ -498,7 +489,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:319
+#: ri.xml:308
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -527,7 +518,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:321
+#: ri.xml:310
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application scoped; "
@@ -535,7 +526,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:326
+#: ri.xml:315
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped <literal>Game</"
@@ -543,7 +534,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:331
+#: ri.xml:320
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal> annotation, so "
@@ -554,7 +545,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:339
+#: ri.xml:328
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -656,13 +647,13 @@
msgstr ""
#. Tag: title
-#: ri.xml:343
+#: ri.xml:332
#, no-c-format
msgid "The translator example"
msgstr ""
#. Tag: para
-#: ri.xml:345
+#: ri.xml:334
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them "
@@ -670,7 +661,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:350
+#: ri.xml:339
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs and enterprise "
@@ -679,7 +670,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:357
+#: ri.xml:346
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -687,17 +678,16 @@
msgstr ""
#. Tag: para
-#: ri.xml:363
+#: ri.xml:352
#, 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> and <literal>jboss-app.xml</"
-"literal> for us:"
+"generates the <literal>application.xml</literal> for us:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:370
+#: ri.xml:358
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -711,57 +701,32 @@
" <contextRoot>/webbeans-translator</contextRoot>\n"
" </webModule>\n"
" </modules>\n"
-" <jboss>\n"
-" <loader-repository>webbeans.jboss.org:loader=webbeans-translator</"
-"loader-repository>\n"
-" </jboss>\n"
" </configuration>\n"
"</plugin>]]>"
msgstr ""
#. Tag: para
-#: ri.xml:372
+#: ri.xml:360
#, no-c-format
msgid ""
-"We're doing a couple of things here - firstly we set the context path, which "
-"gives us a nice url (<ulink url=\"http://localhost:8080/webbeans-translator"
-"\">http://localhost:8080/webbeans-translator</ulink>) and we also enable "
-"class loader isolation for JBoss AS."
+"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 ""
#. Tag: para
-#: ri.xml:380
+#: ri.xml:366
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
-"<literal>META-INF/jboss-app.xml</literal>:"
+"<literal>META-INF/application.xml</literal>:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:385
+#: ri.xml:371
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<!DOCTYPE jboss-app\n"
-" PUBLIC \"-//JBoss//DTD J2EE Application 4.2//EN\"\n"
-" \"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd\">\n"
-"<jboss-app>\n"
-" <loader-repository>webbeans.jboss.org:loader=webbeans-translator</loader-"
-"repository>\n"
-"</jboss-app>]]>"
-msgstr ""
-
-#. Tag: para
-#: ri.xml:387
-#, no-c-format
-msgid "and <literal>META-INF/application.xml</literal>:"
-msgstr ""
-
-#. Tag: programlisting
-#: ri.xml:391
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<application xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://"
@@ -784,17 +749,16 @@
msgstr ""
#. Tag: para
-#: ri.xml:394
+#: ri.xml:374
#, 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 enabled Facelets) and a <literal>web."
-"xml</literal> (to enable JSF and attach Web Beans services to the servlet "
-"container) in <literal>WebContent/WEB-INF</literal>."
+"xml</literal> (to enable JSF) in <literal>WebContent/WEB-INF</literal>."
msgstr ""
#. Tag: para
-#: ri.xml:401
+#: ri.xml:381
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -803,7 +767,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:407
+#: ri.xml:387
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -836,7 +800,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:409
+#: ri.xml:389
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate "
@@ -844,49 +808,17 @@
msgstr ""
#. Tag: para
-#: ri.xml:414
+#: ri.xml:394
#, no-c-format
msgid ""
"Finally, let's look at the ejb module, <literal>webbeans-translator-ejb</"
-"literal>. There are two configuration files in <literal>src/main/resources/"
-"META-INF</literal>, an empty <literal>web-beans.xml</literal>, used to mark "
-"the archive as containing Web Beans, and <literal>ejb-jar.xml</literal>. Web "
-"Beans provides injection and initializtion services for all EJBs, and uses "
-"<literal>ejb-jar.xml</literal> to enable this, you'll need this in any EJB "
-"project which uses Web Beans:"
+"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 ""
-#. Tag: programlisting
-#: ri.xml:426
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<ejb-jar xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n"
-" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java."
-"sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n"
-" version=\"3.0\">\n"
-" \n"
-" <interceptors>\n"
-" <interceptor>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor>\n"
-" </interceptors>\n"
-" \n"
-" <assembly-descriptor>\n"
-" <interceptor-binding>\n"
-" <ejb-name>*</ejb-name>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor-binding>\n"
-" </assembly-descriptor>\n"
-" \n"
-"</ejb-jar>]]>"
-msgstr ""
-
#. Tag: para
-#: ri.xml:428
+#: ri.xml:402
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two "
@@ -898,7 +830,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:438
+#: ri.xml:412
#, no-c-format
msgid ""
"Both <literal>SentanceParser</literal> and <literal>TextTranslator</literal> "
@@ -907,7 +839,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:444
+#: ri.xml:418
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -923,7 +855,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:446
+#: ri.xml:420
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local business "
@@ -932,7 +864,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:452
+#: ri.xml:426
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -941,7 +873,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:458
+#: ri.xml:432
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -954,19 +886,19 @@
msgstr ""
#. Tag: para
-#: ri.xml:460
+#: ri.xml:434
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr ""
#. Tag: para
-#: ri.xml:464
+#: ri.xml:438
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:468
+#: ri.xml:442
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -977,7 +909,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:470
+#: ri.xml:444
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -985,7 +917,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:476
+#: ri.xml:450
#, no-c-format
msgid ""
"That concludes our short tour of the Web Beans RI examples. For more on the "
@@ -995,7 +927,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:482
+#: ri.xml:456
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
Modified: doc/trunk/reference/ja-JP/ri-spi.po
===================================================================
--- doc/trunk/reference/ja-JP/ri-spi.po 2009-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/ja-JP/ri-spi.po 2009-01-08 14:13:34 UTC (rev 829)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: master.xml \n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+0000\n"
"PO-Revision-Date: 2008-12-20 22:07+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -367,21 +367,55 @@
#: ri-spi.xml:138
#, no-c-format
msgid ""
-"If you are integrating the Web Beans into an environment that supports "
-"deployment of applications, you must enable, automatically, or through user "
-"configuation, classloader isolation for each Web Beans application"
+"If you are integrating the Web Beans RI into an environment that supports "
+"deployment of multiple applications, you must enable, automatically, or "
+"through user configuation, classloader isolation for each Web Beans "
+"application."
msgstr ""
#. Tag: term
#: ri-spi.xml:147
#, no-c-format
-msgid "The <literal>webbeans-ri.jar</literal>"
+msgid "Servlet listener"
msgstr ""
#. Tag: para
#: ri-spi.xml:151
#, no-c-format
msgid ""
+"If you are integrating the Web Beans into a Servlet environment you must "
+"register <literal>org.jboss.webbeans.servlet.WebBeansListener</literal> as a "
+"Servlet listener, either automatically, or through user configuration, for "
+"each Web Beans application which uses Servlet."
+msgstr ""
+
+#. Tag: term
+#: ri-spi.xml:162
+#, no-c-format
+msgid "Session Bean Interceptor"
+msgstr ""
+
+#. Tag: para
+#: ri-spi.xml:166
+#, no-c-format
+msgid ""
+"If you are integrating the Web Beans into an EJB environment you must "
+"register <literal>org.jboss.webbeans.ejb.SessionBeanInterceptor</literal> as "
+"a EJB interceptor for all EJBs in the application, either automatically, or "
+"through user configuration, for each Web Beans application which uses "
+"enterprise beans."
+msgstr ""
+
+#. Tag: term
+#: ri-spi.xml:177
+#, no-c-format
+msgid "The <literal>webbeans-ri.jar</literal>"
+msgstr ""
+
+#. Tag: para
+#: ri-spi.xml:181
+#, no-c-format
+msgid ""
"If you are integrating the Web Beans into an environment that supports "
"deployment of applications, you must insert the <literal>webbeans-ri.jar</"
"literal> into the applications isolated classloader. It cannot be loaded "
Modified: doc/trunk/reference/ja-JP/ri.po
===================================================================
--- doc/trunk/reference/ja-JP/ri.po 2009-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/ja-JP/ri.po 2009-01-08 14:13:34 UTC (rev 829)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: master.xml \n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-04 23:18+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+0000\n"
"PO-Revision-Date: 2008-12-19 20:26+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -356,11 +356,6 @@
" <session-config>\n"
" <session-timeout>10</session-timeout>\n"
" </session-config>\n"
-" \n"
-" <listener>\n"
-" <listener-class>org.jboss.webbeans.servlet.WebBeansListener</listener-"
-"class>\n"
-" </listener>\n"
"\n"
"</web-app>]]></programlisting> <calloutlist> <callout arearefs=\"faces."
"servlet\"> <para> Enable and load the JSF servlet </para> </callout> "
@@ -369,20 +364,16 @@
"<callout arearefs=\"faces.default.suffix\"> <para> Tell JSF that we will be "
"giving our source files (facelets) an extension of <literal>.jsf</literal> </"
"para> </callout> <callout arearefs=\"session.timeout\"> <para> Configure a "
-"session timeout of 10 minutes </para> </callout> <callout arearefs="
-"\"webbeans.listener\"> <para> Configure the Web Beans listener, so that Web "
-"Beans services can be used in the servlet request </para> </callout> </"
-"calloutlist> </programlistingco> <note> <para> The only configuration "
-"required by the Web Beans RI in <literal>web.xml</literal> is to add the Web "
-"Beans listener. </para> <para> Whilst this demo is a JSF demo, you can use "
-"the Web Beans RI with any Servlet based web framework; just configure the "
-"Web Beans listener. </para> </note> <para> Let's take a look at the Facelet "
-"view: </para> <programlistingco> <areaspec> <area id=\"template\" coords=\"8"
-"\"/> <area id=\"messages\" coords=\"12\"/> <area id=\"instructions\" coords="
-"\"19\"/> <area id=\"guess\" coords=\"25\"/> <area id=\"validator\" coords="
-"\"30\"/> <area id=\"submit\" coords=\"33\"/> </areaspec> <programlisting><!"
-"[CDATA[<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" "
-"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
+"session timeout of 10 minutes </para> </callout> </calloutlist> </"
+"programlistingco> <note> <para> Whilst this demo is a JSF demo, you can use "
+"the Web Beans RI with any Servlet based web framework. </para> </note> "
+"<para> Let's take a look at the Facelet view: </para> <programlistingco> "
+"<areaspec> <area id=\"template\" coords=\"8\"/> <area id=\"messages\" coords="
+"\"12\"/> <area id=\"instructions\" coords=\"19\"/> <area id=\"guess\" coords="
+"\"25\"/> <area id=\"validator\" coords=\"30\"/> <area id=\"submit\" coords="
+"\"33\"/> </areaspec> <programlisting><![CDATA[<!DOCTYPE html PUBLIC \"-//"
+"W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/"
+"xhtml1-transitional.dtd\">\n"
"<html xmlns=\"http://www.w3.org/1999/xhtml\"\n"
" xmlns:ui=\"http://java.sun.com/jsf/facelets\"\n"
" xmlns:h=\"http://java.sun.com/jsf/html\"\n"
@@ -449,7 +440,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:298
+#: ri.xml:287
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -458,7 +449,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:304
+#: ri.xml:293
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -469,7 +460,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:306
+#: ri.xml:295
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for "
@@ -477,7 +468,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:311
+#: ri.xml:300
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -489,7 +480,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:313
+#: ri.xml:302
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the "
@@ -498,7 +489,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:319
+#: ri.xml:308
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -527,7 +518,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:321
+#: ri.xml:310
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application scoped; "
@@ -535,7 +526,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:326
+#: ri.xml:315
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped <literal>Game</"
@@ -543,7 +534,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:331
+#: ri.xml:320
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal> annotation, so "
@@ -554,7 +545,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:339
+#: ri.xml:328
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -656,13 +647,13 @@
msgstr ""
#. Tag: title
-#: ri.xml:343
+#: ri.xml:332
#, no-c-format
msgid "The translator example"
msgstr ""
#. Tag: para
-#: ri.xml:345
+#: ri.xml:334
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them "
@@ -670,7 +661,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:350
+#: ri.xml:339
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs and enterprise "
@@ -679,7 +670,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:357
+#: ri.xml:346
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -687,17 +678,16 @@
msgstr ""
#. Tag: para
-#: ri.xml:363
+#: ri.xml:352
#, 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> and <literal>jboss-app.xml</"
-"literal> for us:"
+"generates the <literal>application.xml</literal> for us:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:370
+#: ri.xml:358
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -711,57 +701,32 @@
" <contextRoot>/webbeans-translator</contextRoot>\n"
" </webModule>\n"
" </modules>\n"
-" <jboss>\n"
-" <loader-repository>webbeans.jboss.org:loader=webbeans-translator</"
-"loader-repository>\n"
-" </jboss>\n"
" </configuration>\n"
"</plugin>]]>"
msgstr ""
#. Tag: para
-#: ri.xml:372
+#: ri.xml:360
#, no-c-format
msgid ""
-"We're doing a couple of things here - firstly we set the context path, which "
-"gives us a nice url (<ulink url=\"http://localhost:8080/webbeans-translator"
-"\">http://localhost:8080/webbeans-translator</ulink>) and we also enable "
-"class loader isolation for JBoss AS."
+"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 ""
#. Tag: para
-#: ri.xml:380
+#: ri.xml:366
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
-"<literal>META-INF/jboss-app.xml</literal>:"
+"<literal>META-INF/application.xml</literal>:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:385
+#: ri.xml:371
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<!DOCTYPE jboss-app\n"
-" PUBLIC \"-//JBoss//DTD J2EE Application 4.2//EN\"\n"
-" \"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd\">\n"
-"<jboss-app>\n"
-" <loader-repository>webbeans.jboss.org:loader=webbeans-translator</loader-"
-"repository>\n"
-"</jboss-app>]]>"
-msgstr ""
-
-#. Tag: para
-#: ri.xml:387
-#, no-c-format
-msgid "and <literal>META-INF/application.xml</literal>:"
-msgstr ""
-
-#. Tag: programlisting
-#: ri.xml:391
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<application xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://"
@@ -784,17 +749,16 @@
msgstr ""
#. Tag: para
-#: ri.xml:394
+#: ri.xml:374
#, 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 enabled Facelets) and a <literal>web."
-"xml</literal> (to enable JSF and attach Web Beans services to the servlet "
-"container) in <literal>WebContent/WEB-INF</literal>."
+"xml</literal> (to enable JSF) in <literal>WebContent/WEB-INF</literal>."
msgstr ""
#. Tag: para
-#: ri.xml:401
+#: ri.xml:381
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -803,7 +767,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:407
+#: ri.xml:387
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -836,7 +800,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:409
+#: ri.xml:389
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate "
@@ -844,49 +808,17 @@
msgstr ""
#. Tag: para
-#: ri.xml:414
+#: ri.xml:394
#, no-c-format
msgid ""
"Finally, let's look at the ejb module, <literal>webbeans-translator-ejb</"
-"literal>. There are two configuration files in <literal>src/main/resources/"
-"META-INF</literal>, an empty <literal>web-beans.xml</literal>, used to mark "
-"the archive as containing Web Beans, and <literal>ejb-jar.xml</literal>. Web "
-"Beans provides injection and initializtion services for all EJBs, and uses "
-"<literal>ejb-jar.xml</literal> to enable this, you'll need this in any EJB "
-"project which uses Web Beans:"
+"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 ""
-#. Tag: programlisting
-#: ri.xml:426
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<ejb-jar xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n"
-" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java."
-"sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n"
-" version=\"3.0\">\n"
-" \n"
-" <interceptors>\n"
-" <interceptor>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor>\n"
-" </interceptors>\n"
-" \n"
-" <assembly-descriptor>\n"
-" <interceptor-binding>\n"
-" <ejb-name>*</ejb-name>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor-binding>\n"
-" </assembly-descriptor>\n"
-" \n"
-"</ejb-jar>]]>"
-msgstr ""
-
#. Tag: para
-#: ri.xml:428
+#: ri.xml:402
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two "
@@ -898,7 +830,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:438
+#: ri.xml:412
#, no-c-format
msgid ""
"Both <literal>SentanceParser</literal> and <literal>TextTranslator</literal> "
@@ -907,7 +839,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:444
+#: ri.xml:418
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -923,7 +855,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:446
+#: ri.xml:420
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local business "
@@ -932,7 +864,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:452
+#: ri.xml:426
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -941,7 +873,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:458
+#: ri.xml:432
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -954,19 +886,19 @@
msgstr ""
#. Tag: para
-#: ri.xml:460
+#: ri.xml:434
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr ""
#. Tag: para
-#: ri.xml:464
+#: ri.xml:438
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:468
+#: ri.xml:442
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -977,7 +909,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:470
+#: ri.xml:444
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -985,7 +917,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:476
+#: ri.xml:450
#, no-c-format
msgid ""
"That concludes our short tour of the Web Beans RI examples. For more on the "
@@ -995,7 +927,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:482
+#: ri.xml:456
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
Modified: doc/trunk/reference/ko-KR/ri-spi.po
===================================================================
--- doc/trunk/reference/ko-KR/ri-spi.po 2009-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/ko-KR/ri-spi.po 2009-01-08 14:13:34 UTC (rev 829)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: ri-spi\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+0000\n"
"PO-Revision-Date: 2009-01-08 11:10+1000\n"
"Last-Translator: Eunju Kim <eukim(a)redhat.com>\n"
"Language-Team: Korean <ko(a)li.org>\n"
@@ -15,7 +15,8 @@
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.11.4\n"
-"Plural-Forms: nplurals=2; plural=(n!=1);\n\n"
+"Plural-Forms: nplurals=2; plural=(n!=1);\n"
+"\n"
#. Tag: title
#: ri-spi.xml:4
@@ -496,7 +497,8 @@
#: ri-spi.xml:117
#, no-c-format
msgid "org.jboss.webbeans.resources.spi.ResourceLoader=com.acme.ResourceLoader"
-msgstr "org.jboss.webbeans.resources.spi.ResourceLoader=com.acme.ResourceLoader"
+msgstr ""
+"org.jboss.webbeans.resources.spi.ResourceLoader=com.acme.ResourceLoader"
#. Tag: title
#: ri-spi.xml:124
@@ -522,24 +524,57 @@
#: ri-spi.xml:138
#, no-c-format
msgid ""
-"If you are integrating the Web Beans into an environment that supports "
-"deployment of applications, you must enable, automatically, or through user "
-"configuation, classloader isolation for each Web Beans application"
+"If you are integrating the Web Beans RI into an environment that supports "
+"deployment of multiple applications, you must enable, automatically, or "
+"through user configuation, classloader isolation for each Web Beans "
+"application."
msgstr ""
#. Tag: term
#: ri-spi.xml:147
#, no-c-format
-msgid "The <literal>webbeans-ri.jar</literal>"
+msgid "Servlet listener"
msgstr ""
#. Tag: para
#: ri-spi.xml:151
#, no-c-format
msgid ""
+"If you are integrating the Web Beans into a Servlet environment you must "
+"register <literal>org.jboss.webbeans.servlet.WebBeansListener</literal> as a "
+"Servlet listener, either automatically, or through user configuration, for "
+"each Web Beans application which uses Servlet."
+msgstr ""
+
+#. Tag: term
+#: ri-spi.xml:162
+#, no-c-format
+msgid "Session Bean Interceptor"
+msgstr ""
+
+#. Tag: para
+#: ri-spi.xml:166
+#, no-c-format
+msgid ""
+"If you are integrating the Web Beans into an EJB environment you must "
+"register <literal>org.jboss.webbeans.ejb.SessionBeanInterceptor</literal> as "
+"a EJB interceptor for all EJBs in the application, either automatically, or "
+"through user configuration, for each Web Beans application which uses "
+"enterprise beans."
+msgstr ""
+
+#. Tag: term
+#: ri-spi.xml:177
+#, no-c-format
+msgid "The <literal>webbeans-ri.jar</literal>"
+msgstr ""
+
+#. Tag: para
+#: ri-spi.xml:181
+#, no-c-format
+msgid ""
"If you are integrating the Web Beans into an environment that supports "
"deployment of applications, you must insert the <literal>webbeans-ri.jar</"
"literal> into the applications isolated classloader. It cannot be loaded "
"from a shared classloader."
msgstr ""
-
Modified: doc/trunk/reference/ko-KR/ri.po
===================================================================
--- doc/trunk/reference/ko-KR/ri.po 2009-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/ko-KR/ri.po 2009-01-08 14:13:34 UTC (rev 829)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: ri\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+0000\n"
"PO-Revision-Date: 2009-01-08 11:09+1000\n"
"Last-Translator: Eunju Kim <eukim(a)redhat.com>\n"
"Language-Team: Korean <ko(a)li.org>\n"
@@ -15,7 +15,8 @@
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.11.4\n"
-"Plural-Forms: nplurals=2; plural=(n!=1);\n\n"
+"Plural-Forms: nplurals=2; plural=(n!=1);\n"
+"\n"
#. Tag: title
#: ri.xml:4
@@ -178,7 +179,8 @@
#. Tag: para
#: ri.xml:93
#, no-c-format
-msgid "The build scripts for the examples offer a number of targets, these are:"
+msgid ""
+"The build scripts for the examples offer a number of targets, these are:"
msgstr ""
#. Tag: para
@@ -198,7 +200,8 @@
#. Tag: para
#: ri.xml:111
#, no-c-format
-msgid "<literal>ant deploy</literal> - deploy the example in compressed jar format"
+msgid ""
+"<literal>ant deploy</literal> - deploy the example in compressed jar format"
msgstr ""
#. Tag: para
@@ -382,11 +385,6 @@
" <session-config>\n"
" <session-timeout>10</session-timeout>\n"
" </session-config>\n"
-" \n"
-" <listener>\n"
-" <listener-class>org.jboss.webbeans.servlet.WebBeansListener</listener-"
-"class>\n"
-" </listener>\n"
"\n"
"</web-app>]]></programlisting> <calloutlist> <callout arearefs=\"faces."
"servlet\"> <para> Enable and load the JSF servlet </para> </callout> "
@@ -395,20 +393,16 @@
"<callout arearefs=\"faces.default.suffix\"> <para> Tell JSF that we will be "
"giving our source files (facelets) an extension of <literal>.jsf</literal> </"
"para> </callout> <callout arearefs=\"session.timeout\"> <para> Configure a "
-"session timeout of 10 minutes </para> </callout> <callout arearefs="
-"\"webbeans.listener\"> <para> Configure the Web Beans listener, so that Web "
-"Beans services can be used in the servlet request </para> </callout> </"
-"calloutlist> </programlistingco> <note> <para> The only configuration "
-"required by the Web Beans RI in <literal>web.xml</literal> is to add the Web "
-"Beans listener. </para> <para> Whilst this demo is a JSF demo, you can use "
-"the Web Beans RI with any Servlet based web framework; just configure the "
-"Web Beans listener. </para> </note> <para> Let's take a look at the Facelet "
-"view: </para> <programlistingco> <areaspec> <area id=\"template\" coords=\"8"
-"\"/> <area id=\"messages\" coords=\"12\"/> <area id=\"instructions\" coords="
-"\"19\"/> <area id=\"guess\" coords=\"25\"/> <area id=\"validator\" coords="
-"\"30\"/> <area id=\"submit\" coords=\"33\"/> </areaspec> <programlisting><!"
-"[CDATA[<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" "
-"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
+"session timeout of 10 minutes </para> </callout> </calloutlist> </"
+"programlistingco> <note> <para> Whilst this demo is a JSF demo, you can use "
+"the Web Beans RI with any Servlet based web framework. </para> </note> "
+"<para> Let's take a look at the Facelet view: </para> <programlistingco> "
+"<areaspec> <area id=\"template\" coords=\"8\"/> <area id=\"messages\" coords="
+"\"12\"/> <area id=\"instructions\" coords=\"19\"/> <area id=\"guess\" coords="
+"\"25\"/> <area id=\"validator\" coords=\"30\"/> <area id=\"submit\" coords="
+"\"33\"/> </areaspec> <programlisting><![CDATA[<!DOCTYPE html PUBLIC \"-//"
+"W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/"
+"xhtml1-transitional.dtd\">\n"
"<html xmlns=\"http://www.w3.org/1999/xhtml\"\n"
" xmlns:ui=\"http://java.sun.com/jsf/facelets\"\n"
" xmlns:h=\"http://java.sun.com/jsf/html\"\n"
@@ -475,7 +469,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:298
+#: ri.xml:287
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -484,7 +478,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:304
+#: ri.xml:293
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -500,7 +494,7 @@
"public @interface Random {}]]>"
#. Tag: para
-#: ri.xml:306
+#: ri.xml:295
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for "
@@ -508,7 +502,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:311
+#: ri.xml:300
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -526,7 +520,7 @@
"]]>"
#. Tag: para
-#: ri.xml:313
+#: ri.xml:302
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the "
@@ -535,7 +529,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:319
+#: ri.xml:308
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -587,7 +581,7 @@
"}]]>"
#. Tag: para
-#: ri.xml:321
+#: ri.xml:310
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application scoped; "
@@ -595,7 +589,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:326
+#: ri.xml:315
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped <literal>Game</"
@@ -603,7 +597,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:331
+#: ri.xml:320
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal> annotation, so "
@@ -614,7 +608,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:339
+#: ri.xml:328
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -812,13 +806,13 @@
"}]]>"
#. Tag: title
-#: ri.xml:343
+#: ri.xml:332
#, no-c-format
msgid "The translator example"
msgstr ""
#. Tag: para
-#: ri.xml:345
+#: ri.xml:334
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them "
@@ -826,7 +820,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:350
+#: ri.xml:339
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs and enterprise "
@@ -835,7 +829,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:357
+#: ri.xml:346
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -843,18 +837,17 @@
msgstr ""
#. Tag: para
-#: ri.xml:363
+#: ri.xml:352
#, 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> and <literal>jboss-app.xml</"
-"literal> for us:"
+"generates the <literal>application.xml</literal> for us:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:370
-#, no-c-format
+#: ri.xml:358
+#, fuzzy, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
" <groupId>org.apache.maven.plugins</groupId>\n"
@@ -867,10 +860,6 @@
" <contextRoot>/webbeans-translator</contextRoot>\n"
" </webModule>\n"
" </modules>\n"
-" <jboss>\n"
-" <loader-repository>webbeans.jboss.org:loader=webbeans-translator</"
-"loader-repository>\n"
-" </jboss>\n"
" </configuration>\n"
"</plugin>]]>"
msgstr ""
@@ -893,56 +882,27 @@
"</plugin>]]>"
#. Tag: para
-#: ri.xml:372
+#: ri.xml:360
#, no-c-format
msgid ""
-"We're doing a couple of things here - firstly we set the context path, which "
-"gives us a nice url (<ulink url=\"http://localhost:8080/webbeans-translator"
-"\">http://localhost:8080/webbeans-translator</ulink>) and we also enable "
-"class loader isolation for JBoss AS."
+"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 ""
#. Tag: para
-#: ri.xml:380
+#: ri.xml:366
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
-"<literal>META-INF/jboss-app.xml</literal>:"
+"<literal>META-INF/application.xml</literal>:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:385
+#: ri.xml:371
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<!DOCTYPE jboss-app\n"
-" PUBLIC \"-//JBoss//DTD J2EE Application 4.2//EN\"\n"
-" \"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd\">\n"
-"<jboss-app>\n"
-" <loader-repository>webbeans.jboss.org:loader=webbeans-translator</loader-"
-"repository>\n"
-"</jboss-app>]]>"
-msgstr ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<!DOCTYPE jboss-app\n"
-" PUBLIC \"-//JBoss//DTD J2EE Application 4.2//EN\"\n"
-" \"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd\">\n"
-"<jboss-app>\n"
-" <loader-repository>webbeans.jboss.org:loader=webbeans-translator</loader-"
-"repository>\n"
-"</jboss-app>]]>"
-
-#. Tag: para
-#: ri.xml:387
-#, no-c-format
-msgid "and <literal>META-INF/application.xml</literal>:"
-msgstr ""
-
-#. Tag: programlisting
-#: ri.xml:391
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<application xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://"
@@ -985,17 +945,16 @@
"</application>]]>"
#. Tag: para
-#: ri.xml:394
+#: ri.xml:374
#, 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 enabled Facelets) and a <literal>web."
-"xml</literal> (to enable JSF and attach Web Beans services to the servlet "
-"container) in <literal>WebContent/WEB-INF</literal>."
+"xml</literal> (to enable JSF) in <literal>WebContent/WEB-INF</literal>."
msgstr ""
#. Tag: para
-#: ri.xml:401
+#: ri.xml:381
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -1004,7 +963,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:407
+#: ri.xml:387
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -1064,7 +1023,7 @@
"</h:form>]]>"
#. Tag: para
-#: ri.xml:409
+#: ri.xml:389
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate "
@@ -1072,72 +1031,17 @@
msgstr ""
#. Tag: para
-#: ri.xml:414
+#: ri.xml:394
#, no-c-format
msgid ""
"Finally, let's look at the ejb module, <literal>webbeans-translator-ejb</"
-"literal>. There are two configuration files in <literal>src/main/resources/"
-"META-INF</literal>, an empty <literal>web-beans.xml</literal>, used to mark "
-"the archive as containing Web Beans, and <literal>ejb-jar.xml</literal>. Web "
-"Beans provides injection and initializtion services for all EJBs, and uses "
-"<literal>ejb-jar.xml</literal> to enable this, you'll need this in any EJB "
-"project which uses Web Beans:"
+"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 ""
-#. Tag: programlisting
-#: ri.xml:426
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<ejb-jar xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n"
-" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java."
-"sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n"
-" version=\"3.0\">\n"
-" \n"
-" <interceptors>\n"
-" <interceptor>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor>\n"
-" </interceptors>\n"
-" \n"
-" <assembly-descriptor>\n"
-" <interceptor-binding>\n"
-" <ejb-name>*</ejb-name>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor-binding>\n"
-" </assembly-descriptor>\n"
-" \n"
-"</ejb-jar>]]>"
-msgstr ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<ejb-jar xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n"
-" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java."
-"sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n"
-" version=\"3.0\">\n"
-" \n"
-" <interceptors>\n"
-" <interceptor>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor>\n"
-" </interceptors>\n"
-" \n"
-" <assembly-descriptor>\n"
-" <interceptor-binding>\n"
-" <ejb-name>*</ejb-name>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor-binding>\n"
-" </assembly-descriptor>\n"
-" \n"
-"</ejb-jar>]]>"
-
#. Tag: para
-#: ri.xml:428
+#: ri.xml:402
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two "
@@ -1149,7 +1053,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:438
+#: ri.xml:412
#, no-c-format
msgid ""
"Both <literal>SentanceParser</literal> and <literal>TextTranslator</literal> "
@@ -1158,7 +1062,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:444
+#: ri.xml:418
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -1184,7 +1088,7 @@
" this.sentenceTranslator = sentenceTranslator;]]>"
#. Tag: para
-#: ri.xml:446
+#: ri.xml:420
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local business "
@@ -1193,7 +1097,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:452
+#: ri.xml:426
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -1202,7 +1106,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:458
+#: ri.xml:432
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -1222,19 +1126,19 @@
" @Current TextTranslator translator;]]>"
#. Tag: para
-#: ri.xml:460
+#: ri.xml:434
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr ""
#. Tag: para
-#: ri.xml:464
+#: ri.xml:438
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:468
+#: ri.xml:442
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -1250,7 +1154,7 @@
" }]]>"
#. Tag: para
-#: ri.xml:470
+#: ri.xml:444
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -1258,7 +1162,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:476
+#: ri.xml:450
#, no-c-format
msgid ""
"That concludes our short tour of the Web Beans RI examples. For more on the "
@@ -1268,10 +1172,77 @@
msgstr ""
#. Tag: para
-#: ri.xml:482
+#: ri.xml:456
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
"examples and translating this reference guide."
msgstr ""
+#~ msgid ""
+#~ "<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+#~ "<!DOCTYPE jboss-app\n"
+#~ " PUBLIC \"-//JBoss//DTD J2EE Application 4.2//EN\"\n"
+#~ " \"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd\">\n"
+#~ "<jboss-app>\n"
+#~ " <loader-repository>webbeans.jboss.org:loader=webbeans-translator</"
+#~ "loader-repository>\n"
+#~ "</jboss-app>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+#~ "<!DOCTYPE jboss-app\n"
+#~ " PUBLIC \"-//JBoss//DTD J2EE Application 4.2//EN\"\n"
+#~ " \"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd\">\n"
+#~ "<jboss-app>\n"
+#~ " <loader-repository>webbeans.jboss.org:loader=webbeans-translator</"
+#~ "loader-repository>\n"
+#~ "</jboss-app>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+#~ "<ejb-jar xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
+#~ " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n"
+#~ " xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://"
+#~ "java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n"
+#~ " version=\"3.0\">\n"
+#~ " \n"
+#~ " <interceptors>\n"
+#~ " <interceptor>\n"
+#~ " <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
+#~ "interceptor-class>\n"
+#~ " </interceptor>\n"
+#~ " </interceptors>\n"
+#~ " \n"
+#~ " <assembly-descriptor>\n"
+#~ " <interceptor-binding>\n"
+#~ " <ejb-name>*</ejb-name>\n"
+#~ " <interceptor-class>org.jboss.webbeans.ejb."
+#~ "SessionBeanInterceptor</interceptor-class>\n"
+#~ " </interceptor-binding>\n"
+#~ " </assembly-descriptor>\n"
+#~ " \n"
+#~ "</ejb-jar>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+#~ "<ejb-jar xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
+#~ " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n"
+#~ " xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://"
+#~ "java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n"
+#~ " version=\"3.0\">\n"
+#~ " \n"
+#~ " <interceptors>\n"
+#~ " <interceptor>\n"
+#~ " <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
+#~ "interceptor-class>\n"
+#~ " </interceptor>\n"
+#~ " </interceptors>\n"
+#~ " \n"
+#~ " <assembly-descriptor>\n"
+#~ " <interceptor-binding>\n"
+#~ " <ejb-name>*</ejb-name>\n"
+#~ " <interceptor-class>org.jboss.webbeans.ejb."
+#~ "SessionBeanInterceptor</interceptor-class>\n"
+#~ " </interceptor-binding>\n"
+#~ " </assembly-descriptor>\n"
+#~ " \n"
+#~ "</ejb-jar>]]>"
Modified: doc/trunk/reference/pot/Author_Group.pot
===================================================================
--- doc/trunk/reference/pot/Author_Group.pot 2009-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/Author_Group.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/Book_Info.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/decorators.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/ee.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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/events.pot
===================================================================
--- doc/trunk/reference/pot/events.pot 2009-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/events.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/example.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/extend.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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/injection.pot
===================================================================
--- doc/trunk/reference/pot/injection.pot 2009-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/injection.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/interceptors.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/intro.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/master.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/next.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/part1.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/part2.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/part3.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/part4.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/producermethods.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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/ri-spi.pot
===================================================================
--- doc/trunk/reference/pot/ri-spi.pot 2009-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/ri-spi.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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"
@@ -368,21 +368,55 @@
#: ri-spi.xml:138
#, no-c-format
msgid ""
-"If you are integrating the Web Beans into an environment that supports "
-"deployment of applications, you must enable, automatically, or through user "
-"configuation, classloader isolation for each Web Beans application"
+"If you are integrating the Web Beans RI into an environment that supports "
+"deployment of multiple applications, you must enable, automatically, or "
+"through user configuation, classloader isolation for each Web Beans "
+"application."
msgstr ""
#. Tag: term
#: ri-spi.xml:147
#, no-c-format
-msgid "The <literal>webbeans-ri.jar</literal>"
+msgid "Servlet listener"
msgstr ""
#. Tag: para
#: ri-spi.xml:151
#, no-c-format
msgid ""
+"If you are integrating the Web Beans into a Servlet environment you must "
+"register <literal>org.jboss.webbeans.servlet.WebBeansListener</literal> as a "
+"Servlet listener, either automatically, or through user configuration, for "
+"each Web Beans application which uses Servlet."
+msgstr ""
+
+#. Tag: term
+#: ri-spi.xml:162
+#, no-c-format
+msgid "Session Bean Interceptor"
+msgstr ""
+
+#. Tag: para
+#: ri-spi.xml:166
+#, no-c-format
+msgid ""
+"If you are integrating the Web Beans into an EJB environment you must "
+"register <literal>org.jboss.webbeans.ejb.SessionBeanInterceptor</literal> as "
+"a EJB interceptor for all EJBs in the application, either automatically, or "
+"through user configuration, for each Web Beans application which uses "
+"enterprise beans."
+msgstr ""
+
+#. Tag: term
+#: ri-spi.xml:177
+#, no-c-format
+msgid "The <literal>webbeans-ri.jar</literal>"
+msgstr ""
+
+#. Tag: para
+#: ri-spi.xml:181
+#, no-c-format
+msgid ""
"If you are integrating the Web Beans into an environment that supports "
"deployment of applications, you must insert the <literal>webbeans-ri.jar</"
"literal> into the applications isolated classloader. It cannot be loaded "
Modified: doc/trunk/reference/pot/ri.pot
===================================================================
--- doc/trunk/reference/pot/ri.pot 2009-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/ri.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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"
@@ -357,11 +357,6 @@
" <session-config>\n"
" <session-timeout>10</session-timeout>\n"
" </session-config>\n"
-" \n"
-" <listener>\n"
-" <listener-class>org.jboss.webbeans.servlet.WebBeansListener</listener-"
-"class>\n"
-" </listener>\n"
"\n"
"</web-app>]]></programlisting> <calloutlist> <callout arearefs=\"faces."
"servlet\"> <para> Enable and load the JSF servlet </para> </callout> "
@@ -370,20 +365,16 @@
"<callout arearefs=\"faces.default.suffix\"> <para> Tell JSF that we will be "
"giving our source files (facelets) an extension of <literal>.jsf</literal> </"
"para> </callout> <callout arearefs=\"session.timeout\"> <para> Configure a "
-"session timeout of 10 minutes </para> </callout> <callout arearefs="
-"\"webbeans.listener\"> <para> Configure the Web Beans listener, so that Web "
-"Beans services can be used in the servlet request </para> </callout> </"
-"calloutlist> </programlistingco> <note> <para> The only configuration "
-"required by the Web Beans RI in <literal>web.xml</literal> is to add the Web "
-"Beans listener. </para> <para> Whilst this demo is a JSF demo, you can use "
-"the Web Beans RI with any Servlet based web framework; just configure the "
-"Web Beans listener. </para> </note> <para> Let's take a look at the Facelet "
-"view: </para> <programlistingco> <areaspec> <area id=\"template\" coords=\"8"
-"\"/> <area id=\"messages\" coords=\"12\"/> <area id=\"instructions\" coords="
-"\"19\"/> <area id=\"guess\" coords=\"25\"/> <area id=\"validator\" coords="
-"\"30\"/> <area id=\"submit\" coords=\"33\"/> </areaspec> <programlisting><!"
-"[CDATA[<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" "
-"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
+"session timeout of 10 minutes </para> </callout> </calloutlist> </"
+"programlistingco> <note> <para> Whilst this demo is a JSF demo, you can use "
+"the Web Beans RI with any Servlet based web framework. </para> </note> "
+"<para> Let's take a look at the Facelet view: </para> <programlistingco> "
+"<areaspec> <area id=\"template\" coords=\"8\"/> <area id=\"messages\" coords="
+"\"12\"/> <area id=\"instructions\" coords=\"19\"/> <area id=\"guess\" coords="
+"\"25\"/> <area id=\"validator\" coords=\"30\"/> <area id=\"submit\" coords="
+"\"33\"/> </areaspec> <programlisting><![CDATA[<!DOCTYPE html PUBLIC \"-//"
+"W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/"
+"xhtml1-transitional.dtd\">\n"
"<html xmlns=\"http://www.w3.org/1999/xhtml\"\n"
" xmlns:ui=\"http://java.sun.com/jsf/facelets\"\n"
" xmlns:h=\"http://java.sun.com/jsf/html\"\n"
@@ -450,7 +441,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:298
+#: ri.xml:287
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -459,7 +450,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:304
+#: ri.xml:293
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -470,7 +461,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:306
+#: ri.xml:295
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for "
@@ -478,7 +469,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:311
+#: ri.xml:300
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -490,7 +481,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:313
+#: ri.xml:302
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the "
@@ -499,7 +490,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:319
+#: ri.xml:308
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -528,7 +519,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:321
+#: ri.xml:310
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application scoped; "
@@ -536,7 +527,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:326
+#: ri.xml:315
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped <literal>Game</"
@@ -544,7 +535,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:331
+#: ri.xml:320
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal> annotation, so "
@@ -555,7 +546,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:339
+#: ri.xml:328
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -657,13 +648,13 @@
msgstr ""
#. Tag: title
-#: ri.xml:343
+#: ri.xml:332
#, no-c-format
msgid "The translator example"
msgstr ""
#. Tag: para
-#: ri.xml:345
+#: ri.xml:334
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them "
@@ -671,7 +662,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:350
+#: ri.xml:339
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs and enterprise "
@@ -680,7 +671,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:357
+#: ri.xml:346
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -688,17 +679,16 @@
msgstr ""
#. Tag: para
-#: ri.xml:363
+#: ri.xml:352
#, 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> and <literal>jboss-app.xml</"
-"literal> for us:"
+"generates the <literal>application.xml</literal> for us:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:370
+#: ri.xml:358
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -712,57 +702,32 @@
" <contextRoot>/webbeans-translator</contextRoot>\n"
" </webModule>\n"
" </modules>\n"
-" <jboss>\n"
-" <loader-repository>webbeans.jboss.org:loader=webbeans-translator</"
-"loader-repository>\n"
-" </jboss>\n"
" </configuration>\n"
"</plugin>]]>"
msgstr ""
#. Tag: para
-#: ri.xml:372
+#: ri.xml:360
#, no-c-format
msgid ""
-"We're doing a couple of things here - firstly we set the context path, which "
-"gives us a nice url (<ulink url=\"http://localhost:8080/webbeans-translator"
-"\">http://localhost:8080/webbeans-translator</ulink>) and we also enable "
-"class loader isolation for JBoss AS."
+"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 ""
#. Tag: para
-#: ri.xml:380
+#: ri.xml:366
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
-"<literal>META-INF/jboss-app.xml</literal>:"
+"<literal>META-INF/application.xml</literal>:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:385
+#: ri.xml:371
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<!DOCTYPE jboss-app\n"
-" PUBLIC \"-//JBoss//DTD J2EE Application 4.2//EN\"\n"
-" \"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd\">\n"
-"<jboss-app>\n"
-" <loader-repository>webbeans.jboss.org:loader=webbeans-translator</loader-"
-"repository>\n"
-"</jboss-app>]]>"
-msgstr ""
-
-#. Tag: para
-#: ri.xml:387
-#, no-c-format
-msgid "and <literal>META-INF/application.xml</literal>:"
-msgstr ""
-
-#. Tag: programlisting
-#: ri.xml:391
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<application xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://"
@@ -785,17 +750,16 @@
msgstr ""
#. Tag: para
-#: ri.xml:394
+#: ri.xml:374
#, 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 enabled Facelets) and a <literal>web."
-"xml</literal> (to enable JSF and attach Web Beans services to the servlet "
-"container) in <literal>WebContent/WEB-INF</literal>."
+"xml</literal> (to enable JSF) in <literal>WebContent/WEB-INF</literal>."
msgstr ""
#. Tag: para
-#: ri.xml:401
+#: ri.xml:381
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -804,7 +768,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:407
+#: ri.xml:387
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -837,7 +801,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:409
+#: ri.xml:389
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate "
@@ -845,49 +809,17 @@
msgstr ""
#. Tag: para
-#: ri.xml:414
+#: ri.xml:394
#, no-c-format
msgid ""
"Finally, let's look at the ejb module, <literal>webbeans-translator-ejb</"
-"literal>. There are two configuration files in <literal>src/main/resources/"
-"META-INF</literal>, an empty <literal>web-beans.xml</literal>, used to mark "
-"the archive as containing Web Beans, and <literal>ejb-jar.xml</literal>. Web "
-"Beans provides injection and initializtion services for all EJBs, and uses "
-"<literal>ejb-jar.xml</literal> to enable this, you'll need this in any EJB "
-"project which uses Web Beans:"
+"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 ""
-#. Tag: programlisting
-#: ri.xml:426
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<ejb-jar xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n"
-" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java."
-"sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n"
-" version=\"3.0\">\n"
-" \n"
-" <interceptors>\n"
-" <interceptor>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor>\n"
-" </interceptors>\n"
-" \n"
-" <assembly-descriptor>\n"
-" <interceptor-binding>\n"
-" <ejb-name>*</ejb-name>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor-binding>\n"
-" </assembly-descriptor>\n"
-" \n"
-"</ejb-jar>]]>"
-msgstr ""
-
#. Tag: para
-#: ri.xml:428
+#: ri.xml:402
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two "
@@ -899,7 +831,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:438
+#: ri.xml:412
#, no-c-format
msgid ""
"Both <literal>SentanceParser</literal> and <literal>TextTranslator</literal> "
@@ -908,7 +840,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:444
+#: ri.xml:418
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -924,7 +856,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:446
+#: ri.xml:420
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local business "
@@ -933,7 +865,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:452
+#: ri.xml:426
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -942,7 +874,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:458
+#: ri.xml:432
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -955,19 +887,19 @@
msgstr ""
#. Tag: para
-#: ri.xml:460
+#: ri.xml:434
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr ""
#. Tag: para
-#: ri.xml:464
+#: ri.xml:438
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:468
+#: ri.xml:442
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -978,7 +910,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:470
+#: ri.xml:444
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -986,7 +918,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:476
+#: ri.xml:450
#, no-c-format
msgid ""
"That concludes our short tour of the Web Beans RI examples. For more on the "
@@ -996,7 +928,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:482
+#: ri.xml:456
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
Modified: doc/trunk/reference/pot/scopescontexts.pot
===================================================================
--- doc/trunk/reference/pot/scopescontexts.pot 2009-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/scopescontexts.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/specialization.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/stereotypes.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pot/xml.pot 2009-01-08 14:13:34 UTC (rev 829)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+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/ri-spi.po
===================================================================
--- doc/trunk/reference/pt-BR/ri-spi.po 2009-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pt-BR/ri-spi.po 2009-01-08 14:13:34 UTC (rev 829)
@@ -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-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+0000\n"
"PO-Revision-Date: 2009-01-06 11:30+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -367,21 +367,55 @@
#: ri-spi.xml:138
#, no-c-format
msgid ""
-"If you are integrating the Web Beans into an environment that supports "
-"deployment of applications, you must enable, automatically, or through user "
-"configuation, classloader isolation for each Web Beans application"
+"If you are integrating the Web Beans RI into an environment that supports "
+"deployment of multiple applications, you must enable, automatically, or "
+"through user configuation, classloader isolation for each Web Beans "
+"application."
msgstr ""
#. Tag: term
#: ri-spi.xml:147
#, no-c-format
-msgid "The <literal>webbeans-ri.jar</literal>"
+msgid "Servlet listener"
msgstr ""
#. Tag: para
#: ri-spi.xml:151
#, no-c-format
msgid ""
+"If you are integrating the Web Beans into a Servlet environment you must "
+"register <literal>org.jboss.webbeans.servlet.WebBeansListener</literal> as a "
+"Servlet listener, either automatically, or through user configuration, for "
+"each Web Beans application which uses Servlet."
+msgstr ""
+
+#. Tag: term
+#: ri-spi.xml:162
+#, no-c-format
+msgid "Session Bean Interceptor"
+msgstr ""
+
+#. Tag: para
+#: ri-spi.xml:166
+#, no-c-format
+msgid ""
+"If you are integrating the Web Beans into an EJB environment you must "
+"register <literal>org.jboss.webbeans.ejb.SessionBeanInterceptor</literal> as "
+"a EJB interceptor for all EJBs in the application, either automatically, or "
+"through user configuration, for each Web Beans application which uses "
+"enterprise beans."
+msgstr ""
+
+#. Tag: term
+#: ri-spi.xml:177
+#, no-c-format
+msgid "The <literal>webbeans-ri.jar</literal>"
+msgstr ""
+
+#. Tag: para
+#: ri-spi.xml:181
+#, no-c-format
+msgid ""
"If you are integrating the Web Beans into an environment that supports "
"deployment of applications, you must insert the <literal>webbeans-ri.jar</"
"literal> into the applications isolated classloader. It cannot be loaded "
Modified: doc/trunk/reference/pt-BR/ri.po
===================================================================
--- doc/trunk/reference/pt-BR/ri.po 2009-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/pt-BR/ri.po 2009-01-08 14:13:34 UTC (rev 829)
@@ -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-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+0000\n"
"PO-Revision-Date: 2009-01-06 11:30+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -356,11 +356,6 @@
" <session-config>\n"
" <session-timeout>10</session-timeout>\n"
" </session-config>\n"
-" \n"
-" <listener>\n"
-" <listener-class>org.jboss.webbeans.servlet.WebBeansListener</listener-"
-"class>\n"
-" </listener>\n"
"\n"
"</web-app>]]></programlisting> <calloutlist> <callout arearefs=\"faces."
"servlet\"> <para> Enable and load the JSF servlet </para> </callout> "
@@ -369,20 +364,16 @@
"<callout arearefs=\"faces.default.suffix\"> <para> Tell JSF that we will be "
"giving our source files (facelets) an extension of <literal>.jsf</literal> </"
"para> </callout> <callout arearefs=\"session.timeout\"> <para> Configure a "
-"session timeout of 10 minutes </para> </callout> <callout arearefs="
-"\"webbeans.listener\"> <para> Configure the Web Beans listener, so that Web "
-"Beans services can be used in the servlet request </para> </callout> </"
-"calloutlist> </programlistingco> <note> <para> The only configuration "
-"required by the Web Beans RI in <literal>web.xml</literal> is to add the Web "
-"Beans listener. </para> <para> Whilst this demo is a JSF demo, you can use "
-"the Web Beans RI with any Servlet based web framework; just configure the "
-"Web Beans listener. </para> </note> <para> Let's take a look at the Facelet "
-"view: </para> <programlistingco> <areaspec> <area id=\"template\" coords=\"8"
-"\"/> <area id=\"messages\" coords=\"12\"/> <area id=\"instructions\" coords="
-"\"19\"/> <area id=\"guess\" coords=\"25\"/> <area id=\"validator\" coords="
-"\"30\"/> <area id=\"submit\" coords=\"33\"/> </areaspec> <programlisting><!"
-"[CDATA[<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" "
-"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
+"session timeout of 10 minutes </para> </callout> </calloutlist> </"
+"programlistingco> <note> <para> Whilst this demo is a JSF demo, you can use "
+"the Web Beans RI with any Servlet based web framework. </para> </note> "
+"<para> Let's take a look at the Facelet view: </para> <programlistingco> "
+"<areaspec> <area id=\"template\" coords=\"8\"/> <area id=\"messages\" coords="
+"\"12\"/> <area id=\"instructions\" coords=\"19\"/> <area id=\"guess\" coords="
+"\"25\"/> <area id=\"validator\" coords=\"30\"/> <area id=\"submit\" coords="
+"\"33\"/> </areaspec> <programlisting><![CDATA[<!DOCTYPE html PUBLIC \"-//"
+"W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/"
+"xhtml1-transitional.dtd\">\n"
"<html xmlns=\"http://www.w3.org/1999/xhtml\"\n"
" xmlns:ui=\"http://java.sun.com/jsf/facelets\"\n"
" xmlns:h=\"http://java.sun.com/jsf/html\"\n"
@@ -449,7 +440,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:298
+#: ri.xml:287
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -458,7 +449,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:304
+#: ri.xml:293
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -469,7 +460,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:306
+#: ri.xml:295
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for "
@@ -477,7 +468,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:311
+#: ri.xml:300
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -489,7 +480,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:313
+#: ri.xml:302
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the "
@@ -498,7 +489,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:319
+#: ri.xml:308
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -527,7 +518,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:321
+#: ri.xml:310
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application scoped; "
@@ -535,7 +526,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:326
+#: ri.xml:315
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped <literal>Game</"
@@ -543,7 +534,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:331
+#: ri.xml:320
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal> annotation, so "
@@ -554,7 +545,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:339
+#: ri.xml:328
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -656,13 +647,13 @@
msgstr ""
#. Tag: title
-#: ri.xml:343
+#: ri.xml:332
#, no-c-format
msgid "The translator example"
msgstr ""
#. Tag: para
-#: ri.xml:345
+#: ri.xml:334
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them "
@@ -670,7 +661,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:350
+#: ri.xml:339
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs and enterprise "
@@ -679,7 +670,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:357
+#: ri.xml:346
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -687,17 +678,16 @@
msgstr ""
#. Tag: para
-#: ri.xml:363
+#: ri.xml:352
#, 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> and <literal>jboss-app.xml</"
-"literal> for us:"
+"generates the <literal>application.xml</literal> for us:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:370
+#: ri.xml:358
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -711,57 +701,32 @@
" <contextRoot>/webbeans-translator</contextRoot>\n"
" </webModule>\n"
" </modules>\n"
-" <jboss>\n"
-" <loader-repository>webbeans.jboss.org:loader=webbeans-translator</"
-"loader-repository>\n"
-" </jboss>\n"
" </configuration>\n"
"</plugin>]]>"
msgstr ""
#. Tag: para
-#: ri.xml:372
+#: ri.xml:360
#, no-c-format
msgid ""
-"We're doing a couple of things here - firstly we set the context path, which "
-"gives us a nice url (<ulink url=\"http://localhost:8080/webbeans-translator"
-"\">http://localhost:8080/webbeans-translator</ulink>) and we also enable "
-"class loader isolation for JBoss AS."
+"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 ""
#. Tag: para
-#: ri.xml:380
+#: ri.xml:366
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
-"<literal>META-INF/jboss-app.xml</literal>:"
+"<literal>META-INF/application.xml</literal>:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:385
+#: ri.xml:371
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<!DOCTYPE jboss-app\n"
-" PUBLIC \"-//JBoss//DTD J2EE Application 4.2//EN\"\n"
-" \"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd\">\n"
-"<jboss-app>\n"
-" <loader-repository>webbeans.jboss.org:loader=webbeans-translator</loader-"
-"repository>\n"
-"</jboss-app>]]>"
-msgstr ""
-
-#. Tag: para
-#: ri.xml:387
-#, no-c-format
-msgid "and <literal>META-INF/application.xml</literal>:"
-msgstr ""
-
-#. Tag: programlisting
-#: ri.xml:391
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<application xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://"
@@ -784,17 +749,16 @@
msgstr ""
#. Tag: para
-#: ri.xml:394
+#: ri.xml:374
#, 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 enabled Facelets) and a <literal>web."
-"xml</literal> (to enable JSF and attach Web Beans services to the servlet "
-"container) in <literal>WebContent/WEB-INF</literal>."
+"xml</literal> (to enable JSF) in <literal>WebContent/WEB-INF</literal>."
msgstr ""
#. Tag: para
-#: ri.xml:401
+#: ri.xml:381
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -803,7 +767,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:407
+#: ri.xml:387
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -836,7 +800,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:409
+#: ri.xml:389
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate "
@@ -844,49 +808,17 @@
msgstr ""
#. Tag: para
-#: ri.xml:414
+#: ri.xml:394
#, no-c-format
msgid ""
"Finally, let's look at the ejb module, <literal>webbeans-translator-ejb</"
-"literal>. There are two configuration files in <literal>src/main/resources/"
-"META-INF</literal>, an empty <literal>web-beans.xml</literal>, used to mark "
-"the archive as containing Web Beans, and <literal>ejb-jar.xml</literal>. Web "
-"Beans provides injection and initializtion services for all EJBs, and uses "
-"<literal>ejb-jar.xml</literal> to enable this, you'll need this in any EJB "
-"project which uses Web Beans:"
+"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 ""
-#. Tag: programlisting
-#: ri.xml:426
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<ejb-jar xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n"
-" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java."
-"sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n"
-" version=\"3.0\">\n"
-" \n"
-" <interceptors>\n"
-" <interceptor>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor>\n"
-" </interceptors>\n"
-" \n"
-" <assembly-descriptor>\n"
-" <interceptor-binding>\n"
-" <ejb-name>*</ejb-name>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor-binding>\n"
-" </assembly-descriptor>\n"
-" \n"
-"</ejb-jar>]]>"
-msgstr ""
-
#. Tag: para
-#: ri.xml:428
+#: ri.xml:402
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two "
@@ -898,7 +830,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:438
+#: ri.xml:412
#, no-c-format
msgid ""
"Both <literal>SentanceParser</literal> and <literal>TextTranslator</literal> "
@@ -907,7 +839,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:444
+#: ri.xml:418
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -923,7 +855,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:446
+#: ri.xml:420
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local business "
@@ -932,7 +864,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:452
+#: ri.xml:426
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -941,7 +873,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:458
+#: ri.xml:432
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -954,19 +886,19 @@
msgstr ""
#. Tag: para
-#: ri.xml:460
+#: ri.xml:434
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr ""
#. Tag: para
-#: ri.xml:464
+#: ri.xml:438
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:468
+#: ri.xml:442
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -977,7 +909,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:470
+#: ri.xml:444
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -985,7 +917,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:476
+#: ri.xml:450
#, no-c-format
msgid ""
"That concludes our short tour of the Web Beans RI examples. For more on the "
@@ -995,7 +927,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:482
+#: ri.xml:456
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
Modified: doc/trunk/reference/zh-CN/ri-spi.po
===================================================================
--- doc/trunk/reference/zh-CN/ri-spi.po 2009-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/zh-CN/ri-spi.po 2009-01-08 14:13:34 UTC (rev 829)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: master.xml \n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+0000\n"
"PO-Revision-Date: 2008-12-20 22:07+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -367,21 +367,55 @@
#: ri-spi.xml:138
#, no-c-format
msgid ""
-"If you are integrating the Web Beans into an environment that supports "
-"deployment of applications, you must enable, automatically, or through user "
-"configuation, classloader isolation for each Web Beans application"
+"If you are integrating the Web Beans RI into an environment that supports "
+"deployment of multiple applications, you must enable, automatically, or "
+"through user configuation, classloader isolation for each Web Beans "
+"application."
msgstr ""
#. Tag: term
#: ri-spi.xml:147
#, no-c-format
-msgid "The <literal>webbeans-ri.jar</literal>"
+msgid "Servlet listener"
msgstr ""
#. Tag: para
#: ri-spi.xml:151
#, no-c-format
msgid ""
+"If you are integrating the Web Beans into a Servlet environment you must "
+"register <literal>org.jboss.webbeans.servlet.WebBeansListener</literal> as a "
+"Servlet listener, either automatically, or through user configuration, for "
+"each Web Beans application which uses Servlet."
+msgstr ""
+
+#. Tag: term
+#: ri-spi.xml:162
+#, no-c-format
+msgid "Session Bean Interceptor"
+msgstr ""
+
+#. Tag: para
+#: ri-spi.xml:166
+#, no-c-format
+msgid ""
+"If you are integrating the Web Beans into an EJB environment you must "
+"register <literal>org.jboss.webbeans.ejb.SessionBeanInterceptor</literal> as "
+"a EJB interceptor for all EJBs in the application, either automatically, or "
+"through user configuration, for each Web Beans application which uses "
+"enterprise beans."
+msgstr ""
+
+#. Tag: term
+#: ri-spi.xml:177
+#, no-c-format
+msgid "The <literal>webbeans-ri.jar</literal>"
+msgstr ""
+
+#. Tag: para
+#: ri-spi.xml:181
+#, no-c-format
+msgid ""
"If you are integrating the Web Beans into an environment that supports "
"deployment of applications, you must insert the <literal>webbeans-ri.jar</"
"literal> into the applications isolated classloader. It cannot be loaded "
Modified: doc/trunk/reference/zh-CN/ri.po
===================================================================
--- doc/trunk/reference/zh-CN/ri.po 2009-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/zh-CN/ri.po 2009-01-08 14:13:34 UTC (rev 829)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: master.xml \n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-04 23:18+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+0000\n"
"PO-Revision-Date: 2008-12-19 20:26+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -356,11 +356,6 @@
" <session-config>\n"
" <session-timeout>10</session-timeout>\n"
" </session-config>\n"
-" \n"
-" <listener>\n"
-" <listener-class>org.jboss.webbeans.servlet.WebBeansListener</listener-"
-"class>\n"
-" </listener>\n"
"\n"
"</web-app>]]></programlisting> <calloutlist> <callout arearefs=\"faces."
"servlet\"> <para> Enable and load the JSF servlet </para> </callout> "
@@ -369,20 +364,16 @@
"<callout arearefs=\"faces.default.suffix\"> <para> Tell JSF that we will be "
"giving our source files (facelets) an extension of <literal>.jsf</literal> </"
"para> </callout> <callout arearefs=\"session.timeout\"> <para> Configure a "
-"session timeout of 10 minutes </para> </callout> <callout arearefs="
-"\"webbeans.listener\"> <para> Configure the Web Beans listener, so that Web "
-"Beans services can be used in the servlet request </para> </callout> </"
-"calloutlist> </programlistingco> <note> <para> The only configuration "
-"required by the Web Beans RI in <literal>web.xml</literal> is to add the Web "
-"Beans listener. </para> <para> Whilst this demo is a JSF demo, you can use "
-"the Web Beans RI with any Servlet based web framework; just configure the "
-"Web Beans listener. </para> </note> <para> Let's take a look at the Facelet "
-"view: </para> <programlistingco> <areaspec> <area id=\"template\" coords=\"8"
-"\"/> <area id=\"messages\" coords=\"12\"/> <area id=\"instructions\" coords="
-"\"19\"/> <area id=\"guess\" coords=\"25\"/> <area id=\"validator\" coords="
-"\"30\"/> <area id=\"submit\" coords=\"33\"/> </areaspec> <programlisting><!"
-"[CDATA[<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" "
-"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
+"session timeout of 10 minutes </para> </callout> </calloutlist> </"
+"programlistingco> <note> <para> Whilst this demo is a JSF demo, you can use "
+"the Web Beans RI with any Servlet based web framework. </para> </note> "
+"<para> Let's take a look at the Facelet view: </para> <programlistingco> "
+"<areaspec> <area id=\"template\" coords=\"8\"/> <area id=\"messages\" coords="
+"\"12\"/> <area id=\"instructions\" coords=\"19\"/> <area id=\"guess\" coords="
+"\"25\"/> <area id=\"validator\" coords=\"30\"/> <area id=\"submit\" coords="
+"\"33\"/> </areaspec> <programlisting><![CDATA[<!DOCTYPE html PUBLIC \"-//"
+"W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/"
+"xhtml1-transitional.dtd\">\n"
"<html xmlns=\"http://www.w3.org/1999/xhtml\"\n"
" xmlns:ui=\"http://java.sun.com/jsf/facelets\"\n"
" xmlns:h=\"http://java.sun.com/jsf/html\"\n"
@@ -449,7 +440,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:298
+#: ri.xml:287
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -458,7 +449,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:304
+#: ri.xml:293
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -469,7 +460,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:306
+#: ri.xml:295
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for "
@@ -477,7 +468,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:311
+#: ri.xml:300
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -489,7 +480,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:313
+#: ri.xml:302
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the "
@@ -498,7 +489,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:319
+#: ri.xml:308
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -527,7 +518,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:321
+#: ri.xml:310
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application scoped; "
@@ -535,7 +526,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:326
+#: ri.xml:315
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped <literal>Game</"
@@ -543,7 +534,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:331
+#: ri.xml:320
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal> annotation, so "
@@ -554,7 +545,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:339
+#: ri.xml:328
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -656,13 +647,13 @@
msgstr ""
#. Tag: title
-#: ri.xml:343
+#: ri.xml:332
#, no-c-format
msgid "The translator example"
msgstr ""
#. Tag: para
-#: ri.xml:345
+#: ri.xml:334
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them "
@@ -670,7 +661,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:350
+#: ri.xml:339
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs and enterprise "
@@ -679,7 +670,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:357
+#: ri.xml:346
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -687,17 +678,16 @@
msgstr ""
#. Tag: para
-#: ri.xml:363
+#: ri.xml:352
#, 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> and <literal>jboss-app.xml</"
-"literal> for us:"
+"generates the <literal>application.xml</literal> for us:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:370
+#: ri.xml:358
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -711,57 +701,32 @@
" <contextRoot>/webbeans-translator</contextRoot>\n"
" </webModule>\n"
" </modules>\n"
-" <jboss>\n"
-" <loader-repository>webbeans.jboss.org:loader=webbeans-translator</"
-"loader-repository>\n"
-" </jboss>\n"
" </configuration>\n"
"</plugin>]]>"
msgstr ""
#. Tag: para
-#: ri.xml:372
+#: ri.xml:360
#, no-c-format
msgid ""
-"We're doing a couple of things here - firstly we set the context path, which "
-"gives us a nice url (<ulink url=\"http://localhost:8080/webbeans-translator"
-"\">http://localhost:8080/webbeans-translator</ulink>) and we also enable "
-"class loader isolation for JBoss AS."
+"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 ""
#. Tag: para
-#: ri.xml:380
+#: ri.xml:366
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
-"<literal>META-INF/jboss-app.xml</literal>:"
+"<literal>META-INF/application.xml</literal>:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:385
+#: ri.xml:371
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<!DOCTYPE jboss-app\n"
-" PUBLIC \"-//JBoss//DTD J2EE Application 4.2//EN\"\n"
-" \"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd\">\n"
-"<jboss-app>\n"
-" <loader-repository>webbeans.jboss.org:loader=webbeans-translator</loader-"
-"repository>\n"
-"</jboss-app>]]>"
-msgstr ""
-
-#. Tag: para
-#: ri.xml:387
-#, no-c-format
-msgid "and <literal>META-INF/application.xml</literal>:"
-msgstr ""
-
-#. Tag: programlisting
-#: ri.xml:391
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<application xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://"
@@ -784,17 +749,16 @@
msgstr ""
#. Tag: para
-#: ri.xml:394
+#: ri.xml:374
#, 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 enabled Facelets) and a <literal>web."
-"xml</literal> (to enable JSF and attach Web Beans services to the servlet "
-"container) in <literal>WebContent/WEB-INF</literal>."
+"xml</literal> (to enable JSF) in <literal>WebContent/WEB-INF</literal>."
msgstr ""
#. Tag: para
-#: ri.xml:401
+#: ri.xml:381
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -803,7 +767,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:407
+#: ri.xml:387
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -836,7 +800,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:409
+#: ri.xml:389
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate "
@@ -844,49 +808,17 @@
msgstr ""
#. Tag: para
-#: ri.xml:414
+#: ri.xml:394
#, no-c-format
msgid ""
"Finally, let's look at the ejb module, <literal>webbeans-translator-ejb</"
-"literal>. There are two configuration files in <literal>src/main/resources/"
-"META-INF</literal>, an empty <literal>web-beans.xml</literal>, used to mark "
-"the archive as containing Web Beans, and <literal>ejb-jar.xml</literal>. Web "
-"Beans provides injection and initializtion services for all EJBs, and uses "
-"<literal>ejb-jar.xml</literal> to enable this, you'll need this in any EJB "
-"project which uses Web Beans:"
+"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 ""
-#. Tag: programlisting
-#: ri.xml:426
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<ejb-jar xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n"
-" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java."
-"sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n"
-" version=\"3.0\">\n"
-" \n"
-" <interceptors>\n"
-" <interceptor>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor>\n"
-" </interceptors>\n"
-" \n"
-" <assembly-descriptor>\n"
-" <interceptor-binding>\n"
-" <ejb-name>*</ejb-name>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor-binding>\n"
-" </assembly-descriptor>\n"
-" \n"
-"</ejb-jar>]]>"
-msgstr ""
-
#. Tag: para
-#: ri.xml:428
+#: ri.xml:402
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two "
@@ -898,7 +830,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:438
+#: ri.xml:412
#, no-c-format
msgid ""
"Both <literal>SentanceParser</literal> and <literal>TextTranslator</literal> "
@@ -907,7 +839,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:444
+#: ri.xml:418
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -923,7 +855,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:446
+#: ri.xml:420
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local business "
@@ -932,7 +864,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:452
+#: ri.xml:426
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -941,7 +873,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:458
+#: ri.xml:432
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -954,19 +886,19 @@
msgstr ""
#. Tag: para
-#: ri.xml:460
+#: ri.xml:434
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr ""
#. Tag: para
-#: ri.xml:464
+#: ri.xml:438
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:468
+#: ri.xml:442
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -977,7 +909,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:470
+#: ri.xml:444
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -985,7 +917,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:476
+#: ri.xml:450
#, no-c-format
msgid ""
"That concludes our short tour of the Web Beans RI examples. For more on the "
@@ -995,7 +927,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:482
+#: ri.xml:456
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
Modified: doc/trunk/reference/zh-TW/ri-spi.po
===================================================================
--- doc/trunk/reference/zh-TW/ri-spi.po 2009-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/zh-TW/ri-spi.po 2009-01-08 14:13:34 UTC (rev 829)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: ri-spi\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+0000\n"
"PO-Revision-Date: 2009-01-08 10:59+1000\n"
"Last-Translator: Terry Chuang <tchuang(a)redhat.com>\n"
"Language-Team: Traditional Chinese <zh(a)li.org>\n"
@@ -495,7 +495,8 @@
#: ri-spi.xml:117
#, no-c-format
msgid "org.jboss.webbeans.resources.spi.ResourceLoader=com.acme.ResourceLoader"
-msgstr "org.jboss.webbeans.resources.spi.ResourceLoader=com.acme.ResourceLoader"
+msgstr ""
+"org.jboss.webbeans.resources.spi.ResourceLoader=com.acme.ResourceLoader"
#. Tag: title
#: ri-spi.xml:124
@@ -521,19 +522,53 @@
#: ri-spi.xml:138
#, no-c-format
msgid ""
-"If you are integrating the Web Beans into an environment that supports "
-"deployment of applications, you must enable, automatically, or through user "
-"configuation, classloader isolation for each Web Beans application"
+"If you are integrating the Web Beans RI into an environment that supports "
+"deployment of multiple applications, you must enable, automatically, or "
+"through user configuation, classloader isolation for each Web Beans "
+"application."
msgstr ""
#. Tag: term
#: ri-spi.xml:147
#, no-c-format
+msgid "Servlet listener"
+msgstr ""
+
+#. Tag: para
+#: ri-spi.xml:151
+#, no-c-format
+msgid ""
+"If you are integrating the Web Beans into a Servlet environment you must "
+"register <literal>org.jboss.webbeans.servlet.WebBeansListener</literal> as a "
+"Servlet listener, either automatically, or through user configuration, for "
+"each Web Beans application which uses Servlet."
+msgstr ""
+
+#. Tag: term
+#: ri-spi.xml:162
+#, no-c-format
+msgid "Session Bean Interceptor"
+msgstr ""
+
+#. Tag: para
+#: ri-spi.xml:166
+#, no-c-format
+msgid ""
+"If you are integrating the Web Beans into an EJB environment you must "
+"register <literal>org.jboss.webbeans.ejb.SessionBeanInterceptor</literal> as "
+"a EJB interceptor for all EJBs in the application, either automatically, or "
+"through user configuration, for each Web Beans application which uses "
+"enterprise beans."
+msgstr ""
+
+#. Tag: term
+#: ri-spi.xml:177
+#, no-c-format
msgid "The <literal>webbeans-ri.jar</literal>"
msgstr "<literal>webbeans-ri.jar</literal>"
#. Tag: para
-#: ri-spi.xml:151
+#: ri-spi.xml:181
#, no-c-format
msgid ""
"If you are integrating the Web Beans into an environment that supports "
@@ -541,4 +576,3 @@
"literal> into the applications isolated classloader. It cannot be loaded "
"from a shared classloader."
msgstr ""
-
Modified: doc/trunk/reference/zh-TW/ri.po
===================================================================
--- doc/trunk/reference/zh-TW/ri.po 2009-01-08 14:12:43 UTC (rev 828)
+++ doc/trunk/reference/zh-TW/ri.po 2009-01-08 14:13:34 UTC (rev 829)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: ri\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+0000\n"
"PO-Revision-Date: 2009-01-08 10:58+1000\n"
"Last-Translator: Terry Chuang <tchuang(a)redhat.com>\n"
"Language-Team: Traditional Chinese <zh(a)li.org>\n"
@@ -177,7 +177,8 @@
#. Tag: para
#: ri.xml:93
#, no-c-format
-msgid "The build scripts for the examples offer a number of targets, these are:"
+msgid ""
+"The build scripts for the examples offer a number of targets, these are:"
msgstr ""
#. Tag: para
@@ -197,7 +198,8 @@
#. Tag: para
#: ri.xml:111
#, no-c-format
-msgid "<literal>ant deploy</literal> - deploy the example in compressed jar format"
+msgid ""
+"<literal>ant deploy</literal> - deploy the example in compressed jar format"
msgstr ""
#. Tag: para
@@ -344,7 +346,7 @@
#. Tag: section
#: ri.xml:185
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"faces.servlet\" coords=\"12\"/> "
"<area id=\"faces.servlet.mapping\" coords=\"18\"/> <area id=\"faces.default."
@@ -381,11 +383,6 @@
" <session-config>\n"
" <session-timeout>10</session-timeout>\n"
" </session-config>\n"
-" \n"
-" <listener>\n"
-" <listener-class>org.jboss.webbeans.servlet.WebBeansListener</listener-"
-"class>\n"
-" </listener>\n"
"\n"
"</web-app>]]></programlisting> <calloutlist> <callout arearefs=\"faces."
"servlet\"> <para> Enable and load the JSF servlet </para> </callout> "
@@ -394,20 +391,16 @@
"<callout arearefs=\"faces.default.suffix\"> <para> Tell JSF that we will be "
"giving our source files (facelets) an extension of <literal>.jsf</literal> </"
"para> </callout> <callout arearefs=\"session.timeout\"> <para> Configure a "
-"session timeout of 10 minutes </para> </callout> <callout arearefs="
-"\"webbeans.listener\"> <para> Configure the Web Beans listener, so that Web "
-"Beans services can be used in the servlet request </para> </callout> </"
-"calloutlist> </programlistingco> <note> <para> The only configuration "
-"required by the Web Beans RI in <literal>web.xml</literal> is to add the Web "
-"Beans listener. </para> <para> Whilst this demo is a JSF demo, you can use "
-"the Web Beans RI with any Servlet based web framework; just configure the "
-"Web Beans listener. </para> </note> <para> Let's take a look at the Facelet "
-"view: </para> <programlistingco> <areaspec> <area id=\"template\" coords=\"8"
-"\"/> <area id=\"messages\" coords=\"12\"/> <area id=\"instructions\" coords="
-"\"19\"/> <area id=\"guess\" coords=\"25\"/> <area id=\"validator\" coords="
-"\"30\"/> <area id=\"submit\" coords=\"33\"/> </areaspec> <programlisting><!"
-"[CDATA[<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" "
-"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
+"session timeout of 10 minutes </para> </callout> </calloutlist> </"
+"programlistingco> <note> <para> Whilst this demo is a JSF demo, you can use "
+"the Web Beans RI with any Servlet based web framework. </para> </note> "
+"<para> Let's take a look at the Facelet view: </para> <programlistingco> "
+"<areaspec> <area id=\"template\" coords=\"8\"/> <area id=\"messages\" coords="
+"\"12\"/> <area id=\"instructions\" coords=\"19\"/> <area id=\"guess\" coords="
+"\"25\"/> <area id=\"validator\" coords=\"30\"/> <area id=\"submit\" coords="
+"\"33\"/> </areaspec> <programlisting><![CDATA[<!DOCTYPE html PUBLIC \"-//"
+"W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/"
+"xhtml1-transitional.dtd\">\n"
"<html xmlns=\"http://www.w3.org/1999/xhtml\"\n"
" xmlns:ui=\"http://java.sun.com/jsf/facelets\"\n"
" xmlns:h=\"http://java.sun.com/jsf/html\"\n"
@@ -599,7 +592,7 @@
"programlistingco>"
#. Tag: para
-#: ri.xml:298
+#: ri.xml:287
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -608,7 +601,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:304
+#: ri.xml:293
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -624,7 +617,7 @@
"public @interface Random {}]]>"
#. Tag: para
-#: ri.xml:306
+#: ri.xml:295
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for "
@@ -632,7 +625,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:311
+#: ri.xml:300
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -650,7 +643,7 @@
"]]>"
#. Tag: para
-#: ri.xml:313
+#: ri.xml:302
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the "
@@ -659,7 +652,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:319
+#: ri.xml:308
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -711,7 +704,7 @@
"}]]>"
#. Tag: para
-#: ri.xml:321
+#: ri.xml:310
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application scoped; "
@@ -719,7 +712,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:326
+#: ri.xml:315
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped <literal>Game</"
@@ -727,7 +720,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:331
+#: ri.xml:320
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal> annotation, so "
@@ -738,7 +731,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:339
+#: ri.xml:328
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -936,13 +929,13 @@
"}]]>"
#. Tag: title
-#: ri.xml:343
+#: ri.xml:332
#, no-c-format
msgid "The translator example"
msgstr ""
#. Tag: para
-#: ri.xml:345
+#: ri.xml:334
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them "
@@ -950,7 +943,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:350
+#: ri.xml:339
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs and enterprise "
@@ -959,7 +952,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:357
+#: ri.xml:346
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -967,18 +960,17 @@
msgstr ""
#. Tag: para
-#: ri.xml:363
+#: ri.xml:352
#, 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> and <literal>jboss-app.xml</"
-"literal> for us:"
+"generates the <literal>application.xml</literal> for us:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:370
-#, no-c-format
+#: ri.xml:358
+#, fuzzy, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
" <groupId>org.apache.maven.plugins</groupId>\n"
@@ -991,10 +983,6 @@
" <contextRoot>/webbeans-translator</contextRoot>\n"
" </webModule>\n"
" </modules>\n"
-" <jboss>\n"
-" <loader-repository>webbeans.jboss.org:loader=webbeans-translator</"
-"loader-repository>\n"
-" </jboss>\n"
" </configuration>\n"
"</plugin>]]>"
msgstr ""
@@ -1017,53 +1005,24 @@
"</plugin>]]>"
#. Tag: para
-#: ri.xml:372
+#: ri.xml:360
#, no-c-format
msgid ""
-"We're doing a couple of things here - firstly we set the context path, which "
-"gives us a nice url (<ulink url=\"http://localhost:8080/webbeans-translator"
-"\">http://localhost:8080/webbeans-translator</ulink>) and we also enable "
-"class loader isolation for JBoss AS."
+"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 ""
#. Tag: para
-#: ri.xml:380
-#, no-c-format
+#: ri.xml:366
+#, fuzzy, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
-"<literal>META-INF/jboss-app.xml</literal>:"
-msgstr ""
-
-#. Tag: programlisting
-#: ri.xml:385
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<!DOCTYPE jboss-app\n"
-" PUBLIC \"-//JBoss//DTD J2EE Application 4.2//EN\"\n"
-" \"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd\">\n"
-"<jboss-app>\n"
-" <loader-repository>webbeans.jboss.org:loader=webbeans-translator</loader-"
-"repository>\n"
-"</jboss-app>]]>"
-msgstr ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<!DOCTYPE jboss-app\n"
-" PUBLIC \"-//JBoss//DTD J2EE Application 4.2//EN\"\n"
-" \"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd\">\n"
-"<jboss-app>\n"
-" <loader-repository>webbeans.jboss.org:loader=webbeans-translator</loader-"
-"repository>\n"
-"</jboss-app>]]>"
-
-#. Tag: para
-#: ri.xml:387
-#, no-c-format
-msgid "and <literal>META-INF/application.xml</literal>:"
+"<literal>META-INF/application.xml</literal>:"
msgstr "以及 <literal>META-INF/application.xml</literal>:"
#. Tag: programlisting
-#: ri.xml:391
+#: ri.xml:371
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
@@ -1109,17 +1068,16 @@
"</application>]]>"
#. Tag: para
-#: ri.xml:394
+#: ri.xml:374
#, 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 enabled Facelets) and a <literal>web."
-"xml</literal> (to enable JSF and attach Web Beans services to the servlet "
-"container) in <literal>WebContent/WEB-INF</literal>."
+"xml</literal> (to enable JSF) in <literal>WebContent/WEB-INF</literal>."
msgstr ""
#. Tag: para
-#: ri.xml:401
+#: ri.xml:381
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -1128,7 +1086,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:407
+#: ri.xml:387
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -1188,7 +1146,7 @@
"</h:form>]]>"
#. Tag: para
-#: ri.xml:409
+#: ri.xml:389
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate "
@@ -1196,72 +1154,17 @@
msgstr ""
#. Tag: para
-#: ri.xml:414
+#: ri.xml:394
#, no-c-format
msgid ""
"Finally, let's look at the ejb module, <literal>webbeans-translator-ejb</"
-"literal>. There are two configuration files in <literal>src/main/resources/"
-"META-INF</literal>, an empty <literal>web-beans.xml</literal>, used to mark "
-"the archive as containing Web Beans, and <literal>ejb-jar.xml</literal>. Web "
-"Beans provides injection and initializtion services for all EJBs, and uses "
-"<literal>ejb-jar.xml</literal> to enable this, you'll need this in any EJB "
-"project which uses Web Beans:"
+"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 ""
-#. Tag: programlisting
-#: ri.xml:426
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<ejb-jar xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n"
-" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java."
-"sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n"
-" version=\"3.0\">\n"
-" \n"
-" <interceptors>\n"
-" <interceptor>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor>\n"
-" </interceptors>\n"
-" \n"
-" <assembly-descriptor>\n"
-" <interceptor-binding>\n"
-" <ejb-name>*</ejb-name>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor-binding>\n"
-" </assembly-descriptor>\n"
-" \n"
-"</ejb-jar>]]>"
-msgstr ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<ejb-jar xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n"
-" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java."
-"sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n"
-" version=\"3.0\">\n"
-" \n"
-" <interceptors>\n"
-" <interceptor>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor>\n"
-" </interceptors>\n"
-" \n"
-" <assembly-descriptor>\n"
-" <interceptor-binding>\n"
-" <ejb-name>*</ejb-name>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor-binding>\n"
-" </assembly-descriptor>\n"
-" \n"
-"</ejb-jar>]]>"
-
#. Tag: para
-#: ri.xml:428
+#: ri.xml:402
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two "
@@ -1273,7 +1176,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:438
+#: ri.xml:412
#, no-c-format
msgid ""
"Both <literal>SentanceParser</literal> and <literal>TextTranslator</literal> "
@@ -1282,7 +1185,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:444
+#: ri.xml:418
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -1308,7 +1211,7 @@
" this.sentenceTranslator = sentenceTranslator;]]>"
#. Tag: para
-#: ri.xml:446
+#: ri.xml:420
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local business "
@@ -1317,7 +1220,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:452
+#: ri.xml:426
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -1326,7 +1229,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:458
+#: ri.xml:432
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -1346,19 +1249,19 @@
" @Current TextTranslator translator;]]>"
#. Tag: para
-#: ri.xml:460
+#: ri.xml:434
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr ""
#. Tag: para
-#: ri.xml:464
+#: ri.xml:438
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:468
+#: ri.xml:442
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -1374,7 +1277,7 @@
" }]]>"
#. Tag: para
-#: ri.xml:470
+#: ri.xml:444
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -1382,7 +1285,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:476
+#: ri.xml:450
#, no-c-format
msgid ""
"That concludes our short tour of the Web Beans RI examples. For more on the "
@@ -1392,10 +1295,77 @@
msgstr ""
#. Tag: para
-#: ri.xml:482
+#: ri.xml:456
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
"examples and translating this reference guide."
msgstr ""
+#~ msgid ""
+#~ "<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+#~ "<!DOCTYPE jboss-app\n"
+#~ " PUBLIC \"-//JBoss//DTD J2EE Application 4.2//EN\"\n"
+#~ " \"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd\">\n"
+#~ "<jboss-app>\n"
+#~ " <loader-repository>webbeans.jboss.org:loader=webbeans-translator</"
+#~ "loader-repository>\n"
+#~ "</jboss-app>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+#~ "<!DOCTYPE jboss-app\n"
+#~ " PUBLIC \"-//JBoss//DTD J2EE Application 4.2//EN\"\n"
+#~ " \"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd\">\n"
+#~ "<jboss-app>\n"
+#~ " <loader-repository>webbeans.jboss.org:loader=webbeans-translator</"
+#~ "loader-repository>\n"
+#~ "</jboss-app>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+#~ "<ejb-jar xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
+#~ " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n"
+#~ " xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://"
+#~ "java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n"
+#~ " version=\"3.0\">\n"
+#~ " \n"
+#~ " <interceptors>\n"
+#~ " <interceptor>\n"
+#~ " <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
+#~ "interceptor-class>\n"
+#~ " </interceptor>\n"
+#~ " </interceptors>\n"
+#~ " \n"
+#~ " <assembly-descriptor>\n"
+#~ " <interceptor-binding>\n"
+#~ " <ejb-name>*</ejb-name>\n"
+#~ " <interceptor-class>org.jboss.webbeans.ejb."
+#~ "SessionBeanInterceptor</interceptor-class>\n"
+#~ " </interceptor-binding>\n"
+#~ " </assembly-descriptor>\n"
+#~ " \n"
+#~ "</ejb-jar>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+#~ "<ejb-jar xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
+#~ " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n"
+#~ " xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://"
+#~ "java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n"
+#~ " version=\"3.0\">\n"
+#~ " \n"
+#~ " <interceptors>\n"
+#~ " <interceptor>\n"
+#~ " <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
+#~ "interceptor-class>\n"
+#~ " </interceptor>\n"
+#~ " </interceptors>\n"
+#~ " \n"
+#~ " <assembly-descriptor>\n"
+#~ " <interceptor-binding>\n"
+#~ " <ejb-name>*</ejb-name>\n"
+#~ " <interceptor-class>org.jboss.webbeans.ejb."
+#~ "SessionBeanInterceptor</interceptor-class>\n"
+#~ " </interceptor-binding>\n"
+#~ " </assembly-descriptor>\n"
+#~ " \n"
+#~ "</ejb-jar>]]>"
16 years
[webbeans-commits] Webbeans SVN: r828 - doc/trunk/reference/it-IT.
by webbeans-commits@lists.jboss.org
Author: nico.ben
Date: 2009-01-08 09:12:43 -0500 (Thu, 08 Jan 2009)
New Revision: 828
Modified:
doc/trunk/reference/it-IT/ri-spi.po
doc/trunk/reference/it-IT/ri.po
Log:
WBRI-69: Italian translation for Web Beans
Modified: doc/trunk/reference/it-IT/ri-spi.po
===================================================================
--- doc/trunk/reference/it-IT/ri-spi.po 2009-01-08 13:02:46 UTC (rev 827)
+++ doc/trunk/reference/it-IT/ri-spi.po 2009-01-08 14:12:43 UTC (rev 828)
@@ -5,8 +5,8 @@
msgstr ""
"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-06 11:30+0000\n"
-"PO-Revision-Date: 2009-01-06 12:43+0100\n"
+"POT-Creation-Date: 2009-01-08 14:07+0000\n"
+"PO-Revision-Date: 2009-01-08 15:12+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -465,17 +465,41 @@
#. Tag: para
#: ri-spi.xml:138
#, no-c-format
-msgid "If you are integrating the Web Beans into an environment that supports deployment of applications, you must enable, automatically, or through user configuation, classloader isolation for each Web Beans application"
-msgstr "Se si integra Web Beans in un ambiente che supporta il deploy di applicazioni, occorre abilitare, automaticamente o attraverso la configurazione utente, l'isolamento del classloader per ogni applicazione Web Beans"
+msgid "If you are integrating the Web Beans RI into an environment that supports deployment of multiple applications, you must enable, automatically, or through user configuation, classloader isolation for each Web Beans application."
+msgstr "Se si integra Web Beans in un ambiente che supporta il deploy di applicazioni, occorre abilitare, automaticamente o attraverso la configurazione utente, l'isolamento del classloader per ogni applicazione Web Beans."
#. Tag: term
#: ri-spi.xml:147
#, no-c-format
+msgid "Servlet listener"
+msgstr "Servlet listener"
+
+#. Tag: para
+#: ri-spi.xml:151
+#, no-c-format
+msgid "If you are integrating the Web Beans into a Servlet environment you must register <literal>org.jboss.webbeans.servlet.WebBeansListener</literal> as a Servlet listener, either automatically, or through user configuration, for each Web Beans application which uses Servlet."
+msgstr "Se si integra Web Beans in un ambiente Servlet occorre registrare <literal>org.jboss.webbeans.servlet.WebBeansListener</literal> come Servlet listener, o automaticamente, o attraverso una configurazione utente, per ciascuna applicazione Web Beans che usa Servlet."
+
+#. Tag: term
+#: ri-spi.xml:162
+#, no-c-format
+msgid "Session Bean Interceptor"
+msgstr "Session Bean Interceptor"
+
+#. Tag: para
+#: ri-spi.xml:166
+#, no-c-format
+msgid "If you are integrating the Web Beans into an EJB environment you must register <literal>org.jboss.webbeans.ejb.SessionBeanInterceptor</literal> as a EJB interceptor for all EJBs in the application, either automatically, or through user configuration, for each Web Beans application which uses enterprise beans."
+msgstr "Se si integra Web Beans in un ambiente EJB occorre registrare <literal>org.jboss.webbeans.ejb.SessionBeanInterceptor</literal> come interceptor EJB for ogni EJB dell'applicazione, o automaticamente o attraverso una configurazione utente, per ciascuna applicazione Web Beans che utilizza bean enterprise."
+
+#. Tag: term
+#: ri-spi.xml:177
+#, no-c-format
msgid "The <literal>webbeans-ri.jar</literal>"
msgstr "<literal>webbeans-ri.jar</literal>"
#. Tag: para
-#: ri-spi.xml:151
+#: ri-spi.xml:181
#, no-c-format
msgid "If you are integrating the Web Beans into an environment that supports deployment of applications, you must insert the <literal>webbeans-ri.jar</literal> into the applications isolated classloader. It cannot be loaded from a shared classloader."
msgstr "Se si integra Web Beans in un ambiente che supporta il deploy di applicazioni, occorre inserire <literal>webbeans-ri.jar</literal> nel classloader isolato delle applicazioni. Non può essere caricato da un classloader condiviso."
Modified: doc/trunk/reference/it-IT/ri.po
===================================================================
--- doc/trunk/reference/it-IT/ri.po 2009-01-08 13:02:46 UTC (rev 827)
+++ doc/trunk/reference/it-IT/ri.po 2009-01-08 14:12:43 UTC (rev 828)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-04 23:18+0000\n"
+"POT-Creation-Date: 2009-01-08 14:07+0000\n"
"PO-Revision-Date: 2008-12-20 14:01+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
@@ -380,11 +380,6 @@
" <session-config>\n"
" <session-timeout>10</session-timeout>\n"
" </session-config>\n"
-" \n"
-" <listener>\n"
-" <listener-class>org.jboss.webbeans.servlet.WebBeansListener</listener-"
-"class>\n"
-" </listener>\n"
"\n"
"</web-app>]]></programlisting> <calloutlist> <callout arearefs=\"faces."
"servlet\"> <para> Enable and load the JSF servlet </para> </callout> "
@@ -393,20 +388,16 @@
"<callout arearefs=\"faces.default.suffix\"> <para> Tell JSF that we will be "
"giving our source files (facelets) an extension of <literal>.jsf</literal> </"
"para> </callout> <callout arearefs=\"session.timeout\"> <para> Configure a "
-"session timeout of 10 minutes </para> </callout> <callout arearefs="
-"\"webbeans.listener\"> <para> Configure the Web Beans listener, so that Web "
-"Beans services can be used in the servlet request </para> </callout> </"
-"calloutlist> </programlistingco> <note> <para> The only configuration "
-"required by the Web Beans RI in <literal>web.xml</literal> is to add the Web "
-"Beans listener. </para> <para> Whilst this demo is a JSF demo, you can use "
-"the Web Beans RI with any Servlet based web framework; just configure the "
-"Web Beans listener. </para> </note> <para> Let's take a look at the Facelet "
-"view: </para> <programlistingco> <areaspec> <area id=\"template\" coords=\"8"
-"\"/> <area id=\"messages\" coords=\"12\"/> <area id=\"instructions\" coords="
-"\"19\"/> <area id=\"guess\" coords=\"25\"/> <area id=\"validator\" coords="
-"\"30\"/> <area id=\"submit\" coords=\"33\"/> </areaspec> <programlisting><!"
-"[CDATA[<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" "
-"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
+"session timeout of 10 minutes </para> </callout> </calloutlist> </"
+"programlistingco> <note> <para> Whilst this demo is a JSF demo, you can use "
+"the Web Beans RI with any Servlet based web framework. </para> </note> "
+"<para> Let's take a look at the Facelet view: </para> <programlistingco> "
+"<areaspec> <area id=\"template\" coords=\"8\"/> <area id=\"messages\" coords="
+"\"12\"/> <area id=\"instructions\" coords=\"19\"/> <area id=\"guess\" coords="
+"\"25\"/> <area id=\"validator\" coords=\"30\"/> <area id=\"submit\" coords="
+"\"33\"/> </areaspec> <programlisting><![CDATA[<!DOCTYPE html PUBLIC \"-//"
+"W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/"
+"xhtml1-transitional.dtd\">\n"
"<html xmlns=\"http://www.w3.org/1999/xhtml\"\n"
" xmlns:ui=\"http://java.sun.com/jsf/facelets\"\n"
" xmlns:h=\"http://java.sun.com/jsf/html\"\n"
@@ -593,7 +584,7 @@
"programlistingco>"
#. Tag: para
-#: ri.xml:298
+#: ri.xml:287
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -602,7 +593,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:304
+#: ri.xml:293
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -618,7 +609,7 @@
"public @interface Random {}]]>"
#. Tag: para
-#: ri.xml:306
+#: ri.xml:295
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for "
@@ -626,7 +617,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:311
+#: ri.xml:300
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -644,7 +635,7 @@
"]]>"
#. Tag: para
-#: ri.xml:313
+#: ri.xml:302
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the "
@@ -653,7 +644,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:319
+#: ri.xml:308
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -705,7 +696,7 @@
"}]]>"
#. Tag: para
-#: ri.xml:321
+#: ri.xml:310
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application scoped; "
@@ -713,7 +704,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:326
+#: ri.xml:315
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped <literal>Game</"
@@ -721,7 +712,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:331
+#: ri.xml:320
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal> annotation, so "
@@ -732,7 +723,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:339
+#: ri.xml:328
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -834,13 +825,13 @@
msgstr ""
#. Tag: title
-#: ri.xml:343
+#: ri.xml:332
#, no-c-format
msgid "The translator example"
msgstr "Esempio di traduttore"
#. Tag: para
-#: ri.xml:345
+#: ri.xml:334
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them "
@@ -850,7 +841,7 @@
"in latino."
#. Tag: para
-#: ri.xml:350
+#: ri.xml:339
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs and enterprise "
@@ -859,7 +850,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:357
+#: ri.xml:346
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -867,18 +858,17 @@
msgstr ""
#. Tag: para
-#: ri.xml:363
+#: ri.xml:352
#, 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> and <literal>jboss-app.xml</"
-"literal> for us:"
+"generates the <literal>application.xml</literal> for us:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:370
-#, no-c-format
+#: ri.xml:358
+#, fuzzy, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
" <groupId>org.apache.maven.plugins</groupId>\n"
@@ -891,10 +881,6 @@
" <contextRoot>/webbeans-translator</contextRoot>\n"
" </webModule>\n"
" </modules>\n"
-" <jboss>\n"
-" <loader-repository>webbeans.jboss.org:loader=webbeans-translator</"
-"loader-repository>\n"
-" </jboss>\n"
" </configuration>\n"
"</plugin>]]>"
msgstr ""
@@ -917,53 +903,24 @@
"</plugin>]]>"
#. Tag: para
-#: ri.xml:372
+#: ri.xml:360
#, no-c-format
msgid ""
-"We're doing a couple of things here - firstly we set the context path, which "
-"gives us a nice url (<ulink url=\"http://localhost:8080/webbeans-translator"
-"\">http://localhost:8080/webbeans-translator</ulink>) and we also enable "
-"class loader isolation for JBoss AS."
+"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 ""
#. Tag: para
-#: ri.xml:380
-#, no-c-format
+#: ri.xml:366
+#, fuzzy, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
-"<literal>META-INF/jboss-app.xml</literal>:"
-msgstr ""
-
-#. Tag: programlisting
-#: ri.xml:385
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<!DOCTYPE jboss-app\n"
-" PUBLIC \"-//JBoss//DTD J2EE Application 4.2//EN\"\n"
-" \"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd\">\n"
-"<jboss-app>\n"
-" <loader-repository>webbeans.jboss.org:loader=webbeans-translator</loader-"
-"repository>\n"
-"</jboss-app>]]>"
-msgstr ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<!DOCTYPE jboss-app\n"
-" PUBLIC \"-//JBoss//DTD J2EE Application 4.2//EN\"\n"
-" \"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd\">\n"
-"<jboss-app>\n"
-" <loader-repository>webbeans.jboss.org:loader=webbeans-translator</loader-"
-"repository>\n"
-"</jboss-app>]]>"
-
-#. Tag: para
-#: ri.xml:387
-#, no-c-format
-msgid "and <literal>META-INF/application.xml</literal>:"
+"<literal>META-INF/application.xml</literal>:"
msgstr "e <literal>META-INF/application.xml</literal>:"
#. Tag: programlisting
-#: ri.xml:391
+#: ri.xml:371
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
@@ -1009,17 +966,16 @@
"</application>]]>"
#. Tag: para
-#: ri.xml:394
+#: ri.xml:374
#, 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 enabled Facelets) and a <literal>web."
-"xml</literal> (to enable JSF and attach Web Beans services to the servlet "
-"container) in <literal>WebContent/WEB-INF</literal>."
+"xml</literal> (to enable JSF) in <literal>WebContent/WEB-INF</literal>."
msgstr ""
#. Tag: para
-#: ri.xml:401
+#: ri.xml:381
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -1028,7 +984,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:407
+#: ri.xml:387
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -1088,7 +1044,7 @@
"</h:form>]]>"
#. Tag: para
-#: ri.xml:409
+#: ri.xml:389
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate "
@@ -1096,72 +1052,17 @@
msgstr ""
#. Tag: para
-#: ri.xml:414
+#: ri.xml:394
#, no-c-format
msgid ""
"Finally, let's look at the ejb module, <literal>webbeans-translator-ejb</"
-"literal>. There are two configuration files in <literal>src/main/resources/"
-"META-INF</literal>, an empty <literal>web-beans.xml</literal>, used to mark "
-"the archive as containing Web Beans, and <literal>ejb-jar.xml</literal>. Web "
-"Beans provides injection and initializtion services for all EJBs, and uses "
-"<literal>ejb-jar.xml</literal> to enable this, you'll need this in any EJB "
-"project which uses Web Beans:"
+"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 ""
-#. Tag: programlisting
-#: ri.xml:426
-#, no-c-format
-msgid ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<ejb-jar xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n"
-" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java."
-"sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n"
-" version=\"3.0\">\n"
-" \n"
-" <interceptors>\n"
-" <interceptor>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor>\n"
-" </interceptors>\n"
-" \n"
-" <assembly-descriptor>\n"
-" <interceptor-binding>\n"
-" <ejb-name>*</ejb-name>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor-binding>\n"
-" </assembly-descriptor>\n"
-" \n"
-"</ejb-jar>]]>"
-msgstr ""
-"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<ejb-jar xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n"
-" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java."
-"sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n"
-" version=\"3.0\">\n"
-" \n"
-" <interceptors>\n"
-" <interceptor>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor>\n"
-" </interceptors>\n"
-" \n"
-" <assembly-descriptor>\n"
-" <interceptor-binding>\n"
-" <ejb-name>*</ejb-name>\n"
-" <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
-" </interceptor-binding>\n"
-" </assembly-descriptor>\n"
-" \n"
-"</ejb-jar>]]>"
-
#. Tag: para
-#: ri.xml:428
+#: ri.xml:402
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two "
@@ -1173,7 +1074,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:438
+#: ri.xml:412
#, no-c-format
msgid ""
"Both <literal>SentanceParser</literal> and <literal>TextTranslator</literal> "
@@ -1182,7 +1083,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:444
+#: ri.xml:418
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -1208,7 +1109,7 @@
" this.sentenceTranslator = sentenceTranslator;]]>"
#. Tag: para
-#: ri.xml:446
+#: ri.xml:420
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local business "
@@ -1217,7 +1118,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:452
+#: ri.xml:426
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -1226,7 +1127,7 @@
msgstr ""
#. Tag: programlisting
-#: ri.xml:458
+#: ri.xml:432
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -1246,19 +1147,19 @@
" @Current TextTranslator translator;]]>"
#. Tag: para
-#: ri.xml:460
+#: ri.xml:434
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr ""
#. Tag: para
-#: ri.xml:464
+#: ri.xml:438
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
#. Tag: programlisting
-#: ri.xml:468
+#: ri.xml:442
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -1274,7 +1175,7 @@
" }]]>"
#. Tag: para
-#: ri.xml:470
+#: ri.xml:444
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -1282,7 +1183,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:476
+#: ri.xml:450
#, no-c-format
msgid ""
"That concludes our short tour of the Web Beans RI examples. For more on the "
@@ -1292,7 +1193,7 @@
msgstr ""
#. Tag: para
-#: ri.xml:482
+#: ri.xml:456
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
@@ -1300,6 +1201,74 @@
msgstr ""
#~ msgid ""
+#~ "<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+#~ "<!DOCTYPE jboss-app\n"
+#~ " PUBLIC \"-//JBoss//DTD J2EE Application 4.2//EN\"\n"
+#~ " \"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd\">\n"
+#~ "<jboss-app>\n"
+#~ " <loader-repository>webbeans.jboss.org:loader=webbeans-translator</"
+#~ "loader-repository>\n"
+#~ "</jboss-app>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+#~ "<!DOCTYPE jboss-app\n"
+#~ " PUBLIC \"-//JBoss//DTD J2EE Application 4.2//EN\"\n"
+#~ " \"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd\">\n"
+#~ "<jboss-app>\n"
+#~ " <loader-repository>webbeans.jboss.org:loader=webbeans-translator</"
+#~ "loader-repository>\n"
+#~ "</jboss-app>]]>"
+
+#~ msgid ""
+#~ "<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+#~ "<ejb-jar xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
+#~ " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n"
+#~ " xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://"
+#~ "java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n"
+#~ " version=\"3.0\">\n"
+#~ " \n"
+#~ " <interceptors>\n"
+#~ " <interceptor>\n"
+#~ " <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
+#~ "interceptor-class>\n"
+#~ " </interceptor>\n"
+#~ " </interceptors>\n"
+#~ " \n"
+#~ " <assembly-descriptor>\n"
+#~ " <interceptor-binding>\n"
+#~ " <ejb-name>*</ejb-name>\n"
+#~ " <interceptor-class>org.jboss.webbeans.ejb."
+#~ "SessionBeanInterceptor</interceptor-class>\n"
+#~ " </interceptor-binding>\n"
+#~ " </assembly-descriptor>\n"
+#~ " \n"
+#~ "</ejb-jar>]]>"
+#~ msgstr ""
+#~ "<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+#~ "<ejb-jar xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
+#~ " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n"
+#~ " xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://"
+#~ "java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n"
+#~ " version=\"3.0\">\n"
+#~ " \n"
+#~ " <interceptors>\n"
+#~ " <interceptor>\n"
+#~ " <interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
+#~ "interceptor-class>\n"
+#~ " </interceptor>\n"
+#~ " </interceptors>\n"
+#~ " \n"
+#~ " <assembly-descriptor>\n"
+#~ " <interceptor-binding>\n"
+#~ " <ejb-name>*</ejb-name>\n"
+#~ " <interceptor-class>org.jboss.webbeans.ejb."
+#~ "SessionBeanInterceptor</interceptor-class>\n"
+#~ " </interceptor-binding>\n"
+#~ " </assembly-descriptor>\n"
+#~ " \n"
+#~ "</ejb-jar>]]>"
+
+#~ msgid ""
#~ "<![CDATA[@Named\n"
#~ "@SessionScoped\n"
#~ "public class Game {\n"
16 years
[webbeans-commits] Webbeans SVN: r827 - in tck/trunk: api and 1 other directories.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-01-08 08:02:46 -0500 (Thu, 08 Jan 2009)
New Revision: 827
Modified:
tck/trunk/
tck/trunk/api/pom.xml
tck/trunk/impl/
Log:
fix build
Property changes on: tck/trunk
___________________________________________________________________
Name: svn:ignore
+ target
Modified: tck/trunk/api/pom.xml
===================================================================
--- tck/trunk/api/pom.xml 2009-01-08 13:00:23 UTC (rev 826)
+++ tck/trunk/api/pom.xml 2009-01-08 13:02:46 UTC (rev 827)
@@ -33,6 +33,20 @@
<packaging>jar</packaging>
<name>Web Beans TCK API</name>
<url>http://www.seamframework.org/WebBeans</url>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.webbeans</groupId>
+ <artifactId>webbeans-api</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.testng</groupId>
+ <artifactId>testng</artifactId>
+ <scope>test</scope>
+ <classifier>jdk15</classifier>
+ </dependency>
+ </dependencies>
</project>
Property changes on: tck/trunk/impl
___________________________________________________________________
Name: svn:ignore
- target
.classpath
.project
+ target
.classpath
.project
.settings
16 years
[webbeans-commits] Webbeans SVN: r826 - in ri/trunk: webbeans-ri-spi/src/main/java/org/jboss/webbeans/ejb/spi and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-01-08 08:00:23 -0500 (Thu, 08 Jan 2009)
New Revision: 826
Modified:
ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/ejb/spi/EjbResolver.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/SimpleBean.java
Log:
Small update to SPI, remove injectionPointFactory.push/pop for common annotations injections
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/SimpleBean.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/SimpleBean.java 2009-01-08 09:31:56 UTC (rev 825)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/SimpleBean.java 2009-01-08 13:00:23 UTC (rev 826)
@@ -23,7 +23,6 @@
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
-import javax.persistence.EntityManagerFactory;
import javax.webbeans.DefinitionException;
import javax.webbeans.Initializer;
import javax.webbeans.InjectionPoint;
@@ -222,14 +221,11 @@
*/
protected void injectEjbAndCommonFields(T beanInstance)
{
- InjectionPointFactory injectionPointFactory = manager.getInjectionPointFactory();
for (AnnotatedField<?> field : annotatedItem.getAnnotatedFields(manager.getEjbResolver().getEJBAnnotation()))
{
- injectionPointFactory.pushInjectionPoint(field);
InjectionPoint injectionPoint = new InjectionPointImpl(field, this, beanInstance);
Object ejbInstance = manager.getEjbResolver().resolveEjb(injectionPoint, manager.getNaming());
field.inject(beanInstance, ejbInstance);
- injectionPointFactory.popInjectionPoint();
}
for (AnnotatedMethod<?> method : annotatedItem.getAnnotatedMethods(manager.getEjbResolver().getEJBAnnotation()))
@@ -242,9 +238,8 @@
for (AnnotatedField<?> field : annotatedItem.getAnnotatedFields(manager.getEjbResolver().getPersistenceContextAnnotation()))
{
InjectionPoint injectionPoint = new InjectionPointImpl(field, this, beanInstance);
- EntityManagerFactory entityManagerFactory = manager.getEjbResolver().resolvePersistenceUnit(injectionPoint, manager.getNaming());
- field.inject(beanInstance, entityManagerFactory.createEntityManager());
- injectionPointFactory.popInjectionPoint();
+ Object persistenceContext = manager.getEjbResolver().resolvePersistenceUnit(injectionPoint, manager.getNaming());
+ field.inject(beanInstance, persistenceContext);
}
}
Modified: ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/ejb/spi/EjbResolver.java
===================================================================
--- ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/ejb/spi/EjbResolver.java 2009-01-08 09:31:56 UTC (rev 825)
+++ ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/ejb/spi/EjbResolver.java 2009-01-08 13:00:23 UTC (rev 826)
@@ -2,7 +2,7 @@
import java.lang.annotation.Annotation;
-import javax.persistence.EntityManagerFactory;
+import javax.persistence.EntityManager;
import javax.webbeans.InjectionPoint;
import org.jboss.webbeans.resources.spi.Naming;
@@ -20,7 +20,7 @@
public static final String PROPERTY_NAME = EjbResolver.class.getName();
/**
- * Resolve the JNDI name for the @EJB injection point
+ * Resolve the value for the given @EJB injection point
*
* @param injectionPoint The injection point metadata
* @return the JNDI name
@@ -28,12 +28,12 @@
public Object resolveEjb(InjectionPoint injectionPoint, Naming naming);
/**
- * Resolve the JNDI name for the @PersistenceContext injection point
+ * Resolve the value for the given @PersistenceContext injection point
*
* @param injectionPoint The injection point metadata
* @return the JNDI name
*/
- public EntityManagerFactory resolvePersistenceUnit(InjectionPoint injectionPoint, Naming naming);
+ public Object resolvePersistenceUnit(InjectionPoint injectionPoint, Naming naming);
public Class<? extends Annotation> getEJBAnnotation();
16 years
[webbeans-commits] Webbeans SVN: r825 - doc/trunk/reference/zh-TW.
by webbeans-commits@lists.jboss.org
Author: tchuang
Date: 2009-01-08 04:31:56 -0500 (Thu, 08 Jan 2009)
New Revision: 825
Modified:
doc/trunk/reference/zh-TW/ee.po
Log:
translations updated
Modified: doc/trunk/reference/zh-TW/ee.po
===================================================================
--- doc/trunk/reference/zh-TW/ee.po 2009-01-08 08:38:21 UTC (rev 824)
+++ doc/trunk/reference/zh-TW/ee.po 2009-01-08 09:31:56 UTC (rev 825)
@@ -8,7 +8,7 @@
"Project-Id-Version: ee\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-01-06 11:30+0000\n"
-"PO-Revision-Date: 2009-01-08 09:47+1000\n"
+"PO-Revision-Date: 2009-01-08 19:31+1000\n"
"Last-Translator: Terry Chuang <tchuang(a)redhat.com>\n"
"Language-Team: Traditional Chinese <zh(a)li.org>\n"
"MIME-Version: 1.0\n"
@@ -31,13 +31,13 @@
"in Unified EL expressions in JSF and JSP pages. They may even be injected "
"into some objects, such as Servlets and Message-Driven Beans, which are not "
"Web Beans."
-msgstr ""
+msgstr "Web Bean 已完整整合入 Java EE 環境中。Web Bean 可存取 Java EE 資源以及 JPA persistence context。它們可能會被使用於 JSF 以及 JSP 網頁中的 Unified EL 表示式中。它們也可被注入一些物件中,例如 Servlets 以及訊息導向的 Bean 中(非 Web Beans)。"
#. Tag: title
#: ee.xml:12
#, no-c-format
msgid "Injecting Java EE resources into a Web Bean"
-msgstr ""
+msgstr "將 Java EE 資源注入 Web Bean 中"
#. Tag: para
#: ee.xml:14
@@ -48,6 +48,8 @@
"<literal>@PersistenceContext</literal>. We've already seen a couple of "
"examples of this, though we didn't pay much attention at the time:"
msgstr ""
+"所有基本與企業的 Web Bean 都能透過 <literal>@Resource</literal>、<literal>@EJB</literal> 以及 "
+"<literal>@PersistenceContext</literal> 來有效利用 Java EE 相依性注入。我們早已見過了這方面的範例,不過當時我們並未詳細討論到:"
#. Tag: programlisting
#: ee.xml:19
@@ -105,7 +107,7 @@
"literal> callbacks are also supported for all simple and enterprise Web "
"Beans. The <literal>@PostConstruct</literal> method is called after "
"<emphasis>all</emphasis> injection has been performed."
-msgstr ""
+msgstr "所有基本與企業的 Web Bean 也都支援 Java EE <literal>@PostConstruct</literal> 和 <literal>@PreDestroy</literal> 的 callback。<literal>@PostConstruct</literal> 這個 method 會在<emphasis>所有</emphasis>注入被進行後才會被調用。"
#. Tag: para
#: ee.xml:28
@@ -113,13 +115,13 @@
msgid ""
"There is one restriction to be aware of here: <literal>@PersistenceContext"
"(type=EXTENDED)</literal> is not supported for simple Web Beans."
-msgstr ""
+msgstr "在此有項需要注意的限制:基本的 Web Bean 並不支援 <literal>@PersistenceContext(type=EXTENDED)</literal>。"
#. Tag: title
#: ee.xml:35
#, no-c-format
msgid "Calling a Web Bean from a Servlet"
-msgstr ""
+msgstr "透過一個 Servlet 來調用 Web Bean"
#. Tag: para
#: ee.xml:37
@@ -127,7 +129,7 @@
msgid ""
"It's easy to use a Web Bean from a Servlet in Java EE 6. Simply inject the "
"Web Bean using Web Beans field or initializer method injection."
-msgstr ""
+msgstr "在 Java EE 6 中透過 Servlet 來使用 Web Bean 相當地簡單。只要使用 Web Bean 欄位或是 initializer method 注入來注入 Web Bean 即可。"
#. Tag: programlisting
#: ee.xml:40
16 years
[webbeans-commits] Webbeans SVN: r824 - in tck/trunk/api: src/main/java/org/jboss/webbeans/tck/api and 1 other directories.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-01-08 03:38:21 -0500 (Thu, 08 Jan 2009)
New Revision: 824
Added:
tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/Configurable.java
tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/Contexts.java
tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/
tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/DeploymentProperties.java
tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/EnumerationIterable.java
tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/EnumerationIterator.java
tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/ResourceLoadingException.java
tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/SimpleResourceLoader.java
tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/Strings.java
Modified:
tck/trunk/api/
tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/Beans.java
tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/Managers.java
Log:
More TCK API stuff
Property changes on: tck/trunk/api
___________________________________________________________________
Name: svn:ignore
- target
.classpath
.project
+ target
.classpath
.project
.settings
Modified: tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/Beans.java
===================================================================
--- tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/Beans.java 2009-01-08 07:41:03 UTC (rev 823)
+++ tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/Beans.java 2009-01-08 08:38:21 UTC (rev 824)
@@ -1,6 +1,11 @@
package org.jboss.webbeans.tck.api;
-public interface Beans
+/**
+ * Provides Bean related operations.
+ *
+ * @author Shane Bryzak
+ */
+public abstract class Beans extends Configurable
{
}
Added: tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/Configurable.java
===================================================================
--- tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/Configurable.java (rev 0)
+++ tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/Configurable.java 2009-01-08 08:38:21 UTC (rev 824)
@@ -0,0 +1,14 @@
+package org.jboss.webbeans.tck.api;
+
+/**
+ *
+ * @author Shane Bryzak
+ *
+ */
+public class Configurable
+{
+ protected static Object getInstance(Class<?> cls)
+ {
+ return null;
+ }
+}
Added: tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/Contexts.java
===================================================================
--- tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/Contexts.java (rev 0)
+++ tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/Contexts.java 2009-01-08 08:38:21 UTC (rev 824)
@@ -0,0 +1,10 @@
+package org.jboss.webbeans.tck.api;
+
+/**
+ *
+ * @author Shane Bryzak
+ */
+public abstract class Contexts extends Configurable
+{
+
+}
Modified: tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/Managers.java
===================================================================
--- tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/Managers.java 2009-01-08 07:41:03 UTC (rev 823)
+++ tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/Managers.java 2009-01-08 08:38:21 UTC (rev 824)
@@ -5,14 +5,36 @@
import javax.webbeans.manager.Manager;
-public abstract class Managers
+/**
+ * This class provides operations relating to a Web Beans Manager.
+ *
+ * The TCK porting package must provide an implementation of this abstract class which is
+ * suitable for the target Web Beans implementation.
+ *
+ * @author Shane Bryzak
+ */
+public abstract class Managers extends Configurable
{
+ /**
+ * Returns the concrete implementation of Managers
+ *
+ * @return
+ */
public static Managers instance()
{
- return null;
+ return (Managers) getInstance(Managers.class);
}
+ /**
+ *
+ * @param enabledDeploymentTypes
+ */
public abstract void setEnabledDeploymentTypes(List<Class<? extends Annotation>> enabledDeploymentTypes);
+ /**
+ * Creates a new Manager instance
+ *
+ * @return The new Manager
+ */
public abstract Manager createManager();
}
Added: tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/DeploymentProperties.java
===================================================================
--- tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/DeploymentProperties.java (rev 0)
+++ tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/DeploymentProperties.java 2009-01-08 08:38:21 UTC (rev 824)
@@ -0,0 +1,151 @@
+package org.jboss.webbeans.tck.api.util;
+
+import static org.jboss.webbeans.tck.api.util.Strings.split;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Properties;
+import java.util.Set;
+
+/**
+ * Utility class to load deployment properties
+ *
+ * @author Pete Muir
+ */
+public class DeploymentProperties
+{
+ // The resource bundle used to control Web Beans RI deployment
+ public static final String RESOURCE_BUNDLE = "META-INF/web-beans-ri.properties";
+
+ // The class to work from
+ private SimpleResourceLoader resourceLoader;
+
+ /**
+ * Constructor
+ *
+ * @param classLoader The classloader to work on
+ */
+ public DeploymentProperties()
+ {
+ this.resourceLoader = new SimpleResourceLoader();
+ }
+
+ /**
+ * Get a list of possible values for a given key.
+ *
+ * First, System properties are tried, followed by the specified resource
+ * bundle (first in classpath only).
+ *
+ * Colon (:) deliminated lists are split out. (gotta love Petes choice of
+ * ASCII art for that one ;-)
+ *
+ * @param key The key to search for
+ * @return A list of possible values. An empty list is returned if there are
+ * no matches.
+ */
+ public List<String> getPropertyValues(String key)
+ {
+ List<String> values = new ArrayList<String>();
+ addPropertiesFromSystem(key, values);
+ addPropertiesFromResourceBundle(key, values);
+ return values;
+ }
+
+ /**
+ * Adds matches from system properties
+ *
+ * @param key The key to match
+ * @param values The currently found values
+ */
+ private void addPropertiesFromSystem(String key, List<String> values)
+ {
+ addProperty(key, System.getProperty(key), values);
+ }
+
+ /**
+ * Adds matches from detected resource bundles
+ *
+ * @param key The key to match
+ * @param values The currently found values
+ */
+ private void addPropertiesFromResourceBundle(String key, List<String> values)
+ {
+ try
+ {
+ for (URL url : resourceLoader.getResources(RESOURCE_BUNDLE))
+ {
+ Properties properties = new Properties();
+ InputStream propertyStream = url.openStream();
+ try
+ {
+ properties.load(propertyStream);
+ addProperty(key, properties.getProperty(key), values);
+ }
+ finally
+ {
+ if (propertyStream != null)
+ {
+ propertyStream.close();
+ }
+ }
+ }
+ }
+ catch (IOException e)
+ {
+ // No - op, file is optional
+ }
+ }
+
+ /**
+ * Add the property to the set of properties only if it hasn't already been
+ * added
+ *
+ * @param key The key searched for
+ * @param value The value of the property
+ * @param values The currently found values
+ */
+ private void addProperty(String key, String value, List<String> values)
+ {
+ if (value != null)
+ {
+ String[] properties = split(value, ":");
+ for (String property : properties)
+ {
+ values.add(property);
+ }
+
+ }
+ }
+
+ /**
+ * Gets the possible implementation class for a given property for which the
+ * values are classanames
+ *
+ * @param deploymentProperties The deployment properties object to use
+ * @param resourceLoader The resource laoder to use to attempt
+ * @param propertyName The name of the property to load
+ * @return A set of classes specified
+ */
+ @SuppressWarnings("unchecked")
+ public static <T> Set<Class<? extends T>> getClasses(DeploymentProperties deploymentProperties, SimpleResourceLoader resourceLoader, String propertyName, Class<T> expectedType)
+ {
+ Set<Class<? extends T>> classes = new HashSet<Class<? extends T>>();
+ for (String className : deploymentProperties.getPropertyValues(propertyName))
+ {
+ try
+ {
+ classes.add((Class<? extends T>) resourceLoader.classForName(className));
+ }
+ catch (ResourceLoadingException e)
+ {
+ //log.debug("Unable to load class " + className + " for property " + propertyName, e);
+ }
+ }
+ return classes;
+ }
+
+}
\ No newline at end of file
Added: tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/EnumerationIterable.java
===================================================================
--- tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/EnumerationIterable.java (rev 0)
+++ tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/EnumerationIterable.java 2009-01-08 08:38:21 UTC (rev 824)
@@ -0,0 +1,37 @@
+package org.jboss.webbeans.tck.api.util;
+
+import java.util.Enumeration;
+import java.util.Iterator;
+
+/**
+ * An Enumeration -> Iteratble adaptor
+ *
+ * @author Pete Muir
+ * @see org.jboss.webbeans.util.EnumerationIterator
+ */
+public class EnumerationIterable<T> implements Iterable<T>
+{
+ // The enumeration-iteartor
+ private EnumerationIterator<T> iterator;
+
+ /**
+ * Constructor
+ *
+ * @param enumeration The enumeration
+ */
+ public EnumerationIterable(Enumeration<T> enumeration)
+ {
+ this.iterator = new EnumerationIterator<T>(enumeration);
+ }
+
+ /**
+ * Gets an iterator
+ *
+ * @return The iterator
+ */
+ public Iterator<T> iterator()
+ {
+ return iterator;
+ }
+
+}
\ No newline at end of file
Added: tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/EnumerationIterator.java
===================================================================
--- tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/EnumerationIterator.java (rev 0)
+++ tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/EnumerationIterator.java 2009-01-08 08:38:21 UTC (rev 824)
@@ -0,0 +1,55 @@
+package org.jboss.webbeans.tck.api.util;
+
+import java.util.Enumeration;
+import java.util.Iterator;
+
+/**
+ * An enumeration -> iterator adapter
+ *
+ * @author Pete Muir
+ */
+@SuppressWarnings("unchecked")
+public class EnumerationIterator<T> implements Iterator<T>
+{
+ // The enumeration
+ private Enumeration e;
+
+ /**
+ * Constructor
+ *
+ * @param e The enumeration
+ */
+ public EnumerationIterator(Enumeration e)
+ {
+ this.e = e;
+ }
+
+ /**
+ * Indicates if there are more items to iterate
+ *
+ * @return True if more, false otherwise
+ */
+ public boolean hasNext()
+ {
+ return e.hasMoreElements();
+ }
+
+ /**
+ * Gets the next item
+ *
+ * @return The next items
+ */
+ public T next()
+ {
+ return (T) e.nextElement();
+ }
+
+ /**
+ * Removes an item. Not supported
+ */
+ public void remove()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+}
\ No newline at end of file
Added: tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/ResourceLoadingException.java
===================================================================
--- tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/ResourceLoadingException.java (rev 0)
+++ tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/ResourceLoadingException.java 2009-01-08 08:38:21 UTC (rev 824)
@@ -0,0 +1,54 @@
+package org.jboss.webbeans.tck.api.util;
+
+import javax.webbeans.ExecutionException;
+
+/**
+ * Exception thrown when errors occur while loading resource
+ *
+ * @author Pete Muir
+ *
+ */
+public class ResourceLoadingException extends ExecutionException
+{
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * Constructor
+ */
+ public ResourceLoadingException()
+ {
+ super();
+ }
+
+ /**
+ * Constructor
+ *
+ * @param message The message
+ * @param throwable The exception
+ */
+ public ResourceLoadingException(String message, Throwable throwable)
+ {
+ super(message, throwable);
+ }
+
+ /**
+ * Constructor
+ *
+ * @param message The message
+ */
+ public ResourceLoadingException(String message)
+ {
+ super(message);
+ }
+
+ /**
+ * Constructor
+ *
+ * @param throwable The exception
+ */
+ public ResourceLoadingException(Throwable throwable)
+ {
+ super(throwable);
+ }
+
+}
\ No newline at end of file
Added: tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/SimpleResourceLoader.java
===================================================================
--- tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/SimpleResourceLoader.java (rev 0)
+++ tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/SimpleResourceLoader.java 2009-01-08 08:38:21 UTC (rev 824)
@@ -0,0 +1,43 @@
+package org.jboss.webbeans.tck.api.util;
+
+import java.io.IOException;
+import java.net.URL;
+
+public class SimpleResourceLoader
+{
+
+ public Class<?> classForName(String name)
+ {
+
+ try
+ {
+ return Class.forName(name);
+ }
+ catch (ClassNotFoundException e)
+ {
+ throw new ResourceLoadingException(e);
+ }
+ catch (NoClassDefFoundError e)
+ {
+ throw new ResourceLoadingException(e);
+ }
+ }
+
+ public URL getResource(String name)
+ {
+ return getClass().getResource(name);
+ }
+
+ public Iterable<URL> getResources(String name)
+ {
+ try
+ {
+ return new EnumerationIterable<URL>(getClass().getClassLoader().getResources(name));
+ }
+ catch (IOException e)
+ {
+ throw new ResourceLoadingException(e);
+ }
+ }
+
+}
\ No newline at end of file
Added: tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/Strings.java
===================================================================
--- tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/Strings.java (rev 0)
+++ tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/Strings.java 2009-01-08 08:38:21 UTC (rev 824)
@@ -0,0 +1,25 @@
+package org.jboss.webbeans.tck.api.util;
+
+import java.util.StringTokenizer;
+
+public class Strings
+{
+ public static String[] split(String strings, String delims)
+ {
+ if (strings == null)
+ {
+ return new String[0];
+ }
+ else
+ {
+ StringTokenizer tokens = new StringTokenizer(strings, delims);
+ String[] result = new String[tokens.countTokens()];
+ int i = 0;
+ while (tokens.hasMoreTokens())
+ {
+ result[i++] = tokens.nextToken();
+ }
+ return result;
+ }
+ }
+}
16 years
[webbeans-commits] Webbeans SVN: r823 - in ri/trunk/webbeans-ri/src: main/java/org/jboss/webbeans/bootstrap and 4 other directories.
by webbeans-commits@lists.jboss.org
Author: nickarls
Date: 2009-01-08 02:41:03 -0500 (Thu, 08 Jan 2009)
New Revision: 823
Added:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/NewEnterpriseBean.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/NewEnterpriseBeanTest.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/NewSimpleBeanTest.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/WrappedEnterpriseBean.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/WrappedSimpleBean.java
Removed:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/NewBeanTest.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/WrappedBean.java
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/EventBusTest.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/invalid/NewAndOtherBindingType.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/AnnotatedConstructorParameter.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/AnnotatedField.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/AnnotatedInitializerParameter.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/AnnotatedProducerParameter.java
Log:
Starting on NewEnterpriseBean
Fix tests (every registered EJB now adds two beans)
Added: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/NewEnterpriseBean.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/NewEnterpriseBean.java (rev 0)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/NewEnterpriseBean.java 2009-01-08 07:41:03 UTC (rev 823)
@@ -0,0 +1,80 @@
+package org.jboss.webbeans.bean;
+
+import java.lang.annotation.Annotation;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Set;
+
+import javax.webbeans.Dependent;
+import javax.webbeans.Standard;
+
+import org.jboss.webbeans.ManagerImpl;
+import org.jboss.webbeans.binding.NewBinding;
+import org.jboss.webbeans.introspector.AnnotatedClass;
+import org.jboss.webbeans.introspector.AnnotatedField;
+import org.jboss.webbeans.introspector.AnnotatedMethod;
+import org.jboss.webbeans.introspector.jlr.AnnotatedClassImpl;
+
+public class NewEnterpriseBean<T> extends EnterpriseBean<T>
+{
+ private static Set<Annotation> NEW_BINDING_SET = new HashSet<Annotation>(Arrays.asList(new NewBinding()));
+
+ public static <T> NewEnterpriseBean<T> of(AnnotatedClass<T> clazz, ManagerImpl manager)
+ {
+ return new NewEnterpriseBean<T>(clazz, manager);
+ }
+
+ public static <T> NewEnterpriseBean<T> of(Class<T> clazz, ManagerImpl manager)
+ {
+ return of(AnnotatedClassImpl.of(clazz), manager);
+ }
+
+ protected NewEnterpriseBean(AnnotatedClass<T> type, ManagerImpl manager)
+ {
+ super(type, manager);
+ }
+
+ @Override
+ public Class<? extends Annotation> getScopeType()
+ {
+ return Dependent.class;
+ }
+
+ @Override
+ public Class<? extends Annotation> getDeploymentType()
+ {
+ return Standard.class;
+ }
+
+ @Override
+ public String getName()
+ {
+ return null;
+ }
+
+ @Override
+ public Set<AnnotatedMethod<Object>> getObserverMethods()
+ {
+ return Collections.emptySet();
+ }
+
+ @Override
+ public Set<AnnotatedField<Object>> getProducerFields()
+ {
+ return Collections.emptySet();
+ }
+
+ @Override
+ public Set<AnnotatedMethod<Object>> getProducerMethods()
+ {
+ return Collections.emptySet();
+ }
+
+ @Override
+ public Set<Annotation> getBindingTypes()
+ {
+ return NEW_BINDING_SET;
+ }
+
+}
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java 2009-01-08 07:15:08 UTC (rev 822)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java 2009-01-08 07:41:03 UTC (rev 823)
@@ -40,6 +40,7 @@
import org.jboss.webbeans.bean.EnterpriseBean;
import org.jboss.webbeans.bean.EventBean;
import org.jboss.webbeans.bean.InstanceBean;
+import org.jboss.webbeans.bean.NewEnterpriseBean;
import org.jboss.webbeans.bean.NewSimpleBean;
import org.jboss.webbeans.bean.ProducerFieldBean;
import org.jboss.webbeans.bean.ProducerMethodBean;
@@ -201,6 +202,7 @@
if (getManager().getEjbDescriptorCache().containsKey(clazz))
{
createBean(EnterpriseBean.of(annotatedClass, getManager()), beans);
+ beans.add(NewEnterpriseBean.of(annotatedClass, manager));
}
else if (isTypeSimpleWebBean(clazz))
{
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/EventBusTest.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/EventBusTest.java 2009-01-08 07:15:08 UTC (rev 822)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/EventBusTest.java 2009-01-08 07:41:03 UTC (rev 823)
@@ -326,7 +326,7 @@
webBeansBootstrap.setWebBeanDiscovery(new MockWebBeanDiscovery(Pomeranian.class));
webBeansBootstrap.boot();
List<Bean<?>> beans = manager.getBeans();
- assert beans.size() == 1 + BUILT_IN_BEANS;
+ assert beans.size() == 2 + BUILT_IN_BEANS;
Set<Observer<String>> observers = manager.resolveObservers("An event");
assert observers.size() == 2;
}
@@ -338,7 +338,7 @@
webBeansBootstrap.setWebBeanDiscovery(new MockWebBeanDiscovery(TibetanTerrier.class));
webBeansBootstrap.boot();
List<Bean<?>> beans = manager.getBeans();
- assert beans.size() == 1 + BUILT_IN_BEANS;
+ assert beans.size() == 2 + BUILT_IN_BEANS;
Set<Observer<String>> observers = manager.resolveObservers("An event");
assert observers.size() == 1;
}
@@ -381,7 +381,7 @@
webBeansBootstrap.setWebBeanDiscovery(new MockWebBeanDiscovery(Pomeranian.class));
webBeansBootstrap.boot();
List<Bean<?>> beans = manager.getBeans();
- assert beans.size() == 1 + BUILT_IN_BEANS;
+ assert beans.size() == 2 + BUILT_IN_BEANS;
// Resolve registered observers with an event containing no binding types
Set<Observer<String>> resolvedObservers = manager.resolveObservers("A new event");
Deleted: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/NewBeanTest.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/NewBeanTest.java 2009-01-08 07:15:08 UTC (rev 822)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/NewBeanTest.java 2009-01-08 07:41:03 UTC (rev 823)
@@ -1,440 +0,0 @@
-package org.jboss.webbeans.test.newbean;
-
-import java.lang.annotation.Annotation;
-import java.util.Set;
-
-import javax.webbeans.DefinitionException;
-import javax.webbeans.Dependent;
-import javax.webbeans.Standard;
-
-import org.jboss.webbeans.bean.NewSimpleBean;
-import org.jboss.webbeans.bean.SimpleBean;
-import org.jboss.webbeans.binding.NewBinding;
-import org.jboss.webbeans.introspector.AnnotatedItem;
-import org.jboss.webbeans.test.AbstractTest;
-import org.jboss.webbeans.test.SpecAssertion;
-import org.jboss.webbeans.test.SpecVersion;
-import org.jboss.webbeans.test.mock.MockWebBeanDiscovery;
-import org.jboss.webbeans.test.newbean.invalid.NewAndOtherBindingType;
-import org.jboss.webbeans.test.newbean.valid.AnnotatedConstructorParameter;
-import org.jboss.webbeans.test.newbean.valid.AnnotatedField;
-import org.jboss.webbeans.test.newbean.valid.AnnotatedInitializerParameter;
-import org.jboss.webbeans.test.newbean.valid.AnnotatedProducerParameter;
-import org.jboss.webbeans.test.newbean.valid.WrappedBean;
-import org.jboss.webbeans.util.Proxies.TypeInfo;
-import org.testng.annotations.BeforeMethod;
-import org.testng.annotations.Test;
-
-@SpecVersion("20081222")
-public class NewBeanTest extends AbstractTest
-{
- private SimpleBean<WrappedBean> wrappedBean;
- private NewSimpleBean<WrappedBean> newBean;
-
- @BeforeMethod
- public void initNewBean() {
- wrappedBean = SimpleBean.of(WrappedBean.class, manager);
- manager.addBean(wrappedBean);
- newBean = NewSimpleBean.of(WrappedBean.class, manager);
- manager.addBean(newBean);
- }
-
- /**
- * When the built-in binding type @New is applied to an injection point, a
- * Web Bean is implicitly defined with: � scope @Dependent, � deployment type
- *
- * @Standard, � @New as the only binding annotation, � no Web Bean name, � no
- * stereotypes, and such that � the implementation class is the
- * declared type of the injection point.
- */
- @Test(groups = { "new" })
- @SpecAssertion(section = "3.9")
- public void testNewBeanIsDependentScoped()
- {
- assert Dependent.class.equals(newBean.getScopeType());
- }
-
- /**
- * When the built-in binding type @New is applied to an injection point, a
- * Web Bean is implicitly defined with: � scope @Dependent, � deployment type
- *
- * @Standard, � @New as the only binding annotation, � no Web Bean name, � no
- * stereotypes, and such that � the implementation class is the
- * declared type of the injection point.
- */
- @Test(groups = { "new" })
- @SpecAssertion(section = "3.9")
- public void testNewBeanIsOfStandardDeploymentType()
- {
- assert Standard.class.equals(newBean.getDeploymentType());
- }
-
- /**
- * When the built-in binding type @New is applied to an injection point, a
- * Web Bean is implicitly defined with: � scope @Dependent, � deployment type
- *
- * @Standard, � @New as the only binding annotation, � no Web Bean name, � no
- * stereotypes, and such that � the implementation class is the
- * declared type of the injection point.
- */
- @Test(groups = { "new" })
- @SpecAssertion(section = "3.9")
- public void testNewBeanIsHasOnlyNewBinding()
- {
- assert newBean.getBindingTypes().size() == 1;
- assert newBean.getBindingTypes().iterator().next().annotationType().equals(new NewBinding().annotationType());
- }
-
- /**
- * When the built-in binding type @New is applied to an injection point, a
- * Web Bean is implicitly defined with: � scope @Dependent, � deployment type
- *
- * @Standard, � @New as the only binding annotation, � no Web Bean name, � no
- * stereotypes, and such that � the implementation class is the
- * declared type of the injection point.
- */
- @Test(groups = { "new" })
- @SpecAssertion(section = "3.9")
- public void testNewBeanHasNoWebBeanName()
- {
- assert newBean.getName() == null;
- }
-
- /**
- * When the built-in binding type @New is applied to an injection point, a
- * Web Bean is implicitly defined with: � scope @Dependent, � deployment type
- *
- * @Standard, � @New as the only binding annotation, � no Web Bean name, � no
- * stereotypes, and such that � the implementation class is the
- * declared type of the injection point.
- */
- @Test(groups = { "stub", "new" })
- @SpecAssertion(section = "3.9")
- public void testNewBeanHasNoStereotypes()
- {
- assert false;
- }
-
- /**
- * When the built-in binding type @New is applied to an injection point, a
- * Web Bean is implicitly defined with: � scope @Dependent, � deployment type
- *
- * @Standard, � @New as the only binding annotation, � no Web Bean name, � no
- * stereotypes, and such that � the implementation class is the
- * declared type of the injection point.
- */
- @Test(groups = { "new" })
- @SpecAssertion(section = "3.9")
- public void testNewBeanHasImplementationClassOfInjectionPointType()
- {
- assert newBean.getType().equals(WrappedBean.class);
- }
-
- /**
- * If the parameter type satisfies the definition of a simple Web Bean
- * implementation class, Section 3.2.1, �Which Java classes are simple Web
- * Beans?�, then the Web Bean is a simple Web Bean. If the parameter type
- * satisfies the definition of an enterprise Web Bean implementation class,
- * Section 3.3.2, �Which EJBs are enterprise Web Beans?�, then the Web Bean
- * is an enterprise Web Bean.
- */
- @Test(groups = { "stub", "new" })
- @SpecAssertion(section = "3.9")
- public void testNewBeanIsSimpleWebBeanIfParameterTypeIsSimpleWebBean()
- {
- // TODO: has to be?
- assert false;
- }
-
- /**
- * If the parameter type satisfies the definition of a simple Web Bean
- * implementation class, Section 3.2.1, �Which Java classes are simple Web
- * Beans?�, then the Web Bean is a simple Web Bean. If the parameter type
- * satisfies the definition of an enterprise Web Bean implementation class,
- * Section 3.3.2, �Which EJBs are enterprise Web Beans?�, then the Web Bean
- * is an enterprise Web Bean.
- */
- @Test(groups = { "stub", "new" })
- @SpecAssertion(section = "3.9")
- public void testNewBeanIsEnterpriseWebBeanIfParameterTypeIsEnterpriseWebBean()
- {
- // TODO: has to be?
- assert false;
- }
-
- /**
- * Furthermore, this Web Bean: � has the same Web Bean constructor,
- * initializer methods and injected fields as a Web Bean defined using
- * annotations� that is, it has any Web Bean constructor, initializer method
- * or injected field declared by annotations that appear on the
- * implementation class, � has no observer methods, producer methods or
- * fields or disposal methods, � has the same interceptors as a Web Bean
- * defined using annotations�that is, it has all the interceptor binding
- * types declared by annotations that appear on the implementation class, and
- * � has no decorators.
- */
- @Test(groups = { "new" })
- @SpecAssertion(section = "3.9")
- public void testNewBeanHasSameConstructorAsWrappedBean()
- {
- assert wrappedBean.getConstructor().equals(newBean.getConstructor());
- }
-
- /**
- * Furthermore, this Web Bean: � has the same Web Bean constructor,
- * initializer methods and injected fields as a Web Bean defined using
- * annotations� that is, it has any Web Bean constructor, initializer method
- * or injected field declared by annotations that appear on the
- * implementation class, � has no observer methods, producer methods or
- * fields or disposal methods, � has the same interceptors as a Web Bean
- * defined using annotations�that is, it has all the interceptor binding
- * types declared by annotations that appear on the implementation class, and
- * � has no decorators.
- */
- @Test(groups = { "new" })
- @SpecAssertion(section = "3.9")
- public void testNewBeanHasSameInitializerMethodsAsWrappedBean()
- {
- assert newBean.getInitializerMethods().equals(wrappedBean.getInitializerMethods());
- }
-
- /**
- * Furthermore, this Web Bean: � has the same Web Bean constructor,
- * initializer methods and injected fields as a Web Bean defined using
- * annotations� that is, it has any Web Bean constructor, initializer method
- * or injected field declared by annotations that appear on the
- * implementation class, � has no observer methods, producer methods or
- * fields or disposal methods, � has the same interceptors as a Web Bean
- * defined using annotations�that is, it has all the interceptor binding
- * types declared by annotations that appear on the implementation class, and
- * � has no decorators.
- */
- @Test(groups = { "new" })
- @SpecAssertion(section = "3.9")
- public void testNewBeanHasSameInjectedFieldsAsWrappedBean()
- {
- Set<AnnotatedItem<?, ?>> wrappedBeanInjectionPoints = wrappedBean.getInjectionPoints();
- Set<AnnotatedItem<?, ?>> newBeanInjectionPoints = newBean.getInjectionPoints();
- assert wrappedBeanInjectionPoints.equals(newBeanInjectionPoints);
- }
-
- /**
- * Furthermore, this Web Bean: � has the same Web Bean constructor,
- * initializer methods and injected fields as a Web Bean defined using
- * annotations� that is, it has any Web Bean constructor, initializer method
- * or injected field declared by annotations that appear on the
- * implementation class, � has no observer methods, producer methods or
- * fields or disposal methods, � has the same interceptors as a Web Bean
- * defined using annotations�that is, it has all the interceptor binding
- * types declared by annotations that appear on the implementation class, and
- * � has no decorators.
- */
- @Test(groups = {"new" })
- @SpecAssertion(section = "3.9")
- public void testNewBeanHasNoObservers()
- {
- assert newBean.getObserverMethods().isEmpty();
- }
-
- /**
- * Furthermore, this Web Bean: � has the same Web Bean constructor,
- * initializer methods and injected fields as a Web Bean defined using
- * annotations� that is, it has any Web Bean constructor, initializer method
- * or injected field declared by annotations that appear on the
- * implementation class, � has no observer methods, producer methods or
- * fields or disposal methods, � has the same interceptors as a Web Bean
- * defined using annotations�that is, it has all the interceptor binding
- * types declared by annotations that appear on the implementation class, and
- * � has no decorators.
- */
- @Test(groups = { "new" })
- @SpecAssertion(section = "3.9")
- public void testNewBeanHasNoProducerFields()
- {
- assert newBean.getProducerFields().isEmpty();
- }
-
- /**
- * Furthermore, this Web Bean: � has the same Web Bean constructor,
- * initializer methods and injected fields as a Web Bean defined using
- * annotations� that is, it has any Web Bean constructor, initializer method
- * or injected field declared by annotations that appear on the
- * implementation class, � has no observer methods, producer methods or
- * fields or disposal methods, � has the same interceptors as a Web Bean
- * defined using annotations�that is, it has all the interceptor binding
- * types declared by annotations that appear on the implementation class, and
- * � has no decorators.
- */
- @Test(groups = { "new" })
- @SpecAssertion(section = "3.9")
- public void testNewBeanHasNoProducerMethods()
- {
- assert newBean.getProducerMethods().isEmpty();
- }
-
- /**
- * Furthermore, this Web Bean: � has the same Web Bean constructor,
- * initializer methods and injected fields as a Web Bean defined using
- * annotations� that is, it has any Web Bean constructor, initializer method
- * or injected field declared by annotations that appear on the
- * implementation class, � has no observer methods, producer methods or
- * fields or disposal methods, � has the same interceptors as a Web Bean
- * defined using annotations�that is, it has all the interceptor binding
- * types declared by annotations that appear on the implementation class, and
- * � has no decorators.
- */
- @Test(groups = { "new" })
- @SpecAssertion(section = "3.9")
- public void testNewBeanHasNoDisposalMethods()
- {
- Class<?> type = TypeInfo.ofTypes(newBean.getTypes()).getSuperClass();
- assert manager.resolveDisposalMethods(type, newBean.getBindingTypes().toArray(new Annotation[0])).isEmpty();
- }
-
- /**
- * Furthermore, this Web Bean: � has the same Web Bean constructor,
- * initializer methods and injected fields as a Web Bean defined using
- * annotations� that is, it has any Web Bean constructor, initializer method
- * or injected field declared by annotations that appear on the
- * implementation class, � has no observer methods, producer methods or
- * fields or disposal methods, � has the same interceptors as a Web Bean
- * defined using annotations�that is, it has all the interceptor binding
- * types declared by annotations that appear on the implementation class, and
- * � has no decorators.
- */
- @Test(groups = { "stub", "new" })
- @SpecAssertion(section = "3.9")
- public void testNewBeanHasSameInterceptorMethodsAsWrappedBean()
- {
- assert false;
- }
-
- /**
- * Furthermore, this Web Bean: � has the same Web Bean constructor,
- * initializer methods and injected fields as a Web Bean defined using
- * annotations� that is, it has any Web Bean constructor, initializer method
- * or injected field declared by annotations that appear on the
- * implementation class, � has no observer methods, producer methods or
- * fields or disposal methods, � has the same interceptors as a Web Bean
- * defined using annotations�that is, it has all the interceptor binding
- * types declared by annotations that appear on the implementation class, and
- * � has no decorators.
- */
- @Test(groups = { "new" })
- @SpecAssertion(section = "3.9")
- public void testNewBeanHasNoDecorators()
- {
- Annotation[] bindingTypes = newBean.getBindingTypes().toArray(new Annotation[0]);
- assert manager.resolveDecorators(newBean.getTypes(), bindingTypes).isEmpty();
- }
-
- /**
- * The @New annotation or <New> element may be applied to any field of a Web
- * Bean implementation class or to any parameter of a producer method,
- * initializer method, disposal method or Web Bean constructor where the type
- * of the field or parameter is a concrete Java type which satisfies the
- * requirements of a simple Web Bean implementation class or enterprise Web
- * Bean implementation class.
- */
- @Test(groups = { "new" , "broken" })
- @SpecAssertion(section = "3.9")
- public void testNewAnnotationMayBeAppliedToField()
- {
- webBeansBootstrap.setWebBeanDiscovery(new MockWebBeanDiscovery(AnnotatedField.class));
- webBeansBootstrap.boot();
- assert manager.resolveByType(WrappedBean.class, new NewBinding()).size() == 1;
- }
-
- /**
- * The @New annotation or <New> element may be applied to any field of a Web
- * Bean implementation class or to any parameter of a producer method,
- * initializer method, disposal method or Web Bean constructor where the type
- * of the field or parameter is a concrete Java type which satisfies the
- * requirements of a simple Web Bean implementation class or enterprise Web
- * Bean implementation class.
- */
- @Test(groups = { "new" , "broken" })
- @SpecAssertion(section = "3.9")
- public void testNewAnnotationMayBeAppliedToProducerMethodParameter()
- {
- webBeansBootstrap.setWebBeanDiscovery(new MockWebBeanDiscovery(AnnotatedProducerParameter.class));
- webBeansBootstrap.boot();
- assert manager.resolveByType(WrappedBean.class, new NewBinding()).size() == 1;
- }
-
- /**
- * The @New annotation or <New> element may be applied to any field of a Web
- * Bean implementation class or to any parameter of a producer method,
- * initializer method, disposal method or Web Bean constructor where the type
- * of the field or parameter is a concrete Java type which satisfies the
- * requirements of a simple Web Bean implementation class or enterprise Web
- * Bean implementation class.
- */
- @Test(groups = { "new", "broken" })
- @SpecAssertion(section = "3.9")
- public void testNewAnnotationMayBeAppliedToInitializerMethodParameter()
- {
- webBeansBootstrap.setWebBeanDiscovery(new MockWebBeanDiscovery(AnnotatedInitializerParameter.class));
- webBeansBootstrap.boot();
- assert manager.resolveByType(WrappedBean.class, new NewBinding()).size() == 1;
- }
-
- /**
- * The @New annotation or <New> element may be applied to any field of a Web
- * Bean implementation class or to any parameter of a producer method,
- * initializer method, disposal method or Web Bean constructor where the type
- * of the field or parameter is a concrete Java type which satisfies the
- * requirements of a simple Web Bean implementation class or enterprise Web
- * Bean implementation class.
- */
- @Test(groups = { "new", "broken" })
- @SpecAssertion(section = "3.9")
- public void testNewAnnotationMayBeAppliedToConstructorMethodParameter()
- {
- webBeansBootstrap.setWebBeanDiscovery(new MockWebBeanDiscovery(AnnotatedConstructorParameter.class));
- webBeansBootstrap.boot();
- assert manager.resolveByType(WrappedBean.class, new NewBinding()).size() == 1;
- }
-
- /**
- * If the @New binding type appears in conjunction with some other binding
- * type, or is specified for a field or parameter of a type which does not
- * satisfy the definition of a simple Web Bean implementation class or
- * enterprise Web Bean implementation class, a DefinitionException is thrown
- * by the container at deployment time.
- */
- @Test(groups = { "new" , "broken"}, expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = "3.9")
- public void testNewAnnotationCannotAppearInConjunctionWithOtherBindingType()
- {
- webBeansBootstrap.setWebBeanDiscovery(new MockWebBeanDiscovery(NewAndOtherBindingType.class));
- webBeansBootstrap.boot();
- }
-
- /**
- * If the @New binding type appears in conjunction with some other binding
- * type, or is specified for a field or parameter of a type which does not
- * satisfy the definition of a simple Web Bean implementation class or
- * enterprise Web Bean implementation class, a DefinitionException is thrown
- * by the container at deployment time.
- */
- @Test(groups = { "stub", "new" }, expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = "3.9")
- public void testNewAnnotationCannotBeAppliedToNonWebBeanImplementationClass()
- {
- assert false;
- }
-
- /**
- * No Web Bean defined using annotations or XML may explicitly declare @New
- * as a binding type
- */
- @Test(groups = { "stub", "new" }, expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = "3.9")
- public void testNewAnnotationCannotBeExplicitlyDeclared()
- {
- assert false;
- }
-
-
-}
Added: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/NewEnterpriseBeanTest.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/NewEnterpriseBeanTest.java (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/NewEnterpriseBeanTest.java 2009-01-08 07:41:03 UTC (rev 823)
@@ -0,0 +1,428 @@
+package org.jboss.webbeans.test.newbean;
+
+import java.lang.annotation.Annotation;
+import java.util.Set;
+
+import javax.webbeans.DefinitionException;
+import javax.webbeans.Dependent;
+import javax.webbeans.Standard;
+
+import org.jboss.webbeans.bean.EnterpriseBean;
+import org.jboss.webbeans.bean.NewEnterpriseBean;
+import org.jboss.webbeans.binding.NewBinding;
+import org.jboss.webbeans.introspector.AnnotatedItem;
+import org.jboss.webbeans.test.AbstractTest;
+import org.jboss.webbeans.test.SpecAssertion;
+import org.jboss.webbeans.test.SpecVersion;
+import org.jboss.webbeans.test.mock.MockWebBeanDiscovery;
+import org.jboss.webbeans.test.newbean.invalid.NewAndOtherBindingType;
+import org.jboss.webbeans.test.newbean.valid.AnnotatedConstructorParameter;
+import org.jboss.webbeans.test.newbean.valid.AnnotatedField;
+import org.jboss.webbeans.test.newbean.valid.AnnotatedInitializerParameter;
+import org.jboss.webbeans.test.newbean.valid.AnnotatedProducerParameter;
+import org.jboss.webbeans.test.newbean.valid.WrappedEnterpriseBean;
+import org.jboss.webbeans.test.newbean.valid.WrappedSimpleBean;
+import org.jboss.webbeans.util.Proxies.TypeInfo;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
+@SpecVersion("20081222")
+public class NewEnterpriseBeanTest extends AbstractTest
+{
+ private EnterpriseBean<WrappedEnterpriseBean> wrappedEnterpriseBean;
+ private NewEnterpriseBean<WrappedEnterpriseBean> newEnterpriseBean;
+
+ @BeforeMethod
+ public void initNewBean() {
+ addToEjbCache(WrappedEnterpriseBean.class);
+ wrappedEnterpriseBean = EnterpriseBean.of(WrappedEnterpriseBean.class, manager);
+ manager.addBean(wrappedEnterpriseBean);
+ newEnterpriseBean = NewEnterpriseBean.of(WrappedEnterpriseBean.class, manager);
+ manager.addBean(newEnterpriseBean);
+ }
+
+ /**
+ * When the built-in binding type @New is applied to an injection point, a
+ * Web Bean is implicitly defined with: � scope @Dependent, � deployment type
+ *
+ * @Standard, � @New as the only binding annotation, � no Web Bean name, � no
+ * stereotypes, and such that � the implementation class is the
+ * declared type of the injection point.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanIsDependentScoped()
+ {
+ assert Dependent.class.equals(newEnterpriseBean.getScopeType());
+ }
+
+ /**
+ * When the built-in binding type @New is applied to an injection point, a
+ * Web Bean is implicitly defined with: � scope @Dependent, � deployment type
+ *
+ * @Standard, � @New as the only binding annotation, � no Web Bean name, � no
+ * stereotypes, and such that � the implementation class is the
+ * declared type of the injection point.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanIsOfStandardDeploymentType()
+ {
+ assert Standard.class.equals(newEnterpriseBean.getDeploymentType());
+ }
+
+ /**
+ * When the built-in binding type @New is applied to an injection point, a
+ * Web Bean is implicitly defined with: � scope @Dependent, � deployment type
+ *
+ * @Standard, � @New as the only binding annotation, � no Web Bean name, � no
+ * stereotypes, and such that � the implementation class is the
+ * declared type of the injection point.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanIsHasOnlyNewBinding()
+ {
+ assert newEnterpriseBean.getBindingTypes().size() == 1;
+ assert newEnterpriseBean.getBindingTypes().iterator().next().annotationType().equals(new NewBinding().annotationType());
+ }
+
+ /**
+ * When the built-in binding type @New is applied to an injection point, a
+ * Web Bean is implicitly defined with: � scope @Dependent, � deployment type
+ *
+ * @Standard, � @New as the only binding annotation, � no Web Bean name, � no
+ * stereotypes, and such that � the implementation class is the
+ * declared type of the injection point.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasNoWebBeanName()
+ {
+ assert newEnterpriseBean.getName() == null;
+ }
+
+ /**
+ * When the built-in binding type @New is applied to an injection point, a
+ * Web Bean is implicitly defined with: � scope @Dependent, � deployment type
+ *
+ * @Standard, � @New as the only binding annotation, � no Web Bean name, � no
+ * stereotypes, and such that � the implementation class is the
+ * declared type of the injection point.
+ */
+ @Test(groups = { "stub", "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasNoStereotypes()
+ {
+ assert false;
+ }
+
+ /**
+ * When the built-in binding type @New is applied to an injection point, a
+ * Web Bean is implicitly defined with: � scope @Dependent, � deployment type
+ *
+ * @Standard, � @New as the only binding annotation, � no Web Bean name, � no
+ * stereotypes, and such that � the implementation class is the
+ * declared type of the injection point.
+ */
+ @Test(groups = { "new", "broken" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasImplementationClassOfInjectionPointType()
+ {
+ assert newEnterpriseBean.getType().equals(WrappedSimpleBean.class);
+ }
+
+ /**
+ * If the parameter type satisfies the definition of a simple Web Bean
+ * implementation class, Section 3.2.1, �Which Java classes are simple Web
+ * Beans?�, then the Web Bean is a simple Web Bean. If the parameter type
+ * satisfies the definition of an enterprise Web Bean implementation class,
+ * Section 3.3.2, �Which EJBs are enterprise Web Beans?�, then the Web Bean
+ * is an enterprise Web Bean.
+ */
+ @Test(groups = { "stub", "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanIsEnterpriseWebBeanIfParameterTypeIsEnterpriseWebBean()
+ {
+ // TODO: has to be?
+ assert false;
+ }
+
+ /**
+ * Furthermore, this Web Bean: � has the same Web Bean constructor,
+ * initializer methods and injected fields as a Web Bean defined using
+ * annotations� that is, it has any Web Bean constructor, initializer method
+ * or injected field declared by annotations that appear on the
+ * implementation class, � has no observer methods, producer methods or
+ * fields or disposal methods, � has the same interceptors as a Web Bean
+ * defined using annotations�that is, it has all the interceptor binding
+ * types declared by annotations that appear on the implementation class, and
+ * � has no decorators.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasSameConstructorAsWrappedBean()
+ {
+ // N/A for EJB
+ assert true;
+// assert wrappedEnterpriseBean.getConstructor().equals(newEnterpriseBean.getConstructor());
+ }
+
+ /**
+ * Furthermore, this Web Bean: � has the same Web Bean constructor,
+ * initializer methods and injected fields as a Web Bean defined using
+ * annotations� that is, it has any Web Bean constructor, initializer method
+ * or injected field declared by annotations that appear on the
+ * implementation class, � has no observer methods, producer methods or
+ * fields or disposal methods, � has the same interceptors as a Web Bean
+ * defined using annotations�that is, it has all the interceptor binding
+ * types declared by annotations that appear on the implementation class, and
+ * � has no decorators.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasSameInitializerMethodsAsWrappedBean()
+ {
+ assert newEnterpriseBean.getInitializerMethods().equals(wrappedEnterpriseBean.getInitializerMethods());
+ }
+
+ /**
+ * Furthermore, this Web Bean: � has the same Web Bean constructor,
+ * initializer methods and injected fields as a Web Bean defined using
+ * annotations� that is, it has any Web Bean constructor, initializer method
+ * or injected field declared by annotations that appear on the
+ * implementation class, � has no observer methods, producer methods or
+ * fields or disposal methods, � has the same interceptors as a Web Bean
+ * defined using annotations�that is, it has all the interceptor binding
+ * types declared by annotations that appear on the implementation class, and
+ * � has no decorators.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasSameInjectedFieldsAsWrappedBean()
+ {
+ Set<AnnotatedItem<?, ?>> wrappedBeanInjectionPoints = wrappedEnterpriseBean.getInjectionPoints();
+ Set<AnnotatedItem<?, ?>> newBeanInjectionPoints = newEnterpriseBean.getInjectionPoints();
+ assert wrappedBeanInjectionPoints.equals(newBeanInjectionPoints);
+ }
+
+ /**
+ * Furthermore, this Web Bean: � has the same Web Bean constructor,
+ * initializer methods and injected fields as a Web Bean defined using
+ * annotations� that is, it has any Web Bean constructor, initializer method
+ * or injected field declared by annotations that appear on the
+ * implementation class, � has no observer methods, producer methods or
+ * fields or disposal methods, � has the same interceptors as a Web Bean
+ * defined using annotations�that is, it has all the interceptor binding
+ * types declared by annotations that appear on the implementation class, and
+ * � has no decorators.
+ */
+ @Test(groups = {"new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasNoObservers()
+ {
+ assert newEnterpriseBean.getObserverMethods().isEmpty();
+ }
+
+ /**
+ * Furthermore, this Web Bean: � has the same Web Bean constructor,
+ * initializer methods and injected fields as a Web Bean defined using
+ * annotations� that is, it has any Web Bean constructor, initializer method
+ * or injected field declared by annotations that appear on the
+ * implementation class, � has no observer methods, producer methods or
+ * fields or disposal methods, � has the same interceptors as a Web Bean
+ * defined using annotations�that is, it has all the interceptor binding
+ * types declared by annotations that appear on the implementation class, and
+ * � has no decorators.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasNoProducerFields()
+ {
+ assert newEnterpriseBean.getProducerFields().isEmpty();
+ }
+
+ /**
+ * Furthermore, this Web Bean: � has the same Web Bean constructor,
+ * initializer methods and injected fields as a Web Bean defined using
+ * annotations� that is, it has any Web Bean constructor, initializer method
+ * or injected field declared by annotations that appear on the
+ * implementation class, � has no observer methods, producer methods or
+ * fields or disposal methods, � has the same interceptors as a Web Bean
+ * defined using annotations�that is, it has all the interceptor binding
+ * types declared by annotations that appear on the implementation class, and
+ * � has no decorators.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasNoProducerMethods()
+ {
+ assert newEnterpriseBean.getProducerMethods().isEmpty();
+ }
+
+ /**
+ * Furthermore, this Web Bean: � has the same Web Bean constructor,
+ * initializer methods and injected fields as a Web Bean defined using
+ * annotations� that is, it has any Web Bean constructor, initializer method
+ * or injected field declared by annotations that appear on the
+ * implementation class, � has no observer methods, producer methods or
+ * fields or disposal methods, � has the same interceptors as a Web Bean
+ * defined using annotations�that is, it has all the interceptor binding
+ * types declared by annotations that appear on the implementation class, and
+ * � has no decorators.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasNoDisposalMethods()
+ {
+ Class<?> type = TypeInfo.ofTypes(newEnterpriseBean.getTypes()).getSuperClass();
+ assert manager.resolveDisposalMethods(type, newEnterpriseBean.getBindingTypes().toArray(new Annotation[0])).isEmpty();
+ }
+
+ /**
+ * Furthermore, this Web Bean: � has the same Web Bean constructor,
+ * initializer methods and injected fields as a Web Bean defined using
+ * annotations� that is, it has any Web Bean constructor, initializer method
+ * or injected field declared by annotations that appear on the
+ * implementation class, � has no observer methods, producer methods or
+ * fields or disposal methods, � has the same interceptors as a Web Bean
+ * defined using annotations�that is, it has all the interceptor binding
+ * types declared by annotations that appear on the implementation class, and
+ * � has no decorators.
+ */
+ @Test(groups = { "stub", "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasSameInterceptorMethodsAsWrappedBean()
+ {
+ assert false;
+ }
+
+ /**
+ * Furthermore, this Web Bean: � has the same Web Bean constructor,
+ * initializer methods and injected fields as a Web Bean defined using
+ * annotations� that is, it has any Web Bean constructor, initializer method
+ * or injected field declared by annotations that appear on the
+ * implementation class, � has no observer methods, producer methods or
+ * fields or disposal methods, � has the same interceptors as a Web Bean
+ * defined using annotations�that is, it has all the interceptor binding
+ * types declared by annotations that appear on the implementation class, and
+ * � has no decorators.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasNoDecorators()
+ {
+ Annotation[] bindingTypes = newEnterpriseBean.getBindingTypes().toArray(new Annotation[0]);
+ assert manager.resolveDecorators(newEnterpriseBean.getTypes(), bindingTypes).isEmpty();
+ }
+
+ /**
+ * The @New annotation or <New> element may be applied to any field of a Web
+ * Bean implementation class or to any parameter of a producer method,
+ * initializer method, disposal method or Web Bean constructor where the type
+ * of the field or parameter is a concrete Java type which satisfies the
+ * requirements of a simple Web Bean implementation class or enterprise Web
+ * Bean implementation class.
+ */
+ @Test(groups = { "new" , "broken" })
+ @SpecAssertion(section = "3.9")
+ public void testNewAnnotationMayBeAppliedToField()
+ {
+ webBeansBootstrap.setWebBeanDiscovery(new MockWebBeanDiscovery(AnnotatedField.class));
+ webBeansBootstrap.boot();
+ assert manager.resolveByType(WrappedSimpleBean.class, new NewBinding()).size() == 1;
+ }
+
+ /**
+ * The @New annotation or <New> element may be applied to any field of a Web
+ * Bean implementation class or to any parameter of a producer method,
+ * initializer method, disposal method or Web Bean constructor where the type
+ * of the field or parameter is a concrete Java type which satisfies the
+ * requirements of a simple Web Bean implementation class or enterprise Web
+ * Bean implementation class.
+ */
+ @Test(groups = { "new" , "broken" })
+ @SpecAssertion(section = "3.9")
+ public void testNewAnnotationMayBeAppliedToProducerMethodParameter()
+ {
+ webBeansBootstrap.setWebBeanDiscovery(new MockWebBeanDiscovery(AnnotatedProducerParameter.class));
+ webBeansBootstrap.boot();
+ assert manager.resolveByType(WrappedSimpleBean.class, new NewBinding()).size() == 1;
+ }
+
+ /**
+ * The @New annotation or <New> element may be applied to any field of a Web
+ * Bean implementation class or to any parameter of a producer method,
+ * initializer method, disposal method or Web Bean constructor where the type
+ * of the field or parameter is a concrete Java type which satisfies the
+ * requirements of a simple Web Bean implementation class or enterprise Web
+ * Bean implementation class.
+ */
+ @Test(groups = { "new", "broken" })
+ @SpecAssertion(section = "3.9")
+ public void testNewAnnotationMayBeAppliedToInitializerMethodParameter()
+ {
+ webBeansBootstrap.setWebBeanDiscovery(new MockWebBeanDiscovery(AnnotatedInitializerParameter.class));
+ webBeansBootstrap.boot();
+ assert manager.resolveByType(WrappedSimpleBean.class, new NewBinding()).size() == 1;
+ }
+
+ /**
+ * The @New annotation or <New> element may be applied to any field of a Web
+ * Bean implementation class or to any parameter of a producer method,
+ * initializer method, disposal method or Web Bean constructor where the type
+ * of the field or parameter is a concrete Java type which satisfies the
+ * requirements of a simple Web Bean implementation class or enterprise Web
+ * Bean implementation class.
+ */
+ @Test(groups = { "new", "broken" })
+ @SpecAssertion(section = "3.9")
+ public void testNewAnnotationMayBeAppliedToConstructorMethodParameter()
+ {
+ webBeansBootstrap.setWebBeanDiscovery(new MockWebBeanDiscovery(AnnotatedConstructorParameter.class));
+ webBeansBootstrap.boot();
+ assert manager.resolveByType(WrappedSimpleBean.class, new NewBinding()).size() == 1;
+ }
+
+ /**
+ * If the @New binding type appears in conjunction with some other binding
+ * type, or is specified for a field or parameter of a type which does not
+ * satisfy the definition of a simple Web Bean implementation class or
+ * enterprise Web Bean implementation class, a DefinitionException is thrown
+ * by the container at deployment time.
+ */
+ @Test(groups = { "new" , "broken"}, expectedExceptions = DefinitionException.class)
+ @SpecAssertion(section = "3.9")
+ public void testNewAnnotationCannotAppearInConjunctionWithOtherBindingType()
+ {
+ webBeansBootstrap.setWebBeanDiscovery(new MockWebBeanDiscovery(NewAndOtherBindingType.class));
+ webBeansBootstrap.boot();
+ }
+
+ /**
+ * If the @New binding type appears in conjunction with some other binding
+ * type, or is specified for a field or parameter of a type which does not
+ * satisfy the definition of a simple Web Bean implementation class or
+ * enterprise Web Bean implementation class, a DefinitionException is thrown
+ * by the container at deployment time.
+ */
+ @Test(groups = { "stub", "new" }, expectedExceptions = DefinitionException.class)
+ @SpecAssertion(section = "3.9")
+ public void testNewAnnotationCannotBeAppliedToNonWebBeanImplementationClass()
+ {
+ assert false;
+ }
+
+ /**
+ * No Web Bean defined using annotations or XML may explicitly declare @New
+ * as a binding type
+ */
+ @Test(groups = { "stub", "new" }, expectedExceptions = DefinitionException.class)
+ @SpecAssertion(section = "3.9")
+ public void testNewAnnotationCannotBeExplicitlyDeclared()
+ {
+ assert false;
+ }
+
+
+}
Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/NewSimpleBeanTest.java (from rev 821, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/NewBeanTest.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/NewSimpleBeanTest.java (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/NewSimpleBeanTest.java 2009-01-08 07:41:03 UTC (rev 823)
@@ -0,0 +1,424 @@
+package org.jboss.webbeans.test.newbean;
+
+import java.lang.annotation.Annotation;
+import java.util.Set;
+
+import javax.webbeans.DefinitionException;
+import javax.webbeans.Dependent;
+import javax.webbeans.Standard;
+
+import org.jboss.webbeans.bean.NewSimpleBean;
+import org.jboss.webbeans.bean.SimpleBean;
+import org.jboss.webbeans.binding.NewBinding;
+import org.jboss.webbeans.introspector.AnnotatedItem;
+import org.jboss.webbeans.test.AbstractTest;
+import org.jboss.webbeans.test.SpecAssertion;
+import org.jboss.webbeans.test.SpecVersion;
+import org.jboss.webbeans.test.mock.MockWebBeanDiscovery;
+import org.jboss.webbeans.test.newbean.invalid.NewAndOtherBindingType;
+import org.jboss.webbeans.test.newbean.valid.AnnotatedConstructorParameter;
+import org.jboss.webbeans.test.newbean.valid.AnnotatedField;
+import org.jboss.webbeans.test.newbean.valid.AnnotatedInitializerParameter;
+import org.jboss.webbeans.test.newbean.valid.AnnotatedProducerParameter;
+import org.jboss.webbeans.test.newbean.valid.WrappedSimpleBean;
+import org.jboss.webbeans.util.Proxies.TypeInfo;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
+@SpecVersion("20081222")
+public class NewSimpleBeanTest extends AbstractTest
+{
+ private SimpleBean<WrappedSimpleBean> wrappedSimpleBean;
+ private NewSimpleBean<WrappedSimpleBean> newSimpleBean;
+
+ @BeforeMethod
+ public void initNewBean() {
+ wrappedSimpleBean = SimpleBean.of(WrappedSimpleBean.class, manager);
+ manager.addBean(wrappedSimpleBean);
+ newSimpleBean = NewSimpleBean.of(WrappedSimpleBean.class, manager);
+ manager.addBean(newSimpleBean);
+ }
+
+ /**
+ * When the built-in binding type @New is applied to an injection point, a
+ * Web Bean is implicitly defined with: � scope @Dependent, � deployment type
+ *
+ * @Standard, � @New as the only binding annotation, � no Web Bean name, � no
+ * stereotypes, and such that � the implementation class is the
+ * declared type of the injection point.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanIsDependentScoped()
+ {
+ assert Dependent.class.equals(newSimpleBean.getScopeType());
+ }
+
+ /**
+ * When the built-in binding type @New is applied to an injection point, a
+ * Web Bean is implicitly defined with: � scope @Dependent, � deployment type
+ *
+ * @Standard, � @New as the only binding annotation, � no Web Bean name, � no
+ * stereotypes, and such that � the implementation class is the
+ * declared type of the injection point.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanIsOfStandardDeploymentType()
+ {
+ assert Standard.class.equals(newSimpleBean.getDeploymentType());
+ }
+
+ /**
+ * When the built-in binding type @New is applied to an injection point, a
+ * Web Bean is implicitly defined with: � scope @Dependent, � deployment type
+ *
+ * @Standard, � @New as the only binding annotation, � no Web Bean name, � no
+ * stereotypes, and such that � the implementation class is the
+ * declared type of the injection point.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanIsHasOnlyNewBinding()
+ {
+ assert newSimpleBean.getBindingTypes().size() == 1;
+ assert newSimpleBean.getBindingTypes().iterator().next().annotationType().equals(new NewBinding().annotationType());
+ }
+
+ /**
+ * When the built-in binding type @New is applied to an injection point, a
+ * Web Bean is implicitly defined with: � scope @Dependent, � deployment type
+ *
+ * @Standard, � @New as the only binding annotation, � no Web Bean name, � no
+ * stereotypes, and such that � the implementation class is the
+ * declared type of the injection point.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasNoWebBeanName()
+ {
+ assert newSimpleBean.getName() == null;
+ }
+
+ /**
+ * When the built-in binding type @New is applied to an injection point, a
+ * Web Bean is implicitly defined with: � scope @Dependent, � deployment type
+ *
+ * @Standard, � @New as the only binding annotation, � no Web Bean name, � no
+ * stereotypes, and such that � the implementation class is the
+ * declared type of the injection point.
+ */
+ @Test(groups = { "stub", "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasNoStereotypes()
+ {
+ assert false;
+ }
+
+ /**
+ * When the built-in binding type @New is applied to an injection point, a
+ * Web Bean is implicitly defined with: � scope @Dependent, � deployment type
+ *
+ * @Standard, � @New as the only binding annotation, � no Web Bean name, � no
+ * stereotypes, and such that � the implementation class is the
+ * declared type of the injection point.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasImplementationClassOfInjectionPointType()
+ {
+ assert newSimpleBean.getType().equals(WrappedSimpleBean.class);
+ }
+
+ /**
+ * If the parameter type satisfies the definition of a simple Web Bean
+ * implementation class, Section 3.2.1, �Which Java classes are simple Web
+ * Beans?�, then the Web Bean is a simple Web Bean. If the parameter type
+ * satisfies the definition of an enterprise Web Bean implementation class,
+ * Section 3.3.2, �Which EJBs are enterprise Web Beans?�, then the Web Bean
+ * is an enterprise Web Bean.
+ */
+ @Test(groups = { "stub", "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanIsSimpleWebBeanIfParameterTypeIsSimpleWebBean()
+ {
+ // TODO: has to be?
+ assert false;
+ }
+
+ /**
+ * Furthermore, this Web Bean: � has the same Web Bean constructor,
+ * initializer methods and injected fields as a Web Bean defined using
+ * annotations� that is, it has any Web Bean constructor, initializer method
+ * or injected field declared by annotations that appear on the
+ * implementation class, � has no observer methods, producer methods or
+ * fields or disposal methods, � has the same interceptors as a Web Bean
+ * defined using annotations�that is, it has all the interceptor binding
+ * types declared by annotations that appear on the implementation class, and
+ * � has no decorators.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasSameConstructorAsWrappedBean()
+ {
+ assert wrappedSimpleBean.getConstructor().equals(newSimpleBean.getConstructor());
+ }
+
+ /**
+ * Furthermore, this Web Bean: � has the same Web Bean constructor,
+ * initializer methods and injected fields as a Web Bean defined using
+ * annotations� that is, it has any Web Bean constructor, initializer method
+ * or injected field declared by annotations that appear on the
+ * implementation class, � has no observer methods, producer methods or
+ * fields or disposal methods, � has the same interceptors as a Web Bean
+ * defined using annotations�that is, it has all the interceptor binding
+ * types declared by annotations that appear on the implementation class, and
+ * � has no decorators.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasSameInitializerMethodsAsWrappedBean()
+ {
+ assert newSimpleBean.getInitializerMethods().equals(wrappedSimpleBean.getInitializerMethods());
+ }
+
+ /**
+ * Furthermore, this Web Bean: � has the same Web Bean constructor,
+ * initializer methods and injected fields as a Web Bean defined using
+ * annotations� that is, it has any Web Bean constructor, initializer method
+ * or injected field declared by annotations that appear on the
+ * implementation class, � has no observer methods, producer methods or
+ * fields or disposal methods, � has the same interceptors as a Web Bean
+ * defined using annotations�that is, it has all the interceptor binding
+ * types declared by annotations that appear on the implementation class, and
+ * � has no decorators.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasSameInjectedFieldsAsWrappedBean()
+ {
+ Set<AnnotatedItem<?, ?>> wrappedBeanInjectionPoints = wrappedSimpleBean.getInjectionPoints();
+ Set<AnnotatedItem<?, ?>> newBeanInjectionPoints = newSimpleBean.getInjectionPoints();
+ assert wrappedBeanInjectionPoints.equals(newBeanInjectionPoints);
+ }
+
+ /**
+ * Furthermore, this Web Bean: � has the same Web Bean constructor,
+ * initializer methods and injected fields as a Web Bean defined using
+ * annotations� that is, it has any Web Bean constructor, initializer method
+ * or injected field declared by annotations that appear on the
+ * implementation class, � has no observer methods, producer methods or
+ * fields or disposal methods, � has the same interceptors as a Web Bean
+ * defined using annotations�that is, it has all the interceptor binding
+ * types declared by annotations that appear on the implementation class, and
+ * � has no decorators.
+ */
+ @Test(groups = {"new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasNoObservers()
+ {
+ assert newSimpleBean.getObserverMethods().isEmpty();
+ }
+
+ /**
+ * Furthermore, this Web Bean: � has the same Web Bean constructor,
+ * initializer methods and injected fields as a Web Bean defined using
+ * annotations� that is, it has any Web Bean constructor, initializer method
+ * or injected field declared by annotations that appear on the
+ * implementation class, � has no observer methods, producer methods or
+ * fields or disposal methods, � has the same interceptors as a Web Bean
+ * defined using annotations�that is, it has all the interceptor binding
+ * types declared by annotations that appear on the implementation class, and
+ * � has no decorators.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasNoProducerFields()
+ {
+ assert newSimpleBean.getProducerFields().isEmpty();
+ }
+
+ /**
+ * Furthermore, this Web Bean: � has the same Web Bean constructor,
+ * initializer methods and injected fields as a Web Bean defined using
+ * annotations� that is, it has any Web Bean constructor, initializer method
+ * or injected field declared by annotations that appear on the
+ * implementation class, � has no observer methods, producer methods or
+ * fields or disposal methods, � has the same interceptors as a Web Bean
+ * defined using annotations�that is, it has all the interceptor binding
+ * types declared by annotations that appear on the implementation class, and
+ * � has no decorators.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasNoProducerMethods()
+ {
+ assert newSimpleBean.getProducerMethods().isEmpty();
+ }
+
+ /**
+ * Furthermore, this Web Bean: � has the same Web Bean constructor,
+ * initializer methods and injected fields as a Web Bean defined using
+ * annotations� that is, it has any Web Bean constructor, initializer method
+ * or injected field declared by annotations that appear on the
+ * implementation class, � has no observer methods, producer methods or
+ * fields or disposal methods, � has the same interceptors as a Web Bean
+ * defined using annotations�that is, it has all the interceptor binding
+ * types declared by annotations that appear on the implementation class, and
+ * � has no decorators.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasNoDisposalMethods()
+ {
+ Class<?> type = TypeInfo.ofTypes(newSimpleBean.getTypes()).getSuperClass();
+ assert manager.resolveDisposalMethods(type, newSimpleBean.getBindingTypes().toArray(new Annotation[0])).isEmpty();
+ }
+
+ /**
+ * Furthermore, this Web Bean: � has the same Web Bean constructor,
+ * initializer methods and injected fields as a Web Bean defined using
+ * annotations� that is, it has any Web Bean constructor, initializer method
+ * or injected field declared by annotations that appear on the
+ * implementation class, � has no observer methods, producer methods or
+ * fields or disposal methods, � has the same interceptors as a Web Bean
+ * defined using annotations�that is, it has all the interceptor binding
+ * types declared by annotations that appear on the implementation class, and
+ * � has no decorators.
+ */
+ @Test(groups = { "stub", "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasSameInterceptorMethodsAsWrappedBean()
+ {
+ assert false;
+ }
+
+ /**
+ * Furthermore, this Web Bean: � has the same Web Bean constructor,
+ * initializer methods and injected fields as a Web Bean defined using
+ * annotations� that is, it has any Web Bean constructor, initializer method
+ * or injected field declared by annotations that appear on the
+ * implementation class, � has no observer methods, producer methods or
+ * fields or disposal methods, � has the same interceptors as a Web Bean
+ * defined using annotations�that is, it has all the interceptor binding
+ * types declared by annotations that appear on the implementation class, and
+ * � has no decorators.
+ */
+ @Test(groups = { "new" })
+ @SpecAssertion(section = "3.9")
+ public void testNewBeanHasNoDecorators()
+ {
+ Annotation[] bindingTypes = newSimpleBean.getBindingTypes().toArray(new Annotation[0]);
+ assert manager.resolveDecorators(newSimpleBean.getTypes(), bindingTypes).isEmpty();
+ }
+
+ /**
+ * The @New annotation or <New> element may be applied to any field of a Web
+ * Bean implementation class or to any parameter of a producer method,
+ * initializer method, disposal method or Web Bean constructor where the type
+ * of the field or parameter is a concrete Java type which satisfies the
+ * requirements of a simple Web Bean implementation class or enterprise Web
+ * Bean implementation class.
+ */
+ @Test(groups = { "new" , "broken" })
+ @SpecAssertion(section = "3.9")
+ public void testNewAnnotationMayBeAppliedToField()
+ {
+ webBeansBootstrap.setWebBeanDiscovery(new MockWebBeanDiscovery(AnnotatedField.class));
+ webBeansBootstrap.boot();
+ assert manager.resolveByType(WrappedSimpleBean.class, new NewBinding()).size() == 1;
+ }
+
+ /**
+ * The @New annotation or <New> element may be applied to any field of a Web
+ * Bean implementation class or to any parameter of a producer method,
+ * initializer method, disposal method or Web Bean constructor where the type
+ * of the field or parameter is a concrete Java type which satisfies the
+ * requirements of a simple Web Bean implementation class or enterprise Web
+ * Bean implementation class.
+ */
+ @Test(groups = { "new" , "broken" })
+ @SpecAssertion(section = "3.9")
+ public void testNewAnnotationMayBeAppliedToProducerMethodParameter()
+ {
+ webBeansBootstrap.setWebBeanDiscovery(new MockWebBeanDiscovery(AnnotatedProducerParameter.class));
+ webBeansBootstrap.boot();
+ assert manager.resolveByType(WrappedSimpleBean.class, new NewBinding()).size() == 1;
+ }
+
+ /**
+ * The @New annotation or <New> element may be applied to any field of a Web
+ * Bean implementation class or to any parameter of a producer method,
+ * initializer method, disposal method or Web Bean constructor where the type
+ * of the field or parameter is a concrete Java type which satisfies the
+ * requirements of a simple Web Bean implementation class or enterprise Web
+ * Bean implementation class.
+ */
+ @Test(groups = { "new", "broken" })
+ @SpecAssertion(section = "3.9")
+ public void testNewAnnotationMayBeAppliedToInitializerMethodParameter()
+ {
+ webBeansBootstrap.setWebBeanDiscovery(new MockWebBeanDiscovery(AnnotatedInitializerParameter.class));
+ webBeansBootstrap.boot();
+ assert manager.resolveByType(WrappedSimpleBean.class, new NewBinding()).size() == 1;
+ }
+
+ /**
+ * The @New annotation or <New> element may be applied to any field of a Web
+ * Bean implementation class or to any parameter of a producer method,
+ * initializer method, disposal method or Web Bean constructor where the type
+ * of the field or parameter is a concrete Java type which satisfies the
+ * requirements of a simple Web Bean implementation class or enterprise Web
+ * Bean implementation class.
+ */
+ @Test(groups = { "new", "broken" })
+ @SpecAssertion(section = "3.9")
+ public void testNewAnnotationMayBeAppliedToConstructorMethodParameter()
+ {
+ webBeansBootstrap.setWebBeanDiscovery(new MockWebBeanDiscovery(AnnotatedConstructorParameter.class));
+ webBeansBootstrap.boot();
+ assert manager.resolveByType(WrappedSimpleBean.class, new NewBinding()).size() == 1;
+ }
+
+ /**
+ * If the @New binding type appears in conjunction with some other binding
+ * type, or is specified for a field or parameter of a type which does not
+ * satisfy the definition of a simple Web Bean implementation class or
+ * enterprise Web Bean implementation class, a DefinitionException is thrown
+ * by the container at deployment time.
+ */
+ @Test(groups = { "new" , "broken"}, expectedExceptions = DefinitionException.class)
+ @SpecAssertion(section = "3.9")
+ public void testNewAnnotationCannotAppearInConjunctionWithOtherBindingType()
+ {
+ webBeansBootstrap.setWebBeanDiscovery(new MockWebBeanDiscovery(NewAndOtherBindingType.class));
+ webBeansBootstrap.boot();
+ }
+
+ /**
+ * If the @New binding type appears in conjunction with some other binding
+ * type, or is specified for a field or parameter of a type which does not
+ * satisfy the definition of a simple Web Bean implementation class or
+ * enterprise Web Bean implementation class, a DefinitionException is thrown
+ * by the container at deployment time.
+ */
+ @Test(groups = { "stub", "new" }, expectedExceptions = DefinitionException.class)
+ @SpecAssertion(section = "3.9")
+ public void testNewAnnotationCannotBeAppliedToNonWebBeanImplementationClass()
+ {
+ assert false;
+ }
+
+ /**
+ * No Web Bean defined using annotations or XML may explicitly declare @New
+ * as a binding type
+ */
+ @Test(groups = { "stub", "new" }, expectedExceptions = DefinitionException.class)
+ @SpecAssertion(section = "3.9")
+ public void testNewAnnotationCannotBeExplicitlyDeclared()
+ {
+ assert false;
+ }
+
+
+}
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/invalid/NewAndOtherBindingType.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/invalid/NewAndOtherBindingType.java 2009-01-08 07:15:08 UTC (rev 822)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/invalid/NewAndOtherBindingType.java 2009-01-08 07:41:03 UTC (rev 823)
@@ -3,9 +3,9 @@
import javax.webbeans.Current;
import javax.webbeans.New;
-import org.jboss.webbeans.test.newbean.valid.WrappedBean;
+import org.jboss.webbeans.test.newbean.valid.WrappedSimpleBean;
public class NewAndOtherBindingType
{
- public @New @Current WrappedBean violation;
+ public @New @Current WrappedSimpleBean violation;
}
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/AnnotatedConstructorParameter.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/AnnotatedConstructorParameter.java 2009-01-08 07:15:08 UTC (rev 822)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/AnnotatedConstructorParameter.java 2009-01-08 07:41:03 UTC (rev 823)
@@ -7,7 +7,7 @@
public class AnnotatedConstructorParameter
{
@Initializer
- public AnnotatedConstructorParameter(@New WrappedBean reference)
+ public AnnotatedConstructorParameter(@New WrappedSimpleBean reference)
{
}
}
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/AnnotatedField.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/AnnotatedField.java 2009-01-08 07:15:08 UTC (rev 822)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/AnnotatedField.java 2009-01-08 07:41:03 UTC (rev 823)
@@ -6,6 +6,6 @@
public class AnnotatedField
{
@New
- WrappedBean reference;
+ WrappedSimpleBean reference;
}
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/AnnotatedInitializerParameter.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/AnnotatedInitializerParameter.java 2009-01-08 07:15:08 UTC (rev 822)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/AnnotatedInitializerParameter.java 2009-01-08 07:41:03 UTC (rev 823)
@@ -7,7 +7,7 @@
public class AnnotatedInitializerParameter
{
@Initializer
- public void init(@New WrappedBean reference)
+ public void init(@New WrappedSimpleBean reference)
{
}
}
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/AnnotatedProducerParameter.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/AnnotatedProducerParameter.java 2009-01-08 07:15:08 UTC (rev 822)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/AnnotatedProducerParameter.java 2009-01-08 07:41:03 UTC (rev 823)
@@ -7,7 +7,7 @@
public class AnnotatedProducerParameter
{
@Produces
- Object produce(@New WrappedBean reference)
+ Object produce(@New WrappedSimpleBean reference)
{
return new Object();
}
Deleted: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/WrappedBean.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/WrappedBean.java 2009-01-08 07:15:08 UTC (rev 822)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/WrappedBean.java 2009-01-08 07:41:03 UTC (rev 823)
@@ -1,15 +0,0 @@
-package org.jboss.webbeans.test.newbean.valid;
-
-import java.io.Serializable;
-
-import javax.webbeans.Named;
-import javax.webbeans.SessionScoped;
-
-@SessionScoped
-@Named("Fred")
-public class WrappedBean implements Serializable
-{
- public WrappedBean() {
-
- }
-}
Added: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/WrappedEnterpriseBean.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/WrappedEnterpriseBean.java (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/WrappedEnterpriseBean.java 2009-01-08 07:41:03 UTC (rev 823)
@@ -0,0 +1,16 @@
+package org.jboss.webbeans.test.newbean.valid;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.webbeans.Named;
+import javax.webbeans.SessionScoped;
+
+@SessionScoped
+@Stateful
+@Named("John")
+public class WrappedEnterpriseBean
+{
+ @Remove
+ public void bye() {
+ }
+}
Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/WrappedSimpleBean.java (from rev 821, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/WrappedBean.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/WrappedSimpleBean.java (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/WrappedSimpleBean.java 2009-01-08 07:41:03 UTC (rev 823)
@@ -0,0 +1,15 @@
+package org.jboss.webbeans.test.newbean.valid;
+
+import java.io.Serializable;
+
+import javax.webbeans.Named;
+import javax.webbeans.SessionScoped;
+
+@SessionScoped
+@Named("Fred")
+public class WrappedSimpleBean implements Serializable
+{
+ public WrappedSimpleBean() {
+
+ }
+}
Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/newbean/valid/WrappedSimpleBean.java
___________________________________________________________________
Name: svn:mergeinfo
+
16 years
[webbeans-commits] Webbeans SVN: r822 - doc/trunk/reference/es-ES.
by webbeans-commits@lists.jboss.org
Author: guegl
Date: 2009-01-08 02:15:08 -0500 (Thu, 08 Jan 2009)
New Revision: 822
Modified:
doc/trunk/reference/es-ES/Author_Group.po
doc/trunk/reference/es-ES/Book_Info.po
doc/trunk/reference/es-ES/decorators.po
doc/trunk/reference/es-ES/ee.po
doc/trunk/reference/es-ES/events.po
Log:
in progress
Modified: doc/trunk/reference/es-ES/Author_Group.po
===================================================================
--- doc/trunk/reference/es-ES/Author_Group.po 2009-01-08 06:50:43 UTC (rev 821)
+++ doc/trunk/reference/es-ES/Author_Group.po 2009-01-08 07:15:08 UTC (rev 822)
@@ -1,23 +1,26 @@
+# translation of Author_Group.po to Spanish
# Language es-ES translations for Introduction_to_Web_Beans package.
+#
# Automatically generated, 2009.
-#
+# Gladys Guerrero Lozano <gguerrer(a)redhat.com>, 2009.
msgid ""
msgstr ""
-"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
+"Project-Id-Version: Author_Group\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-01-04 23:18+0000\n"
-"PO-Revision-Date: 2009-01-04 23:18+0000\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2009-01-08 12:17+1000\n"
+"Last-Translator: Gladys Guerrero Lozano <gguerrer(a)redhat.com>\n"
+"Language-Team: Spanish <fedora-trans-es(a)redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: author
#: Author_Group.xml:4
#, no-c-format
msgid "<firstname>Gavin</firstname> <surname>King</surname>"
-msgstr ""
+msgstr "<firstname>Gavin</firstname> <surname>King</surname>"
#. Tag: affiliation
#: Author_Group.xml:7
@@ -26,35 +29,41 @@
"<jobtitle>Web Beans (JSR-299) specification lead</jobtitle> <orgname>Red Hat "
"Middleware LLC</orgname>"
msgstr ""
+"<jobtitle>información de especificación de Web Beans (JSR-299) </jobtitle> <orgname>Red Hat "
+"Middleware LLC</orgname>"
#. Tag: author
#: Author_Group.xml:12
#, no-c-format
msgid "<firstname>Pete</firstname> <surname>Muir</surname>"
-msgstr ""
+msgstr "<firstname>Pete</firstname> <surname>Muir</surname>"
#. Tag: affiliation
#: Author_Group.xml:15
#, no-c-format
+#, fuzzy
msgid ""
"<jobtitle>Web Beans (JSR-299) Reference Implementation lead </jobtitle> "
"<orgname>Red Hat Middleware LLC</orgname>"
msgstr ""
+"<jobtitle>Web Beans (JSR-299) Reference Implementation lead </jobtitle> "
+"<orgname>Red Hat Middleware LLC</orgname>"
#. Tag: othercredit
#: Author_Group.xml:21
#, no-c-format
msgid "<firstname>Nicola</firstname> <surname>Benaglia</surname>"
-msgstr ""
+msgstr "<firstname>Nicola</firstname> <surname>Benaglia</surname>"
#. Tag: contrib
#: Author_Group.xml:24 Author_Group.xml:29
#, no-c-format
msgid "Italian Translation"
-msgstr ""
+msgstr "Traducción en italiano"
#. Tag: othercredit
#: Author_Group.xml:26
#, no-c-format
msgid "<firstname>Francesco</firstname> <surname>Milesi</surname>"
-msgstr ""
+msgstr "<firstname>Francesco</firstname> <surname>Milesi</surname>"
+
Modified: doc/trunk/reference/es-ES/Book_Info.po
===================================================================
--- doc/trunk/reference/es-ES/Book_Info.po 2009-01-08 06:50:43 UTC (rev 821)
+++ doc/trunk/reference/es-ES/Book_Info.po 2009-01-08 07:15:08 UTC (rev 822)
@@ -1,23 +1,26 @@
+# translation of Book_Info.po to Spanish
# Language es-ES translations for master.xml package.
+#
# Automatically generated, 2008.
-#
+# Gladys Guerrero Lozano <gguerrer(a)redhat.com>, 2009.
msgid ""
msgstr ""
-"Project-Id-Version: master.xml \n"
+"Project-Id-Version: Book_Info\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-01-04 23:18+0000\n"
-"PO-Revision-Date: 2008-12-19 20:29+0000\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2009-01-08 10:39+1000\n"
+"Last-Translator: Gladys Guerrero Lozano <gguerrer(a)redhat.com>\n"
+"Language-Team: Spanish <fedora-trans-es(a)redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
#: Book_Info.xml:4
#, no-c-format
msgid "Introduction to Web Beans"
-msgstr ""
+msgstr "Introducción a Web Beans"
#. Tag: subtitle
#: Book_Info.xml:5
@@ -25,4 +28,5 @@
msgid ""
"The new Java standard for dependency injection and contextual state "
"management"
-msgstr ""
+msgstr "El nuevo estándar de Java para inyección de dependencia y manejo de estado contextual"
+
Modified: doc/trunk/reference/es-ES/decorators.po
===================================================================
--- doc/trunk/reference/es-ES/decorators.po 2009-01-08 06:50:43 UTC (rev 821)
+++ doc/trunk/reference/es-ES/decorators.po 2009-01-08 07:15:08 UTC (rev 822)
@@ -1,23 +1,26 @@
+# translation of decorators.po to Spanish
# Language es-ES translations for master.xml package.
+#
# Automatically generated, 2008.
-#
+# Gladys Guerrero Lozano <gguerrer(a)redhat.com>, 2009.
msgid ""
msgstr ""
-"Project-Id-Version: master.xml \n"
+"Project-Id-Version: decorators\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:26+0000\n"
-"PO-Revision-Date: 2008-12-19 20:26+0000\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2009-01-08 12:15+1000\n"
+"Last-Translator: Gladys Guerrero Lozano <gguerrer(a)redhat.com>\n"
+"Language-Team: Spanish <fedora-trans-es(a)redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
#: decorators.xml:4
#, no-c-format
msgid "Decorators"
-msgstr ""
+msgstr "Decoradores"
#. Tag: para
#: decorators.xml:6
@@ -30,7 +33,7 @@
"However, by nature, interceptors are unaware of the actual semantics of the "
"events they intercept. Thus, interceptors aren't an appropriate tool for "
"separating business-related concerns."
-msgstr ""
+msgstr "Los interceptores son una forma potente de capturar y distinguir preocupaciones que son <emphasis>ortogonales</emphasis> al tipo de sistema. Cualquier interceptor puede interceptar invocaciones de cualquier tipo Java. Esto los hace perfectos para resolver las dudas técnicas como la administración de transacción y la seguridad. Sin embargo, por naturaleza, los interceptores desconocen la semántica real de los eventos que interceptan. Por lo tanto, los interceptores no son una herramienta apropiada para separar las cuestiones relacionadas con negocios."
#. Tag: para
#: decorators.xml:14
@@ -42,13 +45,13 @@
"a perfect tool for modeling some kinds of business concerns. It also means "
"that a decorator doesn't have the generality of an interceptor. Decorators "
"aren't able to solve technical concerns that cut across many disparate types."
-msgstr ""
+msgstr "Contrario a los <emphasis>decoradores</emphasis>, los cuales interceptan invocaciones únicamente para una cierta interfaz de Java y son por lo tanto, conscientes de toda la semántica asociada a la interfaz. Esto los hace una herramienta perfecta para representar algunos tipos de problemas de negocios. También significa que los decoradores no tienen la generalidad de un interceptor. Los decoradores no pueden resolver problemas técnicos que atraviesan muchos tipos dispares."
#. Tag: para
#: decorators.xml:22
#, no-c-format
msgid "Suppose we have an interface that represents accounts:"
-msgstr ""
+msgstr "Supongamos que tenemos una interfaz que representa cuentas:"
#. Tag: programlisting
#: decorators.xml:24
@@ -61,6 +64,12 @@
" public void deposit(BigDecimal amount);\n"
"}]]>"
msgstr ""
+"<![CDATA[public interface Account {\n"
+" public BigDecimal getBalance();\n"
+" public User getOwner();\n"
+" public void withdraw(BigDecimal amount);\n"
+" public void deposit(BigDecimal amount);\n"
+"}]]>"
#. Tag: para
#: decorators.xml:26
@@ -71,6 +80,8 @@
"any kind of account, large transactions must be recorded by the system in a "
"special log. This is a perfect job for a decorator."
msgstr ""
+"Varios Web Beans diferentes en nuestro sistema implementan la interfaz de <literal>Cuenta</"
+"literal>. No obstante, tenemos un requisito legal que, para cualquier clase de cuenta, las transacciones grandes deben ser registradas por el sistema en un registro especial. Este es el trabajo perfecto para un decorador."
#. Tag: para
#: decorators.xml:32
@@ -78,7 +89,7 @@
msgid ""
"A decorator is a simple Web Bean that implements the type it decorates and "
"is annotated <literal>@Decorator</literal>."
-msgstr ""
+msgstr "Un decorador es un Web bean sencillo que implementa el tipo que decora y es anotado <literal>@Decorator</literal>."
#. Tag: programlisting
#: decorators.xml:35
@@ -108,6 +119,29 @@
" \n"
"}]]>"
msgstr ""
+"<![CDATA[@Decorator\n"
+"public abstract class LargeTransactionDecorator \n"
+" implements Account {\n"
+" \n"
+" @Decorates Account account;\n"
+" \n"
+" @PersistenceContext EntityManager em;\n"
+" \n"
+" public void withdraw(BigDecimal amount) {\n"
+" account.withdraw(amount);\n"
+" if ( amount.compareTo(LARGE_AMOUNT)>0 ) {\n"
+" em.persist( new LoggedWithdrawl(amount) );\n"
+" }\n"
+" }\n"
+" \n"
+" public void deposit(BigDecimal amount);\n"
+" account.deposit(amount);\n"
+" if ( amount.compareTo(LARGE_AMOUNT)>0 ) {\n"
+" em.persist( new LoggedDeposit(amount) );\n"
+" }\n"
+" }\n"
+" \n"
+"}]]>"
#. Tag: para
#: decorators.xml:37
@@ -116,13 +150,13 @@
"Unlike other simple Web Beans, a decorator may be an abstract class. If "
"there's nothing special the decorator needs to do for a particular method of "
"the decorated interface, you don't need to implement that method."
-msgstr ""
+msgstr "A diferencia de otros Web Beans sencillos, un decorador puede ser una clase abstracta. Si no hay nada especial que el decorador tenga que hacer para un método particular de la interfaz decorada, usted no necesita implementar ese método."
#. Tag: title
#: decorators.xml:43
#, no-c-format
msgid "Delegate attributes"
-msgstr ""
+msgstr "Atributos de delegado"
#. Tag: para
#: decorators.xml:45
@@ -132,7 +166,7 @@
"binding types of the delegate attribute determine which Web Beans the "
"decorator is bound to. The delegate attribute type must implement or extend "
"all interfaces implemented by the decorator."
-msgstr ""
+msgstr "Todos los decoradores tienen un <emphasis>atributo de delegado</emphasis>. El tipo y los tipos de vinculación del atributo de delegado determinan los Web Beans a los que el decorador está vinculado. El tipo de atributo de delegado debe implementar o extender todas las interfaces implementadas por el decorador."
#. Tag: para
#: decorators.xml:50
@@ -140,13 +174,13 @@
msgid ""
"This delegate attribute specifies that the decorator is bound to all Web "
"Beans that implement <literal>Account</literal>:"
-msgstr ""
+msgstr "Este atributo de delegado especifica que el decorador está vinculado a los Web Beans que implementan <literal>Cuenta</literal>:"
#. Tag: programlisting
#: decorators.xml:53
#, no-c-format
msgid "<![CDATA[@Decorates Account account;]]>"
-msgstr ""
+msgstr "<![CDATA[@Decorates Account account;]]>"
#. Tag: para
#: decorators.xml:55
@@ -154,31 +188,31 @@
msgid ""
"A delegate attribute may specify a binding annotation. Then the decorator "
"will only be bound to Web Beans with the same binding."
-msgstr ""
+msgstr "Un atributo de delegado puede especificar una anotación de enlace. Luego el decorador sólo estará vinculado a los Web Beans con el mismo enlace."
#. Tag: programlisting
#: decorators.xml:58
#, no-c-format
msgid "<![CDATA[@Decorates @Foreign Account account;]]>"
-msgstr ""
+msgstr "<![CDATA[@Decorates @Foreign Account account;]]>"
#. Tag: para
#: decorators.xml:60
#, no-c-format
msgid "A decorator is bound to any Web Bean which:"
-msgstr ""
+msgstr "Un decorador está vinculado a cualquier Web Bean que:"
#. Tag: para
#: decorators.xml:64
#, no-c-format
msgid "has the type of the delegate attribute as an API type, and"
-msgstr ""
+msgstr "tenga el tipo de atributo de delegado como un tipo API, y"
#. Tag: para
#: decorators.xml:67
#, no-c-format
msgid "has all binding types that are declared by the delegate attribute."
-msgstr ""
+msgstr "tenga todos los tipos de vinculación declarados por el atributo de delegado."
#. Tag: para
#: decorators.xml:71
@@ -187,13 +221,13 @@
"The decorator may invoke the delegate attribute, which has much the same "
"effect as calling <literal>InvocationContext.proceed()</literal> from an "
"interceptor."
-msgstr ""
+msgstr "El decorador puede invocar el atributo de delegado, el cual tiene casi el mismo efecto que llamar a <literal>InvocationContext.proceed()</literal> desde un interceptor."
#. Tag: title
#: decorators.xml:78
#, no-c-format
msgid "Enabling decorators"
-msgstr ""
+msgstr "Habilitar decoradores"
#. Tag: para
#: decorators.xml:80
@@ -202,6 +236,8 @@
"We need to <emphasis>enable</emphasis> our decorator in <literal>web-beans."
"xml</literal>."
msgstr ""
+"Necesitamos <emphasis>habilitar </emphasis> nuestro decorador en <literal>web-beans."
+"xml</literal>."
#. Tag: programlisting
#: decorators.xml:83
@@ -211,6 +247,9 @@
" <myapp:LargeTransactionDecorator/>\n"
"</Decorators>]]>"
msgstr ""
+"<![CDATA[<Decorators>\n"
+" <myapp:LargeTransactionDecorator/>\n"
+"</Decorators>]]>"
#. Tag: para
#: decorators.xml:85
@@ -218,7 +257,7 @@
msgid ""
"This declaration serves the same purpose for decorators that the "
"<literal><Interceptors></literal> declaration serves for interceptors:"
-msgstr ""
+msgstr "Esta declaración sirve el mismo propósito para decoradores que la declaración de <literal><Interceptores></literal> sirve para interceptores:"
#. Tag: para
#: decorators.xml:90
@@ -226,13 +265,13 @@
msgid ""
"it enables us to specify a total ordering for all decorators in our system, "
"ensuring deterministic behavior, and"
-msgstr ""
+msgstr "nos permite especificar una orden total para los decoradores en nuestro sistema, garantizando una conducta de determinación y "
#. Tag: para
#: decorators.xml:94
#, no-c-format
msgid "it lets us enable or disable decorator classes at deployment time."
-msgstr ""
+msgstr "permitiéndonos habilitar o inhabilitar las clase de decorador en el tiempo de implementación."
#. Tag: para
#: decorators.xml:98
@@ -240,4 +279,5 @@
msgid ""
"Interceptors for a method are called before decorators that apply to that "
"method."
-msgstr ""
+msgstr "Los interceptores para un método son llamados según los decoradores que aplican a ese método."
+
Modified: doc/trunk/reference/es-ES/ee.po
===================================================================
--- doc/trunk/reference/es-ES/ee.po 2009-01-08 06:50:43 UTC (rev 821)
+++ doc/trunk/reference/es-ES/ee.po 2009-01-08 07:15:08 UTC (rev 822)
@@ -1,23 +1,26 @@
+# translation of ee.po to Spanish
# Language es-ES translations for master.xml package.
+#
# Automatically generated, 2008.
-#
+# Gladys Guerrero Lozano <gguerrer(a)redhat.com>, 2009.
msgid ""
msgstr ""
-"Project-Id-Version: master.xml \n"
+"Project-Id-Version: ee\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-20 22:08+0000\n"
-"PO-Revision-Date: 2008-12-19 20:26+0000\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2009-01-08 16:07+1000\n"
+"Last-Translator: Gladys Guerrero Lozano <gguerrer(a)redhat.com>\n"
+"Language-Team: Spanish <fedora-trans-es(a)redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
#: ee.xml:4
#, no-c-format
msgid "Java EE integration"
-msgstr ""
+msgstr "Integración Java EE"
#. Tag: para
#: ee.xml:6
@@ -28,13 +31,13 @@
"in Unified EL expressions in JSF and JSP pages. They may even be injected "
"into some objects, such as Servlets and Message-Driven Beans, which are not "
"Web Beans."
-msgstr ""
+msgstr "Los Web Beans están totalmente integrados en un entorno de Java EE. Los Web Beans tienen acceso a recursos de Java EE y a contextos persistentes de JSF. Ellos pueden ser utilizados en expresiones Unificadas EL en páginas JSF y JSP. Pueden ser inyectados en algunos objetos, tales como Servlets y Message Driven Beans, los cuales no son Web Beans."
#. Tag: title
#: ee.xml:12
#, no-c-format
msgid "Injecting Java EE resources into a Web Bean"
-msgstr ""
+msgstr "Inyección de recursos de Java EE en un Web Bean"
#. Tag: para
#: ee.xml:14
@@ -44,7 +47,7 @@
"injection using <literal>@Resource</literal>, <literal>@EJB</literal> and "
"<literal>@PersistenceContext</literal>. We've already seen a couple of "
"examples of this, though we didn't pay much attention at the time:"
-msgstr ""
+msgstr "Todos los Web Beans sencillos y de empresa pueden aprovechar la inyección de dependencia de Java EE utilizando<literal>@Resource</literal>, <literal>@EJB</literal> y <literal>@PersistenceContext</literal>. Ya hemos visto algunos ejemplos de esto, aunque no prestamos mucha atención en el momento."
#. Tag: programlisting
#: ee.xml:19
@@ -60,6 +63,15 @@
" \n"
"}]]>"
msgstr ""
+"<![CDATA[@Transactional @Interceptor\n"
+"public class TransactionInterceptor {\n"
+"\n"
+" @Resource Transaction transaction;\n"
+"\n"
+" @AroundInvoke public Object manageTransaction(InvocationContext ctx) "
+"{ ... }\n"
+" \n"
+"}]]>"
#. Tag: programlisting
#: ee.xml:21
@@ -75,6 +87,15 @@
"\n"
"}]]>"
msgstr ""
+"<![CDATA[@SessionScoped\n"
+"public class Login {\n"
+"\n"
+" @Current Credentials credentials;\n"
+" @PersistenceContext EntityManager userDatabase;\n"
+" \n"
+" ...\n"
+"\n"
+"}]]>"
#. Tag: para
#: ee.xml:23
@@ -85,6 +106,8 @@
"Beans. The <literal>@PostConstruct</literal> method is called after "
"<emphasis>all</emphasis> injection has been performed."
msgstr ""
+"El <literal>@PostConstruct</literal> de Java EE y llamadas de <literal>@PreDestroy</"
+"literal> también son compatibles por todos los Web Beans sencillos y de empresa. El método <literal>@PostConstruct</literal> es llamado después de que se ha realizado <emphasis>toda</emphasis> la inyección."
#. Tag: para
#: ee.xml:28
@@ -93,12 +116,14 @@
"There is one restriction to be aware of here: <literal>@PersistenceContext"
"(type=EXTENDED)</literal> is not supported for simple Web Beans."
msgstr ""
+"Hay una restricción para tener en cuenta aquí: <literal>@PersistenceContext"
+"(tipo=EXTENDIDO)</literal> no es compatible con Web Beans sencillos."
#. Tag: title
#: ee.xml:35
#, no-c-format
msgid "Calling a Web Bean from a Servlet"
-msgstr ""
+msgstr "LLamando a Web Bean desde un Servlet"
#. Tag: para
#: ee.xml:37
@@ -106,7 +131,7 @@
msgid ""
"It's easy to use a Web Bean from a Servlet in Java EE 6. Simply inject the "
"Web Bean using Web Beans field or initializer method injection."
-msgstr ""
+msgstr "Resulta fácil utilizar un Web Bean desde un Servlet en Java EE 6. Simplemente inyecte el Web Bean mediante campo de Web Beans o Inyección de método inicializador."
#. Tag: programlisting
#: ee.xml:40
@@ -134,6 +159,27 @@
" \n"
"}"
msgstr ""
+"public class Login extends HttpServlet {\n"
+"\n"
+" @Current Credentials credentials;\n"
+" @Current Login login;\n"
+"\n"
+" @Override\n"
+" public void service(HttpServletRequest request, HttpServletResponse "
+"response)\n"
+" throws ServletException, IOException {\n"
+" credentials.setUsername( request.getAttribute(\"username\") ):\n"
+" credentials.setPassword( request.getAttribute(\"password\") ):\n"
+" login.login();\n"
+" if ( login.isLoggedIn() ) {\n"
+" response.sendRedirect(\"/home.jsp\");\n"
+" }\n"
+" else {\n"
+" response.sendRedirect(\"/loginError.jsp\");\n"
+" }\n"
+" }\n"
+" \n"
+"}"
#. Tag: para
#: ee.xml:42
@@ -143,12 +189,15 @@
"Servlet to the correct instances of <literal>Credentials</literal> and "
"<literal>Login</literal> for the current request and HTTP session."
msgstr ""
+"El cliente proxy de Web Beans cuida las invocaciones del método de enrutamiento desde el "
+"Servlet a las instancias correctas de <literal>Credentiales</literal> e "
+"<literal>Inicio de sesión</literal> para la solicitud actual y sesión HTTP."
#. Tag: title
#: ee.xml:49
#, no-c-format
msgid "Calling a Web Bean from a Message-Driven Bean"
-msgstr ""
+msgstr "Llamada a un Web Bean desde un Message-Driven Bean"
#. Tag: para
#: ee.xml:51
@@ -160,13 +209,14 @@
"particular, you can use Web Beans injection in Message-Driven Beans, which "
"are not considered Web Beans because you can't inject them."
msgstr ""
+"La inyección de Web Beans se aplica a todos los EJB, incluso cuando no están bajo el control del administrador de Web Bean (si fueron obtenidos por el JNDI o inyección utilizando <literal>@EJB</literal>, por ejemplo. En "
+"particular, se puede utilizar inyección de Web Beans en Message-Driven Beans, los cuales no son considerados Web Beans porque usted no puede inyectarlos."
#. Tag: para
#: ee.xml:57
#, no-c-format
-msgid ""
-"You can even use Web Beans interceptor bindings for Message-Driven Beans."
-msgstr ""
+msgid "You can even use Web Beans interceptor bindings for Message-Driven Beans."
+msgstr "Se pueden incluso utilizar enlaces de interceptor de Web Beans para Message-Driven Beans."
#. Tag: programlisting
#: ee.xml:59
@@ -184,6 +234,17 @@
" \n"
"}"
msgstr ""
+"@Transactional @MessageDriven\n"
+"public class ProcessOrder implements MessageListener {\n"
+"\n"
+" @Current Inventory inventory;\n"
+" @PersistenceContext EntityManager em;\n"
+"\n"
+" public void onMessage(Message message) {\n"
+" ...\n"
+" }\n"
+" \n"
+"}"
#. Tag: para
#: ee.xml:61
@@ -193,19 +254,19 @@
"beware that there is no session or conversation context available when a "
"message is delivered to a Message-Driven Bean. Only <literal>@RequestScoped</"
"literal> and <literal>@ApplicationScoped</literal> Web Beans are available."
-msgstr ""
+msgstr "Así, la recepción de mensajes es superfácil en un entorno de Web Beans. No obstante, tenga en cuenta que no hay sesión o contexto de conversación disponible cuando se envía un mensaje a un Message-Driven Bean. Sólo los Web Beans <literal>@RequestScoped</literal> y <literal>@ApplicationScoped</literal> Web Beans están disponibles."
#. Tag: para
#: ee.xml:66
#, no-c-format
msgid "It's also easy to send messages using Web Beans."
-msgstr ""
+msgstr "También es fácil enviar mensajes mediante Web Beans."
#. Tag: title
#: ee.xml:71
#, no-c-format
msgid "JMS endpoints"
-msgstr ""
+msgstr "endpoints JMS"
#. Tag: para
#: ee.xml:73
@@ -221,6 +282,13 @@
"literal>. Each of these objects has its own lifecycle and threading model "
"that we need to worry about."
msgstr ""
+"Enviar mensajes utilizando JMS puede ser bastante complejo, debido al número de objetos diferentes que se tienen que manejar. Para colas tenemos <literal>Queue</"
+"literal>, <literal>QueueConnectionFactory</literal>, "
+"<literal>QueueConnection</literal>, <literal>QueueSession</literal> y "
+"<literal>QueueSender</literal>. Para temas tenemos <literal>Topic</literal>, "
+"<literal>TopicConnectionFactory</literal>, <literal>TopicConnection</"
+"literal>, <literal>TopicSession</literal> y <literal>TopicPublisher</"
+"literal>. Cada uno de estos objetos tiene su propio ciclo de vida y modelo de hilos de los cuales tenemos que preocuparnos."
#. Tag: para
#: ee.xml:82
@@ -229,7 +297,7 @@
"Web Beans takes care of all this for us. All we need to do is declare the "
"queue or topic in <literal>web-beans.xml</literal>, specifying an associated "
"binding type and connection factory."
-msgstr ""
+msgstr "Los Web Beans cuidan de todos por nosotros. Todo lo que se necesita es declarar la cola o tópico en <literal>web-beans.xml</literal>, especificando un tipo de enlace y conexión de fábrica."
#. Tag: programlisting
#: ee.xml:86
@@ -242,6 +310,12 @@
" <myapp:OrderProcessor/> \n"
"</Queue>]]>"
msgstr ""
+"<![CDATA[<Queue>\n"
+" <destination>java:comp/env/jms/OrderQueue</destination>\n"
+" <connectionFactory>java:comp/env/jms/QueueConnectionFactory</"
+"connectionFactory>\n"
+" <myapp:OrderProcessor/> \n"
+"</Queue>]]>"
#. Tag: programlisting
#: ee.xml:88
@@ -254,6 +328,12 @@
" <myapp:StockPrices/> \n"
"</Topic>]]>"
msgstr ""
+"<![CDATA[<Topic>\n"
+" <destination>java:comp/env/jms/StockPrices</destination>\n"
+" <connectionFactory>java:comp/env/jms/TopicConnectionFactory</"
+"connectionFactory>\n"
+" <myapp:StockPrices/> \n"
+"</Topic>]]>"
#. Tag: para
#: ee.xml:90
@@ -265,6 +345,11 @@
"<literal>TopicConnection</literal>, <literal>TopicSession</literal> or "
"<literal>TopicPublisher</literal> for a topic."
msgstr ""
+"Ahora podemos inyectar <literal>Queue</literal>, "
+"<literal>QueueConnection</literal>, <literal>QueueSession</literal> o "
+"<literal>QueueSender</literal> para una cola, o <literal>Topic</literal>, "
+"<literal>TopicConnection</literal>, <literal>TopicSession</literal> o"
+"<literal>TopicPublisher</literal> para un tema."
#. Tag: programlisting
#: ee.xml:96
@@ -279,6 +364,14 @@
" orderSender.send(msg);\n"
"}"
msgstr ""
+"@OrderProcessor QueueSender orderSender;\n"
+"@OrderProcessor QueueSession orderSession;\n"
+"\n"
+"public void sendMessage() {\n"
+" MapMessage msg = orderSession.createMapMessage();\n"
+" ...\n"
+" orderSender.send(msg);\n"
+"}"
#. Tag: programlisting
#: ee.xml:98
@@ -291,6 +384,12 @@
" pricePublisher.send( priceSession.createTextMessage(price) );\n"
"}"
msgstr ""
+"@StockPrices TopicPublisher pricePublisher;\n"
+"@StockPrices TopicSession priceSession;\n"
+"\n"
+"public void sendMessage(String price) {\n"
+" pricePublisher.send( priceSession.createTextMessage(price) );\n"
+"}"
#. Tag: para
#: ee.xml:100
@@ -299,12 +398,14 @@
"The lifecycle of the injected JMS objects is completely controlled by the "
"Web Bean manager."
msgstr ""
+"El ciclo de- vida de objetos inyectados JMS objects está totalmente controlado por el administrador de"
+"Web Bean."
#. Tag: title
#: ee.xml:106
#, no-c-format
msgid "Packaging and deployment"
-msgstr ""
+msgstr "Empaquetamiento y despliegue."
#. Tag: para
#: ee.xml:108
@@ -318,6 +419,9 @@
"empty. Web Beans deployed in archives that do not have a <literal>web-beans."
"xml</literal> file will not be available for use in the application."
msgstr ""
+"Web Beans no define ningún despliegue especial de archivo. Se puede empaquetar Web "
+"Beans en JARs, EJB-JARs o WARs— cualquier ubicación de despliegue en la aplicación classpath. No obstante, cada archivo que contiene Web Beans debe incluir un archivo llamado <literal>web-beans.xml</literal> en <literal>META-INF</literal> o en el directorio <literal>WEB-INF</literal>. El archivo puede estar vacío. Los Web Beans desplegados en archivos que no tienen un archivo <literal>web-beans."
+"xml</literal> no estarán disponibles para uso en la aplicación."
#. Tag: para
#: ee.xml:116
@@ -326,4 +430,5 @@
"For Java SE execution, Web Beans may be deployed in any location in which "
"EJBs may be deployed for execution by the embeddable EJB Lite container. "
"Again, each location must contain a <literal>web-beans.xml</literal> file."
-msgstr ""
+msgstr "Para ejecución Java SE, los Web Beans pueden ser desplegados en cualquier lugar en el que los EJB se puedan implementar para ejecución por el contenedor Lite EJB incorporable. De nuevo, cada lugar debe contener un archivo <literal>web-beans.xml</literal>."
+
Modified: doc/trunk/reference/es-ES/events.po
===================================================================
--- doc/trunk/reference/es-ES/events.po 2009-01-08 06:50:43 UTC (rev 821)
+++ doc/trunk/reference/es-ES/events.po 2009-01-08 07:15:08 UTC (rev 822)
@@ -1,23 +1,26 @@
+# translation of events.po to Spanish
# Language es-ES translations for master.xml package.
+#
# Automatically generated, 2008.
-#
+# Gladys Guerrero Lozano <gguerrer(a)redhat.com>, 2009.
msgid ""
msgstr ""
-"Project-Id-Version: master.xml \n"
+"Project-Id-Version: events\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:26+0000\n"
-"PO-Revision-Date: 2008-12-19 20:26+0000\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2009-01-08 17:04+1000\n"
+"Last-Translator: Gladys Guerrero Lozano <gguerrer(a)redhat.com>\n"
+"Language-Team: Spanish <fedora-trans-es(a)redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
#: events.xml:4
#, no-c-format
msgid "Events"
-msgstr ""
+msgstr "Eventos"
#. Tag: para
#: events.xml:6
@@ -29,6 +32,9 @@
"Bean manager. This basic schema might sound like the familiar observer/"
"observable pattern, but there are a couple of twists:"
msgstr ""
+"La notificación de eventos de Web Beans permite a Web Beans interactuar de una manera completamente disociada. Los <emphasis>productores</emphasis> levantan eventos que son enviados luego a <emphasis>observadores</emphasis> de evento por el administrador de Web "
+"Beans. Este esquema básico podría sonar como el patrón de observador familiar/"
+"observable, pero hay un par de cambios:"
#. Tag: para
#: events.xml:14
@@ -36,7 +42,7 @@
msgid ""
"not only are event producers decoupled from observers; observers are "
"completely decoupled from producers,"
-msgstr ""
+msgstr "no solamente los productores de eventos están disociados de los observadores; los observadores están completamente disociados de los productores."
#. Tag: para
#: events.xml:18
@@ -44,7 +50,7 @@
msgid ""
"observers can specify a combination of \"selectors\" to narrow the set of "
"event notifications they will receive, and"
-msgstr ""
+msgstr "los observadores pueden especificar una combinación de \"selectores\" para estrechar el conjunto de notificaciones de eventos que recibirán y "
#. Tag: para
#: events.xml:22
@@ -52,13 +58,13 @@
msgid ""
"observers can be notified immediately, or can specify that delivery of the "
"event should be delayed until the end of the current transaction"
-msgstr ""
+msgstr "los observadores pueden ser notificados inmediatamente o pueden especificar que la entrega del evento sea retrasada hasta el final de la transacción actual"
#. Tag: title
#: events.xml:28
#, no-c-format
msgid "Event observers"
-msgstr ""
+msgstr "Observadores de evento"
#. Tag: para
#: events.xml:30
@@ -66,7 +72,7 @@
msgid ""
"An <emphasis>observer method</emphasis> is a method of a Web Bean with a "
"parameter annotated <literal>@Observes</literal>."
-msgstr ""
+msgstr "Un <emphasis>método de observador</emphasis> es un método de un Web Bean con un parámetro anotado <literal>@Observes</literal>."
#. Tag: programlisting
#: events.xml:33
@@ -75,6 +81,8 @@
"<![CDATA[public void onAnyDocumentEvent(@Observes Document document) "
"{ ... }]]>"
msgstr ""
+"<![CDATA[public void onAnyDocumentEvent(@Observes Document document) "
+"{ ... }]]>"
#. Tag: para
#: events.xml:35
@@ -86,6 +94,8 @@
"instances of Web Beans binding types. When a binding type is used as an "
"event selector, it is called an <emphasis>event binding type</emphasis>."
msgstr ""
+"El parámetro anotado es llamado el <emphasis>parámetro de evento</emphasis>. El tipo del parámetro de evento es el <emphasis>tipo de evento</"
+"emphasis> observado. Los métodos de observador pueden también especificar \"selectores\", los cuales son sólo instancias de tipos de enlaces de Web Beans. Cuando un tipo de enlace se utiliza como un selector de evento, es llamado un <emphasis>tipo de enlace de evento</emphasis>."
#. Tag: programlisting
#: events.xml:41
@@ -96,6 +106,10 @@
"@Retention(RUNTIME)\n"
"public @interface Updated { ... }]]>"
msgstr ""
+"<![CDATA[@BindingType\n"
+"@Target({PARAMETER, FIELD})\n"
+"@Retention(RUNTIME)\n"
+"public @interface Updated { ... }]]>"
#. Tag: para
#: events.xml:43
@@ -103,7 +117,7 @@
msgid ""
"We specify the event bindings of the observer method by annotating the event "
"parameter:"
-msgstr ""
+msgstr "Especificamos los enlaces de evento del método de observador al anotar el parámetro de evento:"
#. Tag: programlisting
#: events.xml:46 events.xml:190
@@ -112,6 +126,8 @@
"<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document "
"document) { ... }]]>"
msgstr ""
+"<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document "
+"document) { ... }]]>"
#. Tag: para
#: events.xml:48
@@ -121,7 +137,7 @@
"is interested in <emphasis>all</emphasis> events of a particular type. If it "
"does specify event bindings, it is only interested in events which also have "
"those event bindings."
-msgstr ""
+msgstr "Un método de observador no necesita especificar ningún enlace de evento —en este caso está interesado en <emphasis>todos</emphasis> los eventos de un tipo determinado. Si no especifica enlaces de eventos, está sólo interesado en eventos que tienen también aquellos enlaces de eventos."
#. Tag: para
#: events.xml:53
@@ -129,7 +145,7 @@
msgid ""
"The observer method may have additional parameters, which are injected "
"according to the usual Web Beans method parameter injection semantics:"
-msgstr ""
+msgstr "El método de observador puede tener parámetros adicionales, los cuales se inyectan de acuerdo con la semántica de inyección del parámetro usual de método de Web Beans:"
#. Tag: programlisting
#: events.xml:56
@@ -138,12 +154,14 @@
"<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document "
"document, User user) { ... }]]>"
msgstr ""
+"<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document "
+"document, User user) { ... }]]>"
#. Tag: title
#: events.xml:61
#, no-c-format
msgid "Event producers"
-msgstr ""
+msgstr "Productores de Evento"
#. Tag: para
#: events.xml:63
@@ -151,13 +169,13 @@
msgid ""
"The event producer may obtain an <emphasis>event notifier</emphasis> object "
"by injection:"
-msgstr ""
+msgstr "El productor de evento puede obtener un objeto que <emphasis>notifica el evento</emphasis>por inyección:"
#. Tag: programlisting
#: events.xml:66
#, no-c-format
msgid "<![CDATA[@Observable Event<Document> documentEvent]]>"
-msgstr ""
+msgstr "<![CDATA[@Observable Event<Document> documentEvent]]>"
#. Tag: para
#: events.xml:68
@@ -167,7 +185,7 @@
"with scope <literal>@Dependent</literal> and deployment type "
"<literal>@Standard</literal>, with an implementation provided by the Web "
"Bean manager."
-msgstr ""
+msgstr "La anotación <literal>@Observable</literal> define implícitamente un Web Bean con alcance <literal>@Dependent</literal> y tipo de despliegue <literal>@Standard</literal>, con una implementación provista por el administrador de Web Bean."
#. Tag: para
#: events.xml:72
@@ -177,12 +195,14 @@
"the <literal>Event</literal> interface, passing an <emphasis>event object</"
"emphasis>:"
msgstr ""
+"Un productor crea eventos llamando al método <literal>fire()</literal> de la interfaz del <literal>Evento</literal>, pasando un <emphasis>objeto de evento</"
+"emphasis>:"
#. Tag: programlisting
#: events.xml:75
#, no-c-format
msgid "<![CDATA[documentEvent.fire(document);]]>"
-msgstr ""
+msgstr "<![CDATA[documentEvent.fire(document);]]>"
#. Tag: para
#: events.xml:77
@@ -191,19 +211,19 @@
"An event object may be an instance of any Java class that has no type "
"variables or wildcard type parameters. The event will be delivered to every "
"observer method that:"
-msgstr ""
+msgstr "Un objeto de evento puede ser una instancia de una clase de Java que no tiene variables de tecla o parámetros de comodines. El evento será entregado a cada método de observador que:"
#. Tag: para
#: events.xml:83 events.xml:107 events.xml:126
#, no-c-format
msgid "has an event parameter to which the event object is assignable, and"
-msgstr ""
+msgstr "tenga un parámetro de evento al cual el objeto de evento sea asignable y "
#. Tag: para
#: events.xml:86
#, no-c-format
msgid "specifies no event bindings."
-msgstr ""
+msgstr "especifique que no hay enlaces de eventos."
#. Tag: para
#: events.xml:90
@@ -213,7 +233,7 @@
"event object as the value of the event parameter. If any observer method "
"throws an exception, the Web Bean manager stops calling observer methods, "
"and the exception is rethrown by the <literal>fire()</literal> method."
-msgstr ""
+msgstr "El administrador de Web Bean simplemente llama a todos los métodos de observador, pasando el objeto del evento como el valor de un parámetro de evento. Si cualquier método de observador lanza una excepción, el administrador de Web Bean se detiene llamando a los métodos de observador y la excepción es reenviada por le método <literal>fire()</literal>."
#. Tag: para
#: events.xml:95
@@ -356,8 +376,7 @@
#. Tag: para
#: events.xml:160
#, no-c-format
-msgid ""
-"The member value is used to narrow the messages delivered to the observer:"
+msgid "The member value is used to narrow the messages delivered to the observer:"
msgstr ""
#. Tag: programlisting
@@ -547,8 +566,7 @@
#. Tag: para
#: events.xml:233
#, no-c-format
-msgid ""
-"Imagine that we have cached a JPA query result set in the application scope:"
+msgid "Imagine that we have cached a JPA query result set in the application scope:"
msgstr ""
#. Tag: programlisting
@@ -647,3 +665,4 @@
" \n"
"}]]>"
msgstr ""
+
16 years