Weld SVN: r5363 - core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic.
by weld-commits@lists.jboss.org
Author: marius.bogoevici
Date: 2009-12-21 10:26:08 -0500 (Mon, 21 Dec 2009)
New Revision: 5363
Modified:
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/PartialDecoratorTest.java
Log:
Fix build.
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/PartialDecoratorTest.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/PartialDecoratorTest.java 2009-12-19 20:27:05 UTC (rev 5362)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/PartialDecoratorTest.java 2009-12-21 15:26:08 UTC (rev 5363)
@@ -39,7 +39,6 @@
assert PartialDecorator.decoratedInvoked;
assert !PartialDecorator.notDecoratedInvoked;
assert StringPartialDecorator.invoked;
- assert !IntegerPartialDecorator.invoked;
assert GenericBean.decoratedInvoked;
assert GenericBean.notDecoratedInvoked;
}
14 years, 11 months
Weld SVN: r5362 - doc/trunk/reference/pt-BR.
by weld-commits@lists.jboss.org
Author: jpviragine
Date: 2009-12-19 15:27:05 -0500 (Sat, 19 Dec 2009)
New Revision: 5362
Modified:
doc/trunk/reference/pt-BR/
doc/trunk/reference/pt-BR/Author_Group.po
doc/trunk/reference/pt-BR/Book_Info.po
doc/trunk/reference/pt-BR/beans.po
doc/trunk/reference/pt-BR/decorators.po
doc/trunk/reference/pt-BR/dependencies.po
doc/trunk/reference/pt-BR/ee.po
doc/trunk/reference/pt-BR/environments.po
doc/trunk/reference/pt-BR/events.po
doc/trunk/reference/pt-BR/example.po
doc/trunk/reference/pt-BR/extend.po
doc/trunk/reference/pt-BR/extensions.po
doc/trunk/reference/pt-BR/gettingstarted.po
doc/trunk/reference/pt-BR/injection.po
doc/trunk/reference/pt-BR/interceptors.po
doc/trunk/reference/pt-BR/intro.po
doc/trunk/reference/pt-BR/next.po
doc/trunk/reference/pt-BR/producermethods.po
doc/trunk/reference/pt-BR/resources.po
doc/trunk/reference/pt-BR/ri-spi.po
doc/trunk/reference/pt-BR/scopescontexts.po
doc/trunk/reference/pt-BR/specialization.po
doc/trunk/reference/pt-BR/stereotypes.po
doc/trunk/reference/pt-BR/viewlayers.po
doc/trunk/reference/pt-BR/weldexamples.po
doc/trunk/reference/pt-BR/xml.po
Log:
Property changes on: doc/trunk/reference/pt-BR
___________________________________________________________________
Name: svn:ignore
+ *.mo
Modified: doc/trunk/reference/pt-BR/Author_Group.po
===================================================================
--- doc/trunk/reference/pt-BR/Author_Group.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/Author_Group.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,8 +6,8 @@
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-08-25 15:00-0300\n"
-"Last-Translator: \n"
+"PO-Revision-Date: 2009-12-19 17:59-0300\n"
+"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -23,7 +23,7 @@
#: Author_Group.xml:8
#, no-c-format
msgid "JSR-299: Contexts and Dependency Injection Lead"
-msgstr ""
+msgstr "Líder da JSR-299: Contextos e Injeção de Dependência"
#. Tag: author
#: Author_Group.xml:14
@@ -35,13 +35,13 @@
#: Author_Group.xml:17
#, no-c-format
msgid "Weld (JSR-299 RI) Lead"
-msgstr ""
+msgstr "Líder do Weld (Implementação de Referência da JSR-299)"
#. Tag: author
#: Author_Group.xml:24
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<firstname>Dan</firstname> <surname>Allen</surname>"
-msgstr "<firstname>David</firstname> <surname>Allen</surname>"
+msgstr "<firstname>Dan</firstname> <surname>Allen</surname>"
#. Tag: author
#: Author_Group.xml:31
@@ -56,7 +56,8 @@
msgstr "<firstname>Nicola</firstname> <surname>Benaglia</surname>"
#. Tag: contrib
-#: Author_Group.xml:38 Author_Group.xml:67
+#: Author_Group.xml:38
+#: Author_Group.xml:67
#, no-c-format
msgid "Italian Translation"
msgstr "Italian Translation"
@@ -121,16 +122,14 @@
#~ msgstr ""
#~ "<jobtitle>JSR-299 specification lead</jobtitle> <orgname>Red Hat "
#~ "Middleware LLC</orgname>"
-
#~ 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>"
-
#~ msgid "Red Hat Middleware LLC"
#~ msgstr "Red Hat Middleware LLC"
-
#~ msgid "Kava Community"
#~ msgstr "Kava Community"
+
Modified: doc/trunk/reference/pt-BR/Book_Info.po
===================================================================
--- doc/trunk/reference/pt-BR/Book_Info.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/Book_Info.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,7 +6,7 @@
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-04-06 08:34-0300\n"
+"PO-Revision-Date: 2009-12-19 17:55-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -17,17 +17,14 @@
#: Book_Info.xml:4
#, no-c-format
msgid "Weld - JSR-299 Reference Implementation"
-msgstr ""
+msgstr "Weld - Implementação de Referência da JSR-299"
#. Tag: subtitle
#: Book_Info.xml:5
-#, fuzzy, no-c-format
-msgid ""
-"JSR-299: The new Java standard for dependency injection and contextual "
-"lifecycle management"
-msgstr ""
-"O novo padrão para injeção de dependência e gerenciamento de estado "
-"contextual"
+#, no-c-format
+msgid "JSR-299: The new Java standard for dependency injection and contextual lifecycle management"
+msgstr "JSR-299: O novo padrão Java para injeção de dependência e gerenciamento de estado contextual"
#~ msgid "Web Beans: Java Contexts and Dependency Injection"
#~ msgstr "Web Beans: Contextos Java e Injeção de Dependência"
+
Modified: doc/trunk/reference/pt-BR/beans.po
===================================================================
--- doc/trunk/reference/pt-BR/beans.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/beans.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,8 +6,8 @@
"Project-Id-Version: Weld_-_JSR-299_Reference_Implementation VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-11-11 15:00+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2009-12-19 18:06-0300\n"
+"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -22,36 +22,19 @@
#. Tag: para
#: beans.xml:6
#, no-c-format
-msgid ""
-"A bean is usually an application class that contains business logic. It may "
-"be called directly from Java code, or it may be invoked via the Unified EL. "
-"A bean may access transactional resources. Dependencies between beans are "
-"managed automatically by the container. Most beans are <emphasis>stateful</"
-"emphasis> and <emphasis>contextual</emphasis>. The lifecycle of a bean is "
-"always managed by the container."
+msgid "A bean is usually an application class that contains business logic. It may be called directly from Java code, or it may be invoked via the Unified EL. A bean may access transactional resources. Dependencies between beans are managed automatically by the container. Most beans are <emphasis>stateful</emphasis> and <emphasis>contextual</emphasis>. The lifecycle of a bean is always managed by the container."
msgstr ""
#. Tag: para
#: beans.xml:13
#, no-c-format
-msgid ""
-"Let's back up a second. What does it really mean to be <emphasis>contextual</"
-"emphasis>? Since beans may be stateful, it matters <emphasis>which</"
-"emphasis> bean instance I have. Unlike a stateless component model (for "
-"example, stateless session beans) or a singleton component model (such as "
-"servlets, or singleton beans), different clients of a bean see the bean in "
-"different states. The client-visible state depends upon which instance of "
-"the bean the client has a reference to."
+msgid "Let's back up a second. What does it really mean to be <emphasis>contextual</emphasis>? Since beans may be stateful, it matters <emphasis>which</emphasis> bean instance I have. Unlike a stateless component model (for example, stateless session beans) or a singleton component model (such as servlets, or singleton beans), different clients of a bean see the bean in different states. The client-visible state depends upon which instance of the bean the client has a reference to."
msgstr ""
#. Tag: para
#: beans.xml:21
#, no-c-format
-msgid ""
-"However, like a stateless or singleton model, but <emphasis>unlike</"
-"emphasis> stateful session beans, the client does not control the lifecycle "
-"of the instance by explicitly creating and destroying it. Instead, the "
-"<emphasis>scope</emphasis> of the bean determines:"
+msgid "However, like a stateless or singleton model, but <emphasis>unlike</emphasis> stateful session beans, the client does not control the lifecycle of the instance by explicitly creating and destroying it. Instead, the <emphasis>scope</emphasis> of the bean determines:"
msgstr ""
#. Tag: para
@@ -69,33 +52,19 @@
#. Tag: para
#: beans.xml:36
#, no-c-format
-msgid ""
-"For a given thread in a CDI application, there may be an <emphasis>active "
-"context</emphasis> associated with the scope of the bean. This context may "
-"be unique to the thread (for example, if the bean is request scoped), or it "
-"may be shared with certain other threads (for example, if the bean is "
-"session scoped) or even all other threads (if it is application scoped)."
+msgid "For a given thread in a CDI application, there may be an <emphasis>active context</emphasis> associated with the scope of the bean. This context may be unique to the thread (for example, if the bean is request scoped), or it may be shared with certain other threads (for example, if the bean is session scoped) or even all other threads (if it is application scoped)."
msgstr ""
#. Tag: para
#: beans.xml:43
#, no-c-format
-msgid ""
-"Clients (for example, other beans) executing in the same context will see "
-"the same instance of the bean. But clients in a different context may see a "
-"different instance (depending on the relationship between the contexts)."
+msgid "Clients (for example, other beans) executing in the same context will see the same instance of the bean. But clients in a different context may see a different instance (depending on the relationship between the contexts)."
msgstr ""
#. Tag: para
#: beans.xml:49
#, no-c-format
-msgid ""
-"One great advantage of the contextual model is that it allows stateful beans "
-"to be treated like services! The client need not concern itself with "
-"managing the lifecycle of the bean it's using, <emphasis>nor does it even "
-"need to know what that lifecycle is.</emphasis> Beans interact by passing "
-"messages, and the bean implementations define the lifecycle of their own "
-"state. The beans are loosely coupled because:"
+msgid "One great advantage of the contextual model is that it allows stateful beans to be treated like services! The client need not concern itself with managing the lifecycle of the bean it's using, <emphasis>nor does it even need to know what that lifecycle is.</emphasis> Beans interact by passing messages, and the bean implementations define the lifecycle of their own state. The beans are loosely coupled because:"
msgstr ""
#. Tag: para
@@ -113,22 +82,13 @@
#. Tag: para
#: beans.xml:65
#, no-c-format
-msgid ""
-"We can replace one bean with another different bean that implements the same "
-"interface and has a different lifecycle (a different scope) without "
-"affecting the other bean implementation. In fact, CDI defines a simple "
-"facility for overriding bean implementations at deployment time, as we will "
-"see in <xref linkend=\"alternatives\"/>."
+msgid "We can replace one bean with another different bean that implements the same interface and has a different lifecycle (a different scope) without affecting the other bean implementation. In fact, CDI defines a simple facility for overriding bean implementations at deployment time, as we will see in <xref linkend=\"alternatives\"/>."
msgstr ""
#. Tag: para
#: beans.xml:71
#, no-c-format
-msgid ""
-"Note that not all clients of a bean are beans themselves. Other objects such "
-"as servlets or message-driven beans—which are by nature not "
-"injectable, contextual objects—may also obtain references to beans by "
-"injection."
+msgid "Note that not all clients of a bean are beans themselves. Other objects such as servlets or message-driven beans—which are by nature not injectable, contextual objects—may also obtain references to beans by injection."
msgstr ""
#. Tag: title
@@ -140,9 +100,7 @@
#. Tag: para
#: beans.xml:80
#, no-c-format
-msgid ""
-"Enough hand-waving. More formally, the anatomy of a bean, according to the "
-"spec:"
+msgid "Enough hand-waving. More formally, the anatomy of a bean, according to the spec:"
msgstr ""
#. Tag: para
@@ -208,10 +166,7 @@
#. Tag: para
#: beans.xml:104
#, no-c-format
-msgid ""
-"Beans usually acquire references to other beans via dependency injection. "
-"Any injected attribute specifies a \"contract\" that must be satisfied by "
-"the bean to be injected. The contract is:"
+msgid "Beans usually acquire references to other beans via dependency injection. Any injected attribute specifies a \"contract\" that must be satisfied by the bean to be injected. The contract is:"
msgstr ""
#. Tag: para
@@ -229,12 +184,7 @@
#. Tag: para
#: beans.xml:114
#, no-c-format
-msgid ""
-"A bean type is a user-defined class or interface; a type that is client-"
-"visible. If the bean is an EJB session bean, the bean type is the "
-"<literal>@Local</literal> interface or bean-class local view. A bean may "
-"have multiple bean types. For example, the following bean has four bean "
-"types:"
+msgid "A bean type is a user-defined class or interface; a type that is client-visible. If the bean is an EJB session bean, the bean type is the <literal>@Local</literal> interface or bean-class local view. A bean may have multiple bean types. For example, the following bean has four bean types:"
msgstr ""
#. Tag: programlisting
@@ -247,25 +197,22 @@
" ...\n"
"}]]>"
msgstr ""
+"<![CDATA[public class BookShop \n"
+" extends Business \n"
+" implements Shop<Book> {\n"
+" ...\n"
+"}]]>"
#. Tag: para
#: beans.xml:122
#, no-c-format
-msgid ""
-"The bean types are <literal>BookShop</literal>, <literal>Business</literal> "
-"and <literal>Shop<Book></literal>, as well as the implicit type "
-"<literal>java.lang.Object</literal>. (Notice that a parameterized type is a "
-"legal bean type)."
+msgid "The bean types are <literal>BookShop</literal>, <literal>Business</literal> and <literal>Shop<Book></literal>, as well as the implicit type <literal>java.lang.Object</literal>. (Notice that a parameterized type is a legal bean type)."
msgstr ""
#. Tag: para
#: beans.xml:128
#, no-c-format
-msgid ""
-"Meanwhile, this session bean has only the local interfaces "
-"<literal>BookShop</literal>, <literal>Auditable</literal> and <literal>java."
-"lang.Object</literal> as bean types, since the bean class, "
-"<literal>BookShopBean</literal> is not a client-visible type."
+msgid "Meanwhile, this session bean has only the local interfaces <literal>BookShop</literal>, <literal>Auditable</literal> and <literal>java.lang.Object</literal> as bean types, since the bean class, <literal>BookShopBean</literal> is not a client-visible type."
msgstr ""
#. Tag: programlisting
@@ -279,25 +226,23 @@
" ...\n"
"}]]>"
msgstr ""
+"<![CDATA[@Stateful\n"
+"public class BookShopBean \n"
+" extends Business \n"
+" implements BookShop, Auditable {\n"
+" ...\n"
+"}]]>"
#. Tag: para
#: beans.xml:137
#, no-c-format
-msgid ""
-"Most bean types you can probably figure out. One gotcha is primitive types. "
-"All primitive types are assumed to be identical to their corresponding "
-"wrapper types in <literal>java.lang</literal>."
+msgid "Most bean types you can probably figure out. One gotcha is primitive types. All primitive types are assumed to be identical to their corresponding wrapper types in <literal>java.lang</literal>."
msgstr ""
#. Tag: para
#: beans.xml:143
#, no-c-format
-msgid ""
-"Bean types may be restricted to an explicit set by annotating the bean with "
-"the <literal>@Typed</literal> annotation and listing the classes that should "
-"be bean types. For instance, the bean types of this bean have been "
-"restricted to <literal>Shop<Book></literal>, together with "
-"<literal>java.lang.Object</literal>:"
+msgid "Bean types may be restricted to an explicit set by annotating the bean with the <literal>@Typed</literal> annotation and listing the classes that should be bean types. For instance, the bean types of this bean have been restricted to <literal>Shop<Book></literal>, together with <literal>java.lang.Object</literal>:"
msgstr ""
#. Tag: programlisting
@@ -311,30 +256,23 @@
" ...\n"
"}]]>"
msgstr ""
+"<![CDATA[(a)Typed(Shop.class)\n"
+"public class BookShop \n"
+" extends Business \n"
+" implements Shop<Book> {\n"
+" ...\n"
+"}]]>"
#. Tag: para
#: beans.xml:151
#, no-c-format
-msgid ""
-"Sometimes, a bean type alone does not provide enough information for the "
-"container to know which bean to inject. For instance, suppose we have two "
-"implementations of the <literal>PaymentProcessor</literal> interface: "
-"<literal>CreditCardPaymentProcessor</literal> and "
-"<literal>DebitPaymentProcessor</literal>. Injecting a field of type "
-"<literal>PaymentProcessor</literal> introduces an ambiguous condition. In "
-"these cases, the client must specify some additional quality of the "
-"implementation it is interested in. We model this kind of \"quality\" using "
-"a qualifier."
+msgid "Sometimes, a bean type alone does not provide enough information for the container to know which bean to inject. For instance, suppose we have two implementations of the <literal>PaymentProcessor</literal> interface: <literal>CreditCardPaymentProcessor</literal> and <literal>DebitPaymentProcessor</literal>. Injecting a field of type <literal>PaymentProcessor</literal> introduces an ambiguous condition. In these cases, the client must specify some additional quality of the implementation it is interested in. We model this kind of \"quality\" using a qualifier."
msgstr ""
#. Tag: para
#: beans.xml:160
#, no-c-format
-msgid ""
-"A qualifier is a user-defined annotation that is itself annotated "
-"<literal>@Qualifer</literal>. A qualifier annotation is an extension of the "
-"type system. It lets us disambiguate a type without having to fall back to "
-"string-based names. Here's an example of a qualifier annotation:"
+msgid "A qualifier is a user-defined annotation that is itself annotated <literal>@Qualifer</literal>. A qualifier annotation is an extension of the type system. It lets us disambiguate a type without having to fall back to string-based names. Here's an example of a qualifier annotation:"
msgstr ""
#. Tag: programlisting
@@ -346,69 +284,51 @@
"@Retention(RUNTIME)\n"
"public @interface CreditCard {}]]>"
msgstr ""
+"<![CDATA[@Qualifier\n"
+"@Target({TYPE, METHOD, PARAMETER, FIELD})\n"
+"@Retention(RUNTIME)\n"
+"public @interface CreditCard {}]]>"
#. Tag: para
#: beans.xml:168
#, no-c-format
-msgid ""
-"You may not be used to seeing the definition of an annotation. In fact, this "
-"might be the first time you've encountered one. With CDI, annotation "
-"definitions will become a familiar artifact as you'll be creating them from "
-"time to time."
+msgid "You may not be used to seeing the definition of an annotation. In fact, this might be the first time you've encountered one. With CDI, annotation definitions will become a familiar artifact as you'll be creating them from time to time."
msgstr ""
#. Tag: para
#: beans.xml:175
#, no-c-format
-msgid ""
-"Pay attention to the names of the built-in annotations in CDI and EJB. "
-"You'll notice that they are often adjectives. We encourage you to follow "
-"this convention when creating your custom annotations, since they serve to "
-"describe the behaviors and roles of the class."
+msgid "Pay attention to the names of the built-in annotations in CDI and EJB. You'll notice that they are often adjectives. We encourage you to follow this convention when creating your custom annotations, since they serve to describe the behaviors and roles of the class."
msgstr ""
#. Tag: para
#: beans.xml:182
#, no-c-format
-msgid ""
-"Now that we have defined a qualifier annotation, we can use it to "
-"disambiguate an injection point. The following injection point has the bean "
-"type <literal>PaymentProcessor</literal> and qualifier <literal>@CreditCard</"
-"literal>:"
+msgid "Now that we have defined a qualifier annotation, we can use it to disambiguate an injection point. The following injection point has the bean type <literal>PaymentProcessor</literal> and qualifier <literal>@CreditCard</literal>:"
msgstr ""
#. Tag: programlisting
#: beans.xml:188
#, no-c-format
msgid "<![CDATA[@Inject @CreditCard PaymentProcessor paymentProcessor]]>"
-msgstr ""
+msgstr "<![CDATA[@Inject @CreditCard PaymentProcessor paymentProcessor]]>"
#. Tag: para
#: beans.xml:191
#, no-c-format
-msgid ""
-"If an injection point does not explicitly specify a qualifier, it has the "
-"default qualifier, <literal>@Default</literal>."
+msgid "If an injection point does not explicitly specify a qualifier, it has the default qualifier, <literal>@Default</literal>."
msgstr ""
#. Tag: para
#: beans.xml:197
#, no-c-format
-msgid ""
-"For each injection point, the container searches for a bean which satisfies "
-"the contract, one which has the bean type and all the qualifiers. If it "
-"finds exactly one matching bean, it injects an instance of that bean. If it "
-"doesn't, it reports an error to the user."
+msgid "For each injection point, the container searches for a bean which satisfies the contract, one which has the bean type and all the qualifiers. If it finds exactly one matching bean, it injects an instance of that bean. If it doesn't, it reports an error to the user."
msgstr ""
#. Tag: para
#: beans.xml:203
#, no-c-format
-msgid ""
-"How do we specify that qualifiers of a bean? By annotating the bean class, "
-"of course! The following bean has the qualifier <literal>@CreditCard</"
-"literal> and implements the bean type <literal>PaymentProcessor</literal>. "
-"Therefore, it satisfies our qualified injection point:"
+msgid "How do we specify that qualifiers of a bean? By annotating the bean class, of course! The following bean has the qualifier <literal>@CreditCard</literal> and implements the bean type <literal>PaymentProcessor</literal>. Therefore, it satisfies our qualified injection point:"
msgstr ""
#. Tag: programlisting
@@ -419,23 +339,20 @@
"public class CreditCardPaymentProcessor \n"
" implements PaymentProcessor { ... }]]>"
msgstr ""
+"<![CDATA[@CreditCard\n"
+"public class CreditCardPaymentProcessor \n"
+" implements PaymentProcessor { ... }]]>"
#. Tag: para
#: beans.xml:212
#, no-c-format
-msgid ""
-"If a bean does not explicitly specify a qualifier, it has the default "
-"qualifier, <literal>@Default</literal>."
+msgid "If a bean does not explicitly specify a qualifier, it has the default qualifier, <literal>@Default</literal>."
msgstr ""
#. Tag: para
#: beans.xml:225
#, no-c-format
-msgid ""
-"That's not quite the end of the story. CDI also defines a simple "
-"<emphasis>resolution rule</emphasis> that helps the container decide what to "
-"do if there is more than one bean that satisfies a particular contract. "
-"We'll get into the details in <xref linkend=\"injection\"/>."
+msgid "That's not quite the end of the story. CDI also defines a simple <emphasis>resolution rule</emphasis> that helps the container decide what to do if there is more than one bean that satisfies a particular contract. We'll get into the details in <xref linkend=\"injection\"/>."
msgstr ""
#. Tag: title
@@ -447,20 +364,13 @@
#. Tag: para
#: beans.xml:248
#, no-c-format
-msgid ""
-"The <emphasis>scope</emphasis> of a bean defines the lifecycle and "
-"visibility of its instances. The CDI context model is extensible, "
-"accommodating arbitrary scopes. However, certain important scopes are built "
-"into the specification, and provided by the container. Each scope is "
-"represented by an annotation type."
+msgid "The <emphasis>scope</emphasis> of a bean defines the lifecycle and visibility of its instances. The CDI context model is extensible, accommodating arbitrary scopes. However, certain important scopes are built into the specification, and provided by the container. Each scope is represented by an annotation type."
msgstr ""
#. Tag: para
#: beans.xml:255
#, no-c-format
-msgid ""
-"For example, any web application may have <emphasis>session scoped</"
-"emphasis> bean:"
+msgid "For example, any web application may have <emphasis>session scoped</emphasis> bean:"
msgstr ""
#. Tag: programlisting
@@ -470,34 +380,25 @@
"<![CDATA[public @SessionScoped\n"
"class ShoppingCart implements Serializable { ... }]]>"
msgstr ""
+"<![CDATA[public @SessionScoped\n"
+"class ShoppingCart implements Serializable { ... }]]>"
#. Tag: para
#: beans.xml:261
#, no-c-format
-msgid ""
-"An instance of a session-scoped bean is bound to a user session and is "
-"shared by all requests that execute in the context of that session."
+msgid "An instance of a session-scoped bean is bound to a user session and is shared by all requests that execute in the context of that session."
msgstr ""
#. Tag: para
#: beans.xml:265
#, no-c-format
-msgid ""
-"Keep in mind that once a bean is bound to a context, it remains in that "
-"context until the context is destroyed. There is no way to explicitly remove "
-"a bean from a context. If you don't the bean to live in the session "
-"indefinitely, consider using another scope such as the request or "
-"conversation scope instead."
+msgid "Keep in mind that once a bean is bound to a context, it remains in that context until the context is destroyed. There is no way to explicitly remove a bean from a context. If you don't the bean to live in the session indefinitely, consider using another scope such as the request or conversation scope instead."
msgstr ""
#. Tag: para
#: beans.xml:272
#, no-c-format
-msgid ""
-"If a scope is not explicitly specified, then the bean belongs to a special "
-"scope called the <emphasis>dependent pseudo-scope</emphasis>. Beans with "
-"this scope live to serve the object into which they were injected, which "
-"means their lifecycle is bound to the lifecycle of that object."
+msgid "If a scope is not explicitly specified, then the bean belongs to a special scope called the <emphasis>dependent pseudo-scope</emphasis>. Beans with this scope live to serve the object into which they were injected, which means their lifecycle is bound to the lifecycle of that object."
msgstr ""
#. Tag: para
@@ -515,18 +416,13 @@
#. Tag: para
#: beans.xml:285
#, no-c-format
-msgid ""
-"If you want to reference a bean in non-Java code that supports Unified EL "
-"expressions, for example, in a JSP or JSF page, you must assign the bean an "
-"<emphasis>EL name</emphasis>."
+msgid "If you want to reference a bean in non-Java code that supports Unified EL expressions, for example, in a JSP or JSF page, you must assign the bean an <emphasis>EL name</emphasis>."
msgstr ""
#. Tag: para
#: beans.xml:290
#, no-c-format
-msgid ""
-"The EL name is specified using the <literal>@Named</literal> annotation, as "
-"shown here:"
+msgid "The EL name is specified using the <literal>@Named</literal> annotation, as shown here:"
msgstr ""
#. Tag: programlisting
@@ -536,6 +432,8 @@
"<![CDATA[public @SessionScoped @Named(\"cart\")\n"
"class ShoppingCart implements Serializable { ... }]]>"
msgstr ""
+"<![CDATA[public @SessionScoped @Named(\"cart\")\n"
+"class ShoppingCart implements Serializable { ... }]]>"
#. Tag: para
#: beans.xml:296
@@ -555,19 +453,13 @@
#. Tag: para
#: beans.xml:301
#, no-c-format
-msgid ""
-"The <literal>@Named</literal> annotation is not what makes the class a bean. "
-"Most classes in a bean archive are already recognized as beans. The "
-"<literal>@Named</literal> annotation just makes it possible to reference the "
-"bean from the EL, most commonly from a JSF view."
+msgid "The <literal>@Named</literal> annotation is not what makes the class a bean. Most classes in a bean archive are already recognized as beans. The <literal>@Named</literal> annotation just makes it possible to reference the bean from the EL, most commonly from a JSF view."
msgstr ""
#. Tag: para
#: beans.xml:308
#, no-c-format
-msgid ""
-"We can let CDI choose a name for us by leaving off the value of the "
-"<literal>@Named</literal> annotation:"
+msgid "We can let CDI choose a name for us by leaving off the value of the <literal>@Named</literal> annotation:"
msgstr ""
#. Tag: programlisting
@@ -577,13 +469,13 @@
"<![CDATA[public @SessionScoped @Named\n"
"class ShoppingCart implements Serializable { ... }]]>"
msgstr ""
+"<![CDATA[public @SessionScoped @Named\n"
+"class ShoppingCart implements Serializable { ... }]]>"
#. Tag: para
#: beans.xml:314
#, no-c-format
-msgid ""
-"The name defaults to the unqualified class name, decapitalized; in this "
-"case, <literal>shoppingCart</literal>."
+msgid "The name defaults to the unqualified class name, decapitalized; in this case, <literal>shoppingCart</literal>."
msgstr ""
#. Tag: title
@@ -595,14 +487,7 @@
#. Tag: para
#: beans.xml:326
#, no-c-format
-msgid ""
-"We've already seen how qualifiers let us choose between multiple "
-"implementations of an interface at development time. But sometimes we have "
-"an interface (or other bean type) whose implementation varies depending upon "
-"the deployment environment. For example, we may want to use a mock "
-"implementation in a testing environment. An <emphasis>alternative</emphasis> "
-"may be declared by annotating the bean class with the <literal>@Alternative</"
-"literal> annotation."
+msgid "We've already seen how qualifiers let us choose between multiple implementations of an interface at development time. But sometimes we have an interface (or other bean type) whose implementation varies depending upon the deployment environment. For example, we may want to use a mock implementation in a testing environment. An <emphasis>alternative</emphasis> may be declared by annotating the bean class with the <literal>@Alternative</literal> annotation."
msgstr ""
#. Tag: programlisting
@@ -612,25 +497,19 @@
"<![CDATA[public @Alternative\n"
"class MockPaymentProcessor extends PaymentProcessorImpl { ... }]]>"
msgstr ""
+"<![CDATA[public @Alternative\n"
+"class MockPaymentProcessor extends PaymentProcessorImpl { ... }]]>"
#. Tag: para
#: beans.xml:336
#, no-c-format
-msgid ""
-"We normally annotate a bean <literal>@Alternative</literal> only when there "
-"is some other implementation of an interface it implements (or of any of its "
-"bean types). We can choose between alternatives at deployment time by "
-"<emphasis>selecting</emphasis> an alternative in the CDI deployment "
-"descriptor <literal>META-INF/beans.xml</literal> of the jar or Java EE "
-"module that uses it. Different modules can specify that they use different "
-"alternatives."
+msgid "We normally annotate a bean <literal>@Alternative</literal> only when there is some other implementation of an interface it implements (or of any of its bean types). We can choose between alternatives at deployment time by <emphasis>selecting</emphasis> an alternative in the CDI deployment descriptor <literal>META-INF/beans.xml</literal> of the jar or Java EE module that uses it. Different modules can specify that they use different alternatives."
msgstr ""
#. Tag: para
#: beans.xml:344
#, no-c-format
-msgid ""
-"We cover alternatives in more detail in <xref linkend=\"alternatives\"/>."
+msgid "We cover alternatives in more detail in <xref linkend=\"alternatives\"/>."
msgstr ""
#. Tag: title
@@ -642,49 +521,25 @@
#. Tag: para
#: beans.xml:353
#, no-c-format
-msgid ""
-"You might be familiar with the use of interceptors in EJB 3.0. In Java EE 6, "
-"this functionality has been generalized to work with other managed beans. "
-"That's right, you no longer have to make your bean an EJB just to intercept "
-"its methods. Holler. So what does CDI have to offer above and beyond that? "
-"Well, quite a lot actually. Let's cover some background."
+msgid "You might be familiar with the use of interceptors in EJB 3.0. In Java EE 6, this functionality has been generalized to work with other managed beans. That's right, you no longer have to make your bean an EJB just to intercept its methods. Holler. So what does CDI have to offer above and beyond that? Well, quite a lot actually. Let's cover some background."
msgstr ""
#. Tag: para
#: beans.xml:360
#, no-c-format
-msgid ""
-"The way that interceptors were defined in Java EE 5 was counter-intuitive. "
-"You were required to specify the <emphasis>implementation</emphasis> of the "
-"interceptor directly on the <emphasis>implementation</emphasis> of the EJB, "
-"either in the <literal>@Interceptors</literal> annotation or in the XML "
-"descriptor. You might as well just put the interceptor code <emphasis>in</"
-"emphasis> the implementation! Second, the order in which the interceptors "
-"are applied is taken from the order in which they are declared in the "
-"annotation or the XML descriptor. Perhaps this isn't so bad if you're "
-"applying the interceptors to a single bean. But, if you are applying them "
-"repeatedly, then there's a good chance that you'll inadvertently define a "
-"different order for different beans. Now that's a problem."
+msgid "The way that interceptors were defined in Java EE 5 was counter-intuitive. You were required to specify the <emphasis>implementation</emphasis> of the interceptor directly on the <emphasis>implementation</emphasis> of the EJB, either in the <literal>@Interceptors</literal> annotation or in the XML descriptor. You might as well just put the interceptor code <emphasis>in</emphasis> the implementation! Second, the order in which the interceptors are applied is taken from the order in which they are declared in the annotation or the XML descriptor. Perhaps this isn't so bad if you're applying the interceptors to a single bean. But, if you are applying them repeatedly, then there's a good chance that you'll inadvertently define a different order for different beans. Now that's a problem."
msgstr ""
#. Tag: para
#: beans.xml:371
#, no-c-format
-msgid ""
-"CDI provides a new approach to binding interceptors to beans that introduces "
-"a level of indirection (and thus control). We must define an "
-"<emphasis>interceptor binding type</emphasis> to describe the behavior "
-"implemented by the interceptor."
+msgid "CDI provides a new approach to binding interceptors to beans that introduces a level of indirection (and thus control). We must define an <emphasis>interceptor binding type</emphasis> to describe the behavior implemented by the interceptor."
msgstr ""
#. Tag: para
#: beans.xml:377
#, no-c-format
-msgid ""
-"An interceptor binding type is a user-defined annotation that is itself "
-"annotated <literal>@InterceptorBinding</literal>. It lets us bind "
-"interceptor classes to bean classes with no direct dependency between the "
-"two classes."
+msgid "An interceptor binding type is a user-defined annotation that is itself annotated <literal>@InterceptorBinding</literal>. It lets us bind interceptor classes to bean classes with no direct dependency between the two classes."
msgstr ""
#. Tag: programlisting
@@ -697,13 +552,16 @@
"@Retention(RUNTIME)\n"
"public @interface Transactional {}]]>"
msgstr ""
+"<![CDATA[@InterceptorBinding\n"
+"@Inherited\n"
+"@Target( { TYPE, METHOD })\n"
+"@Retention(RUNTIME)\n"
+"public @interface Transactional {}]]>"
#. Tag: para
#: beans.xml:384
#, no-c-format
-msgid ""
-"The interceptor that implements transaction management declares this "
-"annotation:"
+msgid "The interceptor that implements transaction management declares this annotation:"
msgstr ""
#. Tag: programlisting
@@ -713,13 +571,13 @@
"<![CDATA[public @Transactional @Interceptor\n"
"class TransactionInterceptor { ... }]]>"
msgstr ""
+"<![CDATA[public @Transactional @Interceptor\n"
+"class TransactionInterceptor { ... }]]>"
#. Tag: para
#: beans.xml:390
#, no-c-format
-msgid ""
-"We can apply the interceptor to a bean by annotating the bean class with the "
-"same interceptor binding type:"
+msgid "We can apply the interceptor to a bean by annotating the bean class with the same interceptor binding type:"
msgstr ""
#. Tag: programlisting
@@ -733,29 +591,19 @@
#. Tag: para
#: beans.xml:396
#, no-c-format
-msgid ""
-"Notice that <literal>ShoppingCart</literal> and "
-"<literal>TransactionInterceptor</literal> don't know anything about each "
-"other."
+msgid "Notice that <literal>ShoppingCart</literal> and <literal>TransactionInterceptor</literal> don't know anything about each other."
msgstr ""
#. Tag: para
#: beans.xml:401
#, no-c-format
-msgid ""
-"Interceptors are deployment-specific. (We don't need a "
-"<literal>TransactionInterceptor</literal> in our unit tests!) By default, an "
-"interceptor is disabled. We can enable an interceptor using the CDI "
-"deployment descriptor <literal>META-INF/beans.xml</literal> of the jar or "
-"Java EE module. This is also where we specify the interceptor ordering."
+msgid "Interceptors are deployment-specific. (We don't need a <literal>TransactionInterceptor</literal> in our unit tests!) By default, an interceptor is disabled. We can enable an interceptor using the CDI deployment descriptor <literal>META-INF/beans.xml</literal> of the jar or Java EE module. This is also where we specify the interceptor ordering."
msgstr ""
#. Tag: para
#: beans.xml:408
#, no-c-format
-msgid ""
-"We'll discuss interceptors, and their cousins, decorators, in <xref linkend="
-"\"interceptors\"/> and <xref linkend=\"decorators\"/>."
+msgid "We'll discuss interceptors, and their cousins, decorators, in <xref linkend=\"interceptors\"/> and <xref linkend=\"decorators\"/>."
msgstr ""
#. Tag: title
@@ -767,10 +615,7 @@
#. Tag: para
#: beans.xml:420
#, no-c-format
-msgid ""
-"We've already seen two types of beans: JavaBeans and EJB session beans. Is "
-"that the whole story? Actually, it's just the beginning. Let's explore the "
-"various kinds of beans that CDI implementations must support out-of-the-box."
+msgid "We've already seen two types of beans: JavaBeans and EJB session beans. Is that the whole story? Actually, it's just the beginning. Let's explore the various kinds of beans that CDI implementations must support out-of-the-box."
msgstr ""
#. Tag: title
@@ -782,13 +627,7 @@
#. Tag: para
#: beans.xml:429
#, no-c-format
-msgid ""
-"A managed bean is a Java class. The basic lifecycle and semantics of a "
-"managed bean are defined by the Managed Beans specification. You can "
-"explicitly declare a managed bean by annotating the bean class "
-"<literal>@ManagedBean</literal>, but in CDI you don't need to. According to "
-"the specification, the CDI container treats any class that satisfies the "
-"following conditions as a managed bean:"
+msgid "A managed bean is a Java class. The basic lifecycle and semantics of a managed bean are defined by the Managed Beans specification. You can explicitly declare a managed bean by annotating the bean class <literal>@ManagedBean</literal>, but in CDI you don't need to. According to the specification, the CDI container treats any class that satisfies the following conditions as a managed bean:"
msgstr ""
#. Tag: para
@@ -806,17 +645,13 @@
#. Tag: para
#: beans.xml:446
#, no-c-format
-msgid ""
-"It is not annotated with an EJB component-defining annotation or declared as "
-"an EJB bean class in <literal>ejb-jar.xml</literal>."
+msgid "It is not annotated with an EJB component-defining annotation or declared as an EJB bean class in <literal>ejb-jar.xml</literal>."
msgstr ""
#. Tag: para
#: beans.xml:452
#, no-c-format
-msgid ""
-"It does not implement <literal>javax.enterprise.inject.spi.Extension</"
-"literal>."
+msgid "It does not implement <literal>javax.enterprise.inject.spi.Extension</literal>."
msgstr ""
#. Tag: para
@@ -840,36 +675,25 @@
#. Tag: para
#: beans.xml:471
#, no-c-format
-msgid ""
-"The unrestricted set of bean types for a managed bean contains the bean "
-"class, every superclass and all interfaces it implements directly or "
-"indirectly."
+msgid "The unrestricted set of bean types for a managed bean contains the bean class, every superclass and all interfaces it implements directly or indirectly."
msgstr ""
#. Tag: para
#: beans.xml:474
#, no-c-format
-msgid ""
-"If a managed bean has a public field, it must have the default scope "
-"<literal>@Dependent</literal>."
+msgid "If a managed bean has a public field, it must have the default scope <literal>@Dependent</literal>."
msgstr ""
#. Tag: para
#: beans.xml:476
#, no-c-format
-msgid ""
-"Managed beans support the <literal>@PostConstruct</literal> and "
-"<literal>@PreDestroy</literal> lifecycle callbacks."
+msgid "Managed beans support the <literal>@PostConstruct</literal> and <literal>@PreDestroy</literal> lifecycle callbacks."
msgstr ""
#. Tag: para
#: beans.xml:479
#, no-c-format
-msgid ""
-"Session beans are also, technically, managed beans. However, since they have "
-"their own special lifecycle and take advantage of additional enterprise "
-"services, the CDI specification considers them to be a different kind of "
-"bean."
+msgid "Session beans are also, technically, managed beans. However, since they have their own special lifecycle and take advantage of additional enterprise services, the CDI specification considers them to be a different kind of bean."
msgstr ""
#. Tag: title
@@ -881,70 +705,37 @@
#. Tag: para
#: beans.xml:490
#, no-c-format
-msgid ""
-"Session beans belong to the EJB specification. They have a special "
-"lifecycle, state management and concurrency model that is different to other "
-"managed beans and non-managed Java objects. But session beans participate in "
-"CDI just like any other bean. You can inject one session bean into another "
-"session bean, a managed bean into a session bean, a session bean into a "
-"managed bean, have a managed bean observe an event raised by a session bean, "
-"and so on."
+msgid "Session beans belong to the EJB specification. They have a special lifecycle, state management and concurrency model that is different to other managed beans and non-managed Java objects. But session beans participate in CDI just like any other bean. You can inject one session bean into another session bean, a managed bean into a session bean, a session bean into a managed bean, have a managed bean observe an event raised by a session bean, and so on."
msgstr ""
#. Tag: para
#: beans.xml:499
#, no-c-format
-msgid ""
-"Message-driven and entity beans are by nature non-contextual objects and may "
-"not be injected into other objects. However, message-driven beans can take "
-"advantage of some CDI functionality, such as dependency injection, "
-"interceptors and decorators. In fact, CDI will perform injection into any "
-"session or message-driven bean, even those which are not contextual "
-"instances."
+msgid "Message-driven and entity beans are by nature non-contextual objects and may not be injected into other objects. However, message-driven beans can take advantage of some CDI functionality, such as dependency injection, interceptors and decorators. In fact, CDI will perform injection into any session or message-driven bean, even those which are not contextual instances."
msgstr ""
#. Tag: para
#: beans.xml:507
#, no-c-format
-msgid ""
-"The unrestricted set of bean types for a session bean contains all local "
-"interfaces of the bean and their superinterfaces. If the session bean has a "
-"bean class local view, the unrestricted set of bean types contains the bean "
-"class and all superclasses. In addition, <literal>java.lang.Object</literal> "
-"is a bean type of every session bean. But remote interfaces are "
-"<emphasis>not</emphasis> included in the set of bean types."
+msgid "The unrestricted set of bean types for a session bean contains all local interfaces of the bean and their superinterfaces. If the session bean has a bean class local view, the unrestricted set of bean types contains the bean class and all superclasses. In addition, <literal>java.lang.Object</literal> is a bean type of every session bean. But remote interfaces are <emphasis>not</emphasis> included in the set of bean types."
msgstr ""
#. Tag: para
#: beans.xml:515
#, no-c-format
-msgid ""
-"There's no reason to explicitly declare the scope of a stateless session "
-"bean or singleton session bean. The EJB container controls the lifecycle of "
-"these beans, according to the semantics of the <literal>@Stateless</literal> "
-"or <literal>@Singleton</literal> declaration. On the other hand, a stateful "
-"session bean may have any scope."
+msgid "There's no reason to explicitly declare the scope of a stateless session bean or singleton session bean. The EJB container controls the lifecycle of these beans, according to the semantics of the <literal>@Stateless</literal> or <literal>@Singleton</literal> declaration. On the other hand, a stateful session bean may have any scope."
msgstr ""
#. Tag: para
#: beans.xml:519
#, no-c-format
-msgid ""
-"Stateful session beans may define a <emphasis>remove method</emphasis>, "
-"annotated <literal>@Remove</literal>, that is used by the application to "
-"indicate that an instance should be destroyed. However, for a contextual "
-"instance of the bean—an instance under the control of CDI—this "
-"method may only be called by the application if the bean has scope "
-"<literal>@Dependent</literal>. For beans with other scopes, the application "
-"must let the container destroy the bean."
+msgid "Stateful session beans may define a <emphasis>remove method</emphasis>, annotated <literal>@Remove</literal>, that is used by the application to indicate that an instance should be destroyed. However, for a contextual instance of the bean—an instance under the control of CDI—this method may only be called by the application if the bean has scope <literal>@Dependent</literal>. For beans with other scopes, the application must let the container destroy the bean."
msgstr ""
#. Tag: para
#: beans.xml:527
#, no-c-format
-msgid ""
-"So, when should we use a session bean instead of a plain managed bean? "
-"Whenever we need the advanced enterprise services offered by EJB, such as:"
+msgid "So, when should we use a session bean instead of a plain managed bean? Whenever we need the advanced enterprise services offered by EJB, such as:"
msgstr ""
#. Tag: para
@@ -962,9 +753,7 @@
#. Tag: para
#: beans.xml:540
#, no-c-format
-msgid ""
-"instance-level passivation for stateful session beans and instance-pooling "
-"for stateless session beans,"
+msgid "instance-level passivation for stateful session beans and instance-pooling for stateless session beans,"
msgstr ""
#. Tag: para
@@ -982,64 +771,37 @@
#. Tag: para
#: beans.xml:551
#, no-c-format
-msgid ""
-"When we don't need any of these things, an ordinary managed bean will serve "
-"just fine."
+msgid "When we don't need any of these things, an ordinary managed bean will serve just fine."
msgstr ""
#. Tag: para
#: beans.xml:553
#, no-c-format
-msgid ""
-"Many beans (including any <literal>@SessionScoped</literal> or "
-"<literal>@ApplicationScoped</literal> beans) are available for concurrent "
-"access. Therefore, the concurrency management provided by EJB 3.1 is "
-"especially useful. Most session and application scoped beans should be EJBs."
+msgid "Many beans (including any <literal>@SessionScoped</literal> or <literal>@ApplicationScoped</literal> beans) are available for concurrent access. Therefore, the concurrency management provided by EJB 3.1 is especially useful. Most session and application scoped beans should be EJBs."
msgstr ""
#. Tag: para
#: beans.xml:559
#, no-c-format
-msgid ""
-"Beans which hold references to heavy-weight resources, or hold a lot of "
-"internal state benefit from the advanced container-managed lifecycle defined "
-"by the EJB stateless/stateful/singleton model, with its support for "
-"passivation and instance pooling."
+msgid "Beans which hold references to heavy-weight resources, or hold a lot of internal state benefit from the advanced container-managed lifecycle defined by the EJB stateless/stateful/singleton model, with its support for passivation and instance pooling."
msgstr ""
#. Tag: para
#: beans.xml:565
#, no-c-format
-msgid ""
-"Finally, it's usually obvious when method-level transaction management, "
-"method-level security, timers, remote methods or asynchronous methods are "
-"needed."
+msgid "Finally, it's usually obvious when method-level transaction management, method-level security, timers, remote methods or asynchronous methods are needed."
msgstr ""
#. Tag: para
#: beans.xml:570
#, no-c-format
-msgid ""
-"The point we're trying to make is: use a session bean when you need the "
-"services it provides, not just because you want to use dependency injection, "
-"lifecycle management, or interceptors. Java EE 6 provides a graduated "
-"programming model. It's usually easy to start with an ordinary managed bean, "
-"and later turn it into an EJB just by adding one of the following "
-"annotations: <literal>@Stateless</literal>, <literal>@Stateful</literal> or "
-"<literal>@Singleton</literal>."
+msgid "The point we're trying to make is: use a session bean when you need the services it provides, not just because you want to use dependency injection, lifecycle management, or interceptors. Java EE 6 provides a graduated programming model. It's usually easy to start with an ordinary managed bean, and later turn it into an EJB just by adding one of the following annotations: <literal>@Stateless</literal>, <literal>@Stateful</literal> or <literal>@Singleton</literal>."
msgstr ""
#. Tag: para
#: beans.xml:578
#, no-c-format
-msgid ""
-"On the other hand, don't be scared to use session beans just because you've "
-"heard your friends say they're \"heavyweight\". It's nothing more than "
-"superstition to think that something is \"heavier\" just because it's hosted "
-"natively within the Java EE container, instead of by a proprietary bean "
-"container or dependency injection framework that runs as an additional layer "
-"of obfuscation. And as a general principle, you should be skeptical of folks "
-"who use vaguely defined terminology like \"heavyweight\"."
+msgid "On the other hand, don't be scared to use session beans just because you've heard your friends say they're \"heavyweight\". It's nothing more than superstition to think that something is \"heavier\" just because it's hosted natively within the Java EE container, instead of by a proprietary bean container or dependency injection framework that runs as an additional layer of obfuscation. And as a general principle, you should be skeptical of folks who use vaguely defined terminology like \"heavyweight\"."
msgstr ""
#. Tag: title
@@ -1051,32 +813,19 @@
#. Tag: para
#: beans.xml:591
#, no-c-format
-msgid ""
-"Not everything that needs to be injected can be boiled down to a bean class "
-"instantiated by the container using <literal>new</literal>. There are plenty "
-"of cases where we need additional control. What if we need to decide at "
-"runtime which implementation of a type to instantiate and inject? What if we "
-"need to inject an object that is obtained by querying a service or "
-"transactional resource, for example by executing a JPA query?"
+msgid "Not everything that needs to be injected can be boiled down to a bean class instantiated by the container using <literal>new</literal>. There are plenty of cases where we need additional control. What if we need to decide at runtime which implementation of a type to instantiate and inject? What if we need to inject an object that is obtained by querying a service or transactional resource, for example by executing a JPA query?"
msgstr ""
#. Tag: para
#: beans.xml:599
#, no-c-format
-msgid ""
-"A <emphasis>producer method</emphasis> is a method that acts as a source of "
-"bean instances. The method declaration itself describes the bean and the "
-"container invokes the method to obtain an instance of the bean when no "
-"instance exists in the specified context. A producer method lets the "
-"application take full control of the bean instantiation process."
+msgid "A <emphasis>producer method</emphasis> is a method that acts as a source of bean instances. The method declaration itself describes the bean and the container invokes the method to obtain an instance of the bean when no instance exists in the specified context. A producer method lets the application take full control of the bean instantiation process."
msgstr ""
#. Tag: para
#: beans.xml:606
#, no-c-format
-msgid ""
-"A producer method is declared by annotating a method of a bean class with "
-"the <literal>@Produces</literal> annotation."
+msgid "A producer method is declared by annotating a method of a bean class with the <literal>@Produces</literal> annotation."
msgstr ""
#. Tag: programlisting
@@ -1094,27 +843,28 @@
" \n"
"}]]>"
msgstr ""
+"<![CDATA[@ApplicationScoped\n"
+"public class RandomNumberGenerator {\n"
+" \n"
+" private Random random = new Random(System.currentTimeMillis());\n"
+" \n"
+" @Produces @Named @Random int getRandomNumber() {\n"
+" return random.nextInt(100);\n"
+" }\n"
+" \n"
+"}]]>"
#. Tag: para
#: beans.xml:613
#, no-c-format
-msgid ""
-"We can't write a bean class that is itself a random number. But we can "
-"certainly write a method that returns a random number. By making the method "
-"a producer method, we allow the return value of the method—in this "
-"case an <literal>Integer</literal>—to be injected. We can even specify "
-"a qualifier—in this case <literal>@Random</literal>, a scope—"
-"which in this case defaults to <literal>@Dependent</literal>, and an EL "
-"name—which in this case defaults to <literal>randomNumber</literal> "
-"according to the JavaBeans property name convention. Now we can get a random "
-"number anywhere:"
+msgid "We can't write a bean class that is itself a random number. But we can certainly write a method that returns a random number. By making the method a producer method, we allow the return value of the method—in this case an <literal>Integer</literal>—to be injected. We can even specify a qualifier—in this case <literal>@Random</literal>, a scope—which in this case defaults to <literal>@Dependent</literal>, and an EL name—which in this case defaults to <literal>randomNumber</literal> according to the JavaBeans property name convention. Now we can get a random number anywhere:"
msgstr ""
#. Tag: programlisting
#: beans.xml:622
#, no-c-format
msgid "<![CDATA[@Inject @Random int randomNumber;]]>"
-msgstr ""
+msgstr "<![CDATA[@Inject @Random int randomNumber;]]>"
#. Tag: para
#: beans.xml:624
@@ -1126,16 +876,12 @@
#: beans.xml:628
#, no-c-format
msgid "<![CDATA[<p>Your raffle number is #{randomNumber}.</p>]]>"
-msgstr ""
+msgstr "<![CDATA[<p>Your raffle number is #{randomNumber}.</p>]]>"
#. Tag: para
#: beans.xml:630
#, no-c-format
-msgid ""
-"A producer method must be a non-abstract method of a managed bean class or "
-"session bean class. A producer method may be either static or non-static. If "
-"the bean is a session bean, the producer method must be either a business "
-"method of the EJB or a static method of the bean class."
+msgid "A producer method must be a non-abstract method of a managed bean class or session bean class. A producer method may be either static or non-static. If the bean is a session bean, the producer method must be either a business method of the EJB or a static method of the bean class."
msgstr ""
#. Tag: para
@@ -1147,37 +893,25 @@
#. Tag: para
#: beans.xml:642
#, no-c-format
-msgid ""
-"If the return type is an interface, the unrestricted set of bean types "
-"contains the return type, all interfaces it extends directly or indirectly "
-"and <literal>java.lang.Object</literal>."
+msgid "If the return type is an interface, the unrestricted set of bean types contains the return type, all interfaces it extends directly or indirectly and <literal>java.lang.Object</literal>."
msgstr ""
#. Tag: para
#: beans.xml:648
#, no-c-format
-msgid ""
-"If a return type is primitive or is a Java array type, the unrestricted set "
-"of bean types contains exactly two types: the method return type and "
-"<literal>java.lang.Object</literal>."
+msgid "If a return type is primitive or is a Java array type, the unrestricted set of bean types contains exactly two types: the method return type and <literal>java.lang.Object</literal>."
msgstr ""
#. Tag: para
#: beans.xml:654
#, no-c-format
-msgid ""
-"If the return type is a class, the unrestricted set of bean types contains "
-"the return type, every superclass and all interfaces it implements directly "
-"or indirectly."
+msgid "If the return type is a class, the unrestricted set of bean types contains the return type, every superclass and all interfaces it implements directly or indirectly."
msgstr ""
#. Tag: para
#: beans.xml:661
#, no-c-format
-msgid ""
-"If the producer method has method parameters, the container will look for a "
-"bean that satisfies the type and qualifiers of each parameter and pass it to "
-"the method automatically—another form of dependency injection."
+msgid "If the producer method has method parameters, the container will look for a bean that satisfies the type and qualifiers of each parameter and pass it to the method automatically—another form of dependency injection."
msgstr ""
#. Tag: programlisting
@@ -1188,13 +922,14 @@
" return user.getRoles();\n"
"}]]>"
msgstr ""
+"<![CDATA[@Produces Set<Roles> getRoles(User user) {\n"
+" return user.getRoles();\n"
+"}]]>"
#. Tag: para
#: beans.xml:669
#, no-c-format
-msgid ""
-"We'll talk much more about producer methods in <xref linkend="
-"\"producermethods\"/>."
+msgid "We'll talk much more about producer methods in <xref linkend=\"producermethods\"/>."
msgstr ""
#. Tag: title
@@ -1206,11 +941,7 @@
#. Tag: para
#: beans.xml:676
#, no-c-format
-msgid ""
-"A <emphasis>producer field</emphasis> is a simpler alternative to a producer "
-"method. A producer field is declared by annotating a field of a bean class "
-"with the <literal>@Produces</literal> annotation—the same annotation "
-"used for producer methods."
+msgid "A <emphasis>producer field</emphasis> is a simpler alternative to a producer method. A producer field is declared by annotating a field of a bean class with the <literal>@Produces</literal> annotation—the same annotation used for producer methods."
msgstr ""
#. Tag: programlisting
@@ -1222,23 +953,20 @@
" @Produces @Catalog List<Product> products = ....;\n"
"}]]>"
msgstr ""
+"<![CDATA[public class Shop {\n"
+" @Produces PaymentProcessor paymentProcessor = ....;\n"
+" @Produces @Catalog List<Product> products = ....;\n"
+"}]]>"
#. Tag: para
#: beans.xml:684
#, no-c-format
-msgid ""
-"The rules for determining the bean types of a producer field parallel the "
-"rules for producer methods."
+msgid "The rules for determining the bean types of a producer field parallel the rules for producer methods."
msgstr ""
#. Tag: para
#: beans.xml:688
#, no-c-format
-msgid ""
-"A producer field is really just a shortcut that lets us avoid writing a "
-"useless getter method. However, in addition to convenience, producer fields "
-"serve a specific purpose as an adaptor for Java EE component environment "
-"injection, but to learn more about that, you'll have to wait until <xref "
-"linkend=\"resources\"/>. Because we can't wait to get to work on some "
-"examples."
+msgid "A producer field is really just a shortcut that lets us avoid writing a useless getter method. However, in addition to convenience, producer fields serve a specific purpose as an adaptor for Java EE component environment injection, but to learn more about that, you'll have to wait until <xref linkend=\"resources\"/>. Because we can't wait to get to work on some examples."
msgstr ""
+
Modified: doc/trunk/reference/pt-BR/decorators.po
===================================================================
--- doc/trunk/reference/pt-BR/decorators.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/decorators.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,7 +6,7 @@
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-04-10 09:16-0300\n"
+"PO-Revision-Date: 2009-12-19 18:10-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -22,44 +22,14 @@
#. Tag: para
#: decorators.xml:7
#, fuzzy, no-c-format
-msgid ""
-"Interceptors are a powerful way to capture and separate concerns which are "
-"<emphasis>orthogonal</emphasis> to the application (and type system). Any "
-"interceptor is able to intercept invocations of any Java type. This makes "
-"them perfect for solving technical concerns such as transaction management, "
-"security and call logging. 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 ""
-"Interceptadores são um meio poderoso para capturar e separar preocupações "
-"<emphasis>ortogonais</emphasis> para o tipo de sistema. Qualquer "
-"interceptador é capaz de interceptar invocações de qualquer tipo Java. Isso "
-"os torna ideais para resolver questões técnicas, tais como gerenciamento de "
-"transação e segurança. No entanto, por natureza, interceptadores desconhecem "
-"a real semântica dos eventos que interceptam. Assim, interceptadores não são "
-"um instrumento adequado para a separação de questões relacionadas a negócios."
+msgid "Interceptors are a powerful way to capture and separate concerns which are <emphasis>orthogonal</emphasis> to the application (and type system). Any interceptor is able to intercept invocations of any Java type. This makes them perfect for solving technical concerns such as transaction management, security and call logging. 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 "Interceptadores são um meio poderoso para capturar e separar preocupações <emphasis>ortogonais</emphasis> para o tipo de sistema. Qualquer interceptador é capaz de interceptar invocações de qualquer tipo Java. Isso os torna ideais para resolver questões técnicas, tais como gerenciamento de transação e segurança. No entanto, por natureza, interceptadores desconhecem a real semântica dos eventos que interceptam. Assim, interceptadores não são um instrumento adequado para a separação de questões relacionadas a negócios."
#. Tag: para
#: decorators.xml:15
#, fuzzy, no-c-format
-msgid ""
-"The reverse is true of <emphasis>decorators</emphasis>. A decorator "
-"intercepts invocations only for a certain Java interface, and is therefore "
-"aware of all the semantics attached to that interface. Since decorators "
-"directly implement operations with business semantics, it makes them the "
-"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. Interceptors and decorators, though similar in many ways, are "
-"complementary. Let's look at some cases where decorators fit the bill."
-msgstr ""
-"O contrário é verdadeiro <emphasis>decoradores</emphasis>. O decorador "
-"intercepta invocações apenas para uma determinada interface Java e, "
-"portanto, é ciente de toda a semântica que acompanha a interface. Isso torna "
-"os decoradores uma ferramenta perfeita para modelar alguns tipos de questões "
-"de negócios. Significa também que um decorador não tem a generalidade de um "
-"interceptador. Decoradores não são capazes de resolver questões técnicas que "
-"atravessam muitos tipos diferentes."
+msgid "The reverse is true of <emphasis>decorators</emphasis>. A decorator intercepts invocations only for a certain Java interface, and is therefore aware of all the semantics attached to that interface. Since decorators directly implement operations with business semantics, it makes them the 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. Interceptors and decorators, though similar in many ways, are complementary. Let's look at some cases where decorators fit the bill."
+msgstr "O contrário é verdadeiro <emphasis>decoradores</emphasis>. O decorador intercepta invocações apenas para uma determinada interface Java e, portanto, é ciente de toda a semântica que acompanha a interface. Isso torna os decoradores uma ferramenta perfeita para modelar alguns tipos de questões de negócios. Significa também que um decorador não tem a generalidade de um interceptador. Decoradores não são capazes de resolver questões técnicas que atravessam muitos tipos diferentes."
#. Tag: para
#: decorators.xml:24
@@ -69,7 +39,7 @@
#. Tag: programlisting
#: decorators.xml:26
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public interface Account {\n"
" public BigDecimal getBalance();\n"
@@ -79,39 +49,27 @@
"}]]>"
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"
+" public BigDecimal getBalance();\n"
+" public User getOwner();\n"
+" public void withdraw(BigDecimal amount);\n"
+" public void deposit(BigDecimal amount);\n"
"}]]>"
#. Tag: para
#: decorators.xml:28
#, fuzzy, no-c-format
-msgid ""
-"Several different beans in our system implement the <literal>Account</"
-"literal> interface. However, we have a common legal requirement that; for "
-"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 ""
-"Vários Web Beans em nosso sistema implementam a interface <literal>Account</"
-"literal>. No entanto, temos uma obrigação legal que, para qualquer tipo de "
-"conta, as grandes transações devem ser registadas pelo sistema, em um "
-"registro especial (log). Esse é um trabalho perfeito para um decorador. "
+msgid "Several different beans in our system implement the <literal>Account</literal> interface. However, we have a common legal requirement that; for 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 "Vários Web Beans em nosso sistema implementam a interface <literal>Account</literal>. No entanto, temos uma obrigação legal que, para qualquer tipo de conta, as grandes transações devem ser registadas pelo sistema, em um registro especial (log). Esse é um trabalho perfeito para um decorador. "
#. Tag: para
#: decorators.xml:34
#, fuzzy, no-c-format
-msgid ""
-"A decorator is a bean (possibly even an abstract class) that implements the "
-"type it decorates and is annotated <literal>@Decorator</literal>."
-msgstr ""
-"Um decorador é um Web Bean simples que implementa o tipo que decora e é "
-"anotado com <literal>@Decorator</literal>."
+msgid "A decorator is a bean (possibly even an abstract class) that implements the type it decorates and is annotated <literal>@Decorator</literal>."
+msgstr "Um decorador é um Web Bean simples que implementa o tipo que decora e é anotado com <literal>@Decorator</literal>."
#. Tag: programlisting
#: decorators.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Decorator\n"
"public abstract class LargeTransactionDecorator\n"
@@ -119,21 +77,21 @@
" ...\n"
"}]]>"
msgstr ""
-"<![CDATA[<Decorators>\n"
-" <myapp:LargeTransactionDecorator/>\n"
-"</Decorators>]]>"
+"<![CDATA[@Decorator\n"
+"public abstract class LargeTransactionDecorator\n"
+" implements Account {\n"
+" ...\n"
+"}]]>"
#. Tag: para
#: decorators.xml:41
#, no-c-format
-msgid ""
-"The decorator implements the methods of the decorated type that it wants to "
-"intercept."
+msgid "The decorator implements the methods of the decorated type that it wants to intercept."
msgstr ""
#. Tag: programlisting
#: decorators.xml:45
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Decorator\n"
"public abstract class LargeTransactionDecorator\n"
@@ -152,51 +110,32 @@
"}]]>"
msgstr ""
"<![CDATA[@Decorator\n"
-"public abstract class LargeTransactionDecorator \n"
-" implements Account {\n"
+"public abstract class LargeTransactionDecorator\n"
+" implements Account {\n"
+" @Inject @Delegate @Any Account account;\n"
+"\n"
+" @PersistenceContext EntityManager em;\n"
" \n"
-" @Decorates Account account;\n"
+" public void withdraw(BigDecimal amount) {\n"
+" ...\n"
+" }\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"
+" public void deposit(BigDecimal amount);\n"
+" ...\n"
+" }\n"
"}]]>"
#. Tag: para
#: decorators.xml:47
#, fuzzy, no-c-format
-msgid ""
-"Unlike other beans, a decorator may be an abstract class. Therefore, 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 ""
-"Ao contrário de outros Web Beans simples, um decorador pode ser uma classe "
-"abstrata. Se não há nada de especial que o decorador precisa fazer para um "
-"determinado método da interface decorada, você não precisa implementar esse "
-"método."
+msgid "Unlike other beans, a decorator may be an abstract class. Therefore, 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 "Ao contrário de outros Web Beans simples, um decorador pode ser uma classe abstrata. Se não há nada de especial que o decorador precisa fazer para um determinado método da interface decorada, você não precisa implementar esse método."
#. Tag: para
#: decorators.xml:52
#, fuzzy, no-c-format
-msgid ""
-"Interceptors for a method are called before decorators that apply to the "
-"method."
-msgstr ""
-"Interceptadores para o método são chamados antes dos decoradores que se "
-"aplicam a esse método."
+msgid "Interceptors for a method are called before decorators that apply to the method."
+msgstr "Interceptadores para o método são chamados antes dos decoradores que se aplicam a esse método."
#. Tag: title
#: decorators.xml:57
@@ -207,12 +146,7 @@
#. Tag: para
#: decorators.xml:59
#, no-c-format
-msgid ""
-"Decorators have a special injection point, called the <emphasis>delegate "
-"injection point</emphasis>, with the same type as the beans they decorate, "
-"and the annotation <literal>@Delegate</literal>. There must be exactly one "
-"delegate injection point, which can be a constructor parameter, initializer "
-"method parameter or injected field."
+msgid "Decorators have a special injection point, called the <emphasis>delegate injection point</emphasis>, with the same type as the beans they decorate, and the annotation <literal>@Delegate</literal>. There must be exactly one delegate injection point, which can be a constructor parameter, initializer method parameter or injected field."
msgstr ""
#. Tag: programlisting
@@ -226,6 +160,12 @@
" ...\n"
"}]]>"
msgstr ""
+"<![CDATA[@Decorator\n"
+"public abstract class LargeTransactionDecorator\n"
+" implements Account {\n"
+" @Inject @Delegate @Any Account account;\n"
+" ...\n"
+"}]]>"
#. Tag: para
#: decorators.xml:67
@@ -243,57 +183,41 @@
#: decorators.xml:74
#, fuzzy, no-c-format
msgid "has all qualifiers that are declared at the delegate injection point."
-msgstr ""
-"tenha todos os tipos de vínculo que são declarados pelo atributo delegado."
+msgstr "tenha todos os tipos de vínculo que são declarados pelo atributo delegado."
#. Tag: para
#: decorators.xml:78
#, fuzzy, no-c-format
-msgid ""
-"This delegate injection point specifies that the decorator is bound to all "
-"beans that implement <literal>Account</literal>:"
-msgstr ""
-"Este atributo delegado especifica que o decorador está vinculado a todos os "
-"Web Beans que implementam <literal>Account</literal>:"
+msgid "This delegate injection point specifies that the decorator is bound to all beans that implement <literal>Account</literal>:"
+msgstr "Este atributo delegado especifica que o decorador está vinculado a todos os Web Beans que implementam <literal>Account</literal>:"
#. Tag: programlisting
#: decorators.xml:83
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[@Inject @Delegate @Any Account account;]]>"
-msgstr "<![CDATA[@Decorates Account account;]]>"
+msgstr "<![CDATA[@Inject @Delegate @Any Account account;]]>"
#. Tag: para
#: decorators.xml:85
#, fuzzy, no-c-format
-msgid ""
-"A delegate injection point may specify any number of qualifier annotations. "
-"The decorator will only be bound to beans with the same qualifiers."
-msgstr ""
-"Um atributo delegado pode especificar uma anotação de binding. Então, o "
-"decorador só será vinculado ao Web Beans com o mesmo vínculo."
+msgid "A delegate injection point may specify any number of qualifier annotations. The decorator will only be bound to beans with the same qualifiers."
+msgstr "Um atributo delegado pode especificar uma anotação de binding. Então, o decorador só será vinculado ao Web Beans com o mesmo vínculo."
#. Tag: programlisting
#: decorators.xml:90
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[@Inject @Delegate @Foreign Account account;]]>"
-msgstr "<![CDATA[@Decorates @Foreign Account account;]]>"
+msgstr "<![CDATA[@Inject @Delegate @Foreign Account account;]]>"
#. Tag: para
#: decorators.xml:92
#, fuzzy, no-c-format
-msgid ""
-"The decorator may invoke the delegate object, which has much the same effect "
-"as calling <literal>InvocationContext.proceed()</literal> from an "
-"interceptor. The main difference is that the decorator can invoke "
-"<emphasis>any</emphasis> business method on the delegate object."
-msgstr ""
-"O decorador pode invocar o atributo delegado,o que praticamente equivale a "
-"chamar <literal>InvocationContext.proceed()</literal> a partir de um "
-"interceptador"
+msgid "The decorator may invoke the delegate object, which has much the same effect as calling <literal>InvocationContext.proceed()</literal> from an interceptor. The main difference is that the decorator can invoke <emphasis>any</emphasis> business method on the delegate object."
+msgstr "O decorador pode invocar o atributo delegado,o que praticamente equivale a chamar <literal>InvocationContext.proceed()</literal> a partir de um interceptador"
#. Tag: programlisting
#: decorators.xml:98
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Decorator\n"
"public abstract class LargeTransactionDecorator\n"
@@ -318,27 +242,25 @@
"}]]>"
msgstr ""
"<![CDATA[@Decorator\n"
-"public abstract class LargeTransactionDecorator \n"
-" implements Account {\n"
+"public abstract class LargeTransactionDecorator\n"
+" implements Account {\n"
+" @Inject @Delegate @Any Account account;\n"
+"\n"
+" @PersistenceContext EntityManager em;\n"
" \n"
-" @Decorates Account account;\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"
-" @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"
+" 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"
"}]]>"
#. Tag: title
@@ -350,10 +272,7 @@
#. Tag: para
#: decorators.xml:105
#, no-c-format
-msgid ""
-"By default, all decorators are disabled. We need to <emphasis>enable</"
-"emphasis> our decorator in the <literal>beans.xml</literal> descriptor of a "
-"bean archive. This activation only applies to the beans in that archive."
+msgid "By default, all decorators are disabled. We need to <emphasis>enable</emphasis> our decorator in the <literal>beans.xml</literal> descriptor of a bean archive. This activation only applies to the beans in that archive."
msgstr ""
#. Tag: programlisting
@@ -371,34 +290,34 @@
" </decorators>\n"
"</beans>]]>"
msgstr ""
+"<![CDATA[<beans\n"
+" xmlns=\"http://java.sun.com/xml/ns/javaee\"\n"
+" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+" xsi:schemaLocation=\"\n"
+" http://java.sun.com/xml/ns/javaee\n"
+" http://java.sun.com/xml/ns/javaee/beans_1_0.xsd\">\n"
+" <decorators>\n"
+" <class>org.mycompany.myapp.LargeTransactionDecorator</class>\n"
+" </decorators>\n"
+"</beans>]]>"
#. Tag: para
#: decorators.xml:113
#, fuzzy, no-c-format
-msgid ""
-"This declaration serves the same purpose for decorators that the "
-"<literal><interceptors></literal> declaration serves for interceptors:"
-msgstr ""
-"Essa declaração tem o mesmo propósito para decoradores que a <literal><"
-"Interceptors></literal> tem para os interceptadores:"
+msgid "This declaration serves the same purpose for decorators that the <literal><interceptors></literal> declaration serves for interceptors:"
+msgstr "Essa declaração tem o mesmo propósito para decoradores que a <literal><Interceptors></literal> tem para os interceptadores:"
#. Tag: para
#: decorators.xml:120
#, no-c-format
-msgid ""
-"it enables us to specify a total ordering for all decorators in our system, "
-"ensuring deterministic behavior, and"
-msgstr ""
-"isso possibilita-nos determinar a ordem total para todos os decoradores em "
-"nosso sistema, assegurando um comportamento determinístico"
+msgid "it enables us to specify a total ordering for all decorators in our system, ensuring deterministic behavior, and"
+msgstr "isso possibilita-nos determinar a ordem total para todos os decoradores em nosso sistema, assegurando um comportamento determinístico"
#. Tag: para
#: decorators.xml:126
#, no-c-format
msgid "it lets us enable or disable decorator classes at deployment time."
-msgstr ""
-"isso permite habilitarmos ou desabilitarmos as classes decoradas em tempo de "
-"implantação."
+msgstr "isso permite habilitarmos ou desabilitarmos as classes decoradas em tempo de implantação."
#~ msgid ""
#~ "All decorators have a <emphasis>delegate attribute</emphasis>. The type "
@@ -410,10 +329,10 @@
#~ "tipo e os tipos de binding do atributo delegado determinam a qual Web "
#~ "Beans o decorador está vinculado. O tipo do atributo delegado deve "
#~ "implementar ou estender todas as interfaces implementadas pelo decorador."
-
#~ msgid ""
#~ "We need to <emphasis>enable</emphasis> our decorator in <literal>web-"
#~ "beans.xml</literal>."
#~ msgstr ""
#~ "Nós precisamos <emphasis>habilitar</emphasis> nosso decorador no "
#~ "<literal>web-beans.xml</literal>."
+
Modified: doc/trunk/reference/pt-BR/dependencies.po
===================================================================
--- doc/trunk/reference/pt-BR/dependencies.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/dependencies.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,8 +6,8 @@
"Project-Id-Version: Weld_-_JSR-299_Reference_Implementation VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-11-11 15:00+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2009-12-19 18:07-0300\n"
+"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -22,11 +22,7 @@
#. Tag: para
#: dependencies.xml:7
#, no-c-format
-msgid ""
-"This section lists compile-time and runtime dependencies for Weld. This list "
-"is currently maintained in the <ulink src=\"https://jira.jboss.org/jira/"
-"browse/WELD-222\">WELD-222</ulink> issue report as well as here in this "
-"appendix."
+msgid "This section lists compile-time and runtime dependencies for Weld. This list is currently maintained in the <ulink src=\"https://jira.jboss.org/jira/browse/WELD-222\">WELD-222</ulink> issue report as well as here in this appendix."
msgstr ""
#. Tag: title
@@ -36,13 +32,15 @@
msgstr ""
#. Tag: para
-#: dependencies.xml:21 dependencies.xml:110
+#: dependencies.xml:21
+#: dependencies.xml:110
#, no-c-format
msgid "Artifact"
msgstr ""
#. Tag: para
-#: dependencies.xml:24 dependencies.xml:113
+#: dependencies.xml:24
+#: dependencies.xml:113
#, no-c-format
msgid "Scope"
msgstr ""
@@ -51,11 +49,15 @@
#: dependencies.xml:33
#, no-c-format
msgid "javax.ejb:ejb-api:3.1"
-msgstr ""
+msgstr "javax.ejb:ejb-api:3.1"
#. Tag: para
-#: dependencies.xml:36 dependencies.xml:44 dependencies.xml:52
-#: dependencies.xml:60 dependencies.xml:68 dependencies.xml:76
+#: dependencies.xml:36
+#: dependencies.xml:44
+#: dependencies.xml:52
+#: dependencies.xml:60
+#: dependencies.xml:68
+#: dependencies.xml:76
#: dependencies.xml:128
#, no-c-format
msgid "compile"
@@ -65,40 +67,41 @@
#: dependencies.xml:41
#, no-c-format
msgid "javax.faces:jsf-api:2.0"
-msgstr ""
+msgstr "javax.faces:jsf-api:2.0"
#. Tag: literal
#: dependencies.xml:49
#, no-c-format
msgid "javax.el:el-api:2.1"
-msgstr ""
+msgstr "javax.el:el-api:2.1"
#. Tag: literal
#: dependencies.xml:57
#, no-c-format
msgid "javax.persistence:persistence-api:2.0"
-msgstr ""
+msgstr "javax.persistence:persistence-api:2.0"
#. Tag: literal
#: dependencies.xml:65
#, no-c-format
msgid "javax.servlet:servlet-api:3.0"
-msgstr ""
+msgstr "javax.servlet:servlet-api:3.0"
#. Tag: literal
#: dependencies.xml:73
#, no-c-format
msgid "javax.interceptor:interceptor-api:1.1"
-msgstr ""
+msgstr "javax.interceptor:interceptor-api:1.1"
#. Tag: literal
#: dependencies.xml:81
#, no-c-format
msgid "org.glasfish.web:el-impl:2.1.2"
-msgstr ""
+msgstr "org.glasfish.web:el-impl:2.1.2"
#. Tag: para
-#: dependencies.xml:84 dependencies.xml:92
+#: dependencies.xml:84
+#: dependencies.xml:92
#, no-c-format
msgid "runtime"
msgstr ""
@@ -107,7 +110,7 @@
#: dependencies.xml:89
#, no-c-format
msgid "javax.faces:jsf-impl:2.0.x"
-msgstr ""
+msgstr "javax.faces:jsf-impl:2.0.x"
#. Tag: title
#: dependencies.xml:101
@@ -125,10 +128,11 @@
#: dependencies.xml:125
#, no-c-format
msgid "javax.validation:validation-api"
-msgstr ""
+msgstr "javax.validation:validation-api"
#. Tag: ulink
#: dependencies.xml:131
#, no-c-format
msgid "BVAL-193"
msgstr ""
+
Modified: doc/trunk/reference/pt-BR/ee.po
===================================================================
--- doc/trunk/reference/pt-BR/ee.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/ee.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,7 +6,7 @@
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-04-10 21:24-0300\n"
+"PO-Revision-Date: 2009-12-19 18:11-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -22,18 +22,8 @@
#. Tag: para
#: ee.xml:6
#, fuzzy, no-c-format
-msgid ""
-"CDI is fully integrated into the Java EE environment. Beans have access to "
-"Java EE resources and JPA persistence contexts. They may be used in Unified "
-"EL expressions in JSF and JSP pages. They may even be injected into other "
-"platform components, such as servlets and message-driven Beans, which are "
-"not beans themselves."
-msgstr ""
-"A Web Beans está plenamente integrada ao ambiente Java EE. A Web Beans tem "
-"acesso aos recursos Java EE e aos contextos de persistência JPA. Eles podem "
-"ser utilizados em expressões EL Unificadas (Unified EL) e em páginas JSF e "
-"JSP. Podem até ser injetados em objetos que não são Web Benas, tais como "
-"Servlets e Message-Driven Beans."
+msgid "CDI is fully integrated into the Java EE environment. Beans have access to Java EE resources and JPA persistence contexts. They may be used in Unified EL expressions in JSF and JSP pages. They may even be injected into other platform components, such as servlets and message-driven Beans, which are not beans themselves."
+msgstr "A Web Beans está plenamente integrada ao ambiente Java EE. A Web Beans tem acesso aos recursos Java EE e aos contextos de persistência JPA. Eles podem ser utilizados em expressões EL Unificadas (Unified EL) e em páginas JSF e JSP. Podem até ser injetados em objetos que não são Web Benas, tais como Servlets e Message-Driven Beans."
#. Tag: title
#: ee.xml:13
@@ -44,9 +34,7 @@
#. Tag: para
#: ee.xml:15
#, no-c-format
-msgid ""
-"In the Java EE environment, the container provides the following built-in "
-"beans, all with the qualifier <literal>@Default</literal>:"
+msgid "In the Java EE environment, the container provides the following built-in beans, all with the qualifier <literal>@Default</literal>:"
msgstr ""
#. Tag: para
@@ -58,73 +46,54 @@
#. Tag: para
#: ee.xml:27
#, no-c-format
-msgid ""
-"a <literal>Principal</literal> representing the current caller identity,"
+msgid "a <literal>Principal</literal> representing the current caller identity,"
msgstr ""
#. Tag: para
#: ee.xml:32
#, no-c-format
-msgid ""
-"the default <ulink src=\"http://jcp.org/en/jsr/detail?id=303\">Bean "
-"Validation</ulink> <literal>ValidationFactory</literal>, and"
+msgid "the default <ulink src=\"http://jcp.org/en/jsr/detail?id=303\">Bean Validation</ulink> <literal>ValidationFactory</literal>, and"
msgstr ""
#. Tag: para
#: ee.xml:38
#, no-c-format
-msgid ""
-"a <literal>Validator</literal> for the default <literal>ValidationFactory</"
-"literal>."
+msgid "a <literal>Validator</literal> for the default <literal>ValidationFactory</literal>."
msgstr ""
#. Tag: title
#: ee.xml:47
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Injecting Java EE resources into a bean"
-msgstr "Injetando recursos Java EE em um Web Bean"
+msgstr "Injetando recursos Java EE em um bean"
#. Tag: para
#: ee.xml:49
#, fuzzy, no-c-format
-msgid ""
-"All managed beans may take advantage of Java EE component environment "
-"injection using <literal>@Resource</literal>, <literal>@EJB</literal>, "
-"<literal>@PersistenceContext</literal>, <literal>@PeristenceUnit</literal> "
-"and <literal>@WebServiceRef</literal>. We've already seen a couple of "
-"examples of this, though we didn't pay much attention at the time:"
-msgstr ""
-"Todos Web Beans, simples e corporativos (enterprise Web Beans), podem "
-"usufruir da injeção de dependência do Java EE utilizando <literal>@Resource</"
-"literal>, <literal>@EJB</literal> e <literal>@PersistenceContext</literal>. "
-"Nós já vimos vários exemplos disso, embora não demos muita ênfase até o "
-"momento:"
+msgid "All managed beans may take advantage of Java EE component environment injection using <literal>@Resource</literal>, <literal>@EJB</literal>, <literal>@PersistenceContext</literal>, <literal>@PeristenceUnit</literal> and <literal>@WebServiceRef</literal>. We've already seen a couple of examples of this, though we didn't pay much attention at the time:"
+msgstr "Todos Web Beans, simples e corporativos (enterprise Web Beans), podem usufruir da injeção de dependência do Java EE utilizando <literal>@Resource</literal>, <literal>@EJB</literal> e <literal>@PersistenceContext</literal>. Nós já vimos vários exemplos disso, embora não demos muita ênfase até o momento:"
#. Tag: programlisting
#: ee.xml:56
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Transactional @Interceptor\n"
"public class TransactionInterceptor {\n"
" @Resource UserTransaction transaction;\n"
"\n"
-" @AroundInvoke public Object manageTransaction(InvocationContext ctx) "
-"throws Exception { ... }\n"
+" @AroundInvoke public Object manageTransaction(InvocationContext ctx) throws Exception { ... }\n"
"}]]>"
msgstr ""
"<![CDATA[@Transactional @Interceptor\n"
"public class TransactionInterceptor {\n"
+" @Resource UserTransaction transaction;\n"
"\n"
-" @Resource Transaction transaction;\n"
-"\n"
-" @AroundInvoke public Object manageTransaction(InvocationContext ctx) "
-"{ ... }\n"
-" \n"
+" @AroundInvoke public Object manageTransaction(InvocationContext ctx) throws Exception { ... }\n"
"}]]>"
#. Tag: programlisting
#: ee.xml:58
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@SessionScoped\n"
"public class Login implements Serializable {\n"
@@ -134,36 +103,22 @@
"}]]>"
msgstr ""
"<![CDATA[@SessionScoped\n"
-"public class Login {\n"
-"\n"
-" @Current Credentials credentials;\n"
-" @PersistenceContext EntityManager userDatabase;\n"
-" \n"
+"public class Login implements Serializable {\n"
+" @Inject Credentials credentials;\n"
+" @PersistenceContext EntityManager userDatabase;\n"
" ...\n"
-"\n"
"}]]>"
#. Tag: para
#: ee.xml:60
#, fuzzy, no-c-format
-msgid ""
-"The Java EE <literal>@PostConstruct</literal> and <literal>@PreDestroy</"
-"literal> callbacks are also supported for all managed beans. The "
-"<literal>@PostConstruct</literal> method is called after <emphasis>all</"
-"emphasis> injection has been performed."
-msgstr ""
-"As chamadas Java EE <literal>@PostConstruct</literal> e "
-"<literal>@PreDestroy</literal> também são suportadas para todos os Web Beans "
-"simples e corporativos. O método anotado com <literal>@PostConstruct</"
-"literal> é invocado após <emphasis>todas</emphasis> injeções serem "
-"realizadas."
+msgid "The Java EE <literal>@PostConstruct</literal> and <literal>@PreDestroy</literal> callbacks are also supported for all managed beans. The <literal>@PostConstruct</literal> method is called after <emphasis>all</emphasis> injection has been performed."
+msgstr "As chamadas Java EE <literal>@PostConstruct</literal> e <literal>@PreDestroy</literal> também são suportadas para todos os Web Beans simples e corporativos. O método anotado com <literal>@PostConstruct</literal> é invocado após <emphasis>todas</emphasis> injeções serem realizadas."
#. Tag: para
#: ee.xml:66
#, no-c-format
-msgid ""
-"Of course, we advise that component environment injection be used to define "
-"CDI resources, and that typesafe injection be used in application code."
+msgid "Of course, we advise that component environment injection be used to define CDI resources, and that typesafe injection be used in application code."
msgstr ""
#. Tag: title
@@ -175,25 +130,19 @@
#. Tag: para
#: ee.xml:76
#, fuzzy, no-c-format
-msgid ""
-"It's easy to use a bean from a servlet in Java EE 6. Simply inject the bean "
-"using field or initializer method injection."
-msgstr ""
-"É fácil utilizar um Web Bean a partir de um Servlet em Java EE : basta "
-"injetar o Web Bean usando a injeção de atributos ou de método de "
-"inicialização de Web Beans."
+msgid "It's easy to use a bean from a servlet in Java EE 6. Simply inject the bean using field or initializer method injection."
+msgstr "É fácil utilizar um Web Bean a partir de um Servlet em Java EE : basta injetar o Web Bean usando a injeção de atributos ou de método de inicialização de Web Beans."
#. Tag: programlisting
#: ee.xml:81
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public class Login extends HttpServlet {\n"
" @Inject Credentials credentials;\n"
" @Inject Login login;\n"
"\n"
" @Override\n"
-" public void service(HttpServletRequest request, HttpServletResponse "
-"response)\n"
+" public void service(HttpServletRequest request, HttpServletResponse response)\n"
" throws ServletException, IOException {\n"
" credentials.setUsername(request.getParameter(\"username\")):\n"
" credentials.setPassword(request.getParameter(\"password\")):\n"
@@ -208,41 +157,31 @@
" \n"
"}]]>"
msgstr ""
-"public class Login extends HttpServlet {\n"
+"<![CDATA[public class Login extends HttpServlet {\n"
+" @Inject Credentials credentials;\n"
+" @Inject Login login;\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"
+" @Override\n"
+" public void service(HttpServletRequest request, HttpServletResponse response)\n"
+" throws ServletException, IOException {\n"
+" credentials.setUsername(request.getParameter(\"username\")):\n"
+" credentials.setPassword(request.getParameter(\"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:83
#, fuzzy, no-c-format
-msgid ""
-"Since instances of servlets are shared across all incoming threads, the bean "
-"client proxy takes care of routing method invocations from the servlet to "
-"the correct instances of <literal>Credentials</literal> and <literal>Login</"
-"literal> for the current request and HTTP session."
-msgstr ""
-"O proxy cliente do Web Bean (Web Beans client proxy) cuida do encaminhamento "
-"das invocações dos métodos do Servlet para as instâncias corretas de "
-"<literal>Credentials</literal> e <literal>Login</literal> para a requisição "
-"e sessão HTTP atuais."
+msgid "Since instances of servlets are shared across all incoming threads, the bean client proxy takes care of routing method invocations from the servlet to the correct instances of <literal>Credentials</literal> and <literal>Login</literal> for the current request and HTTP session."
+msgstr "O proxy cliente do Web Bean (Web Beans client proxy) cuida do encaminhamento das invocações dos métodos do Servlet para as instâncias corretas de <literal>Credentials</literal> e <literal>Login</literal> para a requisição e sessão HTTP atuais."
#. Tag: title
#: ee.xml:92
@@ -253,23 +192,18 @@
#. Tag: para
#: ee.xml:94
#, no-c-format
-msgid ""
-"CDI injection applies to all EJBs, even when they aren't managed beans. In "
-"particular, you can use CDI injection in message-driven beans, which are by "
-"nature not contextual objects."
+msgid "CDI injection applies to all EJBs, even when they aren't managed beans. In particular, you can use CDI injection in message-driven beans, which are by nature not contextual objects."
msgstr ""
#. Tag: para
#: ee.xml:99
#, fuzzy, no-c-format
msgid "You can even use CDI interceptor bindings for message-driven Beans."
-msgstr ""
-"Você ainda pode usar bindings de interceptadores Web Beans em Message-Driven "
-"Beans."
+msgstr "Você ainda pode usar bindings de interceptadores Web Beans em Message-Driven Beans."
#. Tag: programlisting
#: ee.xml:101
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Transactional @MessageDriven\n"
"public class ProcessOrder implements MessageListener {\n"
@@ -281,32 +215,21 @@
" }\n"
"}]]>"
msgstr ""
-"@Transactional @MessageDriven\n"
+"<![CDATA[@Transactional @MessageDriven\n"
"public class ProcessOrder implements MessageListener {\n"
+" @Inject Inventory inventory;\n"
+" @PersistenceContext EntityManager em;\n"
"\n"
-" @Current Inventory inventory;\n"
-" @PersistenceContext EntityManager em;\n"
-"\n"
-" public void onMessage(Message message) {\n"
-" ...\n"
-" }\n"
-" \n"
-"}"
+" public void onMessage(Message message) {\n"
+" ...\n"
+" }\n"
+"}]]>"
#. Tag: para
#: ee.xml:103
#, fuzzy, no-c-format
-msgid ""
-"Please note 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> "
-"beans are available."
-msgstr ""
-"Assim, receber mensagens é super fácil no ambiente Web Beans. Mas, cuidado, "
-"pois não existe um contexto de sessão ou conversação disponível quando uma "
-"mensagem é entregue a um Message-Driven Bean. Apenas "
-"<literal>@RequestScoped</literal> e <literal>@ApplicationScoped</literal> "
-"Web Beans estão disponíveis."
+msgid "Please note 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> beans are available."
+msgstr "Assim, receber mensagens é super fácil no ambiente Web Beans. Mas, cuidado, pois não existe um contexto de sessão ou conversação disponível quando uma mensagem é entregue a um Message-Driven Bean. Apenas <literal>@RequestScoped</literal> e <literal>@ApplicationScoped</literal> Web Beans estão disponíveis."
#. Tag: para
#: ee.xml:109
@@ -323,33 +246,13 @@
#. Tag: para
#: ee.xml:118
#, no-c-format
-msgid ""
-"Sending messages using JMS can be quite complex, because of the number of "
-"different objects you need to deal with. For queues we have <literal>Queue</"
-"literal>, <literal>QueueConnectionFactory</literal>, "
-"<literal>QueueConnection</literal>, <literal>QueueSession</literal> and "
-"<literal>QueueSender</literal>. For topics we have <literal>Topic</literal>, "
-"<literal>TopicConnectionFactory</literal>, <literal>TopicConnection</"
-"literal>, <literal>TopicSession</literal> and <literal>TopicPublisher</"
-"literal>. Each of these objects has its own lifecycle and threading model "
-"that we need to worry about."
-msgstr ""
-"O envio de mensagens usando JMS pode ser bastante complexo, devido à "
-"quantidade de objetos diferentes que precisamos utilizar. Para filas, temos "
-"<literal>Queue</literal>, <literal>QueueConnectionFactory</literal>, "
-"<literal>QueueConnection</literal>, <literal>QueueSession</literal> e "
-"<literal>QueueSender</literal>. Para os tópicos, temos <literal>Topic</"
-"literal>, <literal>TopicConnectionFactory</literal>, "
-"<literal>TopicConnection</literal>, <literal>TopicSession</literal> e "
-"<literal>TopicPublisher</literal>. Cada um desses objetos tem seu próprio "
-"ciclo de vida e modelo de threads, com que temos de nos preocupar."
+msgid "Sending messages using JMS can be quite complex, because of the number of different objects you need to deal with. For queues we have <literal>Queue</literal>, <literal>QueueConnectionFactory</literal>, <literal>QueueConnection</literal>, <literal>QueueSession</literal> and <literal>QueueSender</literal>. For topics we have <literal>Topic</literal>, <literal>TopicConnectionFactory</literal>, <literal>TopicConnection</literal>, <literal>TopicSession</literal> and <literal>TopicPublisher</literal>. Each of these objects has its own lifecycle and threading model that we need to worry about."
+msgstr "O envio de mensagens usando JMS pode ser bastante complexo, devido à quantidade de objetos diferentes que precisamos utilizar. Para filas, temos <literal>Queue</literal>, <literal>QueueConnectionFactory</literal>, <literal>QueueConnection</literal>, <literal>QueueSession</literal> e <literal>QueueSender</literal>. Para os tópicos, temos <literal>Topic</literal>, <literal>TopicConnectionFactory</literal>, <literal>TopicConnection</literal>, <literal>TopicSession</literal> e <literal>TopicPublisher</literal>. Cada um desses objetos tem seu próprio ciclo de vida e modelo de threads, com que temos de nos preocupar."
#. Tag: para
#: ee.xml:127
#, no-c-format
-msgid ""
-"You can use producer fields and methods to prepare all of these resources "
-"for injection into a bean:"
+msgid "You can use producer fields and methods to prepare all of these resources for injection into a bean:"
msgstr ""
#. Tag: programlisting
@@ -368,15 +271,13 @@
" return connectionFactory.createConnection();\n"
" }\n"
" \n"
-" public void closeOrderConnection(@Disposes @OrderConnection Connection "
-"connection)\n"
+" public void closeOrderConnection(@Disposes @OrderConnection Connection connection)\n"
" throws JMSException {\n"
" connection.close();\n"
" }\n"
" \n"
" @Produces @OrderSession\n"
-" public Session createOrderSession(@OrderConnection Connection "
-"connection)\n"
+" public Session createOrderSession(@OrderConnection Connection connection)\n"
" throws JMSException {\n"
" return connection.createSession(true, Session.AUTO_ACKNOWLEDGE);\n"
" }\n"
@@ -387,31 +288,66 @@
" }\n"
" \n"
" @Produces @OrderMessageProducer\n"
-" public MessageProducer createOrderMessageProducer(@OrderSession Session "
-"session)\n"
+" public MessageProducer createOrderMessageProducer(@OrderSession Session session)\n"
" throws JMSException {\n"
" return session.createProducer(orderQueue);\n"
" }\n"
" \n"
-" public void closeOrderMessageProducer(@Disposes @OrderMessageProducer "
-"MessageProducer producer)\n"
+" public void closeOrderMessageProducer(@Disposes @OrderMessageProducer MessageProducer producer)\n"
" throws JMSException {\n"
" producer.close();\n"
" }\n"
"}]]>"
msgstr ""
+"<![CDATA[public class OrderResources {\n"
+" @Resource(name=\"jms/ConnectionFactory\")\n"
+" private ConnectionFactory connectionFactory;\n"
+" \n"
+" @Resource(name=\"jms/OrderQueue\")\n"
+" private Queue orderQueue;\n"
+" \n"
+" @Produces @OrderConnection\n"
+" public Connection createOrderConnection() throws JMSException {\n"
+" return connectionFactory.createConnection();\n"
+" }\n"
+" \n"
+" public void closeOrderConnection(@Disposes @OrderConnection Connection connection)\n"
+" throws JMSException {\n"
+" connection.close();\n"
+" }\n"
+" \n"
+" @Produces @OrderSession\n"
+" public Session createOrderSession(@OrderConnection Connection connection)\n"
+" throws JMSException {\n"
+" return connection.createSession(true, Session.AUTO_ACKNOWLEDGE);\n"
+" }\n"
+" \n"
+" public void closeOrderSession(@Disposes @OrderSession Session session)\n"
+" throws JMSException {\n"
+" session.close();\n"
+" }\n"
+" \n"
+" @Produces @OrderMessageProducer\n"
+" public MessageProducer createOrderMessageProducer(@OrderSession Session session)\n"
+" throws JMSException {\n"
+" return session.createProducer(orderQueue);\n"
+" }\n"
+" \n"
+" public void closeOrderMessageProducer(@Disposes @OrderMessageProducer MessageProducer producer)\n"
+" throws JMSException {\n"
+" producer.close();\n"
+" }\n"
+"}]]>"
#. Tag: para
#: ee.xml:133
#, no-c-format
-msgid ""
-"In this example, we can just inject the prepared <literal>MessageProducer</"
-"literal>, <literal>Connection</literal> or <literal>QueueSession</literal>:"
+msgid "In this example, we can just inject the prepared <literal>MessageProducer</literal>, <literal>Connection</literal> or <literal>QueueSession</literal>:"
msgstr ""
#. Tag: programlisting
#: ee.xml:138
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Inject Order order;\n"
"@Inject @OrderMessageProducer MessageProducer producer;\n"
@@ -424,24 +360,22 @@
" producer.send(msg);\n"
"}]]>"
msgstr ""
-"@OrderProcessor QueueSender orderSender;\n"
-"@OrderProcessor QueueSession orderSession;\n"
+"<![CDATA[@Inject Order order;\n"
+"@Inject @OrderMessageProducer MessageProducer producer;\n"
+"@Inject @OrderSession QueueSession orderSession;\n"
"\n"
"public void sendMessage() {\n"
-" MapMessage msg = orderSession.createMapMessage();\n"
-" ...\n"
-" orderSender.send(msg);\n"
-"}"
+" MapMessage msg = orderSession.createMapMessage();\n"
+" msg.setLong(\"orderId\", order.getId());\n"
+" ...\n"
+" producer.send(msg);\n"
+"}]]>"
#. Tag: para
#: ee.xml:144
#, fuzzy, no-c-format
-msgid ""
-"The lifecycle of the injected JMS objects is completely controlled by the "
-"container."
-msgstr ""
-"O ciclo de vida do objeto JMS injetado é completamente controlado pelo "
-"gerenciador do Web Bean."
+msgid "The lifecycle of the injected JMS objects is completely controlled by the container."
+msgstr "O ciclo de vida do objeto JMS injetado é completamente controlado pelo gerenciador do Web Bean."
#. Tag: title
#: ee.xml:151
@@ -452,39 +386,14 @@
#. Tag: para
#: ee.xml:153
#, fuzzy, no-c-format
-msgid ""
-"CDI doesn't define any special deployment archive. You can package beans in "
-"JARs, EJB-JARs or WARs—any deployment location in the application "
-"classpath. However, the archive must be a \"bean archive\". That means each "
-"archive that contains beans <emphasis>must</emphasis> include a file named "
-"<literal>beans.xml</literal> in the <literal>META-INF</literal> directory of "
-"the classpath or <literal>WEB-INF</literal> directory of the web root (for "
-"WAR archives). The file may be empty. Beans deployed in archives that do not "
-"have a <literal>beans.xml</literal> file will not be available for use in "
-"the application."
-msgstr ""
-"A Web Beans não define nenhum tipo especial de pacote de implantação. Você "
-"pode empacotar Web Beans em JARs, EJB-JARs ou WARs — qualquer "
-"localização de implantação do classpath da aplicação. Entretanto, cada "
-"arquivo ( JARs, EJB-JARs ou WARs) que contém Web Beans deve incluir um "
-"arquivo chamado <literal>web-beans.xml</literal> no diretório <literal>META-"
-"INF</literal> ou no diretório <literal>WEB-INF</literal>. O arquivo pode ser "
-"vazio. Os Web Beans implantados em pacotes que não possuem o arquivo "
-"<literal>web-beans.xml</literal> não estarão disponíveis para uso na "
-"aplicação."
+msgid "CDI doesn't define any special deployment archive. You can package beans in JARs, EJB-JARs or WARs—any deployment location in the application classpath. However, the archive must be a \"bean archive\". That means each archive that contains beans <emphasis>must</emphasis> include a file named <literal>beans.xml</literal> in the <literal>META-INF</literal> directory of the classpath or <literal>WEB-INF</literal> directory of the web root (for WAR archives). The file may be empty. Beans deployed in archives that do not have a <literal>beans.xml</literal> file will not be available for use in the application."
+msgstr "A Web Beans não define nenhum tipo especial de pacote de implantação. Você pode empacotar Web Beans em JARs, EJB-JARs ou WARs — qualquer localização de implantação do classpath da aplicação. Entretanto, cada arquivo ( JARs, EJB-JARs ou WARs) que contém Web Beans deve incluir um arquivo chamado <literal>web-beans.xml</literal> no diretório <literal>META-INF</literal> ou no diretório <literal>WEB-INF</literal>. O arquivo pode ser vazio. Os Web Beans implantados em pacotes que não possuem o arquivo <literal>web-beans.xml</literal> não estarão disponíveis para uso na aplicação."
#. Tag: para
#: ee.xml:162
#, fuzzy, no-c-format
-msgid ""
-"In an embeddable EJB container, beans may be deployed in any location in "
-"which EJBs may be deployed. Again, each location must contain a "
-"<literal>beans.xml</literal> file."
-msgstr ""
-"Para execução em ambiente Java SE, Web Beans podem ser implantados em "
-"qualquer localização em que EJBs possam ser implantados para execução pelo "
-"container EJB Lite embutido (embeddable EJB Lite container). Novamente, cada "
-"localização deve conter o arquivo <literal>web-beans.xml</literal>."
+msgid "In an embeddable EJB container, beans may be deployed in any location in which EJBs may be deployed. Again, each location must contain a <literal>beans.xml</literal> file."
+msgstr "Para execução em ambiente Java SE, Web Beans podem ser implantados em qualquer localização em que EJBs possam ser implantados para execução pelo container EJB Lite embutido (embeddable EJB Lite container). Novamente, cada localização deve conter o arquivo <literal>web-beans.xml</literal>."
#~ msgid ""
#~ "There is one restriction to be aware of here: <literal>@PersistenceContext"
@@ -493,7 +402,6 @@
#~ "Existe uma restrição de que devemos estar conscientes: "
#~ "<literal>@PersistenceContext(type=EXTENDED)</literal> não é suportada por "
#~ "Web Beans simples."
-
#~ msgid ""
#~ "Web Beans injection applies to all EJBs, even when they aren't under the "
#~ "control of the Web Bean manager (if they were obtained by direct JNDI "
@@ -507,10 +415,8 @@
#~ "por exemplo). Em particular, você pode usar a injeção de Web Beans em "
#~ "Message-Driven Beans, que não são considerados Web Beans porque você não "
#~ "pode injetá-los."
-
#~ msgid "It's also easy to send messages using Web Beans."
#~ msgstr "Também é fácil enviar mensagens usando Web Beans."
-
#~ msgid ""
#~ "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 "
@@ -520,7 +426,6 @@
#~ "declarar a fila ou o tópico no <literal>web-beans.xml</literal>, "
#~ "especificando e associando o tipo de binding e a fábrica de conexão "
#~ "(connection factory)."
-
#~ msgid ""
#~ "<![CDATA[<Queue>\n"
#~ " <destination>java:comp/env/jms/OrderQueue</destination>\n"
@@ -535,7 +440,6 @@
#~ "connectionFactory>\n"
#~ " <myapp:OrderProcessor/> \n"
#~ "</Queue>]]>"
-
#~ msgid ""
#~ "<![CDATA[<Topic>\n"
#~ " <destination>java:comp/env/jms/StockPrices</destination>\n"
@@ -550,7 +454,6 @@
#~ "connectionFactory>\n"
#~ " <myapp:StockPrices/> \n"
#~ "</Topic>]]>"
-
#~ msgid ""
#~ "Now we can just inject the <literal>Queue</literal>, "
#~ "<literal>QueueConnection</literal>, <literal>QueueSession</literal> or "
@@ -563,7 +466,6 @@
#~ "<literal>QueueSender</literal> para uma fila, ou <literal>Topic</"
#~ "literal>, <literal>TopicConnection</literal>, <literal>TopicSession</"
#~ "literal> ou <literal>TopicPublisher</literal> em um tópico."
-
#~ msgid ""
#~ "@StockPrices TopicPublisher pricePublisher;\n"
#~ "@StockPrices TopicSession priceSession;\n"
@@ -578,3 +480,4 @@
#~ "public void sendMessage(String price) {\n"
#~ " pricePublisher.send( priceSession.createTextMessage(price) );\n"
#~ "}"
+
Modified: doc/trunk/reference/pt-BR/environments.po
===================================================================
--- doc/trunk/reference/pt-BR/environments.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/environments.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -3,11 +3,10 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Web_Beans:_Java_Contexts_and_Dependency_Injection "
-"VERSION\n"
+"Project-Id-Version: Web_Beans:_Java_Contexts_and_Dependency_Injection VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-06-13 11:34-0300\n"
+"PO-Revision-Date: 2009-12-19 18:10-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -29,47 +28,31 @@
#. Tag: para
#: environments.xml:9
#, no-c-format
-msgid ""
-"If you are using JBoss AS 5.2, no additional configuration is required to "
-"use Weld (or CDI for that matter). All you need to do is make your "
-"application a bean bean archive by adding <literal>META-INF/beans.xml</"
-"literal> to the classpath or <literal>WEB-INF/beans.xml</literal> to the web "
-"root!"
+msgid "If you are using JBoss AS 5.2, no additional configuration is required to use Weld (or CDI for that matter). All you need to do is make your application a bean bean archive by adding <literal>META-INF/beans.xml</literal> to the classpath or <literal>WEB-INF/beans.xml</literal> to the web root!"
msgstr ""
#. Tag: para
#: environments.xml:15
#, no-c-format
-msgid ""
-"Unfortunately, you can't use Weld with earlier versions of JBoss AS since "
-"they are missing key libraries. If you want to learn how to upgrade the "
-"built-in support on JBoss AS 5.2, then read on."
+msgid "Unfortunately, you can't use Weld with earlier versions of JBoss AS since they are missing key libraries. If you want to learn how to upgrade the built-in support on JBoss AS 5.2, then read on."
msgstr ""
#. Tag: para
#: environments.xml:20
#, no-c-format
-msgid ""
-"Upgrading the Weld add-on is easy. The Weld distribution has a build that "
-"can take care of this task for you in a single command. First, we need to "
-"tell Weld where JBoss AS is located. Create a new file named <literal>local."
-"build.properties</literal> in the examples directory of the Weld "
-"distribution and assign the path of your JBoss AS installation to the "
-"property key <literal>jboss.home</literal>, as follows:"
+msgid "Upgrading the Weld add-on is easy. The Weld distribution has a build that can take care of this task for you in a single command. First, we need to tell Weld where JBoss AS is located. Create a new file named <literal>local.build.properties</literal> in the examples directory of the Weld distribution and assign the path of your JBoss AS installation to the property key <literal>jboss.home</literal>, as follows:"
msgstr ""
#. Tag: programlisting
#: environments.xml:27
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[jboss.home=/path/to/jboss-as-5.x]]>"
-msgstr "jboss.home=/Applications/jboss-5.0.1.GA"
+msgstr "<![CDATA[jboss.home=/path/to/jboss-as-5.x]]>"
#. Tag: para
#: environments.xml:29
#, no-c-format
-msgid ""
-"Now we can install the Weld deployer from the <literal>jboss-as</literal> "
-"directory of the Weld distribution:"
+msgid "Now we can install the Weld deployer from the <literal>jboss-as</literal> directory of the Weld distribution:"
msgstr ""
#. Tag: programlisting
@@ -85,17 +68,8 @@
#. Tag: para
#: environments.xml:36
#, fuzzy, no-c-format
-msgid ""
-"A new deployer, <literal>weld.deployer</literal> is added to JBoss AS. This "
-"adds supports for JSR-299 deployments to JBoss AS, and allows Weld to query "
-"the EJB 3 container and discover which EJBs are installed in your "
-"application. It also performs an upgrade of the Javassist library, if "
-"necessary."
-msgstr ""
-"Um novo deployer <literal>webbeans.deployer</literal> é adicionado ao JBoss "
-"AS. Isso adiciona suporte a implantações JSR-299 no JBoss AS e permite à Web "
-"Beans consultar o EJB3 container e descobrir quais EJBs estão instalados na "
-"sua aplicação."
+msgid "A new deployer, <literal>weld.deployer</literal> is added to JBoss AS. This adds supports for JSR-299 deployments to JBoss AS, and allows Weld to query the EJB 3 container and discover which EJBs are installed in your application. It also performs an upgrade of the Javassist library, if necessary."
+msgstr "Um novo deployer <literal>webbeans.deployer</literal> é adicionado ao JBoss AS. Isso adiciona suporte a implantações JSR-299 no JBoss AS e permite à Web Beans consultar o EJB3 container e descobrir quais EJBs estão instalados na sua aplicação."
#. Tag: title
#: environments.xml:46
@@ -106,12 +80,7 @@
#. Tag: para
#: environments.xml:48
#, no-c-format
-msgid ""
-"Weld is also built into GlassFish from V3 onwards. Since GlassFish V3 is the "
-"Java EE 6 reference implementation, it must support all features of CDI. "
-"What better way for GlassFish to support these features than to use Weld, "
-"the JSR-299 reference implementation? Just package up your CDI application "
-"and deploy."
+msgid "Weld is also built into GlassFish from V3 onwards. Since GlassFish V3 is the Java EE 6 reference implementation, it must support all features of CDI. What better way for GlassFish to support these features than to use Weld, the JSR-299 reference implementation? Just package up your CDI application and deploy."
msgstr ""
#. Tag: title
@@ -123,43 +92,20 @@
#. Tag: para
#: environments.xml:58
#, fuzzy, no-c-format
-msgid ""
-"While JSR-299 does not require support for servlet environments, Weld can be "
-"used in any servlet container, such as Tomcat 6.0 or Jetty 6.1."
-msgstr ""
-"A Web Beans pode ser utilizada em qualquer Servlet container como o Tomcat "
-"6.0 ou Jetty 6.1."
+msgid "While JSR-299 does not require support for servlet environments, Weld can be used in any servlet container, such as Tomcat 6.0 or Jetty 6.1."
+msgstr "A Web Beans pode ser utilizada em qualquer Servlet container como o Tomcat 6.0 ou Jetty 6.1."
#. Tag: para
#: environments.xml:64
#, fuzzy, no-c-format
-msgid ""
-"There is a major limitation to using a servlet container. Weld doesn't "
-"support deploying session beans, injection using <literal>@EJB</literal> or "
-"<literal>@PersistenceContext</literal>, or using transactional events in "
-"servlet containers. For enterprise features such as these, you should really "
-"be looking at a Java EE application server."
-msgstr ""
-"A Web Beans não suporta a implantação de session beans, injeção utilizando "
-"<literal>@EJB</literal>, <literal>@Resource</literal>, ou "
-"<literal>@PersistenceContext</literal>, ou eventos transacionais no Tomcat."
+msgid "There is a major limitation to using a servlet container. Weld doesn't support deploying session beans, injection using <literal>@EJB</literal> or <literal>@PersistenceContext</literal>, or using transactional events in servlet containers. For enterprise features such as these, you should really be looking at a Java EE application server."
+msgstr "A Web Beans não suporta a implantação de session beans, injeção utilizando <literal>@EJB</literal>, <literal>@Resource</literal>, ou <literal>@PersistenceContext</literal>, ou eventos transacionais no Tomcat."
#. Tag: para
#: environments.xml:72
#, fuzzy, no-c-format
-msgid ""
-"Weld should be used as a web application library in a servlet container. You "
-"should place <literal>weld-servlet.jar</literal> in <literal>WEB-INF/lib</"
-"literal> in the web root. <literal>weld-servlet.jar</literal> is an \"uber-"
-"jar\", meaning it bundles all the bits of Weld and CDI required for running "
-"in a servlet container, provided for your convenience. Alternatively, you "
-"could use its component jars:"
-msgstr ""
-"A Web Beans deveria ser utilizada como uma bibilioteca de aplicação web no "
-"Tomcat. Você deve colocar o <literal>webbeans-tomcat.jar</literal> em "
-"<literal>WEB-INF/lib</literal>. <literal>webbeans-tomcat.jar</literal> é um "
-"\"hiper-jar\", disponível para a sua conveniência. Em vez disso, você pode "
-"utilizar os componentes do jars:"
+msgid "Weld should be used as a web application library in a servlet container. You should place <literal>weld-servlet.jar</literal> in <literal>WEB-INF/lib</literal> in the web root. <literal>weld-servlet.jar</literal> is an \"uber-jar\", meaning it bundles all the bits of Weld and CDI required for running in a servlet container, provided for your convenience. Alternatively, you could use its component jars:"
+msgstr "A Web Beans deveria ser utilizada como uma bibilioteca de aplicação web no Tomcat. Você deve colocar o <literal>webbeans-tomcat.jar</literal> em <literal>WEB-INF/lib</literal>. <literal>webbeans-tomcat.jar</literal> é um \"hiper-jar\", disponível para a sua conveniência. Em vez disso, você pode utilizar os componentes do jars:"
#. Tag: literal
#: environments.xml:84
@@ -218,27 +164,19 @@
#. Tag: para
#: environments.xml:129
#, fuzzy, no-c-format
-msgid ""
-"You also need to explicitly specify the servlet listener (used to boot Weld, "
-"and control its interaction with requests) in <literal>WEB-INF/web.xml</"
-"literal> in the web root:"
-msgstr ""
-"Você também precisa especificar explicitamente o Tomcat servlet listener "
-"(utilizado para \"bootar\" a Web Beans e controlar a interação com as "
-"requisições) no <literal>web.xml</literal>:"
+msgid "You also need to explicitly specify the servlet listener (used to boot Weld, and control its interaction with requests) in <literal>WEB-INF/web.xml</literal> in the web root:"
+msgstr "Você também precisa especificar explicitamente o Tomcat servlet listener (utilizado para \"bootar\" a Web Beans e controlar a interação com as requisições) no <literal>web.xml</literal>:"
#. Tag: programlisting
#: environments.xml:134
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[<listener>\n"
-" <listener-class>org.jboss.weld.environment.servlet.Listener</listener-"
-"class>\n"
+" <listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>\n"
"</listener>]]>"
msgstr ""
"<![CDATA[<listener>\n"
-" <listener-class>org.jboss.webbeans.environment.servlet.Listener</listener-"
-"class>\n"
+" <listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>\n"
"</listener>]]>"
#. Tag: title
@@ -250,19 +188,12 @@
#. Tag: para
#: environments.xml:139
#, fuzzy, no-c-format
-msgid ""
-"Tomcat has a read-only JNDI, so Weld can't automatically bind the "
-"BeanManager extension SPI. To bind the BeanManager into JNDI, you should "
-"populate <literal>META-INF/context.xml</literal> in the web root with the "
-"following contents:"
-msgstr ""
-"O Tomcat tem um JNDI apenas de leitura. Assim, a Web Beans não pode vincular "
-"automaticamente o Manager. Para vincular o Manager no JNDI, você deve "
-"adicionar o seguinte ao seu <literal>META-INF/context.xml</literal>:"
+msgid "Tomcat has a read-only JNDI, so Weld can't automatically bind the BeanManager extension SPI. To bind the BeanManager into JNDI, you should populate <literal>META-INF/context.xml</literal> in the web root with the following contents:"
+msgstr "O Tomcat tem um JNDI apenas de leitura. Assim, a Web Beans não pode vincular automaticamente o Manager. Para vincular o Manager no JNDI, você deve adicionar o seguinte ao seu <literal>META-INF/context.xml</literal>:"
#. Tag: programlisting
#: environments.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[<Context>\n"
" <Resource name=\"BeanManager\" \n"
@@ -272,25 +203,21 @@
"</Context>]]>"
msgstr ""
"<![CDATA[<Context>\n"
-" <Resource name=\"app/Manager\" \n"
+" <Resource name=\"BeanManager\" \n"
" auth=\"Container\"\n"
-" type=\"javax.inject.manager.Manager\"\n"
-" factory=\"org.jboss.webbeans.resources.ManagerObjectFactory\"/>\n"
+" type=\"javax.enterprise.inject.spi.BeanManager\"\n"
+" factory=\"org.jboss.weld.resources.ManagerObjectFactory\"/>\n"
"</Context>]]>"
#. Tag: para
#: environments.xml:147
#, fuzzy, no-c-format
-msgid ""
-"and make it available to your deployment by adding this to the bottom of "
-"<literal>web.xml</literal>:"
-msgstr ""
-"e torná-lo disponível para a sua implantação, acrescentando-o ao "
-"<literal>web.xml</literal>:"
+msgid "and make it available to your deployment by adding this to the bottom of <literal>web.xml</literal>:"
+msgstr "e torná-lo disponível para a sua implantação, acrescentando-o ao <literal>web.xml</literal>:"
#. Tag: programlisting
#: environments.xml:151
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[<resource-env-ref>\n"
" <resource-env-ref-name>BeanManager</resource-env-ref-name>\n"
@@ -300,44 +227,29 @@
"</resource-env-ref>]]>"
msgstr ""
"<![CDATA[<resource-env-ref>\n"
-" <resource-env-ref-name>\n"
-" app/Manager\n"
-" </resource-env-ref-name>\n"
+" <resource-env-ref-name>BeanManager</resource-env-ref-name>\n"
" <resource-env-ref-type>\n"
-" javax.inject.manager.Manager\n"
+" javax.enterprise.inject.spi.BeanManager\n"
" </resource-env-ref-type>\n"
"</resource-env-ref>]]>"
#. Tag: para
#: environments.xml:153
#, fuzzy, no-c-format
-msgid ""
-"Tomcat only allows you to bind entries to <literal>java:comp/env</literal>, "
-"so the BeanManager will be available at <literal>java:comp/env/BeanManager</"
-"literal>"
-msgstr ""
-"O Tomcat não só permite a você vincular as entradas para <literal>java:comp/"
-"env</literal>, assim que o Manager estará disponível em <literal>java:comp/"
-"env/app/Manager</literal>"
+msgid "Tomcat only allows you to bind entries to <literal>java:comp/env</literal>, so the BeanManager will be available at <literal>java:comp/env/BeanManager</literal>"
+msgstr "O Tomcat não só permite a você vincular as entradas para <literal>java:comp/env</literal>, assim que o Manager estará disponível em <literal>java:comp/env/app/Manager</literal>"
#. Tag: para
#: environments.xml:158
#, no-c-format
-msgid ""
-"Weld also supports Servlet injection in Tomcat. To enable this, place the "
-"<literal>weld-tomcat-support.jar</literal> in <literal>$TOMCAT_HOME/lib</"
-"literal>, and add the following to <literal>META-INF/context.xml</literal>:"
+msgid "Weld also supports Servlet injection in Tomcat. To enable this, place the <literal>weld-tomcat-support.jar</literal> in <literal>$TOMCAT_HOME/lib</literal>, and add the following to <literal>META-INF/context.xml</literal>:"
msgstr ""
#. Tag: programlisting
#: environments.xml:164
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[<Listener className=\"org.jboss.weld.environment.tomcat."
-"WeldLifecycleListener\"/>]]>"
-msgstr ""
-"<![CDATA[<Listener className=\"org.jboss.webbeans.environment.tomcat."
-"WebBeansLifecycleListener\"/>]]>"
+#, no-c-format
+msgid "<![CDATA[<Listener className=\"org.jboss.weld.environment.tomcat.WeldLifecycleListener\"/>]]>"
+msgstr "<![CDATA[<Listener className=\"org.jboss.weld.environment.tomcat.WeldLifecycleListener\"/>]]>"
#. Tag: title
#: environments.xml:169
@@ -348,26 +260,17 @@
#. Tag: para
#: environments.xml:171
#, fuzzy, no-c-format
-msgid ""
-"Like Tomcat, Jetty has a read-only JNDI, so Weld can't automatically bind "
-"the Manager. To bind the Manager to JNDI, you should populate <literal>WEB-"
-"INF/jetty-env.xml</literal> with the following contents:"
-msgstr ""
-"O Tomcat tem um JNDI apenas de leitura. Assim, a Web Beans não pode vincular "
-"automaticamente o Manager. Para vincular o Manager no JNDI, você deve "
-"adicionar o seguinte ao seu <literal>META-INF/context.xml</literal>:"
+msgid "Like Tomcat, Jetty has a read-only JNDI, so Weld can't automatically bind the Manager. To bind the Manager to JNDI, you should populate <literal>WEB-INF/jetty-env.xml</literal> with the following contents:"
+msgstr "O Tomcat tem um JNDI apenas de leitura. Assim, a Web Beans não pode vincular automaticamente o Manager. Para vincular o Manager no JNDI, você deve adicionar o seguinte ao seu <literal>META-INF/context.xml</literal>:"
#. Tag: programlisting
#: environments.xml:176
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"<![CDATA[<!DOCTYPE Configure PUBLIC \"-//Mort Bay Consulting//DTD Configure//"
-"EN\"\n"
+"<![CDATA[<!DOCTYPE Configure PUBLIC \"-//Mort Bay Consulting//DTD Configure//EN\"\n"
" \"http://jetty.mortbay.org/configure.dtd\">\n"
-"<Configure id=\"webAppCtx\" class=\"org.mortbay.jetty.webapp.WebAppContext"
-"\">\n"
-" <New id=\"BeanManager\" class=\"org.mortbay.jetty.plus.naming.Resource"
-"\">\n"
+"<Configure id=\"webAppCtx\" class=\"org.mortbay.jetty.webapp.WebAppContext\">\n"
+" <New id=\"BeanManager\" class=\"org.mortbay.jetty.plus.naming.Resource\">\n"
" <Arg><Ref id=\"webAppCtx\"/></Arg> \n"
" <Arg>BeanManager</Arg>\n"
" <Arg>\n"
@@ -380,18 +283,16 @@
" </New>\n"
"</Configure>]]>"
msgstr ""
-"<![CDATA[<!DOCTYPE Configure PUBLIC \"-//Mort Bay Consulting//DTD Configure//"
-"EN\"\n"
+"<![CDATA[<!DOCTYPE Configure PUBLIC \"-//Mort Bay Consulting//DTD Configure//EN\"\n"
" \"http://jetty.mortbay.org/configure.dtd\">\n"
-"<Configure id=\"webAppCtx\" class=\"org.mortbay.jetty.webapp.WebAppContext"
-"\">\n"
-" <New id=\"appManager\" class=\"org.mortbay.jetty.plus.naming.Resource\">\n"
+"<Configure id=\"webAppCtx\" class=\"org.mortbay.jetty.webapp.WebAppContext\">\n"
+" <New id=\"BeanManager\" class=\"org.mortbay.jetty.plus.naming.Resource\">\n"
" <Arg><Ref id=\"webAppCtx\"/></Arg> \n"
-" <Arg>app/Manager</Arg>\n"
+" <Arg>BeanManager</Arg>\n"
" <Arg>\n"
" <New class=\"javax.naming.Reference\">\n"
-" <Arg>javax.inject.manager.Manager</Arg> \n"
-" <Arg>org.jboss.webbeans.resources.ManagerObjectFactory</Arg>\n"
+" <Arg>javax.enterprise.inject.spi.BeanManager</Arg> \n"
+" <Arg>org.jboss.weld.resources.ManagerObjectFactory</Arg>\n"
" <Arg/>\n"
" </New>\n"
" </Arg>\n"
@@ -401,24 +302,14 @@
#. Tag: para
#: environments.xml:178
#, no-c-format
-msgid ""
-"Notice that Jetty doesn't not have built-in support for an <literal>javax."
-"naming.spi.ObjectFactory</literal> like Tomcat, so it's necessary to "
-"manually create the <literal>javax.naming.Reference</literal> to wrap around "
-"it."
+msgid "Notice that Jetty doesn't not have built-in support for an <literal>javax.naming.spi.ObjectFactory</literal> like Tomcat, so it's necessary to manually create the <literal>javax.naming.Reference</literal> to wrap around it."
msgstr ""
#. Tag: para
#: environments.xml:184
#, fuzzy, no-c-format
-msgid ""
-"Jetty only allows you to bind entries to <literal>java:comp/env</literal>, "
-"so the BeanManager will be available at <literal>java:comp/env/BeanManager</"
-"literal>"
-msgstr ""
-"O Tomcat não só permite a você vincular as entradas para <literal>java:comp/"
-"env</literal>, assim que o Manager estará disponível em <literal>java:comp/"
-"env/app/Manager</literal>"
+msgid "Jetty only allows you to bind entries to <literal>java:comp/env</literal>, so the BeanManager will be available at <literal>java:comp/env/BeanManager</literal>"
+msgstr "O Tomcat não só permite a você vincular as entradas para <literal>java:comp/env</literal>, assim que o Manager estará disponível em <literal>java:comp/env/app/Manager</literal>"
#. Tag: para
#: environments.xml:189
@@ -435,25 +326,14 @@
#. Tag: para
#: environments.xml:200
#, no-c-format
-msgid ""
-"In addition to improved integration of the Enterprise Java stack, the "
-"\"Contexts and Dependency Injection for the Java EE platform\" specification "
-"also defines a state of the art typesafe, stateful dependency injection "
-"framework, which can prove useful in a wide range of application types. To "
-"help developers take advantage of this, Weld provides a simple means for "
-"being executed in the Java Standard Edition (SE) environment independently "
-"of any Java EE APIs."
+msgid "In addition to improved integration of the Enterprise Java stack, the \"Contexts and Dependency Injection for the Java EE platform\" specification also defines a state of the art typesafe, stateful dependency injection framework, which can prove useful in a wide range of application types. To help developers take advantage of this, Weld provides a simple means for being executed in the Java Standard Edition (SE) environment independently of any Java EE APIs."
msgstr ""
#. Tag: para
#: environments.xml:208
#, fuzzy, no-c-format
-msgid ""
-"When executing in the SE environment the following features of Weld are "
-"available:"
-msgstr ""
-"Quando executando no ambiente SE as seguintes funcionalidades da Web Beans "
-"estão disponíveis:"
+msgid "When executing in the SE environment the following features of Weld are available:"
+msgstr "Quando executando no ambiente SE as seguintes funcionalidades da Web Beans estão disponíveis:"
#. Tag: literal
#: environments.xml:215
@@ -500,26 +380,18 @@
#. Tag: para
#: environments.xml:248
#, no-c-format
-msgid ""
-"Weld provides an extension which will boot a CDI bean manager in Java SE, "
-"automatically registering all simple beans found on the classpath. "
-"Application developers need not write any bootstrapping code. The entry "
-"point for application code is a simple bean which observes the special "
-"<literal>ContainerInitialized</literal> event provided by this extension. "
-"The command line parameters can be injected using either of the following:"
+msgid "Weld provides an extension which will boot a CDI bean manager in Java SE, automatically registering all simple beans found on the classpath. Application developers need not write any bootstrapping code. The entry point for application code is a simple bean which observes the special <literal>ContainerInitialized</literal> event provided by this extension. The command line parameters can be injected using either of the following:"
msgstr ""
#. Tag: programlisting
#: environments.xml:255
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Inject @Parameters List<String> params;\n"
-"@Inject @Parameters String[] paramsArray; // useful for compatability with "
-"existing classes]]>"
+"@Inject @Parameters String[] paramsArray; // useful for compatability with existing classes]]>"
msgstr ""
-"<![CDATA[@Parameters List<String> params;\n"
-"@Parameters String[] paramsArray; // useful for compatability with existing "
-"classes]]>"
+"<![CDATA[@Inject @Parameters List<String> params;\n"
+"@Inject @Parameters String[] paramsArray; // useful for compatability with existing classes]]>"
#. Tag: para
#: environments.xml:257
@@ -529,7 +401,7 @@
#. Tag: programlisting
#: environments.xml:261
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
"public class HelloWorld\n"
@@ -544,43 +416,34 @@
"<![CDATA[@ApplicationScoped\n"
"public class HelloWorld\n"
"{\n"
-" @Parameters List<String> parameters;\n"
+" @Inject @Parameters List<String> parameters;\n"
"\n"
-" public void printHello( @Observes @Deployed Manager manager )\n"
-" {\n"
-" System.out.println( \"Hello \" + parameters.get(0) );\n"
-" }\n"
+" public void printHello(@Observes ContainerInitialized event) {\n"
+" System.out.println(\"Hello \" + parameters.get(0));\n"
+" }\n"
"}]]>"
#. Tag: para
#: environments.xml:263
#, fuzzy, no-c-format
-msgid ""
-"CDI SE applications can be bootstrapped by running the StartMain class like "
-"so:"
-msgstr ""
-"Aplicações Web Beans SE são iniciadas executando o seguinte método principal."
+msgid "CDI SE applications can be bootstrapped by running the StartMain class like so:"
+msgstr "Aplicações Web Beans SE são iniciadas executando o seguinte método principal."
#. Tag: programlisting
#: environments.xml:267
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[java org.jboss.weld.environments.se.StartMain <args>]]>"
-msgstr "<![CDATA[java org.jboss.webbeans.environments.se.StartMain <args>]]>"
+msgstr "<![CDATA[java org.jboss.weld.environments.se.StartMain <args>]]>"
#. Tag: para
#: environments.xml:269
#, no-c-format
-msgid ""
-"If you need to do any custom initialization of the CDI bean manager, for "
-"example registering custom contexts or initializing resources for your beans "
-"you can do so in response to the <literal>AfterBeanDiscovery</literal> or "
-"<literal>AfterDeploymentValidation</literal> events. The following example "
-"registers a custom context:"
+msgid "If you need to do any custom initialization of the CDI bean manager, for example registering custom contexts or initializing resources for your beans you can do so in response to the <literal>AfterBeanDiscovery</literal> or <literal>AfterDeploymentValidation</literal> events. The following example registers a custom context:"
msgstr ""
#. Tag: programlisting
#: environments.xml:276
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public class PerformSetup {\n"
" public void setup(@Observes AfterBeanDiscovery event) {\n"
@@ -588,24 +451,16 @@
" }\n"
"}]]>"
msgstr ""
-"<![CDATA[public class PerformSetup\n"
-"{\n"
-"\n"
-" public void setup( @Observes @Initialized Manager manager )\n"
-" {\n"
-" manager.addContext( ThreadContext.INSTANCE );\n"
-" }\n"
+"<![CDATA[public class PerformSetup {\n"
+" public void setup(@Observes AfterBeanDiscovery event) {\n"
+" event.addContext( ThreadContext.INSTANCE );\n"
+" }\n"
"}]]>"
#. Tag: para
#: environments.xml:279
#, no-c-format
-msgid ""
-"The command line parameters do not become available for injection until the "
-"<literal>ContainerInitialized</literal> event is fired. If you need access "
-"to the parameters during initialization you can do so via the "
-"<literal>public static String[] getParameters()</literal> method in "
-"<literal>StartMain</literal>."
+msgid "The command line parameters do not become available for injection until the <literal>ContainerInitialized</literal> event is fired. If you need access to the parameters during initialization you can do so via the <literal>public static String[] getParameters()</literal> method in <literal>StartMain</literal>."
msgstr ""
#~ msgid ""
@@ -616,7 +471,6 @@
#~ "Além da adição de <literal>META-INF/beans.xml</literal> ou <literal>WEB-"
#~ "INF/beans.xml</literal>, nenhuma outra configuração especial na sua "
#~ "aplicação é necessária."
-
#~ msgid ""
#~ "If you are using JBoss AS 5.0.1.GA then you'll need to install Web Beans "
#~ "as an extra. First we need to tell Web Beans where JBoss is located. Edit "
@@ -628,17 +482,14 @@
#~ "JBoss está localizado. Editar o <literal>jboss-as/build.properties</"
#~ "literal> e definir a propriedade <literal>jboss.home</literal>. Por "
#~ "exemplo:"
-
#~ msgid "Now we can install Web Beans:"
#~ msgstr "Agora podemos instalar a Web Beans:"
-
#~ msgid "Web Beans is built into all releases of JBoss AS from 5.1 onwards."
#~ msgstr ""
#~ "A Web Beans está embutida em todas as versões do JBoss AS a partir da "
#~ "versão 5.1."
-
#~ msgid "TODO"
#~ msgstr "TODO"
-
#~ msgid "Simple Web Beans (POJOs)"
#~ msgstr "Web Beans Simples (POJOs)"
+
Modified: doc/trunk/reference/pt-BR/events.po
===================================================================
--- doc/trunk/reference/pt-BR/events.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/events.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,7 +6,7 @@
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-04-10 11:24-0300\n"
+"PO-Revision-Date: 2009-12-19 18:11-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -22,58 +22,37 @@
#. Tag: para
#: events.xml:6
#, no-c-format
-msgid ""
-"Dependency injection enables loose-coupling by allowing the implementation "
-"of the injected bean type to vary, either a deployment time or runtime. "
-"Events go one step further, allowing beans to interact with no compile time "
-"dependency at all. Event <emphasis>producers</emphasis> raise events that "
-"are delivered to event <emphasis>observers</emphasis> by the container."
+msgid "Dependency injection enables loose-coupling by allowing the implementation of the injected bean type to vary, either a deployment time or runtime. Events go one step further, allowing beans to interact with no compile time dependency at all. Event <emphasis>producers</emphasis> raise events that are delivered to event <emphasis>observers</emphasis> by the container."
msgstr ""
#. Tag: para
#: events.xml:13
#, no-c-format
-msgid ""
-"This basic schema might sound like the familiar observer/observable pattern, "
-"but there are a couple of twists:"
+msgid "This basic schema might sound like the familiar observer/observable pattern, but there are a couple of twists:"
msgstr ""
#. Tag: para
#: events.xml:18
#, no-c-format
-msgid ""
-"not only are event producers decoupled from observers; observers are "
-"completely decoupled from producers,"
-msgstr ""
-"não só os produtores são desacoplados dos observadores; os observadores são "
-"totalmente desacoplados dos produtores,"
+msgid "not only are event producers decoupled from observers; observers are completely decoupled from producers,"
+msgstr "não só os produtores são desacoplados dos observadores; os observadores são totalmente desacoplados dos produtores,"
#. Tag: para
#: events.xml:22
#, no-c-format
-msgid ""
-"observers can specify a combination of \"selectors\" to narrow the set of "
-"event notifications they will receive, and"
-msgstr ""
-"os observadores podem especificar uma combinação de \"seletores\" para "
-"reduzir o conjunto de eventos que irão receber notificações, e"
+msgid "observers can specify a combination of \"selectors\" to narrow the set of event notifications they will receive, and"
+msgstr "os observadores podem especificar uma combinação de \"seletores\" para reduzir o conjunto de eventos que irão receber notificações, e"
#. Tag: para
#: events.xml:28
#, fuzzy, no-c-format
-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 ""
-"os observadores podem ser notificados imediatamente ou podem especificar que "
-"a notificação do evento deveria esperar até o término da transação corrente"
+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 "os observadores podem ser notificados imediatamente ou podem especificar que a notificação do evento deveria esperar até o término da transação corrente"
#. Tag: para
#: events.xml:35
#, no-c-format
-msgid ""
-"The CDI event notification facility uses more or less the same typesafe "
-"approach that we've already seen with the dependency injection service."
+msgid "The CDI event notification facility uses more or less the same typesafe approach that we've already seen with the dependency injection service."
msgstr ""
#. Tag: title
@@ -85,36 +64,28 @@
#. Tag: para
#: events.xml:41
#, no-c-format
-msgid ""
-"The event object carries state from producer to consumer. The event object "
-"is nothing more than an instance of a concrete Java class. (The only "
-"restriction is that an event type may not contain type variables). An event "
-"may be assigned qualifiers, which allows observers to distinguish it from "
-"other events of the same type. The qualifiers function like topic selectors, "
-"allowing an observer to narrow the set of events it observes."
+msgid "The event object carries state from producer to consumer. The event object is nothing more than an instance of a concrete Java class. (The only restriction is that an event type may not contain type variables). An event may be assigned qualifiers, which allows observers to distinguish it from other events of the same type. The qualifiers function like topic selectors, allowing an observer to narrow the set of events it observes."
msgstr ""
#. Tag: para
#: events.xml:48
#, no-c-format
-msgid ""
-"An event qualifier is just a normal qualifier, defined using "
-"<literal>@Qualifier</literal>. Here's an example:"
+msgid "An event qualifier is just a normal qualifier, defined using <literal>@Qualifier</literal>. Here's an example:"
msgstr ""
#. Tag: programlisting
#: events.xml:52
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Qualifier\n"
"@Target({FIELD, PARAMETER})\n"
"@Retention(RUNTIME)\n"
"public @interface Updated {}]]>"
msgstr ""
-"<![CDATA[@BindingType\n"
-"@Target({PARAMETER, FIELD})\n"
+"<![CDATA[@Qualifier\n"
+"@Target({FIELD, PARAMETER})\n"
"@Retention(RUNTIME)\n"
-"public @interface Updated { ... }]]>"
+"public @interface Updated {}]]>"
#. Tag: title
#: events.xml:57
@@ -125,82 +96,45 @@
#. Tag: para
#: events.xml:59
#, fuzzy, no-c-format
-msgid ""
-"An <emphasis>observer method</emphasis> is a method of a bean with a "
-"parameter annotated <literal>@Observes</literal>."
-msgstr ""
-"Um <emphasis>método observador (observer method)</emphasis> é um método de "
-"um Web Bean com um parâmetro anotado<literal>@Observes</literal>."
+msgid "An <emphasis>observer method</emphasis> is a method of a bean with a parameter annotated <literal>@Observes</literal>."
+msgstr "Um <emphasis>método observador (observer method)</emphasis> é um método de um Web Bean com um parâmetro anotado<literal>@Observes</literal>."
#. Tag: programlisting
#: events.xml:64
#, no-c-format
-msgid ""
-"<![CDATA[public void onAnyDocumentEvent(@Observes Document document) "
-"{ ... }]]>"
-msgstr ""
-"<![CDATA[public void onAnyDocumentEvent(@Observes Document document) "
-"{ ... }]]>"
+msgid "<![CDATA[public void onAnyDocumentEvent(@Observes Document document) { ... }]]>"
+msgstr "<![CDATA[public void onAnyDocumentEvent(@Observes Document document) { ... }]]>"
#. Tag: para
#: events.xml:66
#, fuzzy, no-c-format
-msgid ""
-"The annotated parameter is called the <emphasis>event parameter</emphasis>. "
-"The type of the event parameter is the observed <emphasis>event type</"
-"emphasis>, in this case <literal>Document</literal>. The event parameter may "
-"also specify qualifiers."
-msgstr ""
-"O parâmetro anotado é chamado <emphasis>parâmetro de evento</emphasis>. O "
-"tipo do parâmetro de evento é observado pelo <emphasis>event type</"
-"emphasis>. Os métodos observadores também podem especificar \"seletores\", "
-"que são apenas instâncias de tipo de bindings de Web Beans. Quando um tipo "
-"de binding é utilizado como um seletor de evento, é chamado de "
-"<emphasis>tipo de binding de evento</emphasis>."
+msgid "The annotated parameter is called the <emphasis>event parameter</emphasis>. The type of the event parameter is the observed <emphasis>event type</emphasis>, in this case <literal>Document</literal>. The event parameter may also specify qualifiers."
+msgstr "O parâmetro anotado é chamado <emphasis>parâmetro de evento</emphasis>. O tipo do parâmetro de evento é observado pelo <emphasis>event type</emphasis>. Os métodos observadores também podem especificar \"seletores\", que são apenas instâncias de tipo de bindings de Web Beans. Quando um tipo de binding é utilizado como um seletor de evento, é chamado de <emphasis>tipo de binding de evento</emphasis>."
#. Tag: programlisting
-#: events.xml:72 events.xml:240
+#: events.xml:72
+#: events.xml:240
#, no-c-format
-msgid ""
-"<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document "
-"document) { ... }]]>"
-msgstr ""
-"<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document "
-"document) { ... }]]>"
+msgid "<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document document) { ... }]]>"
+msgstr "<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document document) { ... }]]>"
#. Tag: para
#: events.xml:74
#, fuzzy, no-c-format
-msgid ""
-"An observer method need not specify any event qualifiers—in this case "
-"it is interested in <emphasis>all</emphasis> events of a particular type. If "
-"it does specify qualifiers, it's only interested in events which have those "
-"qualifiers."
-msgstr ""
-"Um método observador não necessita especificar nenhum binding de evento "
-"— nesse caso, ele está interessado em <emphasis>todos</emphasis> os "
-"eventos de um determinado tipo. Se ele especificar o bindings de evento, ele "
-"estará apenas interessado em eventos que também têm esses bindings de evento."
+msgid "An observer method need not specify any event qualifiers—in this case it is interested in <emphasis>all</emphasis> events of a particular type. If it does specify qualifiers, it's only interested in events which have those qualifiers."
+msgstr "Um método observador não necessita especificar nenhum binding de evento — nesse caso, ele está interessado em <emphasis>todos</emphasis> os eventos de um determinado tipo. Se ele especificar o bindings de evento, ele estará apenas interessado em eventos que também têm esses bindings de evento."
#. Tag: para
#: events.xml:80
#, fuzzy, no-c-format
-msgid ""
-"The observer method may have additional parameters, which are injection "
-"points:"
-msgstr ""
-"O método observador pode ter parâmetros adicionais que são injetados de "
-"acordo com a semântica usual de injeção de parâmetros em métodos de Web Beans"
+msgid "The observer method may have additional parameters, which are injection points:"
+msgstr "O método observador pode ter parâmetros adicionais que são injetados de acordo com a semântica usual de injeção de parâmetros em métodos de Web Beans"
#. Tag: programlisting
#: events.xml:84
#, no-c-format
-msgid ""
-"<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document "
-"document, User user) { ... }]]>"
-msgstr ""
-"<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document "
-"document, User user) { ... }]]>"
+msgid "<![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:89
@@ -211,28 +145,20 @@
#. Tag: para
#: events.xml:91
#, no-c-format
-msgid ""
-"Event producers fire events using an instance of the parameterized "
-"<literal>Event</literal> interface. An instance of this interface is "
-"obtained by injection:"
+msgid "Event producers fire events using an instance of the parameterized <literal>Event</literal> interface. An instance of this interface is obtained by injection:"
msgstr ""
#. Tag: programlisting
#: events.xml:96
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[@Inject @Any Event<Document> documentEvent;]]>"
-msgstr "<![CDATA[@Observable Event<Document> documentEvent]]>"
+msgstr "<![CDATA[@Inject @Any Event<Document> documentEvent;]]>"
#. Tag: para
#: events.xml:98
#, fuzzy, no-c-format
-msgid ""
-"A producer raises events by calling the <literal>fire()</literal> method of "
-"the <literal>Event</literal> interface, passing the event object:"
-msgstr ""
-"Um produtor lança eventos chamando o método <literal>fire()</literal> da "
-"interface <literal>Event</literal> e passando um objeto <emphasis>event "
-"object</emphasis>:"
+msgid "A producer raises events by calling the <literal>fire()</literal> method of the <literal>Event</literal> interface, passing the event object:"
+msgstr "Um produtor lança eventos chamando o método <literal>fire()</literal> da interface <literal>Event</literal> e passando um objeto <emphasis>event object</emphasis>:"
#. Tag: programlisting
#: events.xml:103
@@ -249,9 +175,7 @@
#. Tag: para
#: events.xml:111
#, fuzzy, no-c-format
-msgid ""
-"has an event parameter to which the event object (the <literal>Document</"
-"literal>) is assignable, and"
+msgid "has an event parameter to which the event object (the <literal>Document</literal>) is assignable, and"
msgstr "tenha um parâmetro evento em que o evento objeto é atribuído, e"
#. Tag: para
@@ -263,17 +187,8 @@
#. Tag: para
#: events.xml:119
#, fuzzy, no-c-format
-msgid ""
-"The container simply calls all the observer methods, passing the event "
-"object as the value of the event parameter. If any observer method throws an "
-"exception, the container stops calling observer methods, and the exception "
-"is rethrown by the <literal>fire()</literal> method."
-msgstr ""
-"O gerenciador do Web Bean simplesmente chama todos os métodos de "
-"observação, passando o objeto do evento como o valor do parâmetro do evento. "
-"Se algum método observador lança uma exceção, o gerenciador do Web Bean "
-"deixa de chamar os métodos do observador, e a exceção é relançada pelo "
-"método <literal>fire()</literal>."
+msgid "The container simply calls all the observer methods, passing the event object as the value of the event parameter. If any observer method throws an exception, the container stops calling observer methods, and the exception is rethrown by the <literal>fire()</literal> method."
+msgstr "O gerenciador do Web Bean simplesmente chama todos os métodos de observação, passando o objeto do evento como o valor do parâmetro do evento. Se algum método observador lança uma exceção, o gerenciador do Web Bean deixa de chamar os métodos do observador, e a exceção é relançada pelo método <literal>fire()</literal>."
#. Tag: para
#: events.xml:125
@@ -290,9 +205,7 @@
#. Tag: para
#: events.xml:134
#, no-c-format
-msgid ""
-"by passing qualifiers to the <literal>select()</literal> of <literal>Event</"
-"literal>."
+msgid "by passing qualifiers to the <literal>select()</literal> of <literal>Event</literal>."
msgstr ""
#. Tag: para
@@ -303,21 +216,15 @@
#. Tag: programlisting
#: events.xml:142
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[@Inject @Updated Event<Document> documentUpdatedEvent;]]>"
-msgstr "<![CDATA[@Observable @Updated Event<Document> documentUpdatedEvent]]>"
+msgstr "<![CDATA[@Inject @Updated Event<Document> documentUpdatedEvent;]]>"
#. Tag: para
#: events.xml:144
#, fuzzy, no-c-format
-msgid ""
-"Then, every event fired via this instance of <literal>Event</literal> has "
-"the event qualifier <literal>@Updated</literal>. The event is delivered to "
-"every observer method that:"
-msgstr ""
-"Em seguida, todos os eventos disparados por essa instância de "
-"<literal>Event</literal> tem o binding de evento anotada. O evento será "
-"entregue a cada método observador que:"
+msgid "Then, every event fired via this instance of <literal>Event</literal> has the event qualifier <literal>@Updated</literal>. The event is delivered to every observer method that:"
+msgstr "Em seguida, todos os eventos disparados por essa instância de <literal>Event</literal> tem o binding de evento anotada. O evento será entregue a cada método observador que:"
#. Tag: para
#: events.xml:151
@@ -328,42 +235,25 @@
#. Tag: para
#: events.xml:154
#, fuzzy, no-c-format
-msgid ""
-"does not have any event qualifier <emphasis>except</emphasis> for the event "
-"qualifiers that match those specified at the <literal>Event</literal> "
-"injection point."
-msgstr ""
-"não especifique nenhum binding de evento <emphasis>exceto</emphasis> para o "
-"binding de evento passado para o <literal>fire()</literal>."
+msgid "does not have any event qualifier <emphasis>except</emphasis> for the event qualifiers that match those specified at the <literal>Event</literal> injection point."
+msgstr "não especifique nenhum binding de evento <emphasis>exceto</emphasis> para o binding de evento passado para o <literal>fire()</literal>."
#. Tag: para
#: events.xml:161
#, no-c-format
-msgid ""
-"The downside of annotating the injection point is that we can't specify the "
-"qualifier dynamically. CDI lets us obtain a qualifier instance by "
-"subclassing the helper class <literal>AnnotationLiteral</literal>. That way, "
-"we can pass the qualifier to the <literal>select()</literal> method of "
-"<literal>Event</literal>."
+msgid "The downside of annotating the injection point is that we can't specify the qualifier dynamically. CDI lets us obtain a qualifier instance by subclassing the helper class <literal>AnnotationLiteral</literal>. That way, we can pass the qualifier to the <literal>select()</literal> method of <literal>Event</literal>."
msgstr ""
#. Tag: programlisting
#: events.xml:167
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[documentEvent.select(new AnnotationLiteral<Updated>(){}).fire"
-"(document);]]>"
-msgstr ""
-"<![CDATA[documentEvent.fire( document, new AnnotationLiteral<Updated>()"
-"{} );]]>"
+#, no-c-format
+msgid "<![CDATA[documentEvent.select(new AnnotationLiteral<Updated>(){}).fire(document);]]>"
+msgstr "<![CDATA[documentEvent.select(new AnnotationLiteral<Updated>(){}).fire(document);]]>"
#. Tag: para
#: events.xml:169
#, no-c-format
-msgid ""
-"Events can have multiple event qualifiers, assembled using any combination "
-"of annotations at the <literal>Event</literal> injection point and qualifier "
-"instances passed to the <literal>select()</literal> method."
+msgid "Events can have multiple event qualifiers, assembled using any combination of annotations at the <literal>Event</literal> injection point and qualifier instances passed to the <literal>select()</literal> method."
msgstr ""
#. Tag: title
@@ -375,37 +265,25 @@
#. Tag: para
#: events.xml:180
#, no-c-format
-msgid ""
-"By default, if there is no instance of an observer in the current context, "
-"the container will instantiate the observer in order to deliver an event to "
-"it. This behavior isn't always desirable. We may want to deliver events only "
-"to instances of the observer that already exist in the current contexts."
+msgid "By default, if there is no instance of an observer in the current context, the container will instantiate the observer in order to deliver an event to it. This behavior isn't always desirable. We may want to deliver events only to instances of the observer that already exist in the current contexts."
msgstr ""
#. Tag: para
#: events.xml:186
#, no-c-format
-msgid ""
-"A conditional observer is specified by adding <literal>receive = IF_EXISTS</"
-"literal> to the <literal>@Observes</literal> annotation."
+msgid "A conditional observer is specified by adding <literal>receive = IF_EXISTS</literal> to the <literal>@Observes</literal> annotation."
msgstr ""
#. Tag: programlisting
#: events.xml:191
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[public void refreshOnDocumentUpdate(@Observes(receive = IF_EXISTS) "
-"@Updated Document d) { ... }]]>"
-msgstr ""
-"<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document "
-"document) { ... }]]>"
+#, no-c-format
+msgid "<![CDATA[public void refreshOnDocumentUpdate(@Observes(receive = IF_EXISTS) @Updated Document d) { ... }]]>"
+msgstr "<![CDATA[public void refreshOnDocumentUpdate(@Observes(receive = IF_EXISTS) @Updated Document d) { ... }]]>"
#. Tag: para
#: events.xml:193
#, no-c-format
-msgid ""
-"A bean with scope <literal>@Dependent</literal> cannot be a conditional "
-"observer, since it would never be called!"
+msgid "A bean with scope <literal>@Dependent</literal> cannot be a conditional observer, since it would never be called!"
msgstr ""
#. Tag: title
@@ -422,7 +300,7 @@
#. Tag: programlisting
#: events.xml:204
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Qualifier\n"
"@Target({PARAMETER, FIELD})\n"
@@ -431,93 +309,72 @@
" RoleType value();\n"
"}]]>"
msgstr ""
-"<![CDATA[@BindingType\n"
+"<![CDATA[@Qualifier\n"
"@Target({PARAMETER, FIELD})\n"
"@Retention(RUNTIME)\n"
"public @interface Role {\n"
-" RoleType value();\n"
+" RoleType value();\n"
"}]]>"
#. Tag: para
#: events.xml:206
#, no-c-format
-msgid ""
-"The member value is used to narrow the messages delivered to the observer:"
-msgstr ""
-"O valor do membro é utilizado para reduzir as mensagens entregues ao "
-"observador:"
+msgid "The member value is used to narrow the messages delivered to the observer:"
+msgstr "O valor do membro é utilizado para reduzir as mensagens entregues ao observador:"
#. Tag: programlisting
#: events.xml:208
#, no-c-format
-msgid ""
-"<![CDATA[public void adminLoggedIn(@Observes @Role(ADMIN) LoggedIn event) "
-"{ ... }]]>"
-msgstr ""
-"<![CDATA[public void adminLoggedIn(@Observes @Role(ADMIN) LoggedIn event) "
-"{ ... }]]>"
+msgid "<![CDATA[public void adminLoggedIn(@Observes @Role(ADMIN) LoggedIn event) { ... }]]>"
+msgstr "<![CDATA[public void adminLoggedIn(@Observes @Role(ADMIN) LoggedIn event) { ... }]]>"
#. Tag: para
#: events.xml:210
#, fuzzy, no-c-format
-msgid ""
-"Event qualifier type members may be specified statically by the event "
-"producer, via annotations at the event notifier injection point:"
-msgstr ""
-"Membros de tipo de binding de evento podem ser especificados estaticamente "
-"pelo produtor do evento, por meio de anotações no ponto de notificação do "
-"evento:"
+msgid "Event qualifier type members may be specified statically by the event producer, via annotations at the event notifier injection point:"
+msgstr "Membros de tipo de binding de evento podem ser especificados estaticamente pelo produtor do evento, por meio de anotações no ponto de notificação do evento:"
#. Tag: programlisting
#: events.xml:215
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[@Inject @Role(ADMIN) Event<LoggedIn> loggedInEvent;]]>"
-msgstr "<![CDATA[@Observable @Role(ADMIN) Event<LoggedIn> LoggedInEvent;}}]]>"
+msgstr "<![CDATA[@Inject @Role(ADMIN) Event<LoggedIn> loggedInEvent;]]>"
#. Tag: para
#: events.xml:217
#, fuzzy, no-c-format
-msgid ""
-"Alternatively, the value of the event qualifier type member may be "
-"determined dynamically by the event producer. We start by writing an "
-"abstract subclass of <literal>AnnotationLiteral</literal>:"
-msgstr ""
-"Alternativamente, o valor do membro do tipo de binding de evento pode ser "
-"determinado dinamicamente pelo produtor do evento. Vamos começar escrevendo "
-"uma subclasse abstrata de <literal>AnnotationLiteral</literal>:"
+msgid "Alternatively, the value of the event qualifier type member may be determined dynamically by the event producer. We start by writing an abstract subclass of <literal>AnnotationLiteral</literal>:"
+msgstr "Alternativamente, o valor do membro do tipo de binding de evento pode ser determinado dinamicamente pelo produtor do evento. Vamos começar escrevendo uma subclasse abstrata de <literal>AnnotationLiteral</literal>:"
#. Tag: programlisting
#: events.xml:222
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[abstract class RoleBinding \n"
" extends AnnotationLiteral<Role> \n"
" implements Role {}]]>"
msgstr ""
"<![CDATA[abstract class RoleBinding \n"
-" extends AnnotationLiteral<Role> \n"
-" implements Role {}]]>"
+" extends AnnotationLiteral<Role> \n"
+" implements Role {}]]>"
#. Tag: para
#: events.xml:224
#, fuzzy, no-c-format
-msgid ""
-"The event producer passes an instance of this class to <literal>select()</"
-"literal>:"
-msgstr ""
-"O produtor do evento (event producer) passa uma instância dessa classe para "
-"<literal>fire()</literal>:"
+msgid "The event producer passes an instance of this class to <literal>select()</literal>:"
+msgstr "O produtor do evento (event producer) passa uma instância dessa classe para <literal>fire()</literal>:"
#. Tag: programlisting
#: events.xml:226
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[documentEvent.select(new RoleBinding() {\n"
" public void value() { return user.getRole(); }\n"
"}).fire(document);]]>"
msgstr ""
-"<![CDATA[documentEvent.fire( document, new RoleBinding() { public void value"
-"() { return user.getRole(); } } );]]>"
+"<![CDATA[documentEvent.select(new RoleBinding() {\n"
+" public void value() { return user.getRole(); }\n"
+"}).fire(document);]]>"
#. Tag: title
#: events.xml:231
@@ -533,57 +390,39 @@
#. Tag: programlisting
#: events.xml:235
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Inject @Blog Event<Document> blogEvent;\n"
"...\n"
-"if (document.isBlog()) blogEvent.select(new AnnotationLiteral<Updated>(){})."
-"fire(document);]]>"
+"if (document.isBlog()) blogEvent.select(new AnnotationLiteral<Updated>(){}).fire(document);]]>"
msgstr ""
-"<![CDATA[@Observable @Blog Event<Document> blogEvent;\n"
+"<![CDATA[@Inject @Blog Event<Document> blogEvent;\n"
"...\n"
-"if (document.isBlog()) blogEvent.fire(document, new "
-"AnnotationLiteral<Updated>(){});]]>"
+"if (document.isBlog()) blogEvent.select(new AnnotationLiteral<Updated>(){}).fire(document);]]>"
#. Tag: para
#: events.xml:237
#, no-c-format
-msgid ""
-"When this event occurs, all of the following observer methods will be "
-"notified:"
-msgstr ""
-"Quando esse evento ocorre, todos os métodos observadores que seguem esse "
-"evento serão notificados:"
+msgid "When this event occurs, all of the following observer methods will be notified:"
+msgstr "Quando esse evento ocorre, todos os métodos observadores que seguem esse evento serão notificados:"
#. Tag: programlisting
#: events.xml:239
#, no-c-format
-msgid ""
-"<![CDATA[public void afterBlogUpdate(@Observes @Updated @Blog Document "
-"document) { ... }]]>"
-msgstr ""
-"<![CDATA[public void afterBlogUpdate(@Observes @Updated @Blog Document "
-"document) { ... }]]>"
+msgid "<![CDATA[public void afterBlogUpdate(@Observes @Updated @Blog Document document) { ... }]]>"
+msgstr "<![CDATA[public void afterBlogUpdate(@Observes @Updated @Blog Document document) { ... }]]>"
#. Tag: programlisting
#: events.xml:241
#, no-c-format
-msgid ""
-"<![CDATA[public void onAnyBlogEvent(@Observes @Blog Document document) "
-"{ ... }]]>"
-msgstr ""
-"<![CDATA[public void onAnyBlogEvent(@Observes @Blog Document document) "
-"{ ... }]]>"
+msgid "<![CDATA[public void onAnyBlogEvent(@Observes @Blog Document document) { ... }]]>"
+msgstr "<![CDATA[public void onAnyBlogEvent(@Observes @Blog Document document) { ... }]]>"
#. Tag: programlisting
#: events.xml:242
#, no-c-format
-msgid ""
-"<![CDATA[public void onAnyDocumentEvent(@Observes Document document) "
-"{ ... }}}]]>"
-msgstr ""
-"<![CDATA[public void onAnyDocumentEvent(@Observes Document document) "
-"{ ... }}}]]>"
+msgid "<![CDATA[public void onAnyDocumentEvent(@Observes Document document) { ... }}}]]>"
+msgstr "<![CDATA[public void onAnyDocumentEvent(@Observes Document document) { ... }}}]]>"
#. Tag: title
#: events.xml:247
@@ -594,29 +433,14 @@
#. Tag: para
#: events.xml:249
#, no-c-format
-msgid ""
-"Transactional observers receive their event notifications during the before "
-"or after completion phase of the transaction in which the event was raised. "
-"For example, the following observer method needs to refresh a query result "
-"set that is cached in the application context, but only when transactions "
-"that update the <literal>Category</literal> tree succeed:"
-msgstr ""
-"Observadores transacionais recebem notificações de eventos durante, antes ou "
-"após a conclusão da transação em que o evento foi disparado. Por exemplo: o "
-"seguinte método observador necessita atualizar um conjunto de resultados de "
-"uma consulta que está armazenada no contexto da aplicação, mas apenas quando "
-"as transações que atualizam a àrvore de <literal>Category</literal>forem "
-"concluídas com sucesso:"
+msgid "Transactional observers receive their event notifications during the before or after completion phase of the transaction in which the event was raised. For example, the following observer method needs to refresh a query result set that is cached in the application context, but only when transactions that update the <literal>Category</literal> tree succeed:"
+msgstr "Observadores transacionais recebem notificações de eventos durante, antes ou após a conclusão da transação em que o evento foi disparado. Por exemplo: o seguinte método observador necessita atualizar um conjunto de resultados de uma consulta que está armazenada no contexto da aplicação, mas apenas quando as transações que atualizam a àrvore de <literal>Category</literal>forem concluídas com sucesso:"
#. Tag: programlisting
#: events.xml:256
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[public void refreshCategoryTree(@Observes(during = AFTER_SUCCESS) "
-"CategoryUpdateEvent event) { ... }]]>"
-msgstr ""
-"<![CDATA[public void refreshCategoryTree(@AfterTransactionSuccess @Observes "
-"CategoryUpdateEvent event) { ... }]]>"
+#, no-c-format
+msgid "<![CDATA[public void refreshCategoryTree(@Observes(during = AFTER_SUCCESS) CategoryUpdateEvent event) { ... }]]>"
+msgstr "<![CDATA[public void refreshCategoryTree(@Observes(during = AFTER_SUCCESS) CategoryUpdateEvent event) { ... }]]>"
#. Tag: para
#: events.xml:258
@@ -627,77 +451,48 @@
#. Tag: para
#: events.xml:262
#, no-c-format
-msgid ""
-"<literal>IN_PROGESS</literal> observers are called immediately (default)"
+msgid "<literal>IN_PROGESS</literal> observers are called immediately (default)"
msgstr ""
#. Tag: para
#: events.xml:265
#, fuzzy, no-c-format
-msgid ""
-"<literal>AFTER_SUCCESS</literal> observers are called during the after "
-"completion phase of the transaction, but only if the transaction completes "
-"successfully"
-msgstr ""
-"<literal>@AfterTransactionSuccess</literal> observadores são chamados "
-"durante a fase após a conclusão da transação, mas somente se a transação "
-"tiver sido concluída com sucesso"
+msgid "<literal>AFTER_SUCCESS</literal> observers are called during the after completion phase of the transaction, but only if the transaction completes successfully"
+msgstr "<literal>@AfterTransactionSuccess</literal> observadores são chamados durante a fase após a conclusão da transação, mas somente se a transação tiver sido concluída com sucesso"
#. Tag: para
#: events.xml:271
#, fuzzy, no-c-format
-msgid ""
-"<literal>AFTER_FAILURE</literal> observers are called during the after "
-"completion phase of the transaction, but only if the transaction fails to "
-"complete successfully"
-msgstr ""
-"<literal>@AfterTransactionFailure</literal> observadores são chamados "
-"durante a fase após a conclusão da transação, mas somente se a transação não "
-"tiver sido concluída com sucesso"
+msgid "<literal>AFTER_FAILURE</literal> observers are called during the after completion phase of the transaction, but only if the transaction fails to complete successfully"
+msgstr "<literal>@AfterTransactionFailure</literal> observadores são chamados durante a fase após a conclusão da transação, mas somente se a transação não tiver sido concluída com sucesso"
#. Tag: para
#: events.xml:277
#, fuzzy, no-c-format
-msgid ""
-"<literal>AFTER_COMPLETION</literal> observers are called during the after "
-"completion phase of the transaction"
-msgstr ""
-"<literal>@AfterTransactionCompletion</literal> observadores são chamados "
-"durante a fase após a conclusão da transação"
+msgid "<literal>AFTER_COMPLETION</literal> observers are called during the after completion phase of the transaction"
+msgstr "<literal>@AfterTransactionCompletion</literal> observadores são chamados durante a fase após a conclusão da transação"
#. Tag: para
#: events.xml:283
#, fuzzy, no-c-format
-msgid ""
-"<literal>BEFORE_COMPLETION</literal> observers are called during the before "
-"completion phase of the transaction"
-msgstr ""
-"<literal>@BeforeTransactionCompletion</literal> observadores são chamados "
-"durante a fase antes da conclusão da transação"
+msgid "<literal>BEFORE_COMPLETION</literal> observers are called during the before completion phase of the transaction"
+msgstr "<literal>@BeforeTransactionCompletion</literal> observadores são chamados durante a fase antes da conclusão da transação"
#. Tag: para
#: events.xml:290
#, fuzzy, no-c-format
-msgid ""
-"Transactional observers are very important in a stateful object model "
-"because state is often held for longer than a single atomic transaction."
-msgstr ""
-"Observadores transacionais são muito importantes para um modelo de objetos "
-"stateful como o Web Beans, porque o estado é muitas vezes mantido por mais "
-"de uma única transação atômica."
+msgid "Transactional observers are very important in a stateful object model because state is often held for longer than a single atomic transaction."
+msgstr "Observadores transacionais são muito importantes para um modelo de objetos stateful como o Web Beans, porque o estado é muitas vezes mantido por mais de uma única transação atômica."
#. Tag: para
#: events.xml:295
#, no-c-format
-msgid ""
-"Imagine that we have cached a JPA query result set in the application scope:"
-msgstr ""
-"Imagine que fizemos cache do conjunto de resultados da consulta JPA no "
-"escopo de aplicação (application scope):"
+msgid "Imagine that we have cached a JPA query result set in the application scope:"
+msgstr "Imagine que fizemos cache do conjunto de resultados da consulta JPA no escopo de aplicação (application scope):"
#. Tag: programlisting
#: events.xml:297
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped @Singleton\n"
"public class Catalog {\n"
@@ -709,8 +504,7 @@
" @Produces @Catalog \n"
" List<Product> getCatalog() {\n"
" if (products==null) {\n"
-" products = em.createQuery(\"select p from Product p where p.deleted "
-"= false\")\n"
+" products = em.createQuery(\"select p from Product p where p.deleted = false\")\n"
" .getResultList();\n"
" }\n"
" return products;\n"
@@ -721,49 +515,36 @@
"<![CDATA[@ApplicationScoped @Singleton\n"
"public class Catalog {\n"
"\n"
-" @PersistenceContext EntityManager em;\n"
+" @PersistenceContext EntityManager em;\n"
" \n"
-" List<Product> products;\n"
+" List<Product> products;\n"
"\n"
-" @Produces @Catalog \n"
-" List<Product> getCatalog() {\n"
-" if (products==null) {\n"
-" products = em.createQuery(\"select p from Product p where p."
-"deleted = false\")\n"
-" .getResultList();\n"
-" }\n"
-" return products;\n"
-" }\n"
+" @Produces @Catalog \n"
+" List<Product> getCatalog() {\n"
+" if (products==null) {\n"
+" products = em.createQuery(\"select p from Product p where p.deleted = false\")\n"
+" .getResultList();\n"
+" }\n"
+" return products;\n"
+" }\n"
" \n"
"}]]>"
#. Tag: para
#: events.xml:299
#, no-c-format
-msgid ""
-"From time to time, a <literal>Product</literal> is created or deleted. When "
-"this occurs, we need to refresh the <literal>Product</literal> catalog. But "
-"we should wait until <emphasis>after</emphasis> the transaction completes "
-"successfully before performing this refresh!"
-msgstr ""
-"De tempos em tempos, um <literal>Product</literal> é criado ou excluído. "
-"Quando isso ocorre, é preciso atualizar o catálogo de <literal>Product</"
-"literal>. Mas devemos esperar até <emphasis>depois</emphasis> da transação "
-"ser concluída com sucesso antes de realizar essa atualização!"
+msgid "From time to time, a <literal>Product</literal> is created or deleted. When this occurs, we need to refresh the <literal>Product</literal> catalog. But we should wait until <emphasis>after</emphasis> the transaction completes successfully before performing this refresh!"
+msgstr "De tempos em tempos, um <literal>Product</literal> é criado ou excluído. Quando isso ocorre, é preciso atualizar o catálogo de <literal>Product</literal>. Mas devemos esperar até <emphasis>depois</emphasis> da transação ser concluída com sucesso antes de realizar essa atualização!"
#. Tag: para
#: events.xml:305
#, fuzzy, no-c-format
-msgid ""
-"The bean that creates and deletes <literal>Product</literal>s could raise "
-"events, for example:"
-msgstr ""
-"O Web Bean que cria e remove <literal>Products</literal> pode lançar "
-"eventos, por exemplo:"
+msgid "The bean that creates and deletes <literal>Product</literal>s could raise events, for example:"
+msgstr "O Web Bean que cria e remove <literal>Products</literal> pode lançar eventos, por exemplo:"
#. Tag: programlisting
#: events.xml:309
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Stateless\n"
"public class ProductManager {\n"
@@ -772,81 +553,65 @@
"\n"
" public void delete(Product product) {\n"
" em.delete(product);\n"
-" productEvent.select(new AnnotationLiteral<Deleted>(){}).fire"
-"(product);\n"
+" productEvent.select(new AnnotationLiteral<Deleted>(){}).fire(product);\n"
" }\n"
" \n"
" public void persist(Product product) {\n"
" em.persist(product);\n"
-" productEvent.select(new AnnotationLiteral<Created>(){}).fire"
-"(product);\n"
+" productEvent.select(new AnnotationLiteral<Created>(){}).fire(product);\n"
" }\n"
" ...\n"
"}]]>"
msgstr ""
"<![CDATA[@Stateless\n"
"public class ProductManager {\n"
+" @PersistenceContext EntityManager em;\n"
+" @Inject @Any Event<Product> productEvent;\n"
"\n"
-" @PersistenceContext EntityManager em;\n"
-" @Observable Event<Product> productEvent;\n"
-"\n"
-" public void delete(Product product) {\n"
-" em.delete(product);\n"
-" productEvent.fire(product, new AnnotationLiteral<Deleted>(){});\n"
-" }\n"
+" public void delete(Product product) {\n"
+" em.delete(product);\n"
+" productEvent.select(new AnnotationLiteral<Deleted>(){}).fire(product);\n"
+" }\n"
" \n"
-" public void persist(Product product) {\n"
-" em.persist(product);\n"
-" productEvent.fire(product, new AnnotationLiteral<Created>(){});\n"
-" }\n"
-" \n"
-" ...\n"
-" \n"
+" public void persist(Product product) {\n"
+" em.persist(product);\n"
+" productEvent.select(new AnnotationLiteral<Created>(){}).fire(product);\n"
+" }\n"
+" ...\n"
"}]]>"
#. Tag: para
#: events.xml:311
#, no-c-format
-msgid ""
-"And now <literal>Catalog</literal> can observe the events after successful "
-"completion of the transaction:"
-msgstr ""
-"E agora <literal>Catalog</literal> pode observar os eventos após o término "
-"da transação concluída com sucesso:"
+msgid "And now <literal>Catalog</literal> can observe the events after successful completion of the transaction:"
+msgstr "E agora <literal>Catalog</literal> pode observar os eventos após o término da transação concluída com sucesso:"
#. Tag: programlisting
#: events.xml:315
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped @Singleton\n"
"public class Catalog {\n"
" ...\n"
-" void addProduct(@Observes(during = AFTER_SUCCESS) @Created Product "
-"product) {\n"
+" void addProduct(@Observes(during = AFTER_SUCCESS) @Created Product product) {\n"
" products.add(product);\n"
" }\n"
" \n"
-" void addProduct(@Observes(during = AFTER_SUCCESS) @Deleted Product "
-"product) {\n"
+" void addProduct(@Observes(during = AFTER_SUCCESS) @Deleted Product product) {\n"
" products.remove(product);\n"
" }\n"
"}]]>"
msgstr ""
"<![CDATA[@ApplicationScoped @Singleton\n"
"public class Catalog {\n"
-"\n"
-" ...\n"
+" ...\n"
+" void addProduct(@Observes(during = AFTER_SUCCESS) @Created Product product) {\n"
+" products.add(product);\n"
+" }\n"
" \n"
-" void addProduct(@AfterTransactionSuccess @Observes @Created Product "
-"product) {\n"
-" products.add(product);\n"
-" }\n"
-" \n"
-" void addProduct(@AfterTransactionSuccess @Observes @Deleted Product "
-"product) {\n"
-" products.remove(product);\n"
-" }\n"
-" \n"
+" void addProduct(@Observes(during = AFTER_SUCCESS) @Deleted Product product) {\n"
+" products.remove(product);\n"
+" }\n"
"}]]>"
#~ msgid ""
@@ -862,21 +627,18 @@
#~ "<emphasis>observadores</emphasis> de eventos pelo gerenciador do Web "
#~ "Bean. Esse esquema básico pode soar como o familiar padrão observador/"
#~ "observável padrão, mas há várias diferenças:"
-
#~ msgid ""
#~ "We specify the event bindings of the observer method by annotating the "
#~ "event parameter:"
#~ msgstr ""
#~ "Especificamos os bindings de eventos do observador, anotando o parâmetro "
#~ "do evento:"
-
#~ msgid ""
#~ "The event producer may obtain an <emphasis>event notifier</emphasis> "
#~ "object by injection:"
#~ msgstr ""
#~ "O evento produtor pode obter um objeto <emphasis>notificador de evento "
#~ "(event notifier)</emphasis> por injeção:"
-
#~ msgid ""
#~ "The <literal>@Observable</literal> annotation implicitly defines a Web "
#~ "Bean with scope <literal>@Dependent</literal> and deployment type "
@@ -887,7 +649,6 @@
#~ "Bean com o escopo <literal>@Dependent</literal> e tipo de implantação "
#~ "<literal>@Standard</literal>, com uma implementação fornecida pelo "
#~ "gerenciador do Web Bean."
-
#~ msgid ""
#~ "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 "
@@ -896,7 +657,6 @@
#~ "Um objeto de evento pode ser uma instância de qualquer classe Java que "
#~ "não tem nenhum tipo de variáveis ou parâmetros tipo curinga. O evento "
#~ "será entregue a cada método observador que:"
-
#~ msgid ""
#~ "To specify a \"selector\", the event producer may pass an instance of the "
#~ "event binding type to the <literal>fire()</literal> method:"
@@ -904,7 +664,6 @@
#~ "Para especificar um \"seletor\", o produtor do evento pode passar uma "
#~ "instância do tipo de binding do evento para o método <literal>fire()</"
#~ "literal>:"
-
#~ msgid ""
#~ "The helper class <literal>AnnotationLiteral</literal> makes it possible "
#~ "to instantiate binding types inline, since this is otherwise difficult to "
@@ -912,14 +671,12 @@
#~ msgstr ""
#~ "O classe auxiliar <literal>AnnotationLiteral</literal> permite instanciar "
#~ "tipo de binding inline, o que é difícil de se fazer em Java."
-
#~ msgid ""
#~ "Alternatively, event bindings may be specified by annotating the event "
#~ "notifier injection point:"
#~ msgstr ""
#~ "Alternativamente, bindings de eventos podem ser especificados anotando o "
#~ "ponto de injeção do notificador do evento:"
-
#~ msgid ""
#~ "does not specify any event binding <emphasis>except</emphasis> for the "
#~ "event bindings passed to <literal>fire()</literal> or the annotated event "
@@ -929,10 +686,8 @@
#~ "para os bindings de evento passados para o <literal>fire()</literal> ou "
#~ "os bindings de evento anotados do ponto de injeção do notificador de "
#~ "evento."
-
#~ msgid "Registering observers dynamically"
#~ msgstr "Resgistrando observadores (observers) dinamicamente"
-
#~ msgid ""
#~ "It's often useful to register an event observer dynamically. The "
#~ "application may implement the <literal>Observer</literal> interface and "
@@ -943,14 +698,12 @@
#~ "aplicação pode implementar a interface <literal>Observer</literal> e "
#~ "registrar a instância com um evento notificador chamando o método "
#~ "<literal>observe()</literal>."
-
#~ msgid ""
#~ "<![CDATA[documentEvent.observe( new Observer<Document>() { public void "
#~ "notify(Document doc) { ... } } );]]>"
#~ msgstr ""
#~ "<![CDATA[documentEvent.observe( new Observer<Document>() { public void "
#~ "notify(Document doc) { ... } } );]]>"
-
#~ msgid ""
#~ "Event binding types may be specified by the event notifier injection "
#~ "point or by passing event binding type instances to the <literal>observe()"
@@ -959,7 +712,6 @@
#~ "Tipos de binding de eventos podem ser especificados pelo notificador do "
#~ "evento no ponto de injeção, ou passando instâncias do tipo de binding de "
#~ "evento para o método observador <literal>observe()</literal> method:"
-
#~ msgid ""
#~ "<![CDATA[documentEvent.observe( new Observer<Document>() { public void "
#~ "notify(Document doc) { ... } }, \n"
@@ -970,3 +722,4 @@
#~ "notify(Document doc) { ... } }, \n"
#~ " new "
#~ "AnnotationLiteral<Updated>(){} );]]>"
+
Modified: doc/trunk/reference/pt-BR/example.po
===================================================================
--- doc/trunk/reference/pt-BR/example.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/example.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,7 +6,7 @@
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-04-10 20:31-0300\n"
+"PO-Revision-Date: 2009-12-19 18:01-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -22,19 +22,12 @@
#. Tag: para
#: example.xml:6
#, fuzzy, no-c-format
-msgid ""
-"Let's illustrate these ideas with a full example. We're going to implement "
-"user login/logout for an application that uses JSF. First, we'll define a "
-"request-scoped bean to hold the username and password entered during login:"
-msgstr ""
-"Ilustraremos essas idéias com um exemplo completo. Nós implementaremos um "
-"login/logout de usuário de uma aplicação que utiliza JSF. Primeiro, "
-"definiremos um Web Bean que irá armazenar o nome do usuário (username) e a "
-"senha (password) fornecidos durante o login:"
+msgid "Let's illustrate these ideas with a full example. We're going to implement user login/logout for an application that uses JSF. First, we'll define a request-scoped bean to hold the username and password entered during login:"
+msgstr "Ilustraremos essas idéias com um exemplo completo. Nós implementaremos um login/logout de usuário de uma aplicação que utiliza JSF. Primeiro, definiremos um Web Bean que irá armazenar o nome do usuário (username) e a senha (password) fornecidos durante o login:"
#. Tag: programlisting
#: example.xml:11
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Named @RequestScoped\n"
"public class Credentials {\n"
@@ -50,7 +43,6 @@
msgstr ""
"<![CDATA[@Named @RequestScoped\n"
"public class Credentials {\n"
-" \n"
" private String username;\n"
" private String password;\n"
" \n"
@@ -59,19 +51,17 @@
" \n"
" public String getPassword() { return password; }\n"
" public void setPassword(String password) { this.password = password; }\n"
-" \n"
"}]]>"
#. Tag: para
#: example.xml:13
#, fuzzy, no-c-format
msgid "This bean is bound to the login prompt in the following JSF form:"
-msgstr ""
-"Esse Web Bean é vinculado ao prompt de login do seguinte formulário JSF:"
+msgstr "Esse Web Bean é vinculado ao prompt de login do seguinte formulário JSF:"
#. Tag: programlisting
#: example.xml:15
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[<h:form>\n"
" <h:panelGrid columns=\"2\" rendered=\"#{!login.loggedIn}\">\n"
@@ -80,40 +70,30 @@
" <h:outputLabel for=\"password\">Password:</h:outputLabel>\n"
" <h:inputText id=\"password\" value=\"#{credentials.password}\"/>\n"
" </h:panelGrid>\n"
-" <h:commandButton value=\"Login\" action=\"#{login.login}\" rendered=\"#{!"
-"login.loggedIn}\"/>\n"
-" <h:commandButton value=\"Logout\" action=\"#{login.logout}\" rendered=\"#"
-"{login.loggedIn}\"/>\n"
+" <h:commandButton value=\"Login\" action=\"#{login.login}\" rendered=\"#{!login.loggedIn}\"/>\n"
+" <h:commandButton value=\"Logout\" action=\"#{login.logout}\" rendered=\"#{login.loggedIn}\"/>\n"
"</h:form>]]>"
msgstr ""
"<![CDATA[<h:form>\n"
-" <h:panelGrid columns=\"2\" rendered=\"#{!login.loggedIn}\">\n"
-" <h:outputLabel for=\"username\">Username:</h:outputLabel>\n"
-" <h:inputText id=\"username\" value=\"#{credentials.username}\"/>\n"
-" <h:outputLabel for=\"password\">Password:</h:outputLabel>\n"
-" <h:inputText id=\"password\" value=\"#{credentials.password}\"/>\n"
-" </h:panelGrid>\n"
-" <h:commandButton value=\"Login\" action=\"#{login.login}\" rendered=\"#{!"
-"login.loggedIn}\"/>\n"
-" <h:commandButton value=\"Logout\" acion=\"#{login.logout}\" rendered=\"#"
-"{login.loggedIn}\"/>\n"
+" <h:panelGrid columns=\"2\" rendered=\"#{!login.loggedIn}\">\n"
+" <h:outputLabel for=\"username\">Username:</h:outputLabel>\n"
+" <h:inputText id=\"username\" value=\"#{credentials.username}\"/>\n"
+" <h:outputLabel for=\"password\">Password:</h:outputLabel>\n"
+" <h:inputText id=\"password\" value=\"#{credentials.password}\"/>\n"
+" </h:panelGrid>\n"
+" <h:commandButton value=\"Login\" action=\"#{login.login}\" rendered=\"#{!login.loggedIn}\"/>\n"
+" <h:commandButton value=\"Logout\" action=\"#{login.logout}\" rendered=\"#{login.loggedIn}\"/>\n"
"</h:form>]]>"
#. Tag: para
#: example.xml:17
#, fuzzy, no-c-format
-msgid ""
-"The actual work is done by a session-scoped bean that maintains information "
-"about the currently logged-in user and exposes the <literal>User</literal> "
-"entity to other beans:"
-msgstr ""
-"O verdadeiro trabalho é realizado por um Web Bean em escopo de sessão que "
-"mantém informações sobre o atual usuário conectado e expõe a entidade "
-"<literal>User</literal> para outros Web Beans:"
+msgid "The actual work is done by a session-scoped bean that maintains information about the currently logged-in user and exposes the <literal>User</literal> entity to other beans:"
+msgstr "O verdadeiro trabalho é realizado por um Web Bean em escopo de sessão que mantém informações sobre o atual usuário conectado e expõe a entidade <literal>User</literal> para outros Web Beans:"
#. Tag: programlisting
#: example.xml:22
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@SessionScoped @Named\n"
"public class Login implements Serializable {\n"
@@ -125,8 +105,7 @@
" \n"
" public void login() {\n"
" List<User> results = userDatabase.createQuery(\n"
-" \"select u from User u where u.username = :username and u.password "
-"= :password\")\n"
+" \"select u from User u where u.username = :username and u.password = :password\")\n"
" .setParameter(\"username\", credentials.getUsername())\n"
" .setParameter(\"password\", credentials.getPassword())\n"
" .getResultList();\n"
@@ -154,84 +133,80 @@
"}]]>"
msgstr ""
"<![CDATA[@SessionScoped @Named\n"
-"public class Login {\n"
+"public class Login implements Serializable {\n"
"\n"
-" @Current Credentials credentials;\n"
-" @PersistenceContext EntityManager userDatabase;\n"
+" @Inject Credentials credentials;\n"
+" @Inject @UserDatabase EntityManager userDatabase;\n"
"\n"
-" private User user;\n"
+" private User user;\n"
" \n"
-" public void login() {\n"
-" \n"
-" List<User> results = userDatabase.createQuery(\n"
-" \"select u from User u where u.username=:username and u.password=:"
-"password\")\n"
-" .setParameter(\"username\", credentials.getUsername())\n"
-" .setParameter(\"password\", credentials.getPassword())\n"
-" .getResultList();\n"
+" public void login() {\n"
+" List<User> results = userDatabase.createQuery(\n"
+" \"select u from User u where u.username = :username and u.password = :password\")\n"
+" .setParameter(\"username\", credentials.getUsername())\n"
+" .setParameter(\"password\", credentials.getPassword())\n"
+" .getResultList();\n"
" \n"
-" if ( !results.isEmpty() ) {\n"
-" user = results.get(0);\n"
-" }\n"
-" \n"
-" }\n"
+" if (!results.isEmpty()) {\n"
+" user = results.get(0);\n"
+" }\n"
+" else {\n"
+" // perhaps add code here to report a failed login\n"
+" }\n"
+" }\n"
" \n"
-" public void logout() {\n"
-" user = null;\n"
-" }\n"
+" public void logout() {\n"
+" user = null;\n"
+" }\n"
" \n"
-" public boolean isLoggedIn() {\n"
-" return user!=null;\n"
-" }\n"
+" public boolean isLoggedIn() {\n"
+" return user != null;\n"
+" }\n"
" \n"
-" @Produces @LoggedIn User getCurrentUser() {\n"
-" return user;\n"
-" }\n"
+" @Produces @LoggedIn User getCurrentUser() {\n"
+" return user;\n"
+" }\n"
"\n"
"}]]>"
#. Tag: para
#: example.xml:24
#, no-c-format
-msgid ""
-"<literal>@LoggedIn</literal> and <literal>@UserDatabase</literal> are custom "
-"qualifier annotations:"
+msgid "<literal>@LoggedIn</literal> and <literal>@UserDatabase</literal> are custom qualifier annotations:"
msgstr ""
#. Tag: programlisting
#: example.xml:26
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Qualifier\n"
"@Retention(RUNTIME)\n"
"@Target({TYPE, METHOD, PARAMETER, FIELD})\n"
"public @interface LoggedIn {}]]>"
msgstr ""
-"<![CDATA[@Retention(RUNTIME)\n"
-"@Target({TYPE, METHOD, FIELD})\n"
-"@BindingType\n"
+"<![CDATA[@Qualifier\n"
+"@Retention(RUNTIME)\n"
+"@Target({TYPE, METHOD, PARAMETER, FIELD})\n"
"public @interface LoggedIn {}]]>"
#. Tag: programlisting
#: example.xml:28
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Qualifier\n"
"@Retention(RUNTIME)\n"
"@Target({METHOD, PARAMETER, FIELD})\n"
"public @interface UserDatabase {}]]>"
msgstr ""
-"<![CDATA[@Retention(RUNTIME)\n"
-"@Target({TYPE, METHOD, FIELD})\n"
-"@BindingType\n"
-"public @interface LoggedIn {}]]>"
+"<![CDATA[@Qualifier\n"
+"@Retention(RUNTIME)\n"
+"@Target({METHOD, PARAMETER, FIELD})\n"
+"public @interface UserDatabase {}]]>"
#. Tag: para
#: example.xml:30
#, no-c-format
-msgid ""
-"We need an adaptor bean to expose our typesafe <literal>EntityManager</"
-"literal>:"
+msgid "We need an adaptor bean to expose our typesafe <literal>EntityManager</literal>:"
msgstr ""
#. Tag: programlisting
@@ -242,19 +217,19 @@
" @Produces @UserDatabase @PersistenceContext EntityManager userDatabase;\n"
"}]]>"
msgstr ""
+"<![CDATA[public class UserDatabaseProducer {\n"
+" @Produces @UserDatabase @PersistenceContext EntityManager userDatabase;\n"
+"}]]>"
#. Tag: para
#: example.xml:36
#, fuzzy, no-c-format
-msgid ""
-"Now <literal>DocumentEditor</literal>, or any other bean, can easily inject "
-"the current user:"
-msgstr ""
-"Agora, qualquer outro Web Bean pode facilmente injetar o usuário atual:"
+msgid "Now <literal>DocumentEditor</literal>, or any other bean, can easily inject the current user:"
+msgstr "Agora, qualquer outro Web Bean pode facilmente injetar o usuário atual:"
#. Tag: programlisting
#: example.xml:38
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public class DocumentEditor {\n"
" @Inject Document document;\n"
@@ -268,16 +243,14 @@
"}]]>"
msgstr ""
"<![CDATA[public class DocumentEditor {\n"
-"\n"
-" @Current Document document;\n"
-" @LoggedIn User currentUser;\n"
-" @PersistenceContext EntityManager docDatabase;\n"
+" @Inject Document document;\n"
+" @Inject @LoggedIn User currentUser;\n"
+" @Inject @DocumentDatabase EntityManager docDatabase;\n"
" \n"
-" public void save() {\n"
-" document.setCreatedBy(currentUser);\n"
-" docDatabase.persist(document);\n"
-" }\n"
-" \n"
+" public void save() {\n"
+" document.setCreatedBy(currentUser);\n"
+" docDatabase.persist(document);\n"
+" }\n"
"}]]>"
#. Tag: para
@@ -294,19 +267,18 @@
" signed in as #{currentUser.username}\n"
"</h:panelGroup>]]>"
msgstr ""
+"<![CDATA[<h:panelGroup rendered=\"#{login.loggedIn}\">\n"
+" signed in as #{currentUser.username}\n"
+"</h:panelGroup>]]>"
#. Tag: para
#: example.xml:44
#, fuzzy, no-c-format
-msgid ""
-"Hopefully, this example gave you a taste of the CDI programming model. In "
-"the next chapter, we'll explore dependency injection in greater depth."
-msgstr ""
-"Esperamos que esse exemplo tenha dado um gostinho do modelo de programação "
-"com Web Beans. No capítulo seguinte, exploraremos a injeção de dependência "
-"da Web Beans em profundidade."
+msgid "Hopefully, this example gave you a taste of the CDI programming model. In the next chapter, we'll explore dependency injection in greater depth."
+msgstr "Esperamos que esse exemplo tenha dado um gostinho do modelo de programação com Web Beans. No capítulo seguinte, exploraremos a injeção de dependência da Web Beans em profundidade."
#~ msgid "Of course, <literal>@LoggedIn</literal> is a binding annotation:"
#~ msgstr ""
#~ "Certamente, <literal>@LoggedIn</literal> é uma anotação de binding "
#~ "(binding annotation):"
+
Modified: doc/trunk/reference/pt-BR/extend.po
===================================================================
--- doc/trunk/reference/pt-BR/extend.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/extend.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,7 +6,7 @@
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-04-10 12:48-0300\n"
+"PO-Revision-Date: 2009-12-19 18:03-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -22,35 +22,20 @@
#. Tag: para
#: extend.xml:7
#, fuzzy, no-c-format
-msgid ""
-"CDI is intended to be a foundation for frameworks, extensions and "
-"integration with other technologies. Therefore, CDI exposes a set of SPIs "
-"for the use of developers of portable extensions to CDI. For example, the "
-"following kinds of extensions were envisaged by the designers of CDI:"
-msgstr ""
-"A Web Beans pretende ser uma plataforma para frameworks, extensões e "
-"integração com outras tecnologias. Portanto,a Web Beans expõe um conjunto "
-"de SPIs para a utilização pelos desenvolvedores de extensões portáveis para "
-"Web Beans. Por exemplo, os seguintes tipos de extensões estavam previstas "
-"pelos designers da Web Beans:"
+msgid "CDI is intended to be a foundation for frameworks, extensions and integration with other technologies. Therefore, CDI exposes a set of SPIs for the use of developers of portable extensions to CDI. For example, the following kinds of extensions were envisaged by the designers of CDI:"
+msgstr "A Web Beans pretende ser uma plataforma para frameworks, extensões e integração com outras tecnologias. Portanto,a Web Beans expõe um conjunto de SPIs para a utilização pelos desenvolvedores de extensões portáveis para Web Beans. Por exemplo, os seguintes tipos de extensões estavam previstas pelos designers da Web Beans:"
#. Tag: para
#: extend.xml:15
#, no-c-format
msgid "integration with Business Process Management engines,"
-msgstr ""
-"Integração com motores de gerenciamento de processos de negócios (Business "
-"Process Management )"
+msgstr "Integração com motores de gerenciamento de processos de negócios (Business Process Management)"
#. Tag: para
#: extend.xml:18
#, no-c-format
-msgid ""
-"integration with third-party frameworks such as Spring, Seam, GWT or Wicket, "
-"and"
-msgstr ""
-"integração com frameworks de terceiros, tais como Spring, Seam, GWT ou "
-"Wicket, e"
+msgid "integration with third-party frameworks such as Spring, Seam, GWT or Wicket, and"
+msgstr "integração com frameworks de terceiros, tais como Spring, Seam, GWT ou Wicket, e"
#. Tag: para
#: extend.xml:23
@@ -79,9 +64,7 @@
#. Tag: para
#: extend.xml:40
#, no-c-format
-msgid ""
-"Injecting dependencies into its own objects using the dependency injection "
-"service"
+msgid "Injecting dependencies into its own objects using the dependency injection service"
msgstr ""
#. Tag: para
@@ -93,20 +76,14 @@
#. Tag: para
#: extend.xml:50
#, no-c-format
-msgid ""
-"Augmenting or overriding the annotation-based metadata with metadata from "
-"some other source"
+msgid "Augmenting or overriding the annotation-based metadata with metadata from some other source"
msgstr ""
#. Tag: para
#: extend.xml:57
#, fuzzy, no-c-format
-msgid ""
-"The nerve center for extending CDI is the <literal>BeanManager</literal> "
-"object."
-msgstr ""
-"O nervo central para estender a Web Beans é o objeto <literal>Manager</"
-"literal>."
+msgid "The nerve center for extending CDI is the <literal>BeanManager</literal> object."
+msgstr "O nervo central para estender a Web Beans é o objeto <literal>Manager</literal>."
#. Tag: title
#: extend.xml:62
@@ -117,24 +94,17 @@
#. Tag: para
#: extend.xml:64
#, fuzzy, no-c-format
-msgid ""
-"The <literal>BeanManager</literal> interface lets us obtain beans, "
-"interceptors, decorators, observers and contexts programmatically."
-msgstr ""
-"A interface <literal>Manager</literal> permite, programaticamente, registrar "
-"e obter Web Beans, interceptadores, decoradores, observadores e contextos."
+msgid "The <literal>BeanManager</literal> interface lets us obtain beans, interceptors, decorators, observers and contexts programmatically."
+msgstr "A interface <literal>Manager</literal> permite, programaticamente, registrar e obter Web Beans, interceptadores, decoradores, observadores e contextos."
#. Tag: programlisting
#: extend.xml:69
#, no-c-format
msgid ""
"<![CDATA[public interface Manager {\n"
-" public Object getReference(Bean<?> bean, Type beanType, "
-"CreationalContext<?> ctx);\n"
-" public Object getInjectableReference(InjectionPoint ij, "
-"CreationalContext<?> ctx);\n"
-" public <T> CreationalContext<T> createCreationalContext(Contextual<T> "
-"contextual);\n"
+" public Object getReference(Bean<?> bean, Type beanType, CreationalContext<?> ctx);\n"
+" public Object getInjectableReference(InjectionPoint ij, CreationalContext<?> ctx);\n"
+" public <T> CreationalContext<T> createCreationalContext(Contextual<T> contextual);\n"
" public Set<Bean<?>> getBeans(Type beanType, Annotation... bindings);\n"
" public Set<Bean<?>> getBeans(String name);\n"
" public <X> Bean<? extends X> getMostSpecializedBean(Bean<X> bean);\n"
@@ -142,42 +112,58 @@
" public <X> Bean<? extends X> resolve(Set<Bean<? extends X>> beans);\n"
" public void validate(InjectionPoint injectionPoint);\n"
" public void fireEvent(Object event, Annotation... bindings);\n"
-" public <T> Set<ObserverMethod<?, T>> resolveObserverMethods(T event, "
-"Annotation... bindings);\n"
-" public List<Decorator<?>> resolveDecorators(Set<Type> types, "
-"Annotation... bindings);\n"
-" public List<Interceptor<?>> resolveInterceptors(InterceptionType type, "
-"Annotation... interceptorBindings);\n"
+" public <T> Set<ObserverMethod<?, T>> resolveObserverMethods(T event, Annotation... bindings);\n"
+" public List<Decorator<?>> resolveDecorators(Set<Type> types, Annotation... bindings);\n"
+" public List<Interceptor<?>> resolveInterceptors(InterceptionType type, Annotation... interceptorBindings);\n"
" public boolean isScope(Class<? extends Annotation> annotationType);\n"
-" public boolean isNormalScope(Class<? extends Annotation> "
-"annotationType);\n"
-" public boolean isPassivatingScope(Class<? extends Annotation> "
-"annotationType);\n"
+" public boolean isNormalScope(Class<? extends Annotation> annotationType);\n"
+" public boolean isPassivatingScope(Class<? extends Annotation> annotationType);\n"
" public boolean isQualifier(Class<? extends Annotation> annotationType);\n"
-" public boolean isInterceptorBindingType(Class<? extends Annotation> "
-"annotationType);\n"
+" public boolean isInterceptorBindingType(Class<? extends Annotation> annotationType);\n"
" public boolean isStereotype(Class<? extends Annotation> annotationType);\n"
-" public Set<Annotation> getInterceptorBindingTypeDefinition(Class<? "
-"extends Annotation> bindingType);\n"
-" public Set<Annotation> getStereotypeDefinition(Class<? extends "
-"Annotation> stereotype);\n"
+" public Set<Annotation> getInterceptorBindingTypeDefinition(Class<? extends Annotation> bindingType);\n"
+" public Set<Annotation> getStereotypeDefinition(Class<? extends Annotation> stereotype);\n"
" public Context getContext(Class<? extends Annotation> scopeType);\n"
" public ELResolver getELResolver();\n"
-" public ExpressionFactory wrapExpressionFactory(ExpressionFactory "
-"expressionFactory);\n"
+" public ExpressionFactory wrapExpressionFactory(ExpressionFactory expressionFactory);\n"
" public <T> AnnotatedType<T> createAnnotatedType(Class<T> type);\n"
-" public <T> InjectionTarget<T> createInjectionTarget(AnnotatedType<T> "
-"type);\n"
+" public <T> InjectionTarget<T> createInjectionTarget(AnnotatedType<T> type);\n"
"}]]>"
msgstr ""
+"<![CDATA[public interface Manager {\n"
+" public Object getReference(Bean<?> bean, Type beanType, CreationalContext<?> ctx);\n"
+" public Object getInjectableReference(InjectionPoint ij, CreationalContext<?> ctx);\n"
+" public <T> CreationalContext<T> createCreationalContext(Contextual<T> contextual);\n"
+" public Set<Bean<?>> getBeans(Type beanType, Annotation... bindings);\n"
+" public Set<Bean<?>> getBeans(String name);\n"
+" public <X> Bean<? extends X> getMostSpecializedBean(Bean<X> bean);\n"
+" public Bean<?> getPassivationCapableBean(String id);\n"
+" public <X> Bean<? extends X> resolve(Set<Bean<? extends X>> beans);\n"
+" public void validate(InjectionPoint injectionPoint);\n"
+" public void fireEvent(Object event, Annotation... bindings);\n"
+" public <T> Set<ObserverMethod<?, T>> resolveObserverMethods(T event, Annotation... bindings);\n"
+" public List<Decorator<?>> resolveDecorators(Set<Type> types, Annotation... bindings);\n"
+" public List<Interceptor<?>> resolveInterceptors(InterceptionType type, Annotation... interceptorBindings);\n"
+" public boolean isScope(Class<? extends Annotation> annotationType);\n"
+" public boolean isNormalScope(Class<? extends Annotation> annotationType);\n"
+" public boolean isPassivatingScope(Class<? extends Annotation> annotationType);\n"
+" public boolean isQualifier(Class<? extends Annotation> annotationType);\n"
+" public boolean isInterceptorBindingType(Class<? extends Annotation> annotationType);\n"
+" public boolean isStereotype(Class<? extends Annotation> annotationType);\n"
+" public Set<Annotation> getInterceptorBindingTypeDefinition(Class<? extends Annotation> bindingType);\n"
+" public Set<Annotation> getStereotypeDefinition(Class<? extends Annotation> stereotype);\n"
+" public Context getContext(Class<? extends Annotation> scopeType);\n"
+" public ELResolver getELResolver();\n"
+" public ExpressionFactory wrapExpressionFactory(ExpressionFactory expressionFactory);\n"
+" public <T> AnnotatedType<T> createAnnotatedType(Class<T> type);\n"
+" public <T> InjectionTarget<T> createInjectionTarget(AnnotatedType<T> type);\n"
+"}]]>"
#. Tag: para
#: extend.xml:71
#, fuzzy, no-c-format
-msgid ""
-"We can obtain an instance of <literal>BeanManager</literal> via injection:"
-msgstr ""
-"Nós podemos obter uma instância do <literal>Manager</literal> via injeção:"
+msgid "We can obtain an instance of <literal>BeanManager</literal> via injection:"
+msgstr "Nós podemos obter uma instância do <literal>Manager</literal> via injeção:"
#. Tag: programlisting
#: extend.xml:73
@@ -188,22 +174,14 @@
#. Tag: para
#: extend.xml:75
#, no-c-format
-msgid ""
-"Java EE components may obtain an instance of <literal>BeanManager</literal> "
-"from JNDI by looking up the name <literal>java:comp/BeanManager</literal>. "
-"Any operation of <literal>BeanManager</literal> may be called at any time "
-"during the execution of the application."
+msgid "Java EE components may obtain an instance of <literal>BeanManager</literal> from JNDI by looking up the name <literal>java:comp/BeanManager</literal>. Any operation of <literal>BeanManager</literal> may be called at any time during the execution of the application."
msgstr ""
#. Tag: para
#: extend.xml:81
#, fuzzy, no-c-format
-msgid ""
-"Let's study some of the interfaces exposed by the <literal>BeanManager</"
-"literal>."
-msgstr ""
-"O nervo central para estender a Web Beans é o objeto <literal>Manager</"
-"literal>."
+msgid "Let's study some of the interfaces exposed by the <literal>BeanManager</literal>."
+msgstr "O nervo central para estender a Web Beans é o objeto <literal>Manager</literal>."
#. Tag: title
#: extend.xml:86
@@ -214,14 +192,8 @@
#. Tag: para
#: extend.xml:88
#, fuzzy, no-c-format
-msgid ""
-"Instances of the interface <literal>Bean</literal> represent beans. There is "
-"an instance of <literal>Bean</literal> registered with the "
-"<literal>BeanManager</literal> object for every bean in the application."
-msgstr ""
-"Instâncias da classe abstrata <literal>Bean</literal> representam Web Beans. "
-"Existe uma instância do <literal>Bean</literal> registrado com o objeto "
-"<literal>Manager</literal> para todos os Web Beans da aplicação."
+msgid "Instances of the interface <literal>Bean</literal> represent beans. There is an instance of <literal>Bean</literal> registered with the <literal>BeanManager</literal> object for every bean in the application."
+msgstr "Instâncias da classe abstrata <literal>Bean</literal> representam Web Beans. Existe uma instância do <literal>Bean</literal> registrado com o objeto <literal>Manager</literal> para todos os Web Beans da aplicação."
#. Tag: programlisting
#: extend.xml:94
@@ -239,38 +211,29 @@
" public Set<InjectionPoint> getInjectionPoints();\n"
"}]]>"
msgstr ""
+"<![CDATA[public interface Bean<T> extends Contextual<T> {\n"
+" public Set<Type> getTypes();\n"
+" public Set<Annotation> getQualifiers();\n"
+" public Class<? extends Annotation> getScope();\n"
+" public String getName();\n"
+" public Set<Class<? extends Annotation>> getStereotypes();\n"
+" public Class<?> getBeanClass();\n"
+" public boolean isAlternative();\n"
+" public boolean isNullable();\n"
+" public Set<InjectionPoint> getInjectionPoints();\n"
+"}]]>"
#. Tag: para
#: extend.xml:96
#, fuzzy, no-c-format
-msgid ""
-"It's possible to implement the <literal>Bean</literal> interface and "
-"register instances by calling <literal>AfterBeanDiscovery.addBean()</"
-"literal> (<literal>AfterBeanDiscovery</literal> is a built-in event type "
-"that an extension can observe) to provide support for new kinds of beans, "
-"beyond those defined by the CDI specification. For example, we could use the "
-"<literal>Bean</literal> interface to allow objects managed by another "
-"framework to be injected into beans."
-msgstr ""
-"É possível estender a classe <literal>Bean</literal> e registrar instâncias "
-"através da chamada <literal>Manager.addBean()</literal>, para fornecer "
-"suporte para novos tipos de Web Beans, além dos definidos pela especificação "
-"Web Beans (Web Beans simples e coporativos, métodos produtores e endpoints "
-"JMS). Por exemplo, poderíamos usar a classe <literal>Bean</literal> para "
-"permitir que os objetos gerenciados por um outro framework possam ser "
-"injetados nos Web Beans."
+msgid "It's possible to implement the <literal>Bean</literal> interface and register instances by calling <literal>AfterBeanDiscovery.addBean()</literal> (<literal>AfterBeanDiscovery</literal> is a built-in event type that an extension can observe) to provide support for new kinds of beans, beyond those defined by the CDI specification. For example, we could use the <literal>Bean</literal> interface to allow objects managed by another framework to be injected into beans."
+msgstr "É possível estender a classe <literal>Bean</literal> e registrar instâncias através da chamada <literal>Manager.addBean()</literal>, para fornecer suporte para novos tipos de Web Beans, além dos definidos pela especificação Web Beans (Web Beans simples e coporativos, métodos produtores e endpoints JMS). Por exemplo, poderíamos usar a classe <literal>Bean</literal> para permitir que os objetos gerenciados por um outro framework possam ser injetados nos Web Beans."
#. Tag: para
#: extend.xml:104
#, fuzzy, no-c-format
-msgid ""
-"There are two subinterfaces of <literal>Bean</literal> defined by the CDI "
-"specification: <literal>Interceptor</literal> and <literal>Decorator</"
-"literal>."
-msgstr ""
-"Existem duas subclasses de <literal>Bean</literal> definidas pela "
-"especificação de Web Beans: <literal>Interceptor</literal> e "
-"<literal>Decorator</literal>."
+msgid "There are two subinterfaces of <literal>Bean</literal> defined by the CDI specification: <literal>Interceptor</literal> and <literal>Decorator</literal>."
+msgstr "Existem duas subclasses de <literal>Bean</literal> definidas pela especificação de Web Beans: <literal>Interceptor</literal> e <literal>Decorator</literal>."
#. Tag: title
#: extend.xml:112
@@ -281,50 +244,35 @@
#. Tag: para
#: extend.xml:114
#, fuzzy, no-c-format
-msgid ""
-"The <literal>Context</literal> interface supports addition of new scopes to "
-"CDI, or extension of the built-in scopes to new environments."
-msgstr ""
-"A interface <literal>Context</literal> suporta a adição de novos escopos a "
-"Web Beans, ou extensões dos escopos existentes para novos ambientes."
+msgid "The <literal>Context</literal> interface supports addition of new scopes to CDI, or extension of the built-in scopes to new environments."
+msgstr "A interface <literal>Context</literal> suporta a adição de novos escopos a Web Beans, ou extensões dos escopos existentes para novos ambientes."
#. Tag: programlisting
#: extend.xml:119
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public interface Context {\n"
" public Class<? extends Annotation> getScope();\n"
-" public <T> T get(Contextual<T> contextual, CreationalContext<T> "
-"creationalContext);\n"
+" public <T> T get(Contextual<T> contextual, CreationalContext<T> creationalContext);\n"
" public <T> T get(Contextual<T> contextual);\n"
" boolean isActive();\n"
"}]]>"
msgstr ""
-"public interface Context {\n"
-" \n"
-" public Class<? extends Annotation> getScopeType();\n"
-" \n"
-" public <T> T get(Bean<T> bean, boolean create);\n"
-" \n"
-" boolean isActive();\n"
-" \n"
-"}"
+"<![CDATA[public interface Context {\n"
+" public Class<? extends Annotation> getScope();\n"
+" public <T> T get(Contextual<T> contextual, CreationalContext<T> creationalContext);\n"
+" public <T> T get(Contextual<T> contextual);\n"
+" boolean isActive();\n"
+"}]]>"
#. Tag: para
#: extend.xml:121
#, fuzzy, no-c-format
-msgid ""
-"For example, we might implement <literal>Context</literal> to add a business "
-"process scope to CDI, or to add support for the conversation scope to an "
-"application that uses Wicket."
-msgstr ""
-"Por exemplo, nós poderíamos implementar <literal>Context</literal> para "
-"adicionar um escopo de processo de negócios a Web Beans, ou para adicionar "
-"suporte ao escopo de conversação a uma aplicação que utiliza o Wicket."
+msgid "For example, we might implement <literal>Context</literal> to add a business process scope to CDI, or to add support for the conversation scope to an application that uses Wicket."
+msgstr "Por exemplo, nós poderíamos implementar <literal>Context</literal> para adicionar um escopo de processo de negócios a Web Beans, ou para adicionar suporte ao escopo de conversação a uma aplicação que utiliza o Wicket."
#~ msgid "Extending Web Beans"
#~ msgstr "Estendendo a Web Beans"
-
#~ msgid ""
#~ "<![CDATA[public interface Manager\n"
#~ "{\n"
@@ -443,10 +391,8 @@
#~ " Annotation... bindings);\n"
#~ "\n"
#~ "}]]>"
-
#~ msgid "The <literal>Bean</literal> class"
#~ msgstr "A classe <literal>Bean</literal> "
-
#~ msgid ""
#~ "public abstract class Bean<T> {\n"
#~ " \n"
@@ -501,3 +447,4 @@
#~ " public abstract void destroy(T instance);\n"
#~ " \n"
#~ "}"
+
Modified: doc/trunk/reference/pt-BR/extensions.po
===================================================================
--- doc/trunk/reference/pt-BR/extensions.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/extensions.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -3,11 +3,10 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Web_Beans:_Java_Contexts_and_Dependency_Injection "
-"VERSION\n"
+"Project-Id-Version: Web_Beans:_Java_Contexts_and_Dependency_Injection VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-06-13 11:28-0300\n"
+"PO-Revision-Date: 2009-12-19 18:02-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -24,9 +23,7 @@
#: extensions.xml:11
#, fuzzy, no-c-format
msgid "These modules are usable on any JSR-299 implementation, not just Weld!"
-msgstr ""
-"Estes módulos são utilizáveis em qualquer implementação da JSR-299, e não "
-"apenas na Web Beans!"
+msgstr "Estes módulos são utilizáveis em qualquer implementação da JSR-299, e não apenas na Web Beans!"
#. Tag: title
#: extensions.xml:17
@@ -37,21 +34,12 @@
#. Tag: para
#: extensions.xml:19
#, fuzzy, no-c-format
-msgid ""
-"Adding logging to your application is now even easier with simple injection "
-"of a logger object into any CDI bean. Simply annotate a <literal>org.jboss."
-"weld.log.Log</literal> type member with the <emphasis>@Logger</emphasis> "
-"qualifier annotation and an appropriate logger object will be injected into "
-"any instance of the bean."
-msgstr ""
-"Adicionar logging na sua aplicação é agora ainda mais fácil com a simples "
-"injeção de um objeto logger em qualquer bean JSR-299. Basta anotar um membro "
-"tipo org.jboss.webbeans.log.Log com <emphasis>@Logger</emphasis> e um "
-"adequado objeto logger será injetado em qualquer instância do bean."
+msgid "Adding logging to your application is now even easier with simple injection of a logger object into any CDI bean. Simply annotate a <literal>org.jboss.weld.log.Log</literal> type member with the <emphasis>@Logger</emphasis> qualifier annotation and an appropriate logger object will be injected into any instance of the bean."
+msgstr "Adicionar logging na sua aplicação é agora ainda mais fácil com a simples injeção de um objeto logger em qualquer bean JSR-299. Basta anotar um membro tipo org.jboss.webbeans.log.Log com <emphasis>@Logger</emphasis> e um adequado objeto logger será injetado em qualquer instância do bean."
#. Tag: programlisting
#: extensions.xml:26
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[import org.jboss.weld.annotation.Logger;\n"
"import org.jboss.weld.log.Log;\n"
@@ -66,67 +54,39 @@
" }\n"
"}]]>"
msgstr ""
-"<![CDATA[public class Checkout {\n"
-" import org.jboss.webbeans.annotation.Logger;\n"
-" import org.jboss.webbeans.log.Log;\n"
-" \n"
-" @Logger\n"
-" private Log log;\n"
+"<![CDATA[import org.jboss.weld.annotation.Logger;\n"
+"import org.jboss.weld.log.Log;\n"
"\n"
-" void invoiceItems() {\n"
-" ShoppingCart cart;\n"
-" . . .\n"
-" log.debug(\"Items invoiced for {0}\", cart);\n"
-" }\n"
-" \n"
+"public class Checkout {\n"
+" private @Inject @Logger Log log;\n"
+"\n"
+" public void invoiceItems() {\n"
+" ShoppingCart cart;\n"
+" ...\n"
+" log.debug(\"Items invoiced for {0}\", cart);\n"
+" }\n"
"}]]>"
#. Tag: para
#: extensions.xml:28
#, no-c-format
-msgid ""
-"The example shows how objects can be interpolated into a message. This "
-"interpolation is done using <emphasis>java.text.MessageFormat</emphasis>, so "
-"see the JavaDoc for that class for more details. In this case, the "
-"<literal>ShoppingCart</literal> should have implemented the "
-"<emphasis>toString()</emphasis> method to produce a human readable value "
-"that is meaningful in messages. Normally, this call would have involved "
-"evaluating cart.toString() with String concatenation to produce a single "
-"String argument. Thus it was necessary to surround the call with an if-"
-"statement using the condition <emphasis>log.isDebugEnabled()</emphasis> to "
-"avoid the expensive String concatenation if the message was not actually "
-"going to be used. However, when using <literal>@Logger</literal>-injected "
-"logging, the conditional test can be left out since the object arguments are "
-"not evaluated unless the message is going to be logged."
+msgid "The example shows how objects can be interpolated into a message. This interpolation is done using <emphasis>java.text.MessageFormat</emphasis>, so see the JavaDoc for that class for more details. In this case, the <literal>ShoppingCart</literal> should have implemented the <emphasis>toString()</emphasis> method to produce a human readable value that is meaningful in messages. Normally, this call would have involved evaluating cart.toString() with String concatenation to produce a single String argument. Thus it was necessary to surround the call with an if-statement using the condition <emphasis>log.isDebugEnabled()</emphasis> to avoid the expensive String concatenation if the message was not actually going to be used. However, when using <literal>@Logger</literal>-injected logging, the conditional test can be left out since the object arguments are not evaluated unless the message is going to be logged."
msgstr ""
#. Tag: para
#: extensions.xml:41
#, fuzzy, no-c-format
-msgid ""
-"You can add the Weld Logger to your project by including weld-logger.jar, "
-"sl4j-api.jar and sl4j-jdk14.jar to your project. Alternatively, express a "
-"dependency on the <literal>org.jboss.weld:weld-logger</literal> Maven "
-"artifact."
-msgstr ""
-"Você pode adicionar o Web Beans Logger no seu projeto através da inclusão de "
-"webbeans-logger.jar e webbeans-logging.jar no seu projeto. Alternativamente, "
-"expressar uma dependência do artefato Maven <literal>org.jboss.webbeans:"
-"webbeans-logger</literal> ."
+msgid "You can add the Weld Logger to your project by including weld-logger.jar, sl4j-api.jar and sl4j-jdk14.jar to your project. Alternatively, express a dependency on the <literal>org.jboss.weld:weld-logger</literal> Maven artifact."
+msgstr "Você pode adicionar o Web Beans Logger no seu projeto através da inclusão de webbeans-logger.jar e webbeans-logging.jar no seu projeto. Alternativamente, expressar uma dependência do artefato Maven <literal>org.jboss.webbeans:webbeans-logger</literal> ."
#. Tag: para
#: extensions.xml:46
#, fuzzy, no-c-format
-msgid ""
-"If you are using Weld as your JSR-299 implementation, there's no need to "
-"include sl4j as it's already included (and used internally)."
-msgstr ""
-"Se você estiver utilizando a Web Beans como sua implementação da JSR-299, "
-"não há necessidade de incluir <literal>webbeans-logging.jar</literal> pois "
-"ele já está incluído."
+msgid "If you are using Weld as your JSR-299 implementation, there's no need to include sl4j as it's already included (and used internally)."
+msgstr "Se você estiver utilizando a Web Beans como sua implementação da JSR-299, não há necessidade de incluir <literal>webbeans-logging.jar</literal> pois ele já está incluído."
#~ msgid "TODO"
#~ msgstr "TODO"
-
#~ msgid "XSD Generator for JSR-299 XML deployment descriptors"
#~ msgstr "Gerador XSD para descritores de implantação XML da JSR-299 "
+
Modified: doc/trunk/reference/pt-BR/gettingstarted.po
===================================================================
--- doc/trunk/reference/pt-BR/gettingstarted.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/gettingstarted.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,7 +6,7 @@
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-06-13 11:16-0300\n"
+"PO-Revision-Date: 2009-12-19 18:01-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -22,23 +22,13 @@
#. Tag: para
#: gettingstarted.xml:7
#, no-c-format
-msgid ""
-"Weld comes with two starter example applications, in addition to more "
-"specialized examples. The first, <literal>weld-numberguess</literal>, is a "
-"web (WAR) example containing only non-transactional managed beans. This "
-"example can be run on a wide range of servers, including JBoss AS, "
-"GlassFish, Apache Tomcat, Jetty, Google App Engine, and any compliant Java "
-"EE 6 container. The second example, <literal>weld-translator</literal>, is "
-"an enterprise (EAR) example that contains session beans. This example must "
-"be run on JBoss AS 5.2, Glassfish 3.0 or any compliant Java EE 6 container."
+msgid "Weld comes with two starter example applications, in addition to more specialized examples. The first, <literal>weld-numberguess</literal>, is a web (WAR) example containing only non-transactional managed beans. This example can be run on a wide range of servers, including JBoss AS, GlassFish, Apache Tomcat, Jetty, Google App Engine, and any compliant Java EE 6 container. The second example, <literal>weld-translator</literal>, is an enterprise (EAR) example that contains session beans. This example must be run on JBoss AS 5.2, Glassfish 3.0 or any compliant Java EE 6 container."
msgstr ""
#. Tag: para
#: gettingstarted.xml:16
#, no-c-format
-msgid ""
-"Both examples use JSF 2.0 as the web framework and, as such, can be found in "
-"the <literal>examples/jsf</literal> directory of the Weld distribution."
+msgid "Both examples use JSF 2.0 as the web framework and, as such, can be found in the <literal>examples/jsf</literal> directory of the Weld distribution."
msgstr ""
#. Tag: title
@@ -50,9 +40,7 @@
#. Tag: para
#: gettingstarted.xml:24
#, no-c-format
-msgid ""
-"To run the examples with the provided build scripts, you'll need the "
-"following:"
+msgid "To run the examples with the provided build scripts, you'll need the following:"
msgstr ""
#. Tag: para
@@ -76,9 +64,7 @@
#. Tag: para
#: gettingstarted.xml:39
#, no-c-format
-msgid ""
-"JBoss AS 5.2.0 (currently only nightly builds of JBoss AS 5.2.0.Beta1 are "
-"available),"
+msgid "JBoss AS 5.2.0 (currently only nightly builds of JBoss AS 5.2.0.Beta1 are available),"
msgstr ""
#. Tag: para
@@ -102,45 +88,31 @@
#. Tag: para
#: gettingstarted.xml:53
#, no-c-format
-msgid ""
-"(optionally) Maven 2.x, to run the examples in an embedded servlet container"
+msgid "(optionally) Maven 2.x, to run the examples in an embedded servlet container"
msgstr ""
#. Tag: para
#: gettingstarted.xml:58
#, no-c-format
-msgid ""
-"You'll need a full install of Ant 1.7.0. Some linux distributions only "
-"supply a partial installation of Ant which cause the build to fail. If you "
-"encounter problems, verify that ant-nodeps.jar is on the classpath."
+msgid "You'll need a full install of Ant 1.7.0. Some linux distributions only supply a partial installation of Ant which cause the build to fail. If you encounter problems, verify that ant-nodeps.jar is on the classpath."
msgstr ""
#. Tag: para
#: gettingstarted.xml:64
#, no-c-format
-msgid ""
-"In the next few sections, you'll be using the Ant command (<literal>ant</"
-"literal>) to invoke the Ant build script in each example to compile, "
-"assemble and deploy the example to JBoss AS and, for the WAR example, Apache "
-"Tomcat. You can also deploy the generated artifact (WAR or EAR) to any other "
-"container that supports Java EE 6, such as GlassFish 3."
+msgid "In the next few sections, you'll be using the Ant command (<literal>ant</literal>) to invoke the Ant build script in each example to compile, assemble and deploy the example to JBoss AS and, for the WAR example, Apache Tomcat. You can also deploy the generated artifact (WAR or EAR) to any other container that supports Java EE 6, such as GlassFish 3."
msgstr ""
#. Tag: para
#: gettingstarted.xml:71
#, no-c-format
-msgid ""
-"If you have Maven installed, you can use the Maven command (<literal>mvn</"
-"literal>) to compile and assemble the standalone artifact (WAR or EAR) and, "
-"for the WAR example, run it in an embedded container."
+msgid "If you have Maven installed, you can use the Maven command (<literal>mvn</literal>) to compile and assemble the standalone artifact (WAR or EAR) and, for the WAR example, run it in an embedded container."
msgstr ""
#. Tag: para
#: gettingstarted.xml:76
#, no-c-format
-msgid ""
-"The sections below cover the steps for deploying with both Ant and Maven in "
-"detail. Let's start with JBoss AS."
+msgid "The sections below cover the steps for deploying with both Ant and Maven in detail. Let's start with JBoss AS."
msgstr ""
#. Tag: title
@@ -152,27 +124,13 @@
#. Tag: para
#: gettingstarted.xml:83
#, no-c-format
-msgid ""
-"To deploy the examples to JBoss AS, you'll need <ulink src=\"http://jboss."
-"org/jbossas/\">JBoss AS 5.2.0.Beta1</ulink> or above. If a release of the "
-"JBoss AS 5.2 line isn't yet available, you can download a <ulink src="
-"\"http://hudson.jboss.org/hudson/view/JBoss%20AS/job/JBoss-AS-5.x-sun16/"
-"\">nightly snapshot</ulink>. The reason JBoss AS 5.2.0.Beta1 or above is "
-"required is because it's the first release that has both CDI and Bean "
-"Validation support built-in, making it close enough to Java EE 6 to run the "
-"examples. The good news is that there are no additional modifications you "
-"have to make to the server. It's ready to go!"
+msgid "To deploy the examples to JBoss AS, you'll need <ulink src=\"http://jboss.org/jbossas/\">JBoss AS 5.2.0.Beta1</ulink> or above. If a release of the JBoss AS 5.2 line isn't yet available, you can download a <ulink src=\"http://hudson.jboss.org/hudson/view/JBoss%20AS/job/JBoss-AS-5.x-sun16/\">nightly snapshot</ulink>. The reason JBoss AS 5.2.0.Beta1 or above is required is because it's the first release that has both CDI and Bean Validation support built-in, making it close enough to Java EE 6 to run the examples. The good news is that there are no additional modifications you have to make to the server. It's ready to go!"
msgstr ""
#. Tag: para
#: gettingstarted.xml:92
#, no-c-format
-msgid ""
-"After you have downloaded JBoss AS, extract it. (We recommended renaming the "
-"folder to include the <literal>as</literal> qualifier so it's clear that "
-"it's the application server). You can move the extracted folder anywhere you "
-"like. Wherever it lays to rest, that's what we'll call the JBoss AS "
-"installation directory, or <literal>JBOSS_HOME</literal>."
+msgid "After you have downloaded JBoss AS, extract it. (We recommended renaming the folder to include the <literal>as</literal> qualifier so it's clear that it's the application server). You can move the extracted folder anywhere you like. Wherever it lays to rest, that's what we'll call the JBoss AS installation directory, or <literal>JBOSS_HOME</literal>."
msgstr ""
#. Tag: programlisting
@@ -186,52 +144,41 @@
#. Tag: para
#: gettingstarted.xml:101
#, no-c-format
-msgid ""
-"In order for the build scripts to know where to deploy the example, you have "
-"to tell them where to find your JBoss AS installation (i.e., "
-"<literal>JBOSS_HOME</literal>). Create a new file named<literal>local.build."
-"properties</literal> in the examples directory of the Weld distribution and "
-"assign the path of your JBoss AS installation to the property key "
-"<literal>jboss.home</literal>, as follows:"
+msgid "In order for the build scripts to know where to deploy the example, you have to tell them where to find your JBoss AS installation (i.e., <literal>JBOSS_HOME</literal>). Create a new file named<literal>local.build.properties</literal> in the examples directory of the Weld distribution and assign the path of your JBoss AS installation to the property key <literal>jboss.home</literal>, as follows:"
msgstr ""
#. Tag: programlisting
#: gettingstarted.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[jboss.home=/path/to/jboss-as-5.2]]>"
-msgstr "jboss.home=/Applications/jboss-5.0.1.GA"
+msgstr "<![CDATA[jboss.home=/path/to/jboss-as-5.2]]>"
#. Tag: para
#: gettingstarted.xml:110
#, fuzzy, no-c-format
msgid "You're now ready to deploy your first example!"
-msgstr ""
-"Agora, você está pronto para fazer a publicação do seu primeiro exemplo!"
+msgstr "Agora, você está pronto para fazer a publicação do seu primeiro exemplo!"
#. Tag: para
#: gettingstarted.xml:114
#, no-c-format
-msgid ""
-"Switch to the <literal>examples/jsf/numberguess</literal> directory and "
-"execute the Ant <literal>deploy</literal> target:"
+msgid "Switch to the <literal>examples/jsf/numberguess</literal> directory and execute the Ant <literal>deploy</literal> target:"
msgstr ""
#. Tag: programlisting
#: gettingstarted.xml:119
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[$> cd examples/jsf/numberguess\n"
"$> ant deploy]]>"
msgstr ""
-"$ cd examples/numberguess\n"
-"ant deploy"
+"<![CDATA[$> cd examples/jsf/numberguess\n"
+"$> ant deploy]]>"
#. Tag: para
#: gettingstarted.xml:121
#, no-c-format
-msgid ""
-"If you haven't already, start JBoss AS. You can either start JBoss AS from a "
-"Linux shell:"
+msgid "If you haven't already, start JBoss AS. You can either start JBoss AS from a Linux shell:"
msgstr ""
#. Tag: programlisting
@@ -241,9 +188,12 @@
"<![CDATA[$> cd /path/to/jboss-as-5.2\n"
"$> ./bin/run.sh]]>"
msgstr ""
+"<![CDATA[$> cd /path/to/jboss-as-5.2\n"
+"$> ./bin/run.sh]]>"
#. Tag: para
-#: gettingstarted.xml:127 gettingstarted.xml:369
+#: gettingstarted.xml:127
+#: gettingstarted.xml:369
#, no-c-format
msgid "a Windows command window:"
msgstr ""
@@ -255,9 +205,12 @@
"<![CDATA[$> cd c:\\path\\to\\jboss-as-5.2\\bin\n"
"$> run]]>"
msgstr ""
+"<![CDATA[$> cd c:\\path\\to\\jboss-as-5.2\\bin\n"
+"$> run]]>"
#. Tag: para
-#: gettingstarted.xml:133 gettingstarted.xml:375
+#: gettingstarted.xml:133
+#: gettingstarted.xml:375
#, no-c-format
msgid "or you can start the server using an IDE, like Eclipse."
msgstr ""
@@ -265,59 +218,38 @@
#. Tag: para
#: gettingstarted.xml:138
#, no-c-format
-msgid ""
-"If you are using Eclipse, you should seriously consider installing the "
-"<ulink src=\"http://www.jboss.org/tools\">JBoss Tools</ulink> add-ons, which "
-"include a wide variety of tooling for JSR-299 and Java EE development, as "
-"well as an enhanced JBoss AS server view."
+msgid "If you are using Eclipse, you should seriously consider installing the <ulink src=\"http://www.jboss.org/tools\">JBoss Tools</ulink> add-ons, which include a wide variety of tooling for JSR-299 and Java EE development, as well as an enhanced JBoss AS server view."
msgstr ""
#. Tag: para
#: gettingstarted.xml:145
#, no-c-format
-msgid ""
-"Wait a few seconds for the application to deploy (or the application server "
-"to start) and see if you can determine the most efficient approach to "
-"pinpoint the random number at the local URL <ulink src=\"http://"
-"localhost:8080/weld-numberguess\">http://localhost:8080/weld-numberguess</"
-"ulink>."
+msgid "Wait a few seconds for the application to deploy (or the application server to start) and see if you can determine the most efficient approach to pinpoint the random number at the local URL <ulink src=\"http://localhost:8080/weld-numberguess\">http://localhost:8080/weld-numberguess</ulink>."
msgstr ""
#. Tag: para
#: gettingstarted.xml:152
#, no-c-format
-msgid ""
-"The Ant build script includes additional targets for JBoss AS to deploy and "
-"undeploy the archive in either exploded or packaged format and to tidy "
-"things up."
+msgid "The Ant build script includes additional targets for JBoss AS to deploy and undeploy the archive in either exploded or packaged format and to tidy things up."
msgstr ""
#. Tag: para
#: gettingstarted.xml:158
#, fuzzy, no-c-format
-msgid ""
-"<literal>ant restart</literal> - deploy the example in exploded format to "
-"JBoss AS"
-msgstr ""
-"<literal>ant restart</literal> - implanta o exemplo no formato explodido"
+msgid "<literal>ant restart</literal> - deploy the example in exploded format to JBoss AS"
+msgstr "<literal>ant restart</literal> - implanta o exemplo no formato explodido"
#. Tag: para
#: gettingstarted.xml:163
#, no-c-format
-msgid ""
-"<literal>ant explode</literal> - update an exploded example, without "
-"restarting the deployment"
-msgstr ""
-"<literal>ant explode</literal> - atualiza o exemplo explodido, sem reiniciar "
+msgid "<literal>ant explode</literal> - update an exploded example, without restarting the deployment"
+msgstr "<literal>ant explode</literal> - atualiza o exemplo explodido, sem reiniciar "
#. Tag: para
#: gettingstarted.xml:168
#, fuzzy, no-c-format
-msgid ""
-"<literal>ant deploy</literal> - deploy the example in compressed jar format "
-"to JBoss AS"
-msgstr ""
-"<literal>ant deploy</literal> - implanta o exemplo no formato jar compactado"
+msgid "<literal>ant deploy</literal> - deploy the example in compressed jar format to JBoss AS"
+msgstr "<literal>ant deploy</literal> - implanta o exemplo no formato jar compactado"
#. Tag: para
#: gettingstarted.xml:173
@@ -334,51 +266,35 @@
#. Tag: para
#: gettingstarted.xml:185
#, no-c-format
-msgid ""
-"The second starter example, <literal>weld-translator</literal>, will "
-"translate your text into Latin. (Well, not really, but the stub is there for "
-"you to implement, at least. Good luck!) To try it out, switch to the "
-"translator example directory and execute the deploy target:"
+msgid "The second starter example, <literal>weld-translator</literal>, will translate your text into Latin. (Well, not really, but the stub is there for you to implement, at least. Good luck!) To try it out, switch to the translator example directory and execute the deploy target:"
msgstr ""
#. Tag: programlisting
#: gettingstarted.xml:191
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[$> cd examples/jsf/translator\n"
"$> ant deploy]]>"
msgstr ""
-"$ cd examples/translator\n"
-"ant deploy"
+"<![CDATA[$> cd examples/jsf/translator\n"
+"$> ant deploy]]>"
#. Tag: para
#: gettingstarted.xml:194
#, no-c-format
-msgid ""
-"The translator uses session beans, which are packaged in an EJB module "
-"within an EAR. Java EE 6 will allow session beans to be deployed in WAR "
-"modules, but that's a topic for a later chapter."
+msgid "The translator uses session beans, which are packaged in an EJB module within an EAR. Java EE 6 will allow session beans to be deployed in WAR modules, but that's a topic for a later chapter."
msgstr ""
#. Tag: para
#: gettingstarted.xml:200
#, fuzzy, no-c-format
-msgid ""
-"Again, wait a few seconds for the application to deploy (if you're really "
-"bored, read the log messages), and visit <ulink src=\"http://localhost:8080/"
-"weld-translator\">http://localhost:8080/weld-translator</ulink> to begin "
-"pseudo-translating."
-msgstr ""
-"Aqui nós definiremos o caminho do contexto, que nos dá uma url amigável "
-"(<ulink url=\"http://localhost:8080/webbeans-translator\">http://"
-"localhost:8080/webbeans-translator</ulink>). ulink>) ."
+msgid "Again, wait a few seconds for the application to deploy (if you're really bored, read the log messages), and visit <ulink src=\"http://localhost:8080/weld-translator\">http://localhost:8080/weld-translator</ulink> to begin pseudo-translating."
+msgstr "Aqui nós definiremos o caminho do contexto, que nos dá uma url amigável (<ulink url=\"http://localhost:8080/webbeans-translator\">http://localhost:8080/webbeans-translator</ulink>). ulink>) ."
#. Tag: para
#: gettingstarted.xml:206
#, no-c-format
-msgid ""
-"TODO Insert note about upgrading the Weld deployer that directs reader to "
-"section on the JBoss AS environment"
+msgid "TODO Insert note about upgrading the Weld deployer that directs reader to section on the JBoss AS environment"
msgstr ""
#. Tag: title
@@ -390,26 +306,13 @@
#. Tag: para
#: gettingstarted.xml:215
#, no-c-format
-msgid ""
-"Deploying to GlassFish should be easy, right? After all, it's the Java EE 6 "
-"reference implementation. Since it's the Java EE 6 reference implementation, "
-"that means it also bundles the JSR-299 reference implementation, Weld! So "
-"yes, it's very easy."
+msgid "Deploying to GlassFish should be easy, right? After all, it's the Java EE 6 reference implementation. Since it's the Java EE 6 reference implementation, that means it also bundles the JSR-299 reference implementation, Weld! So yes, it's very easy."
msgstr ""
#. Tag: para
#: gettingstarted.xml:221
#, no-c-format
-msgid ""
-"To deploy the examples to GlassFish, you'll need the final <ulink src="
-"\"https://glassfish.dev.java.net/\">GlassFish V3</ulink> release (the "
-"preview release won't do). If the final release isn't yet available, you can "
-"download a <ulink src=\"http://download.java.net/glassfish/v3/promoted/"
-"\">promoted build</ulink> in the meantime. Select the b69 preview release or "
-"above that ends in either <literal>-unix.sh</literal> or <literal>-windows."
-"exe</literal> depending on your platform. After the download is complete, "
-"execute the installer. On Linux/Unix, you'll need to first make the script "
-"executable."
+msgid "To deploy the examples to GlassFish, you'll need the final <ulink src=\"https://glassfish.dev.java.net/\">GlassFish V3</ulink> release (the preview release won't do). If the final release isn't yet available, you can download a <ulink src=\"http://download.java.net/glassfish/v3/promoted/\">promoted build</ulink> in the meantime. Select the b69 preview release or above that ends in either <literal>-unix.sh</literal> or <literal>-windows.exe</literal> depending on your platform. After the download is complete, execute the installer. On Linux/Unix, you'll need to first make the script executable."
msgstr ""
#. Tag: programlisting
@@ -419,26 +322,19 @@
"<![CDATA[$> chmod 755 glassfish-v3-b69-unix.sh\n"
"$> ./glassfish-v3-b69-unix.sh]]>"
msgstr ""
+"<![CDATA[$> chmod 755 glassfish-v3-b69-unix.sh\n"
+"$> ./glassfish-v3-b69-unix.sh]]>"
#. Tag: para
#: gettingstarted.xml:233
#, no-c-format
-msgid ""
-"On Windows you can just click on the executable. Follow the instructions in "
-"the installer. It will create a single domain named <literal>domain1</"
-"literal>. You'll use that domain to deploy the example. We recommend that "
-"you choose <literal>7070</literal> as the main HTTP port to avoid conflicts "
-"with a running instance of JBoss AS (or Apache Tomcat)."
+msgid "On Windows you can just click on the executable. Follow the instructions in the installer. It will create a single domain named <literal>domain1</literal>. You'll use that domain to deploy the example. We recommend that you choose <literal>7070</literal> as the main HTTP port to avoid conflicts with a running instance of JBoss AS (or Apache Tomcat)."
msgstr ""
#. Tag: para
#: gettingstarted.xml:240
#, no-c-format
-msgid ""
-"If you've deployed either of the starter examples, <literal>weld-"
-"numberguess</literal> or <literal>weld-translator</literal>, to JBoss AS, "
-"then you already have the deployable artifact you need. If not, switch to "
-"either of the two directories and build it."
+msgid "If you've deployed either of the starter examples, <literal>weld-numberguess</literal> or <literal>weld-translator</literal>, to JBoss AS, then you already have the deployable artifact you need. If not, switch to either of the two directories and build it."
msgstr ""
#. Tag: programlisting
@@ -448,60 +344,37 @@
"<![CDATA[$> cd examples/jsf/numberguess (or examples/jsf/translator)\n"
"$> ant package]]>"
msgstr ""
+"<![CDATA[$> cd examples/jsf/numberguess (or examples/jsf/translator)\n"
+"$> ant package]]>"
#. Tag: para
#: gettingstarted.xml:248
#, no-c-format
-msgid ""
-"The deployable archive for the <literal>weld-numberguess</literal>, named "
-"<literal>weld-numberguess.war</literal>, ends up in the example's "
-"<literal>target</literal> directory. The archive for the <literal>weld-"
-"translator</literal> example, named <literal>weld-translator.ear</literal>, "
-"ends up in the example's <literal>ear/target</literal> directory. All you "
-"need to do now is deploy them to GlassFish."
+msgid "The deployable archive for the <literal>weld-numberguess</literal>, named <literal>weld-numberguess.war</literal>, ends up in the example's <literal>target</literal> directory. The archive for the <literal>weld-translator</literal> example, named <literal>weld-translator.ear</literal>, ends up in the example's <literal>ear/target</literal> directory. All you need to do now is deploy them to GlassFish."
msgstr ""
#. Tag: para
#: gettingstarted.xml:255
#, no-c-format
-msgid ""
-"You deploy applications to GlassFish using the <ulink src=\"http://"
-"localhost:4848\">GlassFish Admin Console</ulink>. To get the Admin Console "
-"running, you need to start a GlassFish domain, in our case <literal>domain1</"
-"literal>. Switch to the <literal>bin</literal> folder in the directory where "
-"you installed GlassFish and execute the following command:"
+msgid "You deploy applications to GlassFish using the <ulink src=\"http://localhost:4848\">GlassFish Admin Console</ulink>. To get the Admin Console running, you need to start a GlassFish domain, in our case <literal>domain1</literal>. Switch to the <literal>bin</literal> folder in the directory where you installed GlassFish and execute the following command:"
msgstr ""
#. Tag: programlisting
#: gettingstarted.xml:262
#, no-c-format
msgid "<![CDATA[$> asadmin start-domain domain1]]>"
-msgstr ""
+msgstr "<![CDATA[$> asadmin start-domain domain1]]>"
#. Tag: para
#: gettingstarted.xml:264
#, no-c-format
-msgid ""
-"After a few seconds you can visit the Admin Console in the browser at the "
-"URL <ulink src=\"http://localhost:4848\">http://localhost:4848</ulink>. In "
-"the tree on the left-hand side of the page, click on \"Applications\", then "
-"click on the \"Deploy...\" button under the heading \"Applications\" and "
-"select the deployable artifact for either of the two examples. The deployer "
-"should recognize that you have selected a Java EE artifact and allow you to "
-"start it. You can see the examples running at either <ulink src=\"http://"
-"localhost:7070/weld-numberguess\">http://localhost:7070/weld-numberguess</"
-"ulink> or <ulink src=\"http://localhost:7070/weld-translator\">http://"
-"localhost:7070/weld-translator</ulink>, depending on which example you "
-"deployed."
+msgid "After a few seconds you can visit the Admin Console in the browser at the URL <ulink src=\"http://localhost:4848\">http://localhost:4848</ulink>. In the tree on the left-hand side of the page, click on \"Applications\", then click on the \"Deploy...\" button under the heading \"Applications\" and select the deployable artifact for either of the two examples. The deployer should recognize that you have selected a Java EE artifact and allow you to start it. You can see the examples running at either <ulink src=\"http://localhost:7070/weld-numberguess\">http://localhost:7070/weld-numberguess</ulink> or <ulink src=\"http://localhost:7070/weld-translator\">http://localhost:7070/weld-translator</ulink>, depending on which example you deployed."
msgstr ""
#. Tag: para
#: gettingstarted.xml:276
#, no-c-format
-msgid ""
-"The reason the same artifact can be deployed to both JBoss AS and GlassFish, "
-"without any modifications, is because all of the features being used are "
-"part of the standard platform. And what a capable platform it has become!"
+msgid "The reason the same artifact can be deployed to both JBoss AS and GlassFish, without any modifications, is because all of the features being used are part of the standard platform. And what a capable platform it has become!"
msgstr ""
#. Tag: title
@@ -513,52 +386,31 @@
#. Tag: para
#: gettingstarted.xml:287
#, no-c-format
-msgid ""
-"Servlet containers are not required to support Java EE services like CDI. "
-"However, you can use CDI in a servlet container like Tomcat by embedding a "
-"standalone CDI implementation such as Weld."
+msgid "Servlet containers are not required to support Java EE services like CDI. However, you can use CDI in a servlet container like Tomcat by embedding a standalone CDI implementation such as Weld."
msgstr ""
#. Tag: para
#: gettingstarted.xml:291
#, no-c-format
-msgid ""
-"Weld comes with a servlet listener which bootstraps the CDI environment, "
-"registers the <literal>BeanManager</literal> in JNDI and provides injection "
-"into servlets. Basically, it emulates some of the work done by the Java EE "
-"container. (But you don't get enterprise features such as session beans and "
-"container-managed transactions.)"
+msgid "Weld comes with a servlet listener which bootstraps the CDI environment, registers the <literal>BeanManager</literal> in JNDI and provides injection into servlets. Basically, it emulates some of the work done by the Java EE container. (But you don't get enterprise features such as session beans and container-managed transactions.)"
msgstr ""
#. Tag: para
#: gettingstarted.xml:297
#, fuzzy, no-c-format
-msgid ""
-"Let's give the Weld servlet extension a spin on Apache Tomcat. First, you'll "
-"need to download Tomcat 6.0.18 or later from <ulink src=\"http://tomcat."
-"apache.org/download-60.cgi\">tomcat.apache.org</ulink> and extract it."
-msgstr ""
-"Depois, faça o download do Tomcat 6.0.18 ou posterior em <ulink url=\"http://"
-"tomcat.apache.org/download-60.cgi\">tomcat.apache.org</ulink>, e descompacte-"
-"o. Por exemplo"
+msgid "Let's give the Weld servlet extension a spin on Apache Tomcat. First, you'll need to download Tomcat 6.0.18 or later from <ulink src=\"http://tomcat.apache.org/download-60.cgi\">tomcat.apache.org</ulink> and extract it."
+msgstr "Depois, faça o download do Tomcat 6.0.18 ou posterior em <ulink url=\"http://tomcat.apache.org/download-60.cgi\">tomcat.apache.org</ulink>, e descompacte-o. Por exemplo"
#. Tag: programlisting
#: gettingstarted.xml:302
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[$> unzip apache-tomcat-6.0.18.zip]]>"
-msgstr ""
-"<![CDATA[$ cd /Applications\n"
-"$ unzip ~/apache-tomcat-6.0.18.zip]]>"
+msgstr "<![CDATA[$> unzip apache-tomcat-6.0.18.zip]]>"
#. Tag: para
#: gettingstarted.xml:304
#, no-c-format
-msgid ""
-"You have two choices for how you can deploy the application to Tomcat. You "
-"can deploy it by pushing the artifact to the hot deploy directory using Ant "
-"or you can deploy to the server across HTTP using a Maven plugin. The Ant "
-"approach doesn't require that you have Maven installed, so we'll start "
-"there. If you want to use Maven, you can just skip ahead."
+msgid "You have two choices for how you can deploy the application to Tomcat. You can deploy it by pushing the artifact to the hot deploy directory using Ant or you can deploy to the server across HTTP using a Maven plugin. The Ant approach doesn't require that you have Maven installed, so we'll start there. If you want to use Maven, you can just skip ahead."
msgstr ""
#. Tag: title
@@ -570,20 +422,14 @@
#. Tag: para
#: gettingstarted.xml:314
#, no-c-format
-msgid ""
-"In order for Ant to push the artifact to the Tomcat hot deploy directory, it "
-"needs to know where the Tomcat installation is located. Again, we need to "
-"set a property in the <literal>local.build.properties</literal> file in the "
-"examples directory of the Weld distribution. If you haven't yet created this "
-"file, do so now. Then assign the path of your Tomcat installation to the "
-"property key <literal>tomcat.home</literal>."
+msgid "In order for Ant to push the artifact to the Tomcat hot deploy directory, it needs to know where the Tomcat installation is located. Again, we need to set a property in the <literal>local.build.properties</literal> file in the examples directory of the Weld distribution. If you haven't yet created this file, do so now. Then assign the path of your Tomcat installation to the property key <literal>tomcat.home</literal>."
msgstr ""
#. Tag: programlisting
#: gettingstarted.xml:321
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[tomcat.home=/path/to/apache-tomcat-6]]>"
-msgstr "tomcat.home=/Applications/apache-tomcat-6.0.18"
+msgstr "<![CDATA[tomcat.home=/path/to/apache-tomcat-6]]>"
#. Tag: para
#: gettingstarted.xml:323
@@ -594,59 +440,42 @@
#. Tag: para
#: gettingstarted.xml:327
#, no-c-format
-msgid ""
-"Change to the <literal>examples/jsf/numberguess</literal> directory again "
-"and run the Ant <literal>deploy</literal> target for Tomcat:"
+msgid "Change to the <literal>examples/jsf/numberguess</literal> directory again and run the Ant <literal>deploy</literal> target for Tomcat:"
msgstr ""
#. Tag: programlisting
#: gettingstarted.xml:332
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[$> cd examples/jsf/numberguess\n"
"$> ant tomcat.deploy]]>"
msgstr ""
-"$ cd examples/numberguess\n"
-"ant deploy"
+"<![CDATA[$> cd examples/jsf/numberguess\n"
+"$> ant tomcat.deploy]]>"
#. Tag: para
#: gettingstarted.xml:335
#, no-c-format
-msgid ""
-"The Ant build script includes additional targets for Tomcat to deploy and "
-"undeploy the archive in either exploded or packaged format. They are the "
-"same target names used for JBoss AS, prefixed with \"tomcat.\"."
+msgid "The Ant build script includes additional targets for Tomcat to deploy and undeploy the archive in either exploded or packaged format. They are the same target names used for JBoss AS, prefixed with \"tomcat.\"."
msgstr ""
#. Tag: para
#: gettingstarted.xml:341
#, fuzzy, no-c-format
-msgid ""
-"<literal>ant tomcat.restart</literal> - deploy the example in exploded "
-"format to Tomcat"
-msgstr ""
-"<literal>ant tomcat.restart</literal> - publica o exemplo no formato "
-"explodido"
+msgid "<literal>ant tomcat.restart</literal> - deploy the example in exploded format to Tomcat"
+msgstr "<literal>ant tomcat.restart</literal> - publica o exemplo no formato explodido"
#. Tag: para
#: gettingstarted.xml:346
#, no-c-format
-msgid ""
-"<literal>ant tomcat.explode</literal> - update an exploded example, without "
-"restarting the deployment"
-msgstr ""
-"<literal>ant tomcat.explode</literal> - atualiza o exemplo explodido, sem "
-"reiniciar "
+msgid "<literal>ant tomcat.explode</literal> - update an exploded example, without restarting the deployment"
+msgstr "<literal>ant tomcat.explode</literal> - atualiza o exemplo explodido, sem reiniciar "
#. Tag: para
#: gettingstarted.xml:351
#, fuzzy, no-c-format
-msgid ""
-"<literal>ant tomcat.deploy</literal> - deploy the example in compressed jar "
-"format to Tomcat"
-msgstr ""
-"<literal>ant tomcat.deploy</literal> - publica o exemplo no formato jar "
-"compactado"
+msgid "<literal>ant tomcat.deploy</literal> - deploy the example in compressed jar format to Tomcat"
+msgstr "<literal>ant tomcat.deploy</literal> - publica o exemplo no formato jar compactado"
#. Tag: para
#: gettingstarted.xml:356
@@ -657,38 +486,33 @@
#. Tag: para
#: gettingstarted.xml:363
#, no-c-format
-msgid ""
-"If you haven't already, start Tomcat. You can either start Tomcat from a "
-"Linux shell:"
+msgid "If you haven't already, start Tomcat. You can either start Tomcat from a Linux shell:"
msgstr ""
#. Tag: programlisting
#: gettingstarted.xml:367
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[$> cd /path/to/apache-tomcat-6\n"
"$> ./bin/start.sh]]>"
-msgstr "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
+msgstr ""
+"<![CDATA[$> cd /path/to/apache-tomcat-6\n"
+"$> ./bin/start.sh]]>"
#. Tag: programlisting
#: gettingstarted.xml:373
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[$> cd c:\\path\\to\\apache-tomcat-6\\bin\n"
"$> start]]>"
msgstr ""
-"<![CDATA[$ cd /Applications\n"
-"$ unzip ~/apache-tomcat-6.0.18.zip]]>"
+"<![CDATA[$> cd c:\\path\\to\\apache-tomcat-6\\bin\n"
+"$> start]]>"
#. Tag: para
#: gettingstarted.xml:379
#, no-c-format
-msgid ""
-"Wait a few seconds for the application to deploy (or the application server "
-"to start) and see if you can figure out the most efficient approach to "
-"pinpoint the random number at the local URL <ulink src=\"http://"
-"localhost:8080/weld-numberguess\">http://localhost:8080/weld-numberguess</"
-"ulink>!"
+msgid "Wait a few seconds for the application to deploy (or the application server to start) and see if you can figure out the most efficient approach to pinpoint the random number at the local URL <ulink src=\"http://localhost:8080/weld-numberguess\">http://localhost:8080/weld-numberguess</ulink>!"
msgstr ""
#. Tag: title
@@ -700,114 +524,85 @@
#. Tag: para
#: gettingstarted.xml:390
#, no-c-format
-msgid ""
-"You can also deploy the application to Tomcat using Maven. This section is a "
-"bit more advanced, so skip it unless you're itching to use Maven natively. "
-"Of course, you'll first need to make sure that you have Maven installed on "
-"your path, similar to how you setup Ant."
+msgid "You can also deploy the application to Tomcat using Maven. This section is a bit more advanced, so skip it unless you're itching to use Maven natively. Of course, you'll first need to make sure that you have Maven installed on your path, similar to how you setup Ant."
msgstr ""
#. Tag: para
#: gettingstarted.xml:396
#, no-c-format
-msgid ""
-"The Maven plugin communicates with Tomcat over HTTP, so it doesn't care "
-"where you have installed Tomcat. However, the plugin configuration assumes "
-"you are running Tomcat in its default configuration, with a hostname of "
-"localhost and port <literal>8080</literal>. The <literal>readme.txt</"
-"literal> file in the example directory has information about how to modify "
-"the Maven settings to accommodate a different setup."
+msgid "The Maven plugin communicates with Tomcat over HTTP, so it doesn't care where you have installed Tomcat. However, the plugin configuration assumes you are running Tomcat in its default configuration, with a hostname of localhost and port <literal>8080</literal>. The <literal>readme.txt</literal> file in the example directory has information about how to modify the Maven settings to accommodate a different setup."
msgstr ""
#. Tag: para
#: gettingstarted.xml:403
#, no-c-format
-msgid ""
-"To allow Maven to communicate with Tomcat over HTTP, edit the <literal>conf/"
-"tomcat-users.xml</literal> file in your Tomcat installation and add the "
-"following line:"
+msgid "To allow Maven to communicate with Tomcat over HTTP, edit the <literal>conf/tomcat-users.xml</literal> file in your Tomcat installation and add the following line:"
msgstr ""
#. Tag: programlisting
#: gettingstarted.xml:408
#, no-c-format
msgid "<![CDATA[<user username=\"admin\" password=\"\" roles=\"manager\"/>]]>"
-msgstr ""
+msgstr "<![CDATA[<user username=\"admin\" password=\"\" roles=\"manager\"/>]]>"
#. Tag: para
#: gettingstarted.xml:410
#, no-c-format
-msgid ""
-"Restart Tomcat. You can now deploy the application to Tomcat with Maven "
-"using this command:"
+msgid "Restart Tomcat. You can now deploy the application to Tomcat with Maven using this command:"
msgstr ""
#. Tag: programlisting
#: gettingstarted.xml:414
#, no-c-format
msgid "<![CDATA[$> mvn compile war:exploded tomcat:exploded -Ptomcat]]>"
-msgstr ""
+msgstr "<![CDATA[$> mvn compile war:exploded tomcat:exploded -Ptomcat]]>"
#. Tag: para
#: gettingstarted.xml:416
#, no-c-format
-msgid ""
-"Once the application is deployed, you can redeploy it using this command:"
+msgid "Once the application is deployed, you can redeploy it using this command:"
msgstr ""
#. Tag: programlisting
#: gettingstarted.xml:420
#, no-c-format
msgid "<![CDATA[$> mvn tomcat:redeploy -Ptomcat]]>"
-msgstr ""
+msgstr "<![CDATA[$> mvn tomcat:redeploy -Ptomcat]]>"
#. Tag: para
#: gettingstarted.xml:422
#, no-c-format
-msgid ""
-"The <literal>-Ptomcat</literal> argument activates the <literal>tomcat</"
-"literal> profile defined in the Maven POM (<literal>pom.xml</literal>). "
-"Among other things, this profile activates the Tomcat plugin."
+msgid "The <literal>-Ptomcat</literal> argument activates the <literal>tomcat</literal> profile defined in the Maven POM (<literal>pom.xml</literal>). Among other things, this profile activates the Tomcat plugin."
msgstr ""
#. Tag: para
#: gettingstarted.xml:427
#, no-c-format
-msgid ""
-"Rather than shipping the container off to a standalone Tomcat installation, "
-"you can also execute the application in an embedded Tomcat 6 container:"
+msgid "Rather than shipping the container off to a standalone Tomcat installation, you can also execute the application in an embedded Tomcat 6 container:"
msgstr ""
#. Tag: programlisting
#: gettingstarted.xml:432
#, no-c-format
msgid "<![CDATA[$> mvn war:inplace tomcat:run -Ptomcat]]>"
-msgstr ""
+msgstr "<![CDATA[$> mvn war:inplace tomcat:run -Ptomcat]]>"
#. Tag: para
#: gettingstarted.xml:434
#, no-c-format
-msgid ""
-"The advantage of using the embedded server is that changes to assets in "
-"<literal>src/main/webapp</literal> take effect immediately. If a change to a "
-"webapp configuration file is made, the application may automatically "
-"redeploy (depending on the plugin configuration). If you make a change to a "
-"classpath resource, you need to execute a build:"
+msgid "The advantage of using the embedded server is that changes to assets in <literal>src/main/webapp</literal> take effect immediately. If a change to a webapp configuration file is made, the application may automatically redeploy (depending on the plugin configuration). If you make a change to a classpath resource, you need to execute a build:"
msgstr ""
#. Tag: programlisting
#: gettingstarted.xml:441
#, no-c-format
msgid "<![CDATA[$> mvn compile war:inplace -Ptomcat]]>"
-msgstr ""
+msgstr "<![CDATA[$> mvn compile war:inplace -Ptomcat]]>"
#. Tag: para
#: gettingstarted.xml:443
#, no-c-format
-msgid ""
-"There are several other Maven goals that you can use if you are hacking on "
-"the example, which are documented in the example's <literal>readme.txt</"
-"literal> file."
+msgid "There are several other Maven goals that you can use if you are hacking on the example, which are documented in the example's <literal>readme.txt</literal> file."
msgstr ""
#. Tag: title
@@ -819,106 +614,65 @@
#. Tag: para
#: gettingstarted.xml:457
#, no-c-format
-msgid ""
-"Support for Jetty in the examples is a more recent addition. Since Jetty is "
-"traditionally used with Maven, there are no Ant targets. You must invoke the "
-"Maven build directly to deploy the examples to Jetty out of the box. Also, "
-"only the <literal>weld-numberguess</literal> example is configured for Jetty "
-"support at the time of writing."
+msgid "Support for Jetty in the examples is a more recent addition. Since Jetty is traditionally used with Maven, there are no Ant targets. You must invoke the Maven build directly to deploy the examples to Jetty out of the box. Also, only the <literal>weld-numberguess</literal> example is configured for Jetty support at the time of writing."
msgstr ""
#. Tag: para
#: gettingstarted.xml:464
#, no-c-format
-msgid ""
-"If you've read through the entire Tomcat section, then you're all ready to "
-"go. The Maven build parallels the embedded Tomcat deployment. If not, don't "
-"worry. We'll still go over everything that you need to know again in this "
-"section."
+msgid "If you've read through the entire Tomcat section, then you're all ready to go. The Maven build parallels the embedded Tomcat deployment. If not, don't worry. We'll still go over everything that you need to know again in this section."
msgstr ""
#. Tag: para
#: gettingstarted.xml:470
#, no-c-format
-msgid ""
-"The Maven POM (<literal>pom.xml</literal>) includes a profile named "
-"<literal>jetty</literal> that activates the Maven Jetty plugin, which you "
-"can use to start Jetty in embedded mode and deploy the application in place. "
-"You don't need anything else installed except to have the Maven command "
-"(<literal>mvn</literal>) on your path. The rest will be downloaded from the "
-"internet when the build is run."
+msgid "The Maven POM (<literal>pom.xml</literal>) includes a profile named <literal>jetty</literal> that activates the Maven Jetty plugin, which you can use to start Jetty in embedded mode and deploy the application in place. You don't need anything else installed except to have the Maven command (<literal>mvn</literal>) on your path. The rest will be downloaded from the internet when the build is run."
msgstr ""
#. Tag: para
#: gettingstarted.xml:479
#, no-c-format
-msgid ""
-"To run the <literal>weld-numberguess</literal> example on Jetty, switch to "
-"the example directory and execute the <literal>inplace</literal> goal of the "
-"Maven WAR plugin followed by the <literal>run</literal> goal of the Maven "
-"Jetty plugin with the <literal>jetty</literal> profile enabled, as follows:"
+msgid "To run the <literal>weld-numberguess</literal> example on Jetty, switch to the example directory and execute the <literal>inplace</literal> goal of the Maven WAR plugin followed by the <literal>run</literal> goal of the Maven Jetty plugin with the <literal>jetty</literal> profile enabled, as follows:"
msgstr ""
#. Tag: programlisting
#: gettingstarted.xml:485
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[$> cd examples/jsf/numberguess\n"
"$> mvn war:inplace jetty:run -Pjetty]]>"
msgstr ""
-"<![CDATA[cd examples/wicket/numberguess\n"
-"mvn -Pjetty eclipse:eclipse]]>"
+"<![CDATA[$> cd examples/jsf/numberguess\n"
+"$> mvn war:inplace jetty:run -Pjetty]]>"
#. Tag: para
#: gettingstarted.xml:487
#, no-c-format
-msgid ""
-"The log output of Jetty will be shown in the console. Once Jetty reports "
-"that the application has deployed, you can access it at the following local "
-"URL: <ulink src=\"http://localhost:9090/weld-numberguess\">http://"
-"localhost:9090/weld-numberguess</ulink>. The port is defined in the Maven "
-"Jetty plugin configuration within the <literal>jetty</literal> profile."
+msgid "The log output of Jetty will be shown in the console. Once Jetty reports that the application has deployed, you can access it at the following local URL: <ulink src=\"http://localhost:9090/weld-numberguess\">http://localhost:9090/weld-numberguess</ulink>. The port is defined in the Maven Jetty plugin configuration within the <literal>jetty</literal> profile."
msgstr ""
#. Tag: para
#: gettingstarted.xml:494
#, no-c-format
-msgid ""
-"Any changes to assets in <literal>src/main/webapp</literal> take effect "
-"immediately. If a change to a webapp configuration file is made, the "
-"application may automatically redeploy. The redeploy behavior can be fined-"
-"tuned in the plugin configuration. If you make a change to a classpath "
-"resource, you need to execute a build and the <literal>inplace</literal> "
-"goal of the Maven WAR plugin, again with the <literal>jetty</literal> "
-"profile enabled."
+msgid "Any changes to assets in <literal>src/main/webapp</literal> take effect immediately. If a change to a webapp configuration file is made, the application may automatically redeploy. The redeploy behavior can be fined-tuned in the plugin configuration. If you make a change to a classpath resource, you need to execute a build and the <literal>inplace</literal> goal of the Maven WAR plugin, again with the <literal>jetty</literal> profile enabled."
msgstr ""
#. Tag: programlisting
#: gettingstarted.xml:501
#, no-c-format
msgid "<![CDATA[$> mvn compile war:inplace -Pjetty]]>"
-msgstr ""
+msgstr "<![CDATA[$> mvn compile war:inplace -Pjetty]]>"
#. Tag: para
#: gettingstarted.xml:503
#, no-c-format
-msgid ""
-"The <literal>war:inplace</literal> goal copies the compiled classes and JARs "
-"inside <literal>src/main/webapp</literal>, under <literal>WEB-INF/classes</"
-"literal> and <literal>WEB-INF/lib</literal>, respectively, mixing source and "
-"compiled files. However, the build does work around these temporary files by "
-"excluding them from the packaged WAR and cleaning them during the Maven "
-"clean phase."
+msgid "The <literal>war:inplace</literal> goal copies the compiled classes and JARs inside <literal>src/main/webapp</literal>, under <literal>WEB-INF/classes</literal> and <literal>WEB-INF/lib</literal>, respectively, mixing source and compiled files. However, the build does work around these temporary files by excluding them from the packaged WAR and cleaning them during the Maven clean phase."
msgstr ""
#. Tag: para
#: gettingstarted.xml:510
#, no-c-format
-msgid ""
-"You have two options if you want to run the example on Jetty from the IDE. "
-"You can either install the m2eclispe[link] plugin and run the goals as "
-"described above. Your other option is to start the Jetty container from a "
-"Java application."
+msgid "You have two options if you want to run the example on Jetty from the IDE. You can either install the m2eclispe[link] plugin and run the goals as described above. Your other option is to start the Jetty container from a Java application."
msgstr ""
#. Tag: para
@@ -931,49 +685,36 @@
#: gettingstarted.xml:520
#, no-c-format
msgid "<![CDATA[$> mvn clean eclipse:clean eclipse:eclipse -Pjetty-ide]]>"
-msgstr ""
+msgstr "<![CDATA[$> mvn clean eclipse:clean eclipse:eclipse -Pjetty-ide]]>"
#. Tag: para
#: gettingstarted.xml:522
#, no-c-format
-msgid ""
-"Next, assemble all the necessary resources under <literal>src/main/webapp</"
-"literal>:"
+msgid "Next, assemble all the necessary resources under <literal>src/main/webapp</literal>:"
msgstr ""
#. Tag: programlisting
#: gettingstarted.xml:526
#, no-c-format
msgid "<![CDATA[$> mvn war:inplace -Pjetty-ide]]>"
-msgstr ""
+msgstr "<![CDATA[$> mvn war:inplace -Pjetty-ide]]>"
#. Tag: para
#: gettingstarted.xml:528
#, no-c-format
-msgid ""
-"Now, you are ready to run the server in Eclipse. Import the project into "
-"your Eclipse workspace using \"Import Existing Project into Workspace. Then, "
-"find the start class in <literal>src/jetty/java</literal> and run its main "
-"method as a Java Application. Jetty will launch. You can view the "
-"application at the following local URL: <ulink src=\"http://localhost:8080"
-"\">http://localhost:8080</ulink>. Pay particular attention to the port in "
-"the URL and the lack of a trailing context path."
+msgid "Now, you are ready to run the server in Eclipse. Import the project into your Eclipse workspace using \"Import Existing Project into Workspace. Then, find the start class in <literal>src/jetty/java</literal> and run its main method as a Java Application. Jetty will launch. You can view the application at the following local URL: <ulink src=\"http://localhost:8080\">http://localhost:8080</ulink>. Pay particular attention to the port in the URL and the lack of a trailing context path."
msgstr ""
#. Tag: para
#: gettingstarted.xml:536
#, no-c-format
-msgid ""
-"Now that you have gotten the starter applications deployed on the server of "
-"your choice, you probably want to know a little bit about how they actually "
-"work."
+msgid "Now that you have gotten the starter applications deployed on the server of your choice, you probably want to know a little bit about how they actually work."
msgstr ""
#, fuzzy
#~ msgid ""
#~ "Getting started with Web Beans, the Reference Implementation of JSR-299"
#~ msgstr "Web Beans, a Implementação de Referência da JSR-299"
-
#~ msgid ""
#~ "The Web Beans is being developed at <ulink url=\"http://seamframework.org/"
#~ "WebBeans\">the Seam project</ulink>. You can download the latest "
@@ -984,7 +725,6 @@
#~ "org/WebBeans\">projeto Seam</ulink>. Você pode baixar a última versão da "
#~ "Web Beans na <ulink url=\"http://seamframework.org/Download\">página de "
#~ "downloads</ulink>."
-
#~ msgid ""
#~ "Web Beans comes with a two deployable example applications: "
#~ "<literal>webbeans-numberguess</literal>, a war example, containing only "
@@ -1001,13 +741,10 @@
#~ "do exemplo numberguess: o exemplo tomcat (adequado para a implantação no "
#~ "Tomcat) e o exemplo jsf2, que você pode usar se estiver utilizando JSF2. "
#~ "Para executar os exemplos, você precisará do seguinte:"
-
#~ msgid "JBoss AS 5.0.1.GA, or"
#~ msgstr "JBoss AS 5.0.1.GA, e"
-
#~ msgid "Ant 1.7.0."
#~ msgstr "Ant 1.7.0."
-
#~ msgid ""
#~ "You'll need to download JBoss AS 5.0.1.GA from <ulink url=\"http://www."
#~ "jboss.org/jbossas/downloads/\">jboss.org</ulink>, and unzip it. For "
@@ -1016,28 +753,24 @@
#~ "Você precisará fazer o download do JBoss AS 5.0.1.GA em <ulink url="
#~ "\"http://www.jboss.org/jbossas/downloads/\">jboss.org</ulink> e "
#~ "descompactá-lo. Por exemplo:\""
-
#~ msgid ""
#~ "<![CDATA[$ cd /Applications\n"
#~ "$ unzip ~/jboss-5.0.1.GA.zip]]>"
#~ msgstr ""
#~ "<![CDATA[$ cd /Applications\n"
#~ "$ unzip ~/jboss-5.0.1.GA.zip]]>"
-
#~ msgid ""
#~ "Next, download Web Beans from <ulink url=\"http://seamframework.org/"
#~ "Download\">seamframework.org</ulink>, and unzip it. For example"
#~ msgstr ""
#~ "Depois, faça o download da Web Beans em <ulink url=\"http://seamframework."
#~ "org/Download\">seamframework.org</ulink> e descompacte-o. Por exemplo"
-
#~ msgid ""
#~ "<![CDATA[$ cd ~/\n"
#~ "$ unzip ~/webbeans-$VERSION.zip]]>"
#~ msgstr ""
#~ "<![CDATA[$ cd ~/\n"
#~ "$ unzip ~/webbeans-1.0.0.ALPHA1.zip]]>"
-
#~ msgid ""
#~ "Next, we need to tell Web Beans where JBoss is located. Edit "
#~ "<literal>jboss-as/build.properties</literal> and set the <literal>jboss."
@@ -1046,55 +779,45 @@
#~ "Em seguida, temos de dizer aos Web Beans onde o JBoss está localizado. "
#~ "Editar o <literal>jboss-as/build.properties</literal> e definir a "
#~ "propriedade <literal>jboss.home</literal>. Por exemplo:"
-
#~ msgid ""
#~ "To install Web Beans, you'll need Ant 1.7.0 installed, and the "
#~ "<literal>ANT_HOME</literal> environment variable set. For example:"
#~ msgstr ""
#~ "Para instalar a Web Beans, você precisará do Ant 1.7.0 instalado e a "
#~ "variável de ambiente <literal>ANT_HOME</literal> setada. Por exemplo:"
-
#~ msgid ""
#~ "$ unzip apache-ant-1.7.0.zip\n"
#~ "$ export ANT_HOME=~/apache-ant-1.7.0"
#~ msgstr ""
#~ "$ unzip apache-ant-1.7.0.zip\n"
#~ "$ export ANT_HOME=~/apache-ant-1.7.0"
-
#~ msgid ""
#~ "Then, you can install the update. The update script will use Maven to "
#~ "download Web Beans automatically."
#~ msgstr ""
#~ "Então, você pode instalar a atualização. O script de atualização "
#~ "utilizará o Maven para fazer o download da Web Beans automaticamente."
-
#~ msgid ""
#~ "$ cd webbeans-$VERSION/jboss-as\n"
#~ "$ ant update"
#~ msgstr ""
#~ "$ cd webbeans-1.0.0.ALPHA1/jboss-as\n"
#~ "$ ant update"
-
#~ msgid ""
#~ "The build scripts for the examples offer a number of targets for JBoss "
#~ "AS, these are:"
#~ msgstr ""
#~ "Os scripts para criar os exemplos oferecem uma série de alvos para JBoss "
#~ "AS, entre eles:"
-
#~ msgid "To deploy the numberguess example:"
#~ msgstr "Para implantar o exemplo numberguess:"
-
#~ msgid "Start JBoss AS:"
#~ msgstr "Inicializando o JBoss AS:"
-
#~ msgid "$ /Application/jboss-5.0.0.GA/bin/run.sh"
#~ msgstr "$ /Application/jboss-5.0.0.GA/bin/run.sh"
-
#~ msgid "If you use Windows, use the <literal>run.bat</literal>script."
#~ msgstr ""
#~ "Se você utiliza o Windows, utilize o script <literal>run.bat</literal>."
-
#~ msgid ""
#~ "Wait for the application to deploy, and enjoy hours of fun at <ulink url="
#~ "\"http://localhost:8080/webbeans-numberguess\"></ulink>!"
@@ -1102,7 +825,6 @@
#~ "Aguarde até que a aplicação seja implantada, e desfrute de horas de "
#~ "diversão em <ulink url=\"http://localhost:8080/webbeans-numberguess\"></"
#~ "ulink>!"
-
#~ msgid ""
#~ "Web Beans includes a second simple example that will translate your text "
#~ "into Latin. The numberguess example is a war example, and uses only "
@@ -1113,14 +835,12 @@
#~ "para o Latim. O exemplo numberguess é um war e usa apenas beans simples; "
#~ "o exemplo translator é um exemplo ear e inclui benas corporativos, "
#~ "empacotados em um módulo EJB. Para experimentá-lo:"
-
#~ msgid ""
#~ "Wait for the application to deploy, and visit <ulink url=\"http://"
#~ "localhost:8080/webbeans-translator\"></ulink>!"
#~ msgstr ""
#~ "Aguarde até que a aplicação seja implantada, e acesse <ulink url="
#~ "\"http://localhost:8080/webbeans-translator\"></ulink>!"
-
#~ msgid ""
#~ "Next, we need to tell Web Beans where Tomcat is located. Edit "
#~ "<literal>jboss-as/build.properties</literal> and set the <literal>tomcat."
@@ -1129,7 +849,6 @@
#~ "Em seguida, temos de dizer aos Web Beans onde o Tomcat está localizado. "
#~ "Editar o <literal>jboss-as/build.properties</literal> e definir a "
#~ "propriedade <literal>tomcat.home</literal>. Por exemplo:"
-
#~ msgid ""
#~ "The build scripts for the examples offer a number of targets for Tomcat, "
#~ "these are:"
@@ -1151,31 +870,24 @@
#~ "format) from the server"
#~ msgstr ""
#~ "<literal>ant tomcat.undeploy</literal> - remove o exemplo do servidor"
-
#~ msgid "<literal>ant tomcat.clean</literal> - clean the example"
#~ msgstr "<literal>ant tomcat.clean</literal> - clean the example"
-
#~ msgid ""
#~ "$ cd examples/tomcat\n"
#~ "ant tomcat.deploy"
#~ msgstr ""
#~ "$ cd examples/tomcat\n"
#~ "ant tomcat.deploy"
-
#~ msgid "Start Tomcat:"
#~ msgstr "Inicializando o Tomcat:"
-
#~ msgid "If you use Windows, use the <literal>startup.bat</literal>script."
#~ msgstr ""
#~ "Se você utiliza o Windows, utilize o script <literal>startup.bat</"
#~ "literal>."
-
#~ msgid "TODO"
#~ msgstr "TODO"
-
#~ msgid "The numberguess example"
#~ msgstr "O exemplo numberguess"
-
#~ msgid ""
#~ "In the numberguess application you get given 10 attempts to guess a "
#~ "number between 1 and 100. After each attempt, you will be told whether "
@@ -1184,7 +896,6 @@
#~ "Na aplicação numberguess você terá 10 tentativas para adivinhar um número "
#~ "entre 1 e 100. Após cada tentativa, você será informado se você disse "
#~ "muito acima, ou muito abaixo."
-
#~ msgid ""
#~ "The numberguess example is comprised of a number of Web Beans, "
#~ "configuration files, and Facelet JSF pages, packaged as a war. Let's "
@@ -1193,7 +904,6 @@
#~ "O exemplo numberguess é composto de um número de Web Beans, arquivos de "
#~ "configuração e páginas Facelet JSF , empacotados como um war. Vamos "
#~ "começar com os arquivos de configuração."
-
#~ msgid ""
#~ "All the configuration files for this example are located in <literal>WEB-"
#~ "INF/</literal>, which is stored in <literal>WebContent</literal> in the "
@@ -1204,7 +914,6 @@
#~ "<literal>WEB-INF/</literal>, que é armazenado no <literal>WebContent</"
#~ "literal> na árvore de fontes. Primeiro, temos <literal>faces-config.xml</"
#~ "literal>, onde dizemos para o JSF usar o Facelets:"
-
#~ msgid ""
#~ "<![CDATA[<?xml version='1.0' encoding='UTF-8'?>\n"
#~ "<faces-config version=\"1.2\"\n"
@@ -1231,14 +940,12 @@
#~ " </application>\n"
#~ "\n"
#~ "</faces-config>]]>"
-
#~ msgid ""
#~ "There is an empty <literal>web-beans.xml</literal> file, which marks this "
#~ "application as a Web Beans application."
#~ msgstr ""
#~ "Existe um arquivo <literal>web-beans.xml</literal> vazio, que assinala "
#~ "essa aplicação como uma aplicação Web Beans."
-
#~ msgid "Finally there is <literal>web.xml</literal>:"
#~ msgstr "Finalmente no <literal>web.xml</literal>:"
@@ -1477,7 +1184,6 @@
#~ "\"> <para> And, of course, there must be a way for the user to send their "
#~ "guess to the server. Here we bind to an action method on the Web Bean. </"
#~ "para> </callout> </calloutlist> </programlistingco>"
-
#~ msgid ""
#~ "The example exists of 4 classes, the first two of which are binding "
#~ "types. First, there is the <literal>@Random</literal> binding type, used "
@@ -1486,7 +1192,6 @@
#~ "No exemplo, existem 4 classes: as duas primeiras são tipos de binding. "
#~ "Primeiro, há o tipo de binding <literal>@Random</literal>, utilizado para "
#~ "a injeção de um número aleatório:"
-
#~ msgid ""
#~ "<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
#~ "@Retention(RUNTIME)\n"
@@ -1499,14 +1204,12 @@
#~ "@Documented\n"
#~ "@BindingType\n"
#~ "public @interface Random {}]]>"
-
#~ msgid ""
#~ "There is also the <literal>@MaxNumber</literal> binding type, used for "
#~ "injecting the maximum number that can be injected:"
#~ msgstr ""
#~ "Há também o binding type <literal>@MaxNumber</literal>, utilizado para "
#~ "injetar o número máximo que pode ser injetado:"
-
#~ msgid ""
#~ "<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
#~ "@Retention(RUNTIME)\n"
@@ -1521,7 +1224,6 @@
#~ "@BindingType\n"
#~ "public @interface MaxNumber {}\n"
#~ "]]>"
-
#~ msgid ""
#~ "The <literal>Generator</literal> class is responsible for creating the "
#~ "random number, via a producer method. It also exposes the maximum "
@@ -1530,7 +1232,6 @@
#~ "A classe <literal>Generator</literal> é responsável por criar um número "
#~ "aleatório, através de um método produtor. Ela também expõe o número "
#~ "máximo possível através de um método produtor:"
-
#~ msgid ""
#~ "<![CDATA[@ApplicationScoped\n"
#~ "public class Generator {\n"
@@ -1579,21 +1280,18 @@
#~ " }\n"
#~ "\n"
#~ "}]]>"
-
#~ msgid ""
#~ "You'll notice that the <literal>Generator</literal> is application "
#~ "scoped; therefore we don't get a different random each time."
#~ msgstr ""
#~ "Você perceberá que o <literal>Generator</literal> está no escopo de "
#~ "aplicação; portanto, não obtemos um número aleatório diferente a cada vez."
-
#~ msgid ""
#~ "The final Web Bean in the application is the session scoped "
#~ "<literal>Game</literal>."
#~ msgstr ""
#~ "O Web Bean final da aplicação é o <literal>Game</literal> em escopo de "
#~ "sessão."
-
#~ msgid ""
#~ "You'll note that we've used the <literal>@Named</literal> annotation, so "
#~ "that we can use the bean through EL in the JSF page. Finally, we've used "
@@ -1606,7 +1304,6 @@
#~ "utilizamos injeção de construtor para inicializar o jogo com um número "
#~ "aleatório. E, claro, precisamos de dizer ao jogador quando ele venceu. "
#~ "Por isso, informaremos através do <literal>FacesMessage</literal>."
-
#~ msgid ""
#~ "<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
#~ "\n"
@@ -1819,7 +1516,6 @@
#~ "<literal>WEB-INF/lib</literal>. Para sua comodidade, fornecemos um único "
#~ "jar adequado para executar Web Beans no Tomcat <literal>webbeans-tomcat."
#~ "jar</literal>."
-
#~ msgid ""
#~ "Of course, you must also include JSF and EL, as well common annotations "
#~ "(<literal>jsr250-api.jar</literal>) which a JEE server includes by "
@@ -1838,7 +1534,6 @@
#~ "Em segundo lugar, precisamos indicar explicitamente o Tomcat servlet "
#~ "listener (utilizado para \"bootar\" a Web Beans, e controlar sua "
#~ "interação com as requisições) no <literal>web.xml</literal>:"
-
#~ msgid ""
#~ "<![CDATA[<listener>\n"
#~ " <listener-class>org.jboss.webbeans.environment.servlet.Listener</"
@@ -1849,16 +1544,12 @@
#~ " <listener-class>org.jboss.webbeans.environment.servlet.Listener</"
#~ "listener-class>\n"
#~ "</listener>]]>"
-
#~ msgid "The numberguess example for Apache Wicket"
#~ msgstr "O exemplo numberguess para o Apache Wicket"
-
#~ msgid "Understanding the code"
#~ msgstr "Entendendo o código"
-
#~ msgid "Differences are:"
#~ msgstr "Diferenças são:"
-
#~ msgid ""
#~ "<![CDATA[public class SampleApplication extends WebBeansApplication {\n"
#~ " @Override\n"
@@ -1873,10 +1564,8 @@
#~ " return HomePage.class;\n"
#~ " }\n"
#~ "}]]>"
-
#~ msgid "<![CDATA[ @Current Game game;]]>"
#~ msgstr "<![CDATA[ @Current Game game;]]>"
-
#~ msgid ""
#~ "<![CDATA[final Component guessButton = new AjaxButton(\"GuessButton\") "
#~ "{ \n"
@@ -1887,7 +1576,6 @@
#~ "{ \n"
#~ " protected void onSubmit(AjaxRequestTarget target, Form form) {\n"
#~ " if (game.check()) {]]>"
-
#~ msgid ""
#~ "<![CDATA[<filter>\n"
#~ " <filter-name>wicket.numberguess-example</filter-name>\n"
@@ -1930,16 +1618,12 @@
#~ " <listener-class>org.jboss.webbeans.environment.servlet.Listener</"
#~ "listener-class>\n"
#~ "</listener>]]>"
-
#~ msgid "The numberguess example for Java SE with Swing"
#~ msgstr "O exemplo numberguess para o Java SE com Swing"
-
#~ msgid "To run this example:"
#~ msgstr "Para rodar esse exemplo:"
-
#~ msgid "execute the following command"
#~ msgstr "execute o seguinte comando"
-
#~ msgid "mvn -Drun"
#~ msgstr "mvn -Drun"
@@ -1951,7 +1635,6 @@
#~ msgstr ""
#~ "Existe um arquivo <literal>web-beans.xml</literal> vazio, que assinala "
#~ "essa aplicação como uma aplicação Web Beans."
-
#~ msgid ""
#~ "<programlistingco> <areaspec> <area id=\"scope\" coords=\"1\"/> <area id="
#~ "\"name\" coords=\"1\"/> <area id=\"messages1\" coords=\"26\"/> <area id="
@@ -2478,31 +2161,26 @@
#~ "<literal>refreshUI</literal> uses the <literal>MessageGenerator</literal> "
#~ "to update the messages to the user based on the current state of the "
#~ "Game. </para> </callout> </calloutlist> </programlistingco>"
-
#~ msgid "The translator example"
#~ msgstr "O exemplo translator"
-
#~ msgid ""
#~ "The translator example will take any sentences you enter, and translate "
#~ "them to Latin."
#~ msgstr ""
#~ "O exemplo translator pegará qualquer frase que você fornecer e a "
#~ "traduzirá para o Latim."
-
#~ msgid ""
#~ "The translator example is built as an ear, and contains EJBs. As a "
#~ "result, it's structure is more complex than the numberguess example."
#~ msgstr ""
#~ "O exemplo translator é construído como um ear e contém EJBs. Como "
#~ "resultado, a sua estrutura é mais complexa do que o exemplo numberguess."
-
#~ msgid ""
#~ "EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
#~ "this structure much simpler!"
#~ msgstr ""
#~ "EJB 3.1 e Java EE 6 permitem a você empacotar EJBs em um war, o que "
#~ "tornará esta estrutura muito mais simples!"
-
#~ msgid ""
#~ "First, let's take a look at the ear aggregator, which is located in "
#~ "<literal>webbeans-translator-ear</literal> module. Maven automatically "
@@ -2511,7 +2189,6 @@
#~ "Primeiro, vamos dar uma olhada no ear aggregator, que está localizado "
#~ "módulo <literal>webbeans-translator-ear</literal>. Maven gera "
#~ "automaticamente o<literal>application.xml</literal> para nós:"
-
#~ msgid ""
#~ "<![CDATA[<plugin>\n"
#~ " <groupId>org.apache.maven.plugins</groupId>\n"
@@ -2540,14 +2217,12 @@
#~ " </modules>\n"
#~ " </configuration>\n"
#~ "</plugin>]]>"
-
#~ msgid ""
#~ "If you aren't using Maven to generate these files, you would need "
#~ "<literal>META-INF/application.xml</literal>:"
#~ msgstr ""
#~ "Se você não está usando o Maven para gerar esses arquivos, você "
#~ "precisaria <literal>META-INF/application.xml</literal>:"
-
#~ msgid ""
#~ "<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
#~ "<application xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
@@ -2590,7 +2265,6 @@
#~ " <ejb>webbeans-translator.jar</ejb>\n"
#~ " </module>\n"
#~ "</application>]]>"
-
#~ msgid ""
#~ "Next, lets look at the war. Just as in the numberguess example, we have a "
#~ "<literal>faces-config.xml</literal> (to enable Facelets) and a "
@@ -2601,7 +2275,6 @@
#~ "<literal>faces-config.xml</literal> (para habilitar o Facelets) e um "
#~ "<literal>web.xml</literal> (para habilitar o JSF) no <literal>WebContent/"
#~ "WEB-INF</literal>."
-
#~ msgid ""
#~ "More intersting is the facelet used to translate text. Just as in the "
#~ "numberguess example we have a template, which surrounds the form "
@@ -2610,7 +2283,6 @@
#~ "Mais interessante é o facelet utilizado para traduzir texto. Tal como no "
#~ "exemplo numberguess, temos um template, que envolve o formulário (omitido "
#~ "aqui por brevitude):"
-
#~ msgid ""
#~ "<![CDATA[<h:form id=\"NumberGuessMain\">\n"
#~ " \n"
@@ -2667,14 +2339,12 @@
#~ " </div>\n"
#~ " \n"
#~ "</h:form>]]>"
-
#~ msgid ""
#~ "The user can enter some text in the lefthand textarea, and hit the "
#~ "translate button to see the result to the right."
#~ msgstr ""
#~ "O usuário pode digitar um texto no textarea esquerdo e clicar no botão "
#~ "traduzir para ver o resultado à direita."
-
#~ msgid ""
#~ "Finally, let's look at the ejb module, <literal>webbeans-translator-ejb</"
#~ "literal>. In <literal>src/main/resources/META-INF</literal> there is just "
@@ -2685,7 +2355,6 @@
#~ "literal>. Em <literal>src/main/resources/META-INF</literal> existe apenas "
#~ "um <literal>web-beans.xml</literal> vazio, utilizado para marcar o "
#~ "arquivo como contendo Web Beans."
-
#~ msgid ""
#~ "We've saved the most interesting bit to last, the code! The project has "
#~ "two simple beans, <literal>SentenceParser</literal> and "
@@ -2702,7 +2371,6 @@
#~ "<literal>SentenceTranslator</literal>. Você deve estar bastante "
#~ "familiarizado com o que um Web Bean parece até agora. Então, vamos apenas "
#~ "destacar as partes mais interessantes aqui."
-
#~ msgid ""
#~ "Both <literal>SentenceParser</literal> and <literal>TextTranslator</"
#~ "literal> are dependent beans, and <literal>TextTranslator</literal> uses "
@@ -2711,7 +2379,6 @@
#~ "Tanto <literal>SentenceParser</literal> quanto <literal>TextTranslator</"
#~ "literal> são beans dependentes, e <literal>TextTranslator</literal> usa "
#~ "inicialização por construtor :"
-
#~ msgid ""
#~ "<![CDATA[public class TextTranslator { \n"
#~ " private SentenceParser sentenceParser; \n"
@@ -2751,7 +2418,6 @@
#~ " </div>\n"
#~ " \n"
#~ "</h:form>]]>"
-
#~ msgid ""
#~ "<literal>TextTranslator</literal> is a stateless bean (with a local "
#~ "business interface), where the magic happens - of course, we couldn't "
@@ -2760,7 +2426,6 @@
#~ "<literal>TextTranslator</literal> é um bean stateless (com uma interface "
#~ "de negócios local), onde a mágica acontece . Obviamente, não poderíamos "
#~ "desenvolver um tradutor completo, mas lhe demos um bom caminho!"
-
#~ msgid ""
#~ "Finally, there is UI orientated controller, that collects the text from "
#~ "the user, and dispatches it to the translator. This is a request scoped, "
@@ -2769,7 +2434,6 @@
#~ "Finalmente, há um controlador orientado à interface, que recolhe o texto "
#~ "do usuário e despacha para o tradutor. Esse é um escopo de requisição, "
#~ "com o nome, stateful session bean, que injeta o tradutor."
-
#~ msgid ""
#~ "<![CDATA[@Stateful\n"
#~ "@RequestScoped\n"
@@ -2786,15 +2450,12 @@
#~ "{\n"
#~ " \n"
#~ " @Current TextTranslator translator;]]>"
-
#~ msgid ""
#~ "The bean also has getters and setters for all the fields on the page."
#~ msgstr "O bean também tem getters e setters para todos os campos da página."
-
#~ msgid "As this is a stateful session bean, we have to have a remove method:"
#~ msgstr ""
#~ "Como esse é um stateful session bean, temos de ter um método de remoção:"
-
#~ msgid ""
#~ "<![CDATA[ @Remove\n"
#~ " public void remove()\n"
@@ -2807,14 +2468,12 @@
#~ " {\n"
#~ " \n"
#~ " }]]>"
-
#~ msgid ""
#~ "The Web Beans manager will call the remove method for you when the bean "
#~ "is destroyed; in this case at the end of the request."
#~ msgstr ""
#~ "O gerenciador do Web Beans chamará o método remover para você quando o "
#~ "bean for destruído - neste caso, no final da requisição."
-
#~ msgid ""
#~ "That concludes our short tour of the Web Beans examples. For more on Web "
#~ "Beans , or to help out, please visit <ulink url=\"http://www."
@@ -2825,7 +2484,6 @@
#~ "mais informações sobre a Web Beans, ou para ajudar, por favor visite "
#~ "<ulink url=\"http://www.seamframework.org/WebBeans/Development\">http://"
#~ "www.seamframework.org/WebBeans/Development</ulink>."
-
#~ msgid ""
#~ "We need help in all areas - bug fixing, writing new features, writing "
#~ "examples and translating this reference guide."
@@ -2833,7 +2491,6 @@
#~ "Precisamos de ajuda em todas as áreas - correção de bugs, escrita de "
#~ "novas funcionalidades, escrita de exemplos e tradução deste guia de "
#~ "referência."
-
#~ msgid ""
#~ "As Web Beans is a new piece of software, you need to update JBoss AS to "
#~ "run the Web Beans RI. Future versions of JBoss AS will include these "
@@ -2843,3 +2500,4 @@
#~ "do JBoss AS para poder executar a implementação de referência de Web "
#~ "Beans (Web Beans RI). Futuras versões do JBoss AS incluirão essas "
#~ "atualizações e esse passo será desnecessário."
+
Modified: doc/trunk/reference/pt-BR/injection.po
===================================================================
--- doc/trunk/reference/pt-BR/injection.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/injection.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,7 +6,7 @@
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-04-06 08:34-0300\n"
+"PO-Revision-Date: 2009-12-19 18:09-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -22,10 +22,7 @@
#. Tag: para
#: injection.xml:6
#, no-c-format
-msgid ""
-"One of the most significant features of CDI—certainly the most "
-"recognized—is dependency injection; excuse me, <emphasis>typesafe</"
-"emphasis> dependency injection."
+msgid "One of the most significant features of CDI—certainly the most recognized—is dependency injection; excuse me, <emphasis>typesafe</emphasis> dependency injection."
msgstr ""
#. Tag: title
@@ -37,10 +34,7 @@
#. Tag: para
#: injection.xml:14
#, no-c-format
-msgid ""
-"The <literal>@Inject</literal> annotation lets us define an injection point "
-"that is injected during bean instantiation. Injection can occur via three "
-"different mechanisms."
+msgid "The <literal>@Inject</literal> annotation lets us define an injection point that is injected during bean instantiation. Injection can occur via three different mechanisms."
msgstr ""
#. Tag: para
@@ -51,7 +45,7 @@
#. Tag: programlisting
#: injection.xml:23
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public class Checkout {\n"
" \n"
@@ -66,12 +60,12 @@
msgstr ""
"<![CDATA[public class Checkout {\n"
" \n"
-" private final ShoppingCart cart;\n"
+" private final ShoppingCart cart;\n"
" \n"
-" @Initializer\n"
-" public Checkout(ShoppingCart cart) {\n"
-" this.cart = cart;\n"
-" }\n"
+" @Inject\n"
+" public Checkout(ShoppingCart cart) {\n"
+" this.cart = cart;\n"
+" }\n"
"\n"
"}]]>"
@@ -89,7 +83,7 @@
#. Tag: programlisting
#: injection.xml:35
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public class Checkout {\n"
" \n"
@@ -104,22 +98,19 @@
msgstr ""
"<![CDATA[public class Checkout {\n"
" \n"
-" private ShoppingCart cart;\n"
+" private ShoppingCart cart;\n"
"\n"
-" @Initializer \n"
-" void setShoppingCart(ShoppingCart cart) {\n"
-" this.cart = cart;\n"
-" }\n"
+" @Inject\n"
+" void setShoppingCart(ShoppingCart cart) {\n"
+" this.cart = cart;\n"
+" }\n"
" \n"
"}]]>"
#. Tag: para
#: injection.xml:38
#, no-c-format
-msgid ""
-"A bean can have multiple initializer methods. If the bean is a session bean, "
-"the initializer method is not required to be a business method of the "
-"session bean."
+msgid "A bean can have multiple initializer methods. If the bean is a session bean, the initializer method is not required to be a business method of the session bean."
msgstr ""
#. Tag: para
@@ -130,7 +121,7 @@
#. Tag: programlisting
#: injection.xml:48
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public class Checkout {\n"
"\n"
@@ -140,92 +131,62 @@
msgstr ""
"<![CDATA[public class Checkout {\n"
"\n"
-" private @Current ShoppingCart cart;\n"
+" private @Inject ShoppingCart cart;\n"
" \n"
"}]]>"
#. Tag: para
#: injection.xml:51
#, no-c-format
-msgid ""
-"Getter and setter methods are not required for field injection to work "
-"(unlike with JSF managed beans)."
+msgid "Getter and setter methods are not required for field injection to work (unlike with JSF managed beans)."
msgstr ""
#. Tag: para
#: injection.xml:56
#, fuzzy, no-c-format
-msgid ""
-"Dependency injection always occurs when the bean instance is first "
-"instantiated by the container. Simplifying just a little, things happen in "
-"this order:"
-msgstr ""
-"A injeção de dependências sempre ocorre quando a instância do Web Bean é "
-"instanciada."
+msgid "Dependency injection always occurs when the bean instance is first instantiated by the container. Simplifying just a little, things happen in this order:"
+msgstr "A injeção de dependências sempre ocorre quando a instância do Web Bean é instanciada."
#. Tag: para
#: injection.xml:63
#, fuzzy, no-c-format
-msgid ""
-"First, the container calls the bean constructor (the default constructor or "
-"the one annotated <literal>@Inject</literal>), to obtain an instance of the "
-"bean."
-msgstr ""
-"Em primeiro lugar, a gerenciador do Web Bean chama o construtor do Web Bean "
-"para obter uma instância do Web Bean."
+msgid "First, the container calls the bean constructor (the default constructor or the one annotated <literal>@Inject</literal>), to obtain an instance of the bean."
+msgstr "Em primeiro lugar, a gerenciador do Web Bean chama o construtor do Web Bean para obter uma instância do Web Bean."
#. Tag: para
#: injection.xml:69
#, fuzzy, no-c-format
-msgid ""
-"Next, the container initializes the values of all injected fields of the "
-"bean."
-msgstr ""
-"Em seguida, o gerenciador do Web Bean inicializa os valores de todos os "
-"campos injetados do Web Bean."
+msgid "Next, the container initializes the values of all injected fields of the bean."
+msgstr "Em seguida, o gerenciador do Web Bean inicializa os valores de todos os campos injetados do Web Bean."
#. Tag: para
#: injection.xml:74
#, fuzzy, no-c-format
-msgid ""
-"Next, the container calls all initializer methods of bean (the call order is "
-"not portable, don't rely on it)."
-msgstr ""
-"Em seguida, o gerenciador do Web Bean chama todos os métodos do Web Bean."
+msgid "Next, the container calls all initializer methods of bean (the call order is not portable, don't rely on it)."
+msgstr "Em seguida, o gerenciador do Web Bean chama todos os métodos do Web Bean."
#. Tag: para
#: injection.xml:80
#, fuzzy, no-c-format
-msgid ""
-"Finally, the <literal>@PostConstruct</literal> method, if any, is called."
-msgstr ""
-"Finalmente, o método <literal>@PostConstruct</literal> do Web Bean, se for o "
-"caso, é chamado."
+msgid "Finally, the <literal>@PostConstruct</literal> method, if any, is called."
+msgstr "Finalmente, o método <literal>@PostConstruct</literal> do Web Bean, se for o caso, é chamado."
#. Tag: para
#: injection.xml:86
#, no-c-format
-msgid ""
-"(The only complication is that the container might call initializer methods "
-"declared by a superclass before initializing injected fields declared by a "
-"subclass.)"
+msgid "(The only complication is that the container might call initializer methods declared by a superclass before initializing injected fields declared by a subclass.)"
msgstr ""
#. Tag: para
#: injection.xml:90
#, no-c-format
-msgid ""
-"One major advantage of constructor injection is that it allows the bean to "
-"be immutable."
+msgid "One major advantage of constructor injection is that it allows the bean to be immutable."
msgstr ""
#. Tag: para
#: injection.xml:95
#, no-c-format
-msgid ""
-"CDI also supports parameter injection for some other methods that are "
-"invoked by the container. For instance, parameter injection is supported for "
-"producer methods:"
+msgid "CDI also supports parameter injection for some other methods that are invoked by the container. For instance, parameter injection is supported for producer methods:"
msgstr ""
#. Tag: programlisting
@@ -243,11 +204,7 @@
#. Tag: para
#: injection.xml:102
#, no-c-format
-msgid ""
-"This is a case where the <literal>@Inject</literal> annotation <emphasis>is "
-"not</emphasis> required at the injection point. The same is true for "
-"observer methods (which we'll meet in <xref linkend=\"events\"/>) and "
-"disposer methods."
+msgid "This is a case where the <literal>@Inject</literal> annotation <emphasis>is not</emphasis> required at the injection point. The same is true for observer methods (which we'll meet in <xref linkend=\"events\"/>) and disposer methods."
msgstr ""
#. Tag: title
@@ -259,48 +216,26 @@
#. Tag: para
#: injection.xml:112
#, no-c-format
-msgid ""
-"The CDI specification defines a procedure, called <emphasis>typesafe "
-"resolution</emphasis>, that the container follows when identifying the bean "
-"to inject to an injection point. This algorithm looks complex at first, but "
-"once you understand it, it's really quite intuitive. Typesafe resolution is "
-"performed at system initialization time, which means that the container will "
-"inform the developer immediately if a bean's dependencies cannot be "
-"satisfied."
+msgid "The CDI specification defines a procedure, called <emphasis>typesafe resolution</emphasis>, that the container follows when identifying the bean to inject to an injection point. This algorithm looks complex at first, but once you understand it, it's really quite intuitive. Typesafe resolution is performed at system initialization time, which means that the container will inform the developer immediately if a bean's dependencies cannot be satisfied."
msgstr ""
#. Tag: para
#: injection.xml:120
#, fuzzy, no-c-format
-msgid ""
-"The purpose of this algorithm is to allow multiple beans to implement the "
-"same bean type and either:"
-msgstr ""
-"O objetivo deste algoritmo é permitir que vários Web Beans implementem o "
-"mesmo tipo de API e também:"
+msgid "The purpose of this algorithm is to allow multiple beans to implement the same bean type and either:"
+msgstr "O objetivo deste algoritmo é permitir que vários Web Beans implementem o mesmo tipo de API e também:"
#. Tag: para
#: injection.xml:126
#, fuzzy, no-c-format
-msgid ""
-"allow the client to select which implementation it requires using a "
-"<emphasis>qualifier</emphasis> or"
-msgstr ""
-"permitir que o cliente escolha a implementação que lhe melhor convier "
-"utilizando <emphasis>anotações de binding (binding annotations)</emphasis>,"
+msgid "allow the client to select which implementation it requires using a <emphasis>qualifier</emphasis> or"
+msgstr "permitir que o cliente escolha a implementação que lhe melhor convier utilizando <emphasis>anotações de binding (binding annotations)</emphasis>,"
#. Tag: para
#: injection.xml:131
#, fuzzy, no-c-format
-msgid ""
-"allow the application deployer to select which implementation is appropriate "
-"for a particular deployment, without changes to the client, by enabling or "
-"disabling an <emphasis>alternative</emphasis>, or"
-msgstr ""
-"permitir ao implantador (deployer) da aplicação escolher qual a implentação "
-"é adequada para uma determinada implantação, sem alterações para o cliente, "
-"por ativar ou desativar <emphasis>tipos de implantação (deployment types)</"
-"emphasis>, ou"
+msgid "allow the application deployer to select which implementation is appropriate for a particular deployment, without changes to the client, by enabling or disabling an <emphasis>alternative</emphasis>, or"
+msgstr "permitir ao implantador (deployer) da aplicação escolher qual a implentação é adequada para uma determinada implantação, sem alterações para o cliente, por ativar ou desativar <emphasis>tipos de implantação (deployment types)</emphasis>, ou"
#. Tag: para
#: injection.xml:137
@@ -311,20 +246,13 @@
#. Tag: para
#: injection.xml:143
#, no-c-format
-msgid ""
-"Obviously, if you have exactly one bean of a given type, and an injection "
-"point with that same type, then bean A is going to go into slot A. That's "
-"the simplest possible scenario. When you first start your application, "
-"you'll likely have lots of those."
+msgid "Obviously, if you have exactly one bean of a given type, and an injection point with that same type, then bean A is going to go into slot A. That's the simplest possible scenario. When you first start your application, you'll likely have lots of those."
msgstr ""
#. Tag: para
#: injection.xml:149
#, no-c-format
-msgid ""
-"But then, things start to get complicated. Let's explore how the container "
-"determines which bean to inject in more advanced cases. We'll start by "
-"taking a closer look at qualifiers."
+msgid "But then, things start to get complicated. Let's explore how the container determines which bean to inject in more advanced cases. We'll start by taking a closer look at qualifiers."
msgstr ""
#. Tag: title
@@ -336,88 +264,76 @@
#. Tag: para
#: injection.xml:159
#, no-c-format
-msgid ""
-"If we have more than one bean that implements a particular bean type, the "
-"injection point can specify exactly which bean should be injected using a "
-"qualifier annotation. For example, there might be two implementations of "
-"<literal>PaymentProcessor</literal>:"
+msgid "If we have more than one bean that implements a particular bean type, the injection point can specify exactly which bean should be injected using a qualifier annotation. For example, there might be two implementations of <literal>PaymentProcessor</literal>:"
msgstr ""
#. Tag: programlisting
#: injection.xml:165
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Synchronous\n"
"public class SynchronousPaymentProcessor implements PaymentProcessor {\n"
" public void process(Payment payment) { ... }\n"
"}]]>"
msgstr ""
-"<![CDATA[@PayByCheque\n"
-"public class ChequePaymentProcessor implements PaymentProcessor {\n"
-" public void process(Payment payment) { ... }\n"
+"<![CDATA[@Synchronous\n"
+"public class SynchronousPaymentProcessor implements PaymentProcessor {\n"
+" public void process(Payment payment) { ... }\n"
"}]]>"
#. Tag: programlisting
#: injection.xml:167
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Asynchronous\n"
"public class AsynchronousPaymentProcessor implements PaymentProcessor {\n"
" public void process(Payment payment) { ... }\n"
"}]]>"
msgstr ""
-"<![CDATA[@PayByCheque\n"
-"public class ChequePaymentProcessor implements PaymentProcessor {\n"
-" public void process(Payment payment) { ... }\n"
+"<![CDATA[@Asynchronous\n"
+"public class AsynchronousPaymentProcessor implements PaymentProcessor {\n"
+" public void process(Payment payment) { ... }\n"
"}]]>"
#. Tag: para
#: injection.xml:169
#, fuzzy, no-c-format
-msgid ""
-"Where <literal>@Synchronous</literal> and <literal>@Asynchronous</literal> "
-"are qualifier annotations:"
-msgstr ""
-"Onde <literal>@PayByCheque</literal> e <literal>@PayByCreditCard</literal> "
-"são anotações de binding:"
+msgid "Where <literal>@Synchronous</literal> and <literal>@Asynchronous</literal> are qualifier annotations:"
+msgstr "Onde <literal>@PayByCheque</literal> e <literal>@PayByCreditCard</literal> são anotações de binding:"
#. Tag: programlisting
#: injection.xml:173
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Qualifier\n"
"@Retention(RUNTIME)\n"
"@Target({TYPE, METHOD, FIELD, PARAMETER})\n"
"public @interface Synchronous {}]]>"
msgstr ""
-"<![CDATA[@Retention(RUNTIME)\n"
+"<![CDATA[@Qualifier\n"
+"@Retention(RUNTIME)\n"
"@Target({TYPE, METHOD, FIELD, PARAMETER})\n"
-"@BindingType\n"
-"public @interface PayByCheque {}]]>"
+"public @interface Synchronous {}]]>"
#. Tag: programlisting
#: injection.xml:175
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Qualifier\n"
"@Retention(RUNTIME)\n"
"@Target({TYPE, METHOD, FIELD, PARAMETER})\n"
"public @interface Asynchronous {}]]>"
msgstr ""
-"<![CDATA[@Retention(RUNTIME)\n"
+"<![CDATA[@Qualifier\n"
+"@Retention(RUNTIME)\n"
"@Target({TYPE, METHOD, FIELD, PARAMETER})\n"
-"@BindingType\n"
-"public @interface PayByCheque {}]]>"
+"public @interface Asynchronous {}]]>"
#. Tag: para
#: injection.xml:177
#, fuzzy, no-c-format
-msgid ""
-"A client bean developer uses the qualifier annotation to specify exactly "
-"which bean should be injected."
-msgstr ""
-"Um desenvolvedor cliente de um Web Bean utiliza a anotação de binding para "
-"especificar exatamente quais Web Bean devem ser injetados."
+msgid "A client bean developer uses the qualifier annotation to specify exactly which bean should be injected."
+msgstr "Um desenvolvedor cliente de um Web Bean utiliza a anotação de binding para especificar exatamente quais Web Bean devem ser injetados."
#. Tag: para
#: injection.xml:181
@@ -427,13 +343,13 @@
#. Tag: programlisting
#: injection.xml:183
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Inject @Synchronous PaymentProcessor syncPaymentProcessor;\n"
"@Inject @Asynchronous PaymentProcessor asyncPaymentProcessor;]]>"
msgstr ""
-"<![CDATA[@PayByCheque PaymentProcessor chequePaymentProcessor;\n"
-"@PayByCreditCard PaymentProcessor creditCardPaymentProcessor;]]>"
+"<![CDATA[@Inject @Synchronous PaymentProcessor syncPaymentProcessor;\n"
+"@Inject @Asynchronous PaymentProcessor asyncPaymentProcessor;]]>"
#. Tag: para
#: injection.xml:185
@@ -443,24 +359,20 @@
#. Tag: programlisting
#: injection.xml:187
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Inject\n"
-"public void setPaymentProcessors(@Synchronous PaymentProcessor "
-"syncPaymentProcessor, \n"
-" @Asynchronous PaymentProcessor "
-"asyncPaymentProcessor) {\n"
+"public void setPaymentProcessors(@Synchronous PaymentProcessor syncPaymentProcessor, \n"
+" @Asynchronous PaymentProcessor asyncPaymentProcessor) {\n"
" this.syncPaymentProcessor = syncPaymentProcessor;\n"
" this.asyncPaymentProcessor = asyncPaymentProcessor;\n"
"}]]>"
msgstr ""
-"<![CDATA[@Initializer\n"
-"public void setPaymentProcessors(@PayByCheque PaymentProcessor "
-"chequePaymentProcessor, \n"
-" @PayByCreditCard PaymentProcessor "
-"creditCardPaymentProcessor) {\n"
-" this.chequePaymentProcessor = chequePaymentProcessor;\n"
-" this.creditCardPaymentProcessor = creditCardPaymentProcessor;\n"
+"<![CDATA[@Inject\n"
+"public void setPaymentProcessors(@Synchronous PaymentProcessor syncPaymentProcessor, \n"
+" @Asynchronous PaymentProcessor asyncPaymentProcessor) {\n"
+" this.syncPaymentProcessor = syncPaymentProcessor;\n"
+" this.asyncPaymentProcessor = asyncPaymentProcessor;\n"
"}]]>"
#. Tag: para
@@ -471,7 +383,7 @@
#. Tag: programlisting
#: injection.xml:191
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Inject\n"
"public Checkout(@Synchronous PaymentProcessor syncPaymentProcessor, \n"
@@ -480,64 +392,45 @@
" this.asyncPaymentProcessor = asyncPaymentProcessor;\n"
"}]]>"
msgstr ""
-"<![CDATA[@Initializer\n"
-"public Checkout(@PayByCheque PaymentProcessor chequePaymentProcessor, \n"
-" @PayByCreditCard PaymentProcessor "
-"creditCardPaymentProcessor) {\n"
-" this.chequePaymentProcessor = chequePaymentProcessor;\n"
-" this.creditCardPaymentProcessor = creditCardPaymentProcessor;\n"
+"<![CDATA[@Inject\n"
+"public Checkout(@Synchronous PaymentProcessor syncPaymentProcessor, \n"
+" @Asynchronous PaymentProcessor asyncPaymentProcessor) {\n"
+" this.syncPaymentProcessor = syncPaymentProcessor;\n"
+" this.asyncPaymentProcessor = asyncPaymentProcessor;\n"
"}]]>"
#. Tag: para
#: injection.xml:193
#, no-c-format
-msgid ""
-"Qualifier annotations can also qualify method arguments of producer, "
-"disposer and observer methods. Combining qualified arguments with producer "
-"methods is a good way to have an implementation of a bean type selected at "
-"runtime based on the state of the system:"
+msgid "Qualifier annotations can also qualify method arguments of producer, disposer and observer methods. Combining qualified arguments with producer methods is a good way to have an implementation of a bean type selected at runtime based on the state of the system:"
msgstr ""
#. Tag: programlisting
#: injection.xml:199
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Produces\n"
-"PaymentProcessor getPaymentProcessor(@Synchronous PaymentProcessor "
-"syncPaymentProcessor,\n"
-" @Asynchronous PaymentProcessor "
-"asyncPaymentProcessor) {\n"
+"PaymentProcessor getPaymentProcessor(@Synchronous PaymentProcessor syncPaymentProcessor,\n"
+" @Asynchronous PaymentProcessor asyncPaymentProcessor) {\n"
" return isSynchronous() ? syncPaymentProcessor : asyncPaymentProcessor;\n"
"}]]>"
msgstr ""
-"<![CDATA[@Initializer\n"
-"public void setPaymentProcessors(@PayByCheque PaymentProcessor "
-"chequePaymentProcessor, \n"
-" @PayByCreditCard PaymentProcessor "
-"creditCardPaymentProcessor) {\n"
-" this.chequePaymentProcessor = chequePaymentProcessor;\n"
-" this.creditCardPaymentProcessor = creditCardPaymentProcessor;\n"
+"<![CDATA[@Produces\n"
+"PaymentProcessor getPaymentProcessor(@Synchronous PaymentProcessor syncPaymentProcessor,\n"
+" @Asynchronous PaymentProcessor asyncPaymentProcessor) {\n"
+" return isSynchronous() ? syncPaymentProcessor : asyncPaymentProcessor;\n"
"}]]>"
#. Tag: para
#: injection.xml:201
#, no-c-format
-msgid ""
-"If an injected field or a parameter of a bean constructor or initializer "
-"method is not explicitly annotated with a qualifier, the default qualifier, "
-"<literal>@Default</literal>, is assumed."
+msgid "If an injected field or a parameter of a bean constructor or initializer method is not explicitly annotated with a qualifier, the default qualifier, <literal>@Default</literal>, is assumed."
msgstr ""
#. Tag: para
#: injection.xml:206
#, no-c-format
-msgid ""
-"Now, you may be thinking, <emphasis>\"What's the different between using a "
-"qualifier and just specifying the exact implementation class you want?\"</"
-"emphasis> It's important to understand that a qualifier is like an extension "
-"of the interface. It does not create a direct dependency to any particular "
-"implementation. There may be multiple alterative implementations of "
-"<literal>@Asynchronous PaymentProcessor</literal>!"
+msgid "Now, you may be thinking, <emphasis>\"What's the different between using a qualifier and just specifying the exact implementation class you want?\"</emphasis> It's important to understand that a qualifier is like an extension of the interface. It does not create a direct dependency to any particular implementation. There may be multiple alterative implementations of <literal>@Asynchronous PaymentProcessor</literal>!"
msgstr ""
#. Tag: title
@@ -549,17 +442,12 @@
#. Tag: para
#: injection.xml:218
#, no-c-format
-msgid ""
-"Java annotations can have members. We can use annotation members to further "
-"discriminate a qualifier. This prevents a potential explosion of new "
-"annotations. For example, instead of creating several qualifiers "
-"representing different payment methods, we could aggregate them into a "
-"single annotation with a member:"
+msgid "Java annotations can have members. We can use annotation members to further discriminate a qualifier. This prevents a potential explosion of new annotations. For example, instead of creating several qualifiers representing different payment methods, we could aggregate them into a single annotation with a member:"
msgstr ""
#. Tag: programlisting
#: injection.xml:224
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Qualifier\n"
"@Retention(RUNTIME)\n"
@@ -568,39 +456,34 @@
" PaymentMethod value();\n"
"}]]>"
msgstr ""
-"<![CDATA[@Retention(RUNTIME)\n"
-"@Target({TYPE, METHOD, FIELD, PARAMETER})\n"
-"@BindingType\n"
+"<![CDATA[@Qualifier\n"
+"@Retention(RUNTIME)\n"
+"@Target({METHOD, FIELD, PARAMETER, TYPE})\n"
"public @interface PayBy {\n"
-" PaymentType value();\n"
+" PaymentMethod value();\n"
"}]]>"
#. Tag: para
#: injection.xml:226
#, no-c-format
-msgid ""
-"Then we select one of the possible member values when appling the qualifier:"
+msgid "Then we select one of the possible member values when appling the qualifier:"
msgstr ""
#. Tag: programlisting
#: injection.xml:230
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[private @Inject @PayBy(CHECK) PaymentProcessor checkPayment;]]>"
-msgstr ""
-"<![CDATA[@Asynchronous @PayByCheque PaymentProcessor paymentProcessor]]>"
+#, no-c-format
+msgid "<![CDATA[private @Inject @PayBy(CHECK) PaymentProcessor checkPayment;]]>"
+msgstr "<![CDATA[private @Inject @PayBy(CHECK) PaymentProcessor checkPayment;]]>"
#. Tag: para
#: injection.xml:232
#, no-c-format
-msgid ""
-"We can force the container to ignore a member of a qualifier type by "
-"annotating the member <literal>@NonBinding</literal>."
+msgid "We can force the container to ignore a member of a qualifier type by annotating the member <literal>@NonBinding</literal>."
msgstr ""
#. Tag: programlisting
#: injection.xml:237
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Qualifier\n"
"@Retention(RUNTIME)\n"
@@ -610,11 +493,12 @@
" @NonBinding String comment() default \"\";\n"
"}]]>"
msgstr ""
-"<![CDATA[@BindingType\n"
+"<![CDATA[@Qualifier\n"
"@Retention(RUNTIME)\n"
-"@Target({TYPE, METHOD, FIELD, PARAMETER})\n"
-"public @interface HttpParam {\n"
-" @NonBinding public String value();\n"
+"@Target({METHOD, FIELD, PARAMETER, TYPE})\n"
+"public @interface PayBy {\n"
+" PaymentMethod value();\n"
+" @NonBinding String comment() default \"\";\n"
"}]]>"
#. Tag: title
@@ -627,42 +511,32 @@
#: injection.xml:244
#, fuzzy, no-c-format
msgid "An injection point may specify multiple qualifiers:"
-msgstr ""
-"Um ponto de injeção pode até mesmo especificar múltiplas anotações de "
-"binding:"
+msgstr "Um ponto de injeção pode até mesmo especificar múltiplas anotações de binding:"
#. Tag: programlisting
#: injection.xml:248
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[@Inject @Synchronous @Reliable PaymentProcessor "
-"syncPaymentProcessor;]]>"
-msgstr ""
-"<![CDATA[@Asynchronous @PayByCheque PaymentProcessor paymentProcessor]]>"
+#, no-c-format
+msgid "<![CDATA[@Inject @Synchronous @Reliable PaymentProcessor syncPaymentProcessor;]]>"
+msgstr "<![CDATA[@Inject @Synchronous @Reliable PaymentProcessor syncPaymentProcessor;]]>"
#. Tag: para
#: injection.xml:250
#, fuzzy, no-c-format
-msgid ""
-"Then only a bean which has <emphasis>both</emphasis> qualifier annotations "
-"would be eligible for injection."
-msgstr ""
-"Neste caso, só o Web Bean que tem <emphasis>ambas</emphasis> anotações de "
-"binding são elegíveis para injeção."
+msgid "Then only a bean which has <emphasis>both</emphasis> qualifier annotations would be eligible for injection."
+msgstr "Neste caso, só o Web Bean que tem <emphasis>ambas</emphasis> anotações de binding são elegíveis para injeção."
#. Tag: programlisting
#: injection.xml:255
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Synchronous @Reliable\n"
-"public class SynchronousReliablePaymentProcessor implements PaymentProcessor "
-"{\n"
+"public class SynchronousReliablePaymentProcessor implements PaymentProcessor {\n"
" public void process(Payment payment) { ... }\n"
"}]]>"
msgstr ""
-"<![CDATA[@PayByCheque\n"
-"public class ChequePaymentProcessor implements PaymentProcessor {\n"
-" public void process(Payment payment) { ... }\n"
+"<![CDATA[@Synchronous @Reliable\n"
+"public class SynchronousReliablePaymentProcessor implements PaymentProcessor {\n"
+" public void process(Payment payment) { ... }\n"
"}]]>"
#. Tag: title
@@ -674,35 +548,27 @@
#. Tag: para
#: injection.xml:262
#, no-c-format
-msgid ""
-"Alternatives are beans whose implementation is specific to a particular "
-"client module or deployment scenario. This alternative defines a mock "
-"implementation of both <literal>@Synchronous PaymentProcessor</literal> and "
-"<literal>@Asynchronous PaymentProcessor</literal>, all in one:"
+msgid "Alternatives are beans whose implementation is specific to a particular client module or deployment scenario. This alternative defines a mock implementation of both <literal>@Synchronous PaymentProcessor</literal> and <literal>@Asynchronous PaymentProcessor</literal>, all in one:"
msgstr ""
#. Tag: programlisting
#: injection.xml:266
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Alternative @Synchronous @Asynchronous\n"
"public class MockPaymentProcessor implements PaymentProcessor {\n"
" public void process(Payment payment) { ... }\n"
"}]]>"
msgstr ""
-"<![CDATA[@PayByCheque\n"
-"public class ChequePaymentProcessor implements PaymentProcessor {\n"
-" public void process(Payment payment) { ... }\n"
+"<![CDATA[@Alternative @Synchronous @Asynchronous\n"
+"public class MockPaymentProcessor implements PaymentProcessor {\n"
+" public void process(Payment payment) { ... }\n"
"}]]>"
#. Tag: para
#: injection.xml:268
#, no-c-format
-msgid ""
-"By default, <literal>@Alternative</literal> beans are disabled. We need to "
-"<emphasis>enable</emphasis> an alternative in the <literal>beans.xml</"
-"literal> descriptor of a bean archive to make it available for instantiation "
-"and injection. This activation only applies to the beans in that archive."
+msgid "By default, <literal>@Alternative</literal> beans are disabled. We need to <emphasis>enable</emphasis> an alternative in the <literal>beans.xml</literal> descriptor of a bean archive to make it available for instantiation and injection. This activation only applies to the beans in that archive."
msgstr ""
#. Tag: programlisting
@@ -720,15 +586,21 @@
" </alternatives>\n"
"</beans>]]>"
msgstr ""
+"<![CDATA[<beans\n"
+" xmlns=\"http://java.sun.com/xml/ns/javaee\"\n"
+" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+" xsi:schemaLocation=\"\n"
+" http://java.sun.com/xml/ns/javaee\n"
+" http://java.sun.com/xml/ns/javaee/beans_1_0.xsd\">\n"
+" <alternatives>\n"
+" <class>org.mycompany.mock.MockPaymentProcessor</class>\n"
+" </alternatives>\n"
+"</beans>]]>"
#. Tag: para
#: injection.xml:276
#, no-c-format
-msgid ""
-"When an ambiguous dependency exists at an injection point, the container "
-"attempts to resolve the ambiguity by looking for an enabled alternative "
-"among the beans that could be injected. If there is exactly one enabled "
-"alternative, that's the bean that will be injected."
+msgid "When an ambiguous dependency exists at an injection point, the container attempts to resolve the ambiguity by looking for an enabled alternative among the beans that could be injected. If there is exactly one enabled alternative, that's the bean that will be injected."
msgstr ""
#. Tag: title
@@ -740,21 +612,13 @@
#. Tag: para
#: injection.xml:287
#, no-c-format
-msgid ""
-"The typesafe resolution algorithm fails when, after considering the "
-"qualifier annotations on all beans that implement the bean type of an "
-"injection point and filtering out disabled beans (<literal>@Alternative</"
-"literal> beans which are not explicitly enabled), the container is unable to "
-"identify exactly one bean to inject. The container will abort deployment, "
-"informing us of the unsatisfied or ambiguous dependency."
+msgid "The typesafe resolution algorithm fails when, after considering the qualifier annotations on all beans that implement the bean type of an injection point and filtering out disabled beans (<literal>@Alternative</literal> beans which are not explicitly enabled), the container is unable to identify exactly one bean to inject. The container will abort deployment, informing us of the unsatisfied or ambiguous dependency."
msgstr ""
#. Tag: para
#: injection.xml:294
#, no-c-format
-msgid ""
-"During the course of your development, you're going to encounter this "
-"situation. Let's learn how to resolve it."
+msgid "During the course of your development, you're going to encounter this situation. Let's learn how to resolve it."
msgstr ""
#. Tag: para
@@ -766,26 +630,19 @@
#. Tag: para
#: injection.xml:304
#, no-c-format
-msgid ""
-"create a bean which implements the bean type and has all the qualifier types "
-"of the injection point,"
+msgid "create a bean which implements the bean type and has all the qualifier types of the injection point,"
msgstr ""
#. Tag: para
#: injection.xml:309
#, no-c-format
-msgid ""
-"make sure that the bean you already have is in the classpath of the module "
-"with the injection point, or"
+msgid "make sure that the bean you already have is in the classpath of the module with the injection point, or"
msgstr ""
#. Tag: para
#: injection.xml:314
#, no-c-format
-msgid ""
-"explicitly enable an <literal>@Alternative</literal> bean that implements "
-"the bean type and has the appropriate qualifier types, using <literal>beans."
-"xml</literal>."
+msgid "explicitly enable an <literal>@Alternative</literal> bean that implements the bean type and has the appropriate qualifier types, using <literal>beans.xml</literal>."
msgstr ""
#. Tag: para
@@ -797,43 +654,31 @@
#. Tag: para
#: injection.xml:327
#, no-c-format
-msgid ""
-"introduce a qualifier to distinguish between the two implementations of the "
-"bean type,"
+msgid "introduce a qualifier to distinguish between the two implementations of the bean type,"
msgstr ""
#. Tag: para
#: injection.xml:332
#, no-c-format
-msgid ""
-"disable one of the beans by annotating it <literal>@Alternative</literal>,"
+msgid "disable one of the beans by annotating it <literal>@Alternative</literal>,"
msgstr ""
#. Tag: para
#: injection.xml:337
#, no-c-format
-msgid ""
-"move one of the implementations to a module that is not in the classpath of "
-"the module with the injection point, or"
+msgid "move one of the implementations to a module that is not in the classpath of the module with the injection point, or"
msgstr ""
#. Tag: para
#: injection.xml:343
#, no-c-format
-msgid ""
-"disable one of two <literal>@Alternative</literal> beans that are trying to "
-"occupy the same space, using <literal>beans.xml</literal>."
+msgid "disable one of two <literal>@Alternative</literal> beans that are trying to occupy the same space, using <literal>beans.xml</literal>."
msgstr ""
#. Tag: para
#: injection.xml:350
#, no-c-format
-msgid ""
-"See <ulink src=\"http://sfwk.org/Documentation/"
-"HowDoAResolveAnAmbiguousResolutionExceptionBetweenAProducerMethodAndARawType"
-"\">this FAQ</ulink> for step-by-step instructions for how to resolve an "
-"ambigous resolution exception between a raw bean type and a producer method "
-"that returns the same bean type."
+msgid "See <ulink src=\"http://sfwk.org/Documentation/HowDoAResolveAnAmbiguousResolutionException...">this FAQ</ulink> for step-by-step instructions for how to resolve an ambigous resolution exception between a raw bean type and a producer method that returns the same bean type."
msgstr ""
#. Tag: para
@@ -845,18 +690,13 @@
#. Tag: para
#: injection.xml:361
#, no-c-format
-msgid ""
-"On the other hand, if you really do have an optional or multivalued "
-"injection point, you should change the type of your injection point to "
-"<literal>Instance</literal>, as we'll see in <xref linkend=\"lookup\"/>."
+msgid "On the other hand, if you really do have an optional or multivalued injection point, you should change the type of your injection point to <literal>Instance</literal>, as we'll see in <xref linkend=\"lookup\"/>."
msgstr ""
#. Tag: para
#: injection.xml:366
#, no-c-format
-msgid ""
-"Now there's one more issue you need to be aware of when using the dependency "
-"injection service."
+msgid "Now there's one more issue you need to be aware of when using the dependency injection service."
msgstr ""
#. Tag: title
@@ -868,85 +708,50 @@
#. Tag: para
#: injection.xml:375
#, fuzzy, no-c-format
-msgid ""
-"Clients of an injected bean do not usually hold a direct reference to a bean "
-"instance, unless the bean is a dependent object (scope <literal>@Dependent</"
-"literal>)."
-msgstr ""
-"Clientes de um Web Bean injetado, geralmente não possuem uma referência "
-"direta a uma instância do Web Bean ."
+msgid "Clients of an injected bean do not usually hold a direct reference to a bean instance, unless the bean is a dependent object (scope <literal>@Dependent</literal>)."
+msgstr "Clientes de um Web Bean injetado, geralmente não possuem uma referência direta a uma instância do Web Bean ."
#. Tag: para
#: injection.xml:380
#, no-c-format
-msgid ""
-"Imagine that a bean bound to the application scope held a direct reference "
-"to a bean bound to the request scope. The application-scoped bean is shared "
-"between many different requests. However, each request should see a "
-"different instance of the request scoped bean—the current one!"
+msgid "Imagine that a bean bound to the application scope held a direct reference to a bean bound to the request scope. The application-scoped bean is shared between many different requests. However, each request should see a different instance of the request scoped bean—the current one!"
msgstr ""
#. Tag: para
#: injection.xml:386
#, no-c-format
-msgid ""
-"Now imagine that a bean bound to the session scope holds a direct reference "
-"to a bean bound to the application scope. From time to time, the session "
-"context is serialized to disk in order to use memory more efficiently. "
-"However, the application scoped bean instance should not be serialized along "
-"with the session scoped bean! It can get that reference any time. No need to "
-"hoard it!"
+msgid "Now imagine that a bean bound to the session scope holds a direct reference to a bean bound to the application scope. From time to time, the session context is serialized to disk in order to use memory more efficiently. However, the application scoped bean instance should not be serialized along with the session scoped bean! It can get that reference any time. No need to hoard it!"
msgstr ""
#. Tag: para
#: injection.xml:393
#, no-c-format
-msgid ""
-"Therefore, unless a bean has the default scope <literal>@Dependent</"
-"literal>, the container must indirect all injected references to the bean "
-"through a proxy object. This <emphasis>client proxy</emphasis> is "
-"responsible for ensuring that the bean instance that receives a method "
-"invocation is the instance that is associated with the current context. The "
-"client proxy also allows beans bound to contexts such as the session context "
-"to be serialized to disk without recursively serializing other injected "
-"beans."
+msgid "Therefore, unless a bean has the default scope <literal>@Dependent</literal>, the container must indirect all injected references to the bean through a proxy object. This <emphasis>client proxy</emphasis> is responsible for ensuring that the bean instance that receives a method invocation is the instance that is associated with the current context. The client proxy also allows beans bound to contexts such as the session context to be serialized to disk without recursively serializing other injected beans."
msgstr ""
#. Tag: para
#: injection.xml:401
#, no-c-format
-msgid ""
-"Unfortunately, due to limitations of the Java language, some Java types "
-"cannot be proxied by the container. If an injection point declared with one "
-"of these types resolves to a bean with any scope other than "
-"<literal>@Dependent</literal>, the container will abort deployment, "
-"informing us of the problem."
+msgid "Unfortunately, due to limitations of the Java language, some Java types cannot be proxied by the container. If an injection point declared with one of these types resolves to a bean with any scope other than <literal>@Dependent</literal>, the container will abort deployment, informing us of the problem."
msgstr ""
#. Tag: para
#: injection.xml:407
#, fuzzy, no-c-format
msgid "The following Java types cannot be proxied by the container:"
-msgstr ""
-"Os seguintes tipos Java não podem ser \"proxied\" pelo gerenciador do Web "
-"Bean:"
+msgstr "Os seguintes tipos Java não podem ser \"proxied\" pelo gerenciador do Web Bean:"
#. Tag: para
#: injection.xml:411
#, fuzzy, no-c-format
-msgid ""
-"classes which don't have a non-private constructor with no parameters, and"
+msgid "classes which don't have a non-private constructor with no parameters, and"
msgstr "classes que não têm um construtor não privado sem parâmetros, e"
#. Tag: para
#: injection.xml:414
#, no-c-format
-msgid ""
-"classes which are declared <literal>final</literal> or have a "
-"<literal>final</literal> method,"
-msgstr ""
-"classes que são declaradas <literal>final</literal> ou que tenham um método "
-"<literal>final</literal>,"
+msgid "classes which are declared <literal>final</literal> or have a <literal>final</literal> method,"
+msgstr "classes que são declaradas <literal>final</literal> ou que tenham um método <literal>final</literal>,"
#. Tag: para
#: injection.xml:419
@@ -957,35 +762,25 @@
#. Tag: para
#: injection.xml:423
#, no-c-format
-msgid ""
-"It's usually very easy to fix an unproxyable dependency problem. Simply add "
-"a constructor with no parameters to the injected class, introduce an "
-"interface, or, if all else fails, change the scope of the injected bean to "
-"<literal>@Dependent</literal>."
+msgid "It's usually very easy to fix an unproxyable dependency problem. Simply add a constructor with no parameters to the injected class, introduce an interface, or, if all else fails, change the scope of the injected bean to <literal>@Dependent</literal>."
msgstr ""
#. Tag: para
#: injection.xml:430
#, no-c-format
-msgid ""
-"A future release of Weld will likely support a non-standard workaround for "
-"this limitation, using non-portable JVM APIs:"
+msgid "A future release of Weld will likely support a non-standard workaround for this limitation, using non-portable JVM APIs:"
msgstr ""
#. Tag: para
#: injection.xml:437
#, no-c-format
-msgid ""
-"Sun, IcedTea, Mac: <literal>Unsafe.allocateInstance()</literal> (The most "
-"efficient)"
+msgid "Sun, IcedTea, Mac: <literal>Unsafe.allocateInstance()</literal> (The most efficient)"
msgstr ""
#. Tag: para
#: injection.xml:442
#, no-c-format
-msgid ""
-"IBM, JRockit: <literal>ReflectionFactory.newConstructorForSerialization()</"
-"literal>"
+msgid "IBM, JRockit: <literal>ReflectionFactory.newConstructorForSerialization()</literal>"
msgstr ""
#. Tag: para
@@ -1003,9 +798,7 @@
#. Tag: para
#: injection.xml:459
#, no-c-format
-msgid ""
-"In certain situations, injection is not the most convenient way to obtain a "
-"contextual reference. For example, it may not be used when:"
+msgid "In certain situations, injection is not the most convenient way to obtain a contextual reference. For example, it may not be used when:"
msgstr ""
#. Tag: para
@@ -1017,9 +810,7 @@
#. Tag: para
#: injection.xml:471
#, no-c-format
-msgid ""
-"depending upon the deployment, there may be no bean which satisfies the type "
-"and qualifiers, or"
+msgid "depending upon the deployment, there may be no bean which satisfies the type and qualifiers, or"
msgstr ""
#. Tag: para
@@ -1031,32 +822,26 @@
#. Tag: para
#: injection.xml:482
#, fuzzy, no-c-format
-msgid ""
-"In these situations, the application may obtain an instance of the interface "
-"<literal>Instance</literal>, parameterized for the bean type, by injection:"
-msgstr ""
-"A aplicação pode obter uma instância da interface <literal>Manager</literal> "
-"por injeção:"
+msgid "In these situations, the application may obtain an instance of the interface <literal>Instance</literal>, parameterized for the bean type, by injection:"
+msgstr "A aplicação pode obter uma instância da interface <literal>Manager</literal> por injeção:"
#. Tag: programlisting
#: injection.xml:487
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[@Inject Instance<PaymentProcessor> paymentProcessorSource;]]>"
-msgstr "<![CDATA[@Current PaymentProcessor paymentProcessor]]>"
+msgstr "<![CDATA[@Inject Instance<PaymentProcessor> paymentProcessorSource;]]>"
#. Tag: para
#: injection.xml:489
#, no-c-format
-msgid ""
-"The <literal>get()</literal> method of <literal>Instance</literal> produces "
-"a contextual instance of the bean."
+msgid "The <literal>get()</literal> method of <literal>Instance</literal> produces a contextual instance of the bean."
msgstr ""
#. Tag: programlisting
#: injection.xml:493
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[PaymentProcessor p = paymentProcessorSource.get();]]>"
-msgstr "<![CDATA[@Current PaymentProcessor paymentProcessor]]>"
+msgstr "<![CDATA[PaymentProcessor p = paymentProcessorSource.get();]]>"
#. Tag: para
#: injection.xml:495
@@ -1073,12 +858,8 @@
#. Tag: para
#: injection.xml:504
#, fuzzy, no-c-format
-msgid ""
-"by passing qualifiers to the <literal>select()</literal> of <literal>Event</"
-"literal>."
-msgstr ""
-"Web Beans simples suportam apenas chamadas a <literal>@PostConstruct</"
-"literal> e <literal>@PreDestroy</literal>."
+msgid "by passing qualifiers to the <literal>select()</literal> of <literal>Event</literal>."
+msgstr "Web Beans simples suportam apenas chamadas a <literal>@PostConstruct</literal> e <literal>@PreDestroy</literal>."
#. Tag: para
#: injection.xml:508
@@ -1088,58 +869,43 @@
#. Tag: programlisting
#: injection.xml:512
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[@Inject @Asynchronous Instance<PaymentProcessor> "
-"paymentProcessorSource;]]>"
-msgstr ""
-"<![CDATA[@Asynchronous @PayByCheque PaymentProcessor paymentProcessor]]>"
+#, no-c-format
+msgid "<![CDATA[@Inject @Asynchronous Instance<PaymentProcessor> paymentProcessorSource;]]>"
+msgstr "<![CDATA[@Inject @Asynchronous Instance<PaymentProcessor> paymentProcessorSource;]]>"
#. Tag: para
#: injection.xml:514
#, no-c-format
-msgid ""
-"Now, the <literal>PaymentProcessor</literal> returned by <literal>get()</"
-"literal> will have the qualifier <literal>@Asynchronous</literal>."
+msgid "Now, the <literal>PaymentProcessor</literal> returned by <literal>get()</literal> will have the qualifier <literal>@Asynchronous</literal>."
msgstr ""
#. Tag: para
#: injection.xml:519
#, no-c-format
-msgid ""
-"Alternatively, we can specify the qualifier dynamically. First, we add the "
-"<literal>@Any</literal> qualifier to the injection point, to suppress the "
-"default qualifier. (All beans have the qualifier <literal>@Any</literal>.)"
+msgid "Alternatively, we can specify the qualifier dynamically. First, we add the <literal>@Any</literal> qualifier to the injection point, to suppress the default qualifier. (All beans have the qualifier <literal>@Any</literal>.)"
msgstr ""
#. Tag: programlisting
#: injection.xml:524
-#, fuzzy, no-c-format
-msgid ""
-"<![CDATA[@Inject @Any Instance<PaymentProcessor> paymentProcessorSource;]]>"
-msgstr "<![CDATA[@Current PaymentProcessor paymentProcessor]]>"
+#, no-c-format
+msgid "<![CDATA[@Inject @Any Instance<PaymentProcessor> paymentProcessorSource;]]>"
+msgstr "<![CDATA[@Inject @Any Instance<PaymentProcessor> paymentProcessorSource;]]>"
#. Tag: para
#: injection.xml:526
#, no-c-format
-msgid ""
-"Next, we need to obtain an instance of our qualifier type. Since annotatons "
-"are interfaces, we can't just write <literal>new Asynchronous()</literal>. "
-"It's also quite tedious to create a concrete implementation of an annotation "
-"type from scratch. Instead, CDI lets us obtain a qualifier instance by "
-"subclassing the helper class <literal>AnnotationLiteral</literal>."
+msgid "Next, we need to obtain an instance of our qualifier type. Since annotatons are interfaces, we can't just write <literal>new Asynchronous()</literal>. It's also quite tedious to create a concrete implementation of an annotation type from scratch. Instead, CDI lets us obtain a qualifier instance by subclassing the helper class <literal>AnnotationLiteral</literal>."
msgstr ""
#. Tag: programlisting
#: injection.xml:533
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[abstract class AsynchronousQualifier\n"
"extends AnnotationLiteral<Asynchronous> implements Asynchronous {}]]>"
msgstr ""
-"<![CDATA[abstract class CreditCardBinding \n"
-" extends AnnotationLiteral<CreditCard> \n"
-" implements CreditCard {}]]>"
+"<![CDATA[abstract class AsynchronousQualifier\n"
+"extends AnnotationLiteral<Asynchronous> implements Asynchronous {}]]>"
#. Tag: para
#: injection.xml:535
@@ -1149,29 +915,24 @@
#. Tag: programlisting
#: injection.xml:539
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[PaymentProcessor p = paymentProcessorSource\n"
" .select(new AnnotationLiteral<Asynchronous>() {});]]>"
msgstr ""
-"<![CDATA[PaymentProcessor p = manager.getInstanceByType(PaymentProcessor."
-"class, \n"
-" new "
-"AnnotationLiteral<CreditCard>(){});]]>"
+"<![CDATA[PaymentProcessor p = paymentProcessorSource\n"
+" .select(new AnnotationLiteral<Asynchronous>() {});]]>"
#. Tag: para
#: injection.xml:542
#, no-c-format
-msgid ""
-"We can't use an anonymous class to implement a qualifier type with members."
+msgid "We can't use an anonymous class to implement a qualifier type with members."
msgstr ""
#. Tag: para
#: injection.xml:547
#, no-c-format
-msgid ""
-"Now, finally, we can pass the qualifier to the <literal>select()</literal> "
-"method of <literal>Instance</literal>."
+msgid "Now, finally, we can pass the qualifier to the <literal>select()</literal> method of <literal>Instance</literal>."
msgstr ""
#. Tag: programlisting
@@ -1180,9 +941,11 @@
msgid ""
"<![CDATA[Annotation qualifier = synchronously ?\n"
" new SynchronousQualifier() : new AsynchronousQualifier();\n"
-"PaymentProcessor p = anyPaymentProcessor.select(qualifier).get().process"
-"(payment);]]>"
+"PaymentProcessor p = anyPaymentProcessor.select(qualifier).get().process(payment);]]>"
msgstr ""
+"<![CDATA[Annotation qualifier = synchronously ?\n"
+" new SynchronousQualifier() : new AsynchronousQualifier();\n"
+"PaymentProcessor p = anyPaymentProcessor.select(qualifier).get().process(payment);]]>"
#. Tag: title
#: injection.xml:556
@@ -1193,54 +956,37 @@
#. Tag: para
#: injection.xml:558
#, no-c-format
-msgid ""
-"There are certain kinds of dependent objects (beans with scope "
-"<literal>@Dependent</literal>) that need to know something about the object "
-"or injection point into which they are injected in order to be able to do "
-"what they do. For example:"
+msgid "There are certain kinds of dependent objects (beans with scope <literal>@Dependent</literal>) that need to know something about the object or injection point into which they are injected in order to be able to do what they do. For example:"
msgstr ""
#. Tag: para
#: injection.xml:564
#, no-c-format
-msgid ""
-"The log category for a <literal>Logger</literal> depends upon the class of "
-"the object that owns it."
+msgid "The log category for a <literal>Logger</literal> depends upon the class of the object that owns it."
msgstr ""
#. Tag: para
#: injection.xml:568
#, no-c-format
-msgid ""
-"Injection of a HTTP parameter or header value depends upon what parameter or "
-"header name was specified at the injection point."
+msgid "Injection of a HTTP parameter or header value depends upon what parameter or header name was specified at the injection point."
msgstr ""
#. Tag: para
#: injection.xml:572
#, no-c-format
-msgid ""
-"Injection of the result of an EL expression evaluation depends upon the "
-"expression that was specified at the injection point."
-msgstr ""
-"Injeção do resultado da avaliação de uma expressão EL depende da expressão "
-"que foi especificada no ponto de injeção."
+msgid "Injection of the result of an EL expression evaluation depends upon the expression that was specified at the injection point."
+msgstr "Injeção do resultado da avaliação de uma expressão EL depende da expressão que foi especificada no ponto de injeção."
#. Tag: para
#: injection.xml:577
#, no-c-format
-msgid ""
-"A bean with scope <literal>@Dependent</literal> may inject an instance of "
-"<literal>InjectionPoint</literal> and access metadata relating to the "
-"injection point to which it belongs."
+msgid "A bean with scope <literal>@Dependent</literal> may inject an instance of <literal>InjectionPoint</literal> and access metadata relating to the injection point to which it belongs."
msgstr ""
#. Tag: para
#: injection.xml:581
#, no-c-format
-msgid ""
-"Let's look at an example. The following code is verbose, and vulnerable to "
-"refactoring problems:"
+msgid "Let's look at an example. The following code is verbose, and vulnerable to refactoring problems:"
msgstr ""
#. Tag: programlisting
@@ -1252,9 +998,7 @@
#. Tag: para
#: injection.xml:586
#, no-c-format
-msgid ""
-"This clever little producer method lets you inject a JDK <literal>Logger</"
-"literal> without explicitly specifying the log category:"
+msgid "This clever little producer method lets you inject a JDK <literal>Logger</literal> without explicitly specifying the log category:"
msgstr ""
#. Tag: programlisting
@@ -1264,8 +1008,7 @@
"<![CDATA[class LogFactory {\n"
"\n"
" @Produces Logger createLogger(InjectionPoint injectionPoint) { \n"
-" return Logger.getLogger(injectionPoint.getMember().getDeclaringClass()."
-"getName()); \n"
+" return Logger.getLogger(injectionPoint.getMember().getDeclaringClass().getName()); \n"
" }\n"
"\n"
"}]]>"
@@ -1273,8 +1016,7 @@
"<![CDATA[class LogFactory {\n"
"\n"
" @Produces Logger createLogger(InjectionPoint injectionPoint) { \n"
-" return Logger.getLogger(injectionPoint.getMember().getDeclaringClass()."
-"getName()); \n"
+" return Logger.getLogger(injectionPoint.getMember().getDeclaringClass().getName()); \n"
" }\n"
"\n"
"}]]>"
@@ -1287,16 +1029,14 @@
#. Tag: programlisting
#: injection.xml:593
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[@Inject Logger log;]]>"
-msgstr "<![CDATA[@Current Logger log;]]>"
+msgstr "<![CDATA[@Inject Logger log;]]>"
#. Tag: para
#: injection.xml:595
#, no-c-format
-msgid ""
-"Not convinced? Then here's a second example. To inject HTTP parameters, we "
-"need to define a qualifier type:"
+msgid "Not convinced? Then here's a second example. To inject HTTP parameters, we need to define a qualifier type:"
msgstr ""
#. Tag: programlisting
@@ -1347,8 +1087,7 @@
"\n"
" @Produces @HttpParam(\"\")\n"
" String getParamValue(ServletRequest request, InjectionPoint ip) {\n"
-" return request.getParameter(ip.getAnnotation(HttpParam.class).value"
-"());\n"
+" return request.getParameter(ip.getAnnotation(HttpParam.class).value());\n"
" }\n"
"\n"
"}]]>"
@@ -1357,8 +1096,7 @@
"\n"
" @Produces @HttpParam(\"\")\n"
" String getParamValue(ServletRequest request, InjectionPoint ip) {\n"
-" return request.getParameter(ip.getAnnotation(HttpParam.class).value"
-"());\n"
+" return request.getParameter(ip.getAnnotation(HttpParam.class).value());\n"
" }\n"
"\n"
"}]]>"
@@ -1366,18 +1104,13 @@
#. Tag: para
#: injection.xml:608
#, no-c-format
-msgid ""
-"(Note that the <literal>value()</literal> member of the <literal>HttpParam</"
-"literal> annotation is ignored by the container since it is annotated "
-"<literal>@NonBinding.</literal>)"
+msgid "(Note that the <literal>value()</literal> member of the <literal>HttpParam</literal> annotation is ignored by the container since it is annotated <literal>@NonBinding.</literal>)"
msgstr ""
#. Tag: para
#: injection.xml:611
#, no-c-format
-msgid ""
-"The container provides a built-in bean that implements the "
-"<literal>InjectionPoint</literal> interface:"
+msgid "The container provides a built-in bean that implements the <literal>InjectionPoint</literal> interface:"
msgstr ""
#. Tag: programlisting
@@ -1404,10 +1137,8 @@
#~ "Web Beans supports three primary mechanisms for dependency injection:"
#~ msgstr ""
#~ "Web Beans suporta três principais mecanismos de injeção de dependências:"
-
#~ msgid "Constructor parameter injection:"
#~ msgstr "Injeção de parametros no construtor:"
-
#~ msgid ""
#~ "Constructor parameter injection is not supported for EJB beans, since the "
#~ "EJB is instantiated by the EJB container, not the Web Bean manager."
@@ -1415,10 +1146,8 @@
#~ "Injeção de parâmetros no construtor não é suportado em EJB beans, uma vez "
#~ "que o EJB é instanciado pelo container EJB e não pelo gerenciador do Web "
#~ "Bean."
-
#~ msgid "Producer methods also support parameter injection:"
#~ msgstr "Métodos produtores também suportam injeção de parâmetros:"
-
#~ msgid ""
#~ "Finally, observer methods (which we'll meet in <xref linkend=\"events\"/"
#~ ">), disposal methods and destructor methods all support parameter "
@@ -1427,7 +1156,6 @@
#~ "Por fim, métodos de observação (que iremos detalhar em <xref linkend="
#~ "\"events\"/>), métodos de disposal e métodos destrutores, todos suportam "
#~ "injeção de parâmetros."
-
#~ msgid ""
#~ "allow one implementation of an API to override another implementation of "
#~ "the same API at deployment time, without changes to the client, using "
@@ -1437,14 +1165,12 @@
#~ "implementação da mesma API em tempo de implantação, sem alterações no "
#~ "cliente, utilizando <emphasis>precedência do tipo de implantação "
#~ "(deployment type precedence)</emphasis>."
-
#~ msgid ""
#~ "Let's explore how the Web Beans manager determines a Web Bean to be "
#~ "injected."
#~ msgstr ""
#~ "Vamos explorer como o gerenciador do Web Beans determina qual o Web Bean "
#~ "deve ser injetado."
-
#~ msgid ""
#~ "<![CDATA[@PayByCreditCard\n"
#~ "public class CreditCardPaymentProcessor implements PaymentProcessor {\n"
@@ -1455,7 +1181,6 @@
#~ "public class CreditCardPaymentProcessor implements PaymentProcessor {\n"
#~ " public void process(Payment payment) { ... }\n"
#~ "}]]>"
-
#~ msgid ""
#~ "<![CDATA[@Retention(RUNTIME)\n"
#~ "@Target({TYPE, METHOD, FIELD, PARAMETER})\n"
@@ -1466,26 +1191,20 @@
#~ "@Target({TYPE, METHOD, FIELD, PARAMETER})\n"
#~ "@BindingType\n"
#~ "public @interface PayByCreditCard {}]]>"
-
#~ msgid "In which case, the member value is significant:"
#~ msgstr "Em cada caso, o valor do membro é significante:"
-
#~ msgid ""
#~ "<![CDATA[@PayBy(CHEQUE) PaymentProcessor chequePaymentProcessor;\n"
#~ "@PayBy(CREDIT_CARD) PaymentProcessor creditCardPaymentProcessor;]]>"
#~ msgstr ""
#~ "<![CDATA[@PayBy(CHEQUE) PaymentProcessor chequePaymentProcessor;\n"
#~ "@PayBy(CREDIT_CARD) PaymentProcessor creditCardPaymentProcessor;]]>"
-
#~ msgid "Combinations of binding annnotations"
#~ msgstr "Combinações de anotações de binding"
-
#~ msgid "Binding annotations and producer methods"
#~ msgstr "Anotações de binding e métodos produtores "
-
#~ msgid "Even producer methods may specify binding annotations:"
#~ msgstr "Mesmo métodos produtores podem especificar anotações de binding:"
-
#~ msgid ""
#~ "<![CDATA[@Produces \n"
#~ "@Asynchronous @PayByCheque \n"
@@ -1500,34 +1219,28 @@
#~ "PaymentProcessor processor) {\n"
#~ " return new AsynchronousPaymentProcessor(processor);\n"
#~ "}]]>"
-
#~ msgid "The default binding type"
#~ msgstr "O tipo padrão de binding"
-
#~ msgid ""
#~ "There are two common circumstances in which it is necessary to explicitly "
#~ "specify <literal>@Current</literal>:"
#~ msgstr ""
#~ "Há duas situações comuns nas quais é necessário indicar explicitamente "
#~ "<literal>@Current</literal>:"
-
#~ msgid ""
#~ "on a field, in order to declare it as an injected field with the default "
#~ "binding type, and"
#~ msgstr ""
#~ "em um campo, a fim de declará-lo como um campo injetado com o tipo de "
#~ "binding padrão, e"
-
#~ msgid ""
#~ "on a Web Bean which has another binding type in addition to the default "
#~ "binding type."
#~ msgstr ""
#~ "em um Web Bean, que tem um outro tipo de binding além do tipo padrão de "
#~ "binding."
-
#~ msgid "Deployment types"
#~ msgstr "Tipo de deploy"
-
#~ msgid ""
#~ "<![CDATA[@Retention(RUNTIME)\n"
#~ " @Target({TYPE, METHOD})\n"
@@ -1538,14 +1251,12 @@
#~ " @Target({TYPE, METHOD})\n"
#~ " @DeploymentType\n"
#~ " public @interface Mock {}]]>"
-
#~ msgid ""
#~ "Suppose we had some Web Bean that interacted with an external system to "
#~ "process payments:"
#~ msgstr ""
#~ "Suponha que temos alguns Web Beans que interajam com um sistema externo "
#~ "para processar pagamentos:"
-
#~ msgid ""
#~ "<![CDATA[public class ExternalPaymentProcessor {\n"
#~ " \n"
@@ -1562,7 +1273,6 @@
#~ " }\n"
#~ " \n"
#~ "}]]>"
-
#~ msgid ""
#~ "Since this Web Bean does not explicitly specify a deployment type, it has "
#~ "the default deployment type <literal>@Production</literal>."
@@ -1570,7 +1280,6 @@
#~ "Uma vez que esse Web Bean não especifica explicitamente um tipo de "
#~ "implantação, ele tem o tipo de implantação padrão <literal>@Production</"
#~ "literal>."
-
#~ msgid ""
#~ "<![CDATA[@Mock \n"
#~ "public class MockPaymentProcessor implements PaymentProcessor {\n"
@@ -1591,10 +1300,8 @@
#~ " }\n"
#~ "\n"
#~ "}]]>"
-
#~ msgid "Enabling deployment types"
#~ msgstr "Ativando tipos de implantação (deployment types)"
-
#~ msgid ""
#~ "<![CDATA[<WebBeans>\n"
#~ " <Deploy>\n"
@@ -1611,30 +1318,24 @@
#~ " <test:Mock/>\n"
#~ " </Deploy>\n"
#~ "</WebBeans>]]>"
-
#~ msgid "Deployment type precedence"
#~ msgstr "Precedencia dos tipos de deploy"
-
#~ msgid "Example deployment types"
#~ msgstr "Exemplo de tipos de deploy"
-
#~ msgid "<![CDATA[@Current Manager manager;]]>"
#~ msgstr "<![CDATA[@Current Manager manager;]]>"
-
#~ msgid ""
#~ "The <literal>Manager</literal> object provides a set of methods for "
#~ "obtaining a Web Bean instance programatically."
#~ msgstr ""
#~ "O objeto <literal>Manager</literal> fornece um conjunto de métodos para a "
#~ "obtenção de uma instância de um Web Bean programaticamente."
-
#~ msgid ""
#~ "<![CDATA[PaymentProcessor p = manager.getInstanceByType(PaymentProcessor."
#~ "class);]]>"
#~ msgstr ""
#~ "<![CDATA[PaymentProcessor p = manager.getInstanceByType(PaymentProcessor."
#~ "class);]]>"
-
#~ msgid ""
#~ "<![CDATA[PaymentProcessor p = manager.getInstanceByType(PaymentProcessor."
#~ "class, \n"
@@ -1651,17 +1352,16 @@
#~ " public void value() "
#~ "{ return paymentType; } \n"
#~ " } );]]>"
-
#~ msgid ""
#~ "Lifecycle callbacks, <literal>@Resource</literal>, <literal>@EJB</"
#~ "literal> and <literal>@PersistenceContext</literal>"
#~ msgstr ""
#~ "Chamadas ao ciclo de vida, <literal>@Resource</literal>, <literal>@EJB</"
#~ "literal> e <literal>@PersistenceContext</literal>"
-
#~ msgid ""
#~ "The <literal>@PostConstruct</literal> callback always occurs after all "
#~ "dependencies have been injected."
#~ msgstr ""
#~ "A chamada ao <literal>@PostConstruct</literal> sempre ocorre após todas "
#~ "as dependências serem injetadas."
+
Modified: doc/trunk/reference/pt-BR/interceptors.po
===================================================================
--- doc/trunk/reference/pt-BR/interceptors.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/interceptors.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,7 +6,7 @@
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-04-06 08:34-0300\n"
+"PO-Revision-Date: 2009-12-19 18:05-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -22,19 +22,13 @@
#. Tag: para
#: interceptors.xml:7
#, fuzzy, no-c-format
-msgid ""
-"Interceptor functionality is defined in the Java Interceptors specification. "
-"CDI enhances this functionality with a more sophisticated, semantic, "
-"annotation-based approach to binding interceptors to beans."
-msgstr ""
-"Web Beans possui uma abordagem mais sofisticadas baseada em anotações para "
-"associar interceptores aos Web Beans."
+msgid "Interceptor functionality is defined in the Java Interceptors specification. CDI enhances this functionality with a more sophisticated, semantic, annotation-based approach to binding interceptors to beans."
+msgstr "Web Beans possui uma abordagem mais sofisticadas baseada em anotações para associar interceptores aos Web Beans."
#. Tag: para
#: interceptors.xml:12
#, fuzzy, no-c-format
-msgid ""
-"The Interceptors specification defines two kinds of interception points:"
+msgid "The Interceptors specification defines two kinds of interception points:"
msgstr "A especificação de EJB define dois tipos de pontos de interceptação:"
#. Tag: para
@@ -58,37 +52,32 @@
#. Tag: para
#: interceptors.xml:29
#, no-c-format
-msgid ""
-"A <emphasis>business method interceptor</emphasis> applies to invocations of "
-"methods of the bean by clients of the bean:"
+msgid "A <emphasis>business method interceptor</emphasis> applies to invocations of methods of the bean by clients of the bean:"
msgstr ""
#. Tag: programlisting
#: interceptors.xml:34
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public class TransactionInterceptor {\n"
" @AroundInvoke \n"
-" public Object manageTransaction(InvocationContext ctx) throws Exception "
-"{ ... }\n"
+" public Object manageTransaction(InvocationContext ctx) throws Exception { ... }\n"
"}]]>"
msgstr ""
"<![CDATA[public class TransactionInterceptor {\n"
-" @AroundInvoke public Object manageTransaction(InvocationContext ctx) "
-"{ ... }\n"
+" @AroundInvoke \n"
+" public Object manageTransaction(InvocationContext ctx) throws Exception { ... }\n"
"}]]>"
#. Tag: para
#: interceptors.xml:36
#, no-c-format
-msgid ""
-"A <emphasis>lifecycle callback interceptor</emphasis> applies to invocations "
-"of lifecycle callbacks by the container:"
+msgid "A <emphasis>lifecycle callback interceptor</emphasis> applies to invocations of lifecycle callbacks by the container:"
msgstr ""
#. Tag: programlisting
#: interceptors.xml:41
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public class DependencyInjectionInterceptor {\n"
" @PostConstruct \n"
@@ -96,39 +85,34 @@
"}]]>"
msgstr ""
"<![CDATA[public class DependencyInjectionInterceptor {\n"
-" @PostConstruct public void injectDependencies(InvocationContext ctx) "
-"{ ... }\n"
+" @PostConstruct \n"
+" public void injectDependencies(InvocationContext ctx) { ... }\n"
"}]]>"
#. Tag: para
#: interceptors.xml:43
#, no-c-format
-msgid ""
-"An interceptor class may intercept both lifecycle callbacks and business "
-"methods."
+msgid "An interceptor class may intercept both lifecycle callbacks and business methods."
msgstr ""
#. Tag: para
#: interceptors.xml:47
#, no-c-format
-msgid ""
-"A <emphasis>timeout method interceptor</emphasis> applies to invocations of "
-"EJB timeout methods by the container:"
+msgid "A <emphasis>timeout method interceptor</emphasis> applies to invocations of EJB timeout methods by the container:"
msgstr ""
#. Tag: programlisting
#: interceptors.xml:52
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public class TimeoutInterceptor {\n"
" @AroundTimeout \n"
-" public Object manageTransaction(InvocationContext ctx) throws Exception "
-"{ ... }\n"
+" public Object manageTransaction(InvocationContext ctx) throws Exception { ... }\n"
"}]]>"
msgstr ""
-"<![CDATA[public class TransactionInterceptor {\n"
-" @AroundInvoke public Object manageTransaction(InvocationContext ctx) "
-"{ ... }\n"
+"<![CDATA[public class TimeoutInterceptor {\n"
+" @AroundTimeout \n"
+" public Object manageTransaction(InvocationContext ctx) throws Exception { ... }\n"
"}]]>"
#. Tag: title
@@ -140,22 +124,19 @@
#. Tag: para
#: interceptors.xml:57
#, no-c-format
-msgid ""
-"Suppose we want to declare that some of our beans are transactional. The "
-"first thing we need is an <emphasis>interceptor binding type</emphasis> to "
-"specify exactly which beans we're interested in:"
+msgid "Suppose we want to declare that some of our beans are transactional. The first thing we need is an <emphasis>interceptor binding type</emphasis> to specify exactly which beans we're interested in:"
msgstr ""
#. Tag: programlisting
#: interceptors.xml:62
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@InterceptorBinding\n"
"@Target({METHOD, TYPE})\n"
"@Retention(RUNTIME)\n"
"public @interface Transactional {}]]>"
msgstr ""
-"<![CDATA[@InterceptorBindingType\n"
+"<![CDATA[@InterceptorBinding\n"
"@Target({METHOD, TYPE})\n"
"@Retention(RUNTIME)\n"
"public @interface Transactional {}]]>"
@@ -163,9 +144,7 @@
#. Tag: para
#: interceptors.xml:64
#, no-c-format
-msgid ""
-"Now we can easily specify that our <literal>ShoppingCart</literal> is a "
-"transactional object:"
+msgid "Now we can easily specify that our <literal>ShoppingCart</literal> is a transactional object:"
msgstr ""
#. Tag: programlisting
@@ -186,14 +165,14 @@
#. Tag: programlisting
#: interceptors.xml:74
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public class ShoppingCart {\n"
" @Transactional public void checkout() { ... }\n"
"}]]>"
msgstr ""
"<![CDATA[public class ShoppingCart {\n"
-" @Transactional public void checkout() { ... }\n"
+" @Transactional public void checkout() { ... }\n"
"}]]>"
#. Tag: title
@@ -205,28 +184,23 @@
#. Tag: para
#: interceptors.xml:81
#, no-c-format
-msgid ""
-"That's great, but somewhere along the line we're going to have to actually "
-"implement the interceptor that provides this transaction management aspect. "
-"All we need to do is create a standard interceptor, and annotate it "
-"<literal>@Interceptor</literal> and <literal>@Transactional</literal>."
+msgid "That's great, but somewhere along the line we're going to have to actually implement the interceptor that provides this transaction management aspect. All we need to do is create a standard interceptor, and annotate it <literal>@Interceptor</literal> and <literal>@Transactional</literal>."
msgstr ""
#. Tag: programlisting
#: interceptors.xml:87
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Transactional @Interceptor\n"
"public class TransactionInterceptor {\n"
" @AroundInvoke \n"
-" public Object manageTransaction(InvocationContext ctx) throws Exception "
-"{ ... }\n"
+" public Object manageTransaction(InvocationContext ctx) throws Exception { ... }\n"
"}]]>"
msgstr ""
"<![CDATA[@Transactional @Interceptor\n"
"public class TransactionInterceptor {\n"
-" @AroundInvoke public Object manageTransaction(InvocationContext ctx) "
-"{ ... }\n"
+" @AroundInvoke \n"
+" public Object manageTransaction(InvocationContext ctx) throws Exception { ... }\n"
"}]]>"
#. Tag: para
@@ -237,7 +211,7 @@
#. Tag: programlisting
#: interceptors.xml:93
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Transactional @Interceptor\n"
"public class TransactionInterceptor {\n"
@@ -245,18 +219,17 @@
" @Resource UserTransaction transaction;\n"
"\n"
" @AroundInvoke \n"
-" public Object manageTransaction(InvocationContext ctx) throws Exception "
-"{ ... }\n"
+" public Object manageTransaction(InvocationContext ctx) throws Exception { ... }\n"
" \n"
"}]]>"
msgstr ""
-"<![CDATA[@ApplicationScoped @Transactional @Interceptor\n"
+"<![CDATA[@Transactional @Interceptor\n"
"public class TransactionInterceptor {\n"
"\n"
-" @Resource Transaction transaction;\n"
+" @Resource UserTransaction transaction;\n"
"\n"
-" @AroundInvoke public Object manageTransaction(InvocationContext ctx) "
-"{ ... }\n"
+" @AroundInvoke \n"
+" public Object manageTransaction(InvocationContext ctx) throws Exception { ... }\n"
" \n"
"}]]>"
@@ -275,10 +248,7 @@
#. Tag: para
#: interceptors.xml:104
#, no-c-format
-msgid ""
-"By default, all interceptors are disabled. We need to <emphasis>enable</"
-"emphasis> our interceptor in the <literal>beans.xml</literal> descriptor of "
-"a bean archive. This activation only applies to the beans in that archive."
+msgid "By default, all interceptors are disabled. We need to <emphasis>enable</emphasis> our interceptor in the <literal>beans.xml</literal> descriptor of a bean archive. This activation only applies to the beans in that archive."
msgstr ""
#. Tag: programlisting
@@ -296,6 +266,16 @@
" </interceptors>\n"
"</beans>]]>"
msgstr ""
+"<![CDATA[<beans\n"
+" xmlns=\"http://java.sun.com/xml/ns/javaee\"\n"
+" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+" xsi:schemaLocation=\"\n"
+" http://java.sun.com/xml/ns/javaee\n"
+" http://java.sun.com/xml/ns/javaee/beans_1_0.xsd\">\n"
+" <interceptors>\n"
+" <class>org.mycompany.myapp.TransactionInterceptor</class>\n"
+" </interceptors>\n"
+"</beans>]]>"
#. Tag: para
#: interceptors.xml:112
@@ -306,20 +286,14 @@
#. Tag: para
#: interceptors.xml:114
#, fuzzy, no-c-format
-msgid ""
-"Well, having the XML declaration is actually a <emphasis>good thing</"
-"emphasis>. It solves two problems:"
+msgid "Well, having the XML declaration is actually a <emphasis>good thing</emphasis>. It solves two problems:"
msgstr "Bem, a declaração XML resolve dois problemas:"
#. Tag: para
#: interceptors.xml:120
#, no-c-format
-msgid ""
-"it enables us to specify a total ordering for all the interceptors in our "
-"system, ensuring deterministic behavior, and"
-msgstr ""
-"o que nos permite especificar totalmente a ordem para todos os interceptores "
-"em nosso sistema, garantindo um comportamento determinístico, e"
+msgid "it enables us to specify a total ordering for all the interceptors in our system, ensuring deterministic behavior, and"
+msgstr "o que nos permite especificar totalmente a ordem para todos os interceptores em nosso sistema, garantindo um comportamento determinístico, e"
#. Tag: para
#: interceptors.xml:126
@@ -330,9 +304,7 @@
#. Tag: para
#: interceptors.xml:130
#, no-c-format
-msgid ""
-"For example, we could specify that our security interceptor runs before our "
-"transaction interceptor."
+msgid "For example, we could specify that our security interceptor runs before our transaction interceptor."
msgstr ""
#. Tag: programlisting
@@ -351,13 +323,22 @@
" </interceptors>\n"
"</beans>]]>"
msgstr ""
+"<![CDATA[<beans\n"
+" xmlns=\"http://java.sun.com/xml/ns/javaee\"\n"
+" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+" xsi:schemaLocation=\"\n"
+" http://java.sun.com/xml/ns/javaee\n"
+" http://java.sun.com/xml/ns/javaee/beans_1_0.xsd\">\n"
+" <interceptors>\n"
+" <class>org.mycompany.myapp.SecurityInterceptor</class>\n"
+" <class>org.mycompany.myapp.TransactionInterceptor</class>\n"
+" </interceptors>\n"
+"</beans>]]>"
#. Tag: para
#: interceptors.xml:136
#, no-c-format
-msgid ""
-"Or we could turn them both off in our test environment by simply not "
-"mentioning them in <literal>beans.xml</literal>! Ah, so simple."
+msgid "Or we could turn them both off in our test environment by simply not mentioning them in <literal>beans.xml</literal>! Ah, so simple."
msgstr ""
#. Tag: title
@@ -369,16 +350,12 @@
#. Tag: para
#: interceptors.xml:144
#, no-c-format
-msgid ""
-"Suppose we want to add some extra information to our "
-"<literal>@Transactional</literal> annotation:"
-msgstr ""
-"Suponhamos que queremos acrescentar algumas informações adicionais para o "
-"nossa anotação <literal>@Transactional</literal>: "
+msgid "Suppose we want to add some extra information to our <literal>@Transactional</literal> annotation:"
+msgstr "Suponhamos que queremos acrescentar algumas informações adicionais para o nossa anotação <literal>@Transactional</literal>: "
#. Tag: programlisting
#: interceptors.xml:148
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@InterceptorBinding\n"
"@Target({METHOD, TYPE})\n"
@@ -387,70 +364,60 @@
" boolean requiresNew() default false;\n"
"}]]>"
msgstr ""
-"<![CDATA[@InterceptorBindingType\n"
+"<![CDATA[@InterceptorBinding\n"
"@Target({METHOD, TYPE})\n"
"@Retention(RUNTIME)\n"
"public @interface Transactional {\n"
-" boolean requiresNew() default false;\n"
+" boolean requiresNew() default false;\n"
"}]]>"
#. Tag: para
#: interceptors.xml:150
#, no-c-format
-msgid ""
-"CDI will use the value of <literal>requiresNew</literal> to choose between "
-"two different interceptors, <literal>TransactionInterceptor</literal> and "
-"<literal>RequiresNewTransactionInterceptor</literal>."
+msgid "CDI will use the value of <literal>requiresNew</literal> to choose between two different interceptors, <literal>TransactionInterceptor</literal> and <literal>RequiresNewTransactionInterceptor</literal>."
msgstr ""
#. Tag: programlisting
#: interceptors.xml:155
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Transactional(requiresNew = true) @Interceptor\n"
"public class RequiresNewTransactionInterceptor {\n"
" @AroundInvoke \n"
-" public Object manageTransaction(InvocationContext ctx) throws Exception "
-"{ ... }\n"
+" public Object manageTransaction(InvocationContext ctx) throws Exception { ... }\n"
"}]]>"
msgstr ""
-"<![CDATA[@Transactional(requiresNew=true) @Interceptor\n"
+"<![CDATA[@Transactional(requiresNew = true) @Interceptor\n"
"public class RequiresNewTransactionInterceptor {\n"
-" @AroundInvoke public Object manageTransaction(InvocationContext ctx) "
-"{ ... }\n"
+" @AroundInvoke \n"
+" public Object manageTransaction(InvocationContext ctx) throws Exception { ... }\n"
"}]]>"
#. Tag: para
#: interceptors.xml:157
#, no-c-format
-msgid ""
-"Now we can use <literal>RequiresNewTransactionInterceptor</literal> like "
-"this:"
+msgid "Now we can use <literal>RequiresNewTransactionInterceptor</literal> like this:"
msgstr ""
#. Tag: programlisting
#: interceptors.xml:161
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Transactional(requiresNew = true)\n"
"public class ShoppingCart { ... }]]>"
msgstr ""
-"<![CDATA[@Transactional(requiresNew=true)\n"
+"<![CDATA[@Transactional(requiresNew = true)\n"
"public class ShoppingCart { ... }]]>"
#. Tag: para
#: interceptors.xml:163
#, no-c-format
-msgid ""
-"But what if we only have one interceptor and we want the container to ignore "
-"the value of <literal>requiresNew</literal> when binding interceptors? "
-"Perhaps this information is only useful for the interceptor implementation. "
-"We can use the <literal>@NonBinding</literal> annotation:"
+msgid "But what if we only have one interceptor and we want the container to ignore the value of <literal>requiresNew</literal> when binding interceptors? Perhaps this information is only useful for the interceptor implementation. We can use the <literal>@NonBinding</literal> annotation:"
msgstr ""
#. Tag: programlisting
#: interceptors.xml:169
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@InterceptorBinding\n"
"@Target({METHOD, TYPE})\n"
@@ -459,11 +426,11 @@
" @NonBinding String[] rolesAllowed() default {};\n"
"}]]>"
msgstr ""
-"<![CDATA[@InterceptorBindingType\n"
+"<![CDATA[@InterceptorBinding\n"
"@Target({METHOD, TYPE})\n"
"@Retention(RUNTIME)\n"
"public @interface Secure {\n"
-" @NonBinding String[] rolesAllowed() default {};\n"
+" @NonBinding String[] rolesAllowed() default {};\n"
"}]]>"
#. Tag: title
@@ -475,11 +442,7 @@
#. Tag: para
#: interceptors.xml:176
#, no-c-format
-msgid ""
-"Usually we use combinations of interceptor bindings types to bind multiple "
-"interceptors to a bean. For example, the following declaration would be used "
-"to bind <literal>TransactionInterceptor</literal> and "
-"<literal>SecurityInterceptor</literal> to the same bean:"
+msgid "Usually we use combinations of interceptor bindings types to bind multiple interceptors to a bean. For example, the following declaration would be used to bind <literal>TransactionInterceptor</literal> and <literal>SecurityInterceptor</literal> to the same bean:"
msgstr ""
#. Tag: programlisting
@@ -495,9 +458,7 @@
#. Tag: para
#: interceptors.xml:184
#, no-c-format
-msgid ""
-"However, in very complex cases, an interceptor itself may specify some "
-"combination of interceptor binding types:"
+msgid "However, in very complex cases, an interceptor itself may specify some combination of interceptor binding types:"
msgstr ""
#. Tag: programlisting
@@ -513,26 +474,24 @@
#. Tag: para
#: interceptors.xml:191
#, no-c-format
-msgid ""
-"Then this interceptor could be bound to the <literal>checkout()</literal> "
-"method using any one of the following combinations:"
+msgid "Then this interceptor could be bound to the <literal>checkout()</literal> method using any one of the following combinations:"
msgstr ""
#. Tag: programlisting
#: interceptors.xml:196
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public class ShoppingCart {\n"
" @Transactional @Secure public void checkout() { ... }\n"
"}]]>"
msgstr ""
"<![CDATA[public class ShoppingCart {\n"
-" @Transactional @Secure public void checkout() { ... }\n"
+" @Transactional @Secure public void checkout() { ... }\n"
"}]]>"
#. Tag: programlisting
#: interceptors.xml:198
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Secure\n"
"public class ShoppingCart {\n"
@@ -541,26 +500,26 @@
msgstr ""
"<![CDATA[@Secure\n"
"public class ShoppingCart {\n"
-" @Transactional public void checkout() { ... }\n"
+" @Transactional public void checkout() { ... }\n"
"}]]>"
#. Tag: programlisting
#: interceptors.xml:200
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Transactional\n"
"public class ShoppingCart {\n"
" @Secure public void checkout() { ... }\n"
"}]]>"
msgstr ""
-"<![CDATA[@Transactionl\n"
+"<![CDATA[@Transactional\n"
"public class ShoppingCart {\n"
-" @Secure public void checkout() { ... }\n"
+" @Secure public void checkout() { ... }\n"
"}]]>"
#. Tag: programlisting
#: interceptors.xml:202
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Transactional @Secure\n"
"public class ShoppingCart {\n"
@@ -569,7 +528,7 @@
msgstr ""
"<![CDATA[@Transactional @Secure\n"
"public class ShoppingCart {\n"
-" public void checkout() { ... }\n"
+" public void checkout() { ... }\n"
"}]]>"
#. Tag: title
@@ -581,34 +540,24 @@
#. Tag: para
#: interceptors.xml:209
#, no-c-format
-msgid ""
-"One limitation of the Java language support for annotations is the lack of "
-"annotation inheritance. Really, annotations should have reuse built in, to "
-"allow this kind of thing to work:"
+msgid "One limitation of the Java language support for annotations is the lack of annotation inheritance. Really, annotations should have reuse built in, to allow this kind of thing to work:"
msgstr ""
#. Tag: programlisting
#: interceptors.xml:214
#, no-c-format
-msgid ""
-"<![CDATA[public @interface Action extends Transactional, Secure { ... }]]>"
-msgstr ""
-"<![CDATA[public @interface Action extends Transactional, Secure { ... }]]>"
+msgid "<![CDATA[public @interface Action extends Transactional, Secure { ... }]]>"
+msgstr "<![CDATA[public @interface Action extends Transactional, Secure { ... }]]>"
#. Tag: para
#: interceptors.xml:216
#, no-c-format
-msgid ""
-"Well, fortunately, CDI works around this missing feature of Java. We may "
-"annotate one interceptor binding type with other interceptor binding types "
-"(termed a <emphasis>meta-annotation</emphasis>). The interceptor bindings "
-"are transitive — any bean with the first interceptor binding inherits "
-"the interceptor bindings declared as meta-annotations."
+msgid "Well, fortunately, CDI works around this missing feature of Java. We may annotate one interceptor binding type with other interceptor binding types (termed a <emphasis>meta-annotation</emphasis>). The interceptor bindings are transitive — any bean with the first interceptor binding inherits the interceptor bindings declared as meta-annotations."
msgstr ""
#. Tag: programlisting
#: interceptors.xml:223
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Transactional @Secure\n"
"@InterceptorBinding\n"
@@ -617,7 +566,7 @@
"public @interface Action { ... }]]>"
msgstr ""
"<![CDATA[@Transactional @Secure\n"
-"@InterceptorBindingType\n"
+"@InterceptorBinding\n"
"@Target(TYPE)\n"
"@Retention(RUNTIME)\n"
"public @interface Action { ... }]]>"
@@ -625,11 +574,7 @@
#. Tag: para
#: interceptors.xml:225
#, no-c-format
-msgid ""
-"Now, any bean annotated <literal>@Action</literal> will be bound to both "
-"<literal>TransactionInterceptor</literal> and <literal>SecurityInterceptor</"
-"literal>. (And even <literal>TransactionalSecureInterceptor</literal>, if it "
-"exists.)"
+msgid "Now, any bean annotated <literal>@Action</literal> will be bound to both <literal>TransactionInterceptor</literal> and <literal>SecurityInterceptor</literal>. (And even <literal>TransactionalSecureInterceptor</literal>, if it exists.)"
msgstr ""
#. Tag: title
@@ -641,26 +586,21 @@
#. Tag: para
#: interceptors.xml:236
#, no-c-format
-msgid ""
-"The <literal>@Interceptors</literal> annotation defined by the interceptor "
-"specification (and used by the managed bean and EJB specifications) is still "
-"supported in CDI."
+msgid "The <literal>@Interceptors</literal> annotation defined by the interceptor specification (and used by the managed bean and EJB specifications) is still supported in CDI."
msgstr ""
#. Tag: programlisting
#: interceptors.xml:239
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
-"<![CDATA[(a)Interceptors({TransactionInterceptor.class, SecurityInterceptor."
-"class})\n"
+"<![CDATA[(a)Interceptors({TransactionInterceptor.class, SecurityInterceptor.class})\n"
"public class ShoppingCart {\n"
" public void checkout() { ... }\n"
"}]]>"
msgstr ""
-"<![CDATA[(a)Interceptors({TransactionInterceptor.class, SecurityInterceptor."
-"class})\n"
+"<![CDATA[(a)Interceptors({TransactionInterceptor.class, SecurityInterceptor.class})\n"
"public class ShoppingCart {\n"
-" public void checkout() { ... }\n"
+" public void checkout() { ... }\n"
"}]]>"
#. Tag: para
@@ -684,9 +624,7 @@
#. Tag: para
#: interceptors.xml:255
#, no-c-format
-msgid ""
-"the interceptor ordering is non-global — it is determined by the order "
-"in which interceptors are listed at the class level."
+msgid "the interceptor ordering is non-global — it is determined by the order in which interceptors are listed at the class level."
msgstr ""
#. Tag: para
@@ -701,17 +639,14 @@
#~ msgstr ""
#~ "Web Beans re utiliza a arquitetura básica do interceptor de EJB 3.0, que "
#~ "extende a funcionalidade em duas direções:"
-
#~ msgid "Any Web Bean may have interceptors, not just session beans."
#~ msgstr "Qualquer Web Bean pode ter interceptores, não apenas session beans."
-
#~ msgid ""
#~ "Finally, we need to <emphasis>enable</emphasis> our interceptor in "
#~ "<literal>web-beans.xml</literal>."
#~ msgstr ""
#~ "Finalmente, temos que <emphasis>ativar</emphasis> nossos interceptadores "
#~ "no <literal>web-beans.xml</literal>."
-
#~ msgid ""
#~ "<![CDATA[<Interceptors>\n"
#~ " <tx:TransactionInterceptor/>\n"
@@ -720,7 +655,6 @@
#~ "<![CDATA[<Interceptors>\n"
#~ " <tx:TransactionInterceptor/>\n"
#~ "</Interceptors>]]>"
-
#~ msgid ""
#~ "<![CDATA[<Interceptors>\n"
#~ " <sx:SecurityInterceptor/>\n"
@@ -731,3 +665,4 @@
#~ " <sx:SecurityInterceptor/>\n"
#~ " <tx:TransactionInterceptor/>\n"
#~ "</Interceptors>]]>"
+
Modified: doc/trunk/reference/pt-BR/intro.po
===================================================================
--- doc/trunk/reference/pt-BR/intro.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/intro.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,7 +6,7 @@
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-04-06 13:01-0300\n"
+"PO-Revision-Date: 2009-12-19 18:08-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -22,18 +22,8 @@
#. Tag: para
#: intro.xml:6
#, fuzzy, no-c-format
-msgid ""
-"So you're keen to get started writing your first bean? Or perhaps you're "
-"skeptical, wondering what kinds of hoops the CDI specification will make you "
-"jump through! The good news is that you've probably already written and used "
-"hundreds, perhaps thousands of beans. CDI just makes it easier to actually "
-"use them to build an application!"
-msgstr ""
-"Então você está interessado em começar a escrever o seu primeiro Web Bean? "
-"Ou talvez você é cético, imaginando que tipos de hoops a especificação Web "
-"Beans fará com que você passe! A boa notícia é que você provavelmente já "
-"escreveu e utilizou centenas, talvez milhares de Web Beans. Você pode até "
-"não se lembrar do primeiro Web Bean que escreveu."
+msgid "So you're keen to get started writing your first bean? Or perhaps you're skeptical, wondering what kinds of hoops the CDI specification will make you jump through! The good news is that you've probably already written and used hundreds, perhaps thousands of beans. CDI just makes it easier to actually use them to build an application!"
+msgstr "Então você está interessado em começar a escrever o seu primeiro Web Bean? Ou talvez você é cético, imaginando que tipos de hoops a especificação Web Beans fará com que você passe! A boa notícia é que você provavelmente já escreveu e utilizou centenas, talvez milhares de Web Beans. Você pode até não se lembrar do primeiro Web Bean que escreveu."
#. Tag: title
#: intro.xml:13
@@ -44,65 +34,31 @@
#. Tag: para
#: intro.xml:15
#, no-c-format
-msgid ""
-"A bean is exactly what you think it is. Only now, it has a true identity in "
-"the container environment."
+msgid "A bean is exactly what you think it is. Only now, it has a true identity in the container environment."
msgstr ""
#. Tag: para
#: intro.xml:19
#, no-c-format
-msgid ""
-"Prior to Java EE 6, there was no clear definition of the term \"bean\" in "
-"the Java EE platform. Of course, we've been calling Java classes used in web "
-"and enterprise applications \"beans\" for years. There were even a couple of "
-"different kinds of things called \"beans\" in EE specifications, including "
-"EJB beans and JSF managed beans. Meanwhile, other third-party frameworks "
-"such as Spring and Seam introduced their own ideas of what it meant to be a "
-"\"bean\". What we've been missing is a common definition."
+msgid "Prior to Java EE 6, there was no clear definition of the term \"bean\" in the Java EE platform. Of course, we've been calling Java classes used in web and enterprise applications \"beans\" for years. There were even a couple of different kinds of things called \"beans\" in EE specifications, including EJB beans and JSF managed beans. Meanwhile, other third-party frameworks such as Spring and Seam introduced their own ideas of what it meant to be a \"bean\". What we've been missing is a common definition."
msgstr ""
#. Tag: para
#: intro.xml:27
#, no-c-format
-msgid ""
-"Java EE 6 finally lays down that common definition in the Managed Beans "
-"specification. Managed Beans are defined as container-managed objects with "
-"minimal programming restrictions, otherwise known by the acronym POJO (Plain "
-"Old Java Object). They support a small set of basic services, such as "
-"resource injection, lifecycle callbacks and interceptors. Companion "
-"specifications, such as EJB and CDI, build on this basic model. But, "
-"<emphasis>at last</emphasis>, there's a uniform concept of a bean and a "
-"lightweight component model that's aligned across the Java EE platform."
+msgid "Java EE 6 finally lays down that common definition in the Managed Beans specification. Managed Beans are defined as container-managed objects with minimal programming restrictions, otherwise known by the acronym POJO (Plain Old Java Object). They support a small set of basic services, such as resource injection, lifecycle callbacks and interceptors. Companion specifications, such as EJB and CDI, build on this basic model. But, <emphasis>at last</emphasis>, there's a uniform concept of a bean and a lightweight component model that's aligned across the Java EE platform."
msgstr ""
#. Tag: para
#: intro.xml:36
#, no-c-format
-msgid ""
-"With very few exceptions, almost every concrete Java class that has a "
-"constructor with no parameters (or a constructor designated with the "
-"annotation <literal>@Inject</literal>) is a bean. This includes every "
-"JavaBean and every EJB session bean. If you've already got some JavaBeans or "
-"session beans lying around, they're already beans—you won't need any "
-"additional special metadata. There's just little one thing you need to do "
-"before you can start injecting them into stuff: you need to put them in an "
-"archive (a jar, or a Java EE module such as a war or EJB jar) that contains "
-"a special marker file: <literal>META-INF/beans.xml</literal>."
+msgid "With very few exceptions, almost every concrete Java class that has a constructor with no parameters (or a constructor designated with the annotation <literal>@Inject</literal>) is a bean. This includes every JavaBean and every EJB session bean. If you've already got some JavaBeans or session beans lying around, they're already beans—you won't need any additional special metadata. There's just little one thing you need to do before you can start injecting them into stuff: you need to put them in an archive (a jar, or a Java EE module such as a war or EJB jar) that contains a special marker file: <literal>META-INF/beans.xml</literal>."
msgstr ""
#. Tag: para
#: intro.xml:45
#, no-c-format
-msgid ""
-"The JavaBeans and EJBs you've been writing every day, up until now, have not "
-"been able to take advantage of the new services defined by the CDI "
-"specification. But you'll be able to use every one of them with CDI—"
-"allowing the container to create and destroy instances of your beans and "
-"associate them with a designated context, injecting them into other beans, "
-"using them in EL expressions, specializing them with qualifier annotations, "
-"even adding interceptors and decorators to them—without modifying your "
-"existing code. At most, you'll need to add some annotations."
+msgid "The JavaBeans and EJBs you've been writing every day, up until now, have not been able to take advantage of the new services defined by the CDI specification. But you'll be able to use every one of them with CDI—allowing the container to create and destroy instances of your beans and associate them with a designated context, injecting them into other beans, using them in EL expressions, specializing them with qualifier annotations, even adding interceptors and decorators to them—without modifying your existing code. At most, you'll need to add some annotations."
msgstr ""
#. Tag: para
@@ -120,42 +76,30 @@
#. Tag: para
#: intro.xml:63
#, fuzzy, no-c-format
-msgid ""
-"Suppose that we have two existing Java classes that we've been using for "
-"years in various applications. The first class parses a string into a list "
-"of sentences:"
-msgstr ""
-"Suponha que temos duas classes Java existentes, que temos utilizado por anos "
-"em várias aplicações. A primeira classe faz a divisão (parse) de uma string "
-"em uma lista de sentenças:"
+msgid "Suppose that we have two existing Java classes that we've been using for years in various applications. The first class parses a string into a list of sentences:"
+msgstr "Suponha que temos duas classes Java existentes, que temos utilizado por anos em várias aplicações. A primeira classe faz a divisão (parse) de uma string em uma lista de sentenças:"
#. Tag: programlisting
#: intro.xml:68
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public class SentenceParser {\n"
" public List<String> parse(String text) { ... }\n"
"}]]>"
msgstr ""
"<![CDATA[public class SentenceParser {\n"
-" public List<String> parse(String text) { ... }\n"
+" public List<String> parse(String text) { ... }\n"
"}]]>"
#. Tag: para
#: intro.xml:70
#, no-c-format
-msgid ""
-"The second existing class is a stateless session bean front-end for an "
-"external system that is able to translate sentences from one language to "
-"another:"
-msgstr ""
-"A segunda classe existente é um stateless session bean de fachada (front-"
-"end) para um sistema externo que é capaz de traduzir frases de uma língua "
-"para outra:"
+msgid "The second existing class is a stateless session bean front-end for an external system that is able to translate sentences from one language to another:"
+msgstr "A segunda classe existente é um stateless session bean de fachada (front-end) para um sistema externo que é capaz de traduzir frases de uma língua para outra:"
#. Tag: programlisting
#: intro.xml:75
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Stateless\n"
"public class SentenceTranslator implements Translator {\n"
@@ -164,7 +108,7 @@
msgstr ""
"<![CDATA[@Stateless\n"
"public class SentenceTranslator implements Translator {\n"
-" public String translate(String sentence) { ... }\n"
+" public String translate(String sentence) { ... }\n"
"}]]>"
#. Tag: para
@@ -175,7 +119,7 @@
#. Tag: programlisting
#: intro.xml:79
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Local\n"
"public interface Translator {\n"
@@ -184,30 +128,25 @@
msgstr ""
"<![CDATA[@Local\n"
"public interface Translator {\n"
-" public String translate(String sentence);\n"
+" public String translate(String sentence);\n"
"}]]>"
#. Tag: para
#: intro.xml:81
#, fuzzy, no-c-format
-msgid ""
-"Unfortunately, we don't have a class that translates whole text documents. "
-"So let's write a bean for this job:"
-msgstr ""
-" Infelizmente, não temos uma classe pré-existente que traduz todo o texto de "
-"documentos. Então vamos escrever um Web Bean que faz este trabalho:"
+msgid "Unfortunately, we don't have a class that translates whole text documents. So let's write a bean for this job:"
+msgstr " Infelizmente, não temos uma classe pré-existente que traduz todo o texto de documentos. Então vamos escrever um Web Bean que faz este trabalho:"
#. Tag: programlisting
#: intro.xml:85
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator {\n"
" private SentenceParser sentenceParser;\n"
" private Translator sentenceTranslator;\n"
" \n"
" @Inject\n"
-" TextTranslator(SentenceParser sentenceParser, Translator "
-"sentenceTranslator) {\n"
+" TextTranslator(SentenceParser sentenceParser, Translator sentenceTranslator) {\n"
" this.sentenceParser = sentenceParser;\n"
" this.sentenceTranslator = sentenceTranslator;\n"
" }\n"
@@ -222,70 +161,46 @@
"}]]>"
msgstr ""
"<![CDATA[public class TextTranslator {\n"
+" private SentenceParser sentenceParser;\n"
+" private Translator sentenceTranslator;\n"
" \n"
-" private SentenceParser sentenceParser;\n"
-" private Translator sentenceTranslator;\n"
+" @Inject\n"
+" TextTranslator(SentenceParser sentenceParser, Translator sentenceTranslator) {\n"
+" this.sentenceParser = sentenceParser;\n"
+" this.sentenceTranslator = sentenceTranslator;\n"
+" }\n"
" \n"
-" @Initializer\n"
-" TextTranslator(SentenceParser sentenceParser, Translator "
-"sentenceTranslator) {\n"
-" this.sentenceParser = sentenceParser;\n"
-" this.sentenceTranslator = sentenceTranslator;\n"
-" }\n"
-" \n"
-" public String translate(String text) {\n"
-" StringBuilder sb = new StringBuilder();\n"
-" for (String sentence: sentenceParser.parse(text)) {\n"
-" sb.append(sentenceTranslator.translate(sentence));\n"
-" }\n"
-" return sb.toString();\n"
-" }\n"
-" \n"
+" public String translate(String text) {\n"
+" StringBuilder sb = new StringBuilder();\n"
+" for (String sentence: sentenceParser.parse(text)) {\n"
+" sb.append(sentenceTranslator.translate(sentence));\n"
+" }\n"
+" return sb.toString();\n"
+" }\n"
"}]]>"
#. Tag: para
#: intro.xml:87
#, fuzzy, no-c-format
-msgid ""
-"But wait! <literal>TextTranslator</literal> does not have a constructor with "
-"no parameters! Is it still a bean? If you remember, a class that does not "
-"have a constructor with no parameters can still be a bean if it has a "
-"constructor annotated <literal>@Inject</literal>."
-msgstr ""
-"Mas espere: <literal>TextTranslator</literal> não tem um construtor sem "
-"parâmetros! É ainda um Web Bean? Bem, uma classe que não tem um construtor "
-"sem parâmetros ainda pode ser um Web Bean, se tiver um construtor anotado "
-"com <literal>@Initializer</literal>."
+msgid "But wait! <literal>TextTranslator</literal> does not have a constructor with no parameters! Is it still a bean? If you remember, a class that does not have a constructor with no parameters can still be a bean if it has a constructor annotated <literal>@Inject</literal>."
+msgstr "Mas espere: <literal>TextTranslator</literal> não tem um construtor sem parâmetros! É ainda um Web Bean? Bem, uma classe que não tem um construtor sem parâmetros ainda pode ser um Web Bean, se tiver um construtor anotado com <literal>@Initializer</literal>."
#. Tag: para
#: intro.xml:93
#, no-c-format
-msgid ""
-"As you've guessed, the <literal>@Inject</literal> annotation has something "
-"to do with dependency injection! <literal>@Inject</literal> may be applied "
-"to a constructor or method of a bean, and tells the container to call that "
-"constructor or method when instantiating the bean. The container will inject "
-"other beans into the parameters of the constructor or method."
+msgid "As you've guessed, the <literal>@Inject</literal> annotation has something to do with dependency injection! <literal>@Inject</literal> may be applied to a constructor or method of a bean, and tells the container to call that constructor or method when instantiating the bean. The container will inject other beans into the parameters of the constructor or method."
msgstr ""
#. Tag: para
#: intro.xml:100
#, no-c-format
-msgid ""
-"We may obtain an instance of <literal>TextTranslator</literal> by injecting "
-"it into a constructor, method or field of a bean, or a field or method of a "
-"Java EE component class such as a servlet. The container chooses the object "
-"to be injected based on the type of the injection point, not the name of the "
-"field, method or parameter."
+msgid "We may obtain an instance of <literal>TextTranslator</literal> by injecting it into a constructor, method or field of a bean, or a field or method of a Java EE component class such as a servlet. The container chooses the object to be injected based on the type of the injection point, not the name of the field, method or parameter."
msgstr ""
#. Tag: para
#: intro.xml:107
#, no-c-format
-msgid ""
-"Let's create a UI controller bean that uses field injection to obtain an "
-"instance of the <literal>TextTranslator</literal>, translating the text "
-"entered by a user:"
+msgid "Let's create a UI controller bean that uses field injection to obtain an instance of the <literal>TextTranslator</literal>, translating the text entered by a user:"
msgstr ""
#. Tag: programlisting
@@ -317,6 +232,30 @@
" }\n"
"}]]>"
msgstr ""
+"<![CDATA[@Named @RequestScoped\n"
+"public class TranslateController {\n"
+" @Inject TextTranslator textTranslator;\n"
+"\n"
+" private String inputText;\n"
+" private String translation;\n"
+"\n"
+" // JSF action method, perhaps\n"
+" public void translate() {\n"
+" translation = textTranslator.translate(inputText); \n"
+" }\n"
+"\n"
+" public String getInputText() {\n"
+" return inputText;\n"
+" }\n"
+"\n"
+" public void setInputText(String text) {\n"
+" this.inputText = text;\n"
+" }\n"
+"\n"
+" public String getTranslation() {\n"
+" return translation;\n"
+" }\n"
+"}]]>"
#. Tag: para
#: intro.xml:119
@@ -327,28 +266,18 @@
#. Tag: para
#: intro.xml:127
#, no-c-format
-msgid ""
-"Notice the controller bean is request-scoped and named. Since this "
-"combination is so common in web applications, there's a built-in annotation "
-"for it in CDI that we could have used as a shorthand. When the (stereotype) "
-"annotation <literal>@Model</literal> is declared on a class, it creates a "
-"request-scoped and named bean."
+msgid "Notice the controller bean is request-scoped and named. Since this combination is so common in web applications, there's a built-in annotation for it in CDI that we could have used as a shorthand. When the (stereotype) annotation <literal>@Model</literal> is declared on a class, it creates a request-scoped and named bean."
msgstr ""
#. Tag: para
#: intro.xml:135
#, fuzzy, no-c-format
-msgid ""
-"Alternatively, we may obtain an instance of <literal>TextTranslator</"
-"literal> programmatically from an injected instance of <literal>Instance</"
-"literal>, parameterized with the bean type:"
-msgstr ""
-"Podemos obter uma instância de <literal>TextTranslator</literal> injetando-a "
-"em um Web Bean, Servlet ou EJB:"
+msgid "Alternatively, we may obtain an instance of <literal>TextTranslator</literal> programmatically from an injected instance of <literal>Instance</literal>, parameterized with the bean type:"
+msgstr "Podemos obter uma instância de <literal>TextTranslator</literal> injetando-a em um Web Bean, Servlet ou EJB:"
#. Tag: programlisting
#: intro.xml:140
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Inject Instance<TextTranslator> textTranslatorInstance;\n"
"...\n"
@@ -356,52 +285,34 @@
" textTranslatorInstance.get().translate(inputText);\n"
"}]]>"
msgstr ""
-"<![CDATA[@Initializer\n"
-"public setTextTranslator(TextTranslator textTranslator) {\n"
-" this.textTranslator = textTranslator;\n"
+"<![CDATA[@Inject Instance<TextTranslator> textTranslatorInstance;\n"
+"...\n"
+"public void translate() {\n"
+" textTranslatorInstance.get().translate(inputText);\n"
"}]]>"
#. Tag: para
#: intro.xml:142
#, no-c-format
-msgid ""
-"Notice that it isn't necessary to create a getter or setter method to inject "
-"one bean into another. CDI can access an injected field directly (even if "
-"it's private!), which sometimes helps eliminate some wasteful code. The name "
-"of the field is arbitrary. It's the field's type that determines what is "
-"injected."
+msgid "Notice that it isn't necessary to create a getter or setter method to inject one bean into another. CDI can access an injected field directly (even if it's private!), which sometimes helps eliminate some wasteful code. The name of the field is arbitrary. It's the field's type that determines what is injected."
msgstr ""
#. Tag: para
#: intro.xml:148
#, no-c-format
-msgid ""
-"At system initialization time, the container must validate that exactly one "
-"bean exists which satisfies each injection point. In our example, if no "
-"implementation of <literal>Translator</literal> is available—if the "
-"<literal>SentenceTranslator</literal> EJB was not deployed—the "
-"container would inform us of an <emphasis>unsatisfied dependency</emphasis>. "
-"If more than one implementation of <literal>Translator</literal> were "
-"available, the container would inform us of the <emphasis>ambiguous "
-"dependency</emphasis>."
+msgid "At system initialization time, the container must validate that exactly one bean exists which satisfies each injection point. In our example, if no implementation of <literal>Translator</literal> is available—if the <literal>SentenceTranslator</literal> EJB was not deployed—the container would inform us of an <emphasis>unsatisfied dependency</emphasis>. If more than one implementation of <literal>Translator</literal> were available, the container would inform us of the <emphasis>ambiguous dependency</emphasis>."
msgstr ""
#. Tag: para
#: intro.xml:156
#, no-c-format
-msgid ""
-"Before we get too deep in the details, let's pause and examine a bean's "
-"anatomy. What aspects of the bean are significant, and what gives it its "
-"identity? Instead of just giving examples of beans, we're going to define "
-"what <emphasis>makes</emphasis> something a bean."
+msgid "Before we get too deep in the details, let's pause and examine a bean's anatomy. What aspects of the bean are significant, and what gives it its identity? Instead of just giving examples of beans, we're going to define what <emphasis>makes</emphasis> something a bean."
msgstr ""
#~ msgid "Getting started with Web Beans"
#~ msgstr "Introdução a Web Beans"
-
#~ msgid "Your first Web Bean"
#~ msgstr "Seu primeiro Web Bean"
-
#~ msgid ""
#~ "With certain, very special exceptions, every Java class with a "
#~ "constructor that accepts no parameters is a Web Bean. That includes every "
@@ -422,24 +333,20 @@
#~ "em outros Web Beans, configurando-os através da Web Beans XML "
#~ "configuration facility, e até acrescentando interceptadores e decoradores "
#~ "— sem tocar o seu código existente."
-
#~ msgid ""
#~ "Alternatively, we may obtain an instance by directly calling a method of "
#~ "the Web Bean manager:"
#~ msgstr ""
#~ "Alternativamente, nós podemos obter uma instância invocando diretamente o "
#~ "método do gerenciador do Web Bean:"
-
#~ msgid ""
#~ "<![CDATA[TextTranslator tt = manager.getInstanceByType(TextTranslator."
#~ "class);]]>"
#~ msgstr ""
#~ "<![CDATA[TextTranslator tt = manager.getInstanceByType(TextTranslator."
#~ "class);]]>"
-
#~ msgid "So what, <emphasis>exactly</emphasis>, is a Web Bean?"
#~ msgstr "Então, o que, <emphasis>exatamente</emphasis>, é um Web Bean?"
-
#~ msgid ""
#~ "However, like a stateless or singleton model, but <emphasis>unlike</"
#~ "emphasis> stateful session beans, the client does not control the "
@@ -450,16 +357,13 @@
#~ "contrário</emphasis> dos stateful session beans, o cliente não controla o "
#~ "ciclo de vida da instância por explicitamente criar e destruí-lo. Em vez "
#~ "disso, o <emphasis>escopo</emphasis> do Web Bean determina:"
-
#~ msgid "the lifecycle of each instance of the Web Bean and"
#~ msgstr "o ciclo de vida de cada instância do Web Bean e"
-
#~ msgid ""
#~ "which clients share a reference to a particular instance of the Web Bean."
#~ msgstr ""
#~ "que os clientes compartilham uma referência a uma instância específica do "
#~ "Web Bean."
-
#~ msgid ""
#~ "Clients (for example, other Web Beans) executing in the same context will "
#~ "see the same instance of the Web Bean. But clients in a different context "
@@ -468,13 +372,10 @@
#~ "Os clientes (por exemplo, outros Web Beans) executam no mesmo contexto "
#~ "verão a mesma instância do Web Bean. Mas os clientes em um contexto "
#~ "diferente verão uma outra instância."
-
#~ msgid "they interact via well-defined public APIs"
#~ msgstr "ele interagem por uma API pública bem definida"
-
#~ msgid "their lifecycles are completely decoupled"
#~ msgstr "seus ciclos de vida são completamente desacoplados"
-
#~ msgid ""
#~ "Note that not all clients of a Web Bean are Web Beans. Other objects such "
#~ "as Servlets or Message-Driven Beans — which are by nature not "
@@ -485,52 +386,37 @@
#~ "objetos, tais como Servlets ou Message-Driven Beans — que são, por "
#~ "natureza, não injetável, objetos contextuais — podem também obter "
#~ "referências a Web Beans por injeção."
-
#~ msgid "Enough hand-waving. More formally, according to the spec:"
#~ msgstr ""
#~ "Chega de mão abanando. Mais formalmente, de acordo com a especificação:"
-
#~ msgid "A Web Bean comprises:"
#~ msgstr "Um Web Bean compreende:"
-
#~ msgid "A (nonempty) set of API types"
#~ msgstr "Um conjunto (não vazio) de tipos de API (API types)"
-
#~ msgid "A (nonempty) set of binding annotation types"
#~ msgstr "Um conjunto (não vazio) de tipos de anotações de binding "
-
#~ msgid "A scope"
#~ msgstr "Um escopo"
-
#~ msgid "A deployment type"
#~ msgstr "Um tipo de publicação (deployment type)"
-
#~ msgid "Optionally, a Web Bean name"
#~ msgstr "Opcionalmente, um nome Web Bean"
-
#~ msgid "A set of interceptor binding types"
#~ msgstr "Um conjunto de tipos de interceptor binding"
-
#~ msgid "A Web Bean implementation"
#~ msgstr "A implementação de Web Bean"
-
#~ msgid "Let's see what some of these terms mean, to the Web Bean developer."
#~ msgstr ""
#~ "Vamos ver o que alguns destes termos significam, para o desenvolvedor Web "
#~ "Bean."
-
#~ msgid "API types, binding types and dependency injection"
#~ msgstr "Tipos de API, tipos de binding e injeção de dependências "
-
#~ msgid "an API type, together with"
#~ msgstr "um tipo de API, juntamente com"
-
#~ msgid "a set of binding types."
#~ msgstr "um conjunto de tipos de binding"
-
#~ msgid "<![CDATA[@CreditCard PaymentProcessor paymentProcessor]]>"
#~ msgstr "<![CDATA[@CreditCard PaymentProcessor paymentProcessor]]>"
-
#~ msgid ""
#~ "<![CDATA[@CreditCard\n"
#~ "public class CreditCardPaymentProcessor \n"
@@ -539,10 +425,8 @@
#~ "<![CDATA[@CreditCard\n"
#~ "public class CreditCardPaymentProcessor \n"
#~ " implements PaymentProcessor { ... }]]>"
-
#~ msgid "Deployment types"
#~ msgstr "Tipos de publicação (deployment types)"
-
#~ msgid ""
#~ "<![CDATA[@Mock\n"
#~ "public class MockSentenceTranslator implements Translator {\n"
@@ -557,31 +441,26 @@
#~ " return \"Lorem ipsum dolor sit amet\";\n"
#~ " }\n"
#~ "}]]>"
-
#~ msgid ""
#~ "We'll talk more about this unique and powerful feature in <xref linkend="
#~ "\"deploymenttypes\"/>."
#~ msgstr ""
#~ "Iremos falar mais sobre essa única e poderosa funcionalidade em <xref "
#~ "linkend=\"deploymenttypes\"/>."
-
#~ msgid "Scope"
#~ msgstr "Escopo"
-
#~ msgid ""
#~ "For example, any web application may have <emphasis>session scoped</"
#~ "emphasis> Web Beans:"
#~ msgstr ""
#~ "Por exemplo, qualquer aplicação web pode ter Web Beans com "
#~ "<emphasis>escopo de sessão (session scoped)</emphasis>:"
-
#~ msgid ""
#~ "<![CDATA[@SessionScoped\n"
#~ "public class ShoppingCart { ... }]]>"
#~ msgstr ""
#~ "<![CDATA[@SessionScoped\n"
#~ "public class ShoppingCart { ... }]]>"
-
#~ msgid ""
#~ "By default, Web Beans belong to a special scope called the "
#~ "<emphasis>dependent pseudo-scope</emphasis>. Web Beans with this scope "
@@ -592,13 +471,10 @@
#~ "<emphasis>dependent pseudo-scope</emphasis>. Web Beans com este escopo "
#~ "são objetos puramente dependentes do objeto em que são injetados, e seu "
#~ "ciclo de vida está atrelado ao ciclo de vida desse objeto."
-
#~ msgid "We'll talk more about scopes in <xref linkend=\"scopescontexts\"/>."
#~ msgstr "Falaremos mais sobre escopos no <xref linkend=\"scopescontexts\"/>."
-
#~ msgid "Web Bean names and Unified EL"
#~ msgstr "Nomes Web Beans e Unified EL"
-
#~ msgid ""
#~ "A Web Bean may have a <emphasis>name</emphasis>, allowing it to be used "
#~ "in Unified EL expressions. It's easy to specify the name of a Web Bean:"
@@ -606,19 +482,16 @@
#~ "Um Web Bean pode ter um <emphasis>name</emphasis>, que lhe permite ser "
#~ "utilizado em expressões da Unified EL. É fácil especificar o nome de um "
#~ "Web Bean:"
-
#~ msgid ""
#~ "<![CDATA[@SessionScoped @Named(\"cart\")\n"
#~ "public class ShoppingCart { ... }]]>"
#~ msgstr ""
#~ "<![CDATA[@SessionScoped @Named(\"cart\")\n"
#~ "public class ShoppingCart { ... }]]>"
-
#~ msgid "Now we can easily use the Web Bean in any JSF or JSP page:"
#~ msgstr ""
#~ "Agora, podemos facilmente utilizar o Web Bean em qualquer página JSF ou "
#~ "JSP:"
-
#~ msgid ""
#~ "<![CDATA[<h:dataTable value=\"#{cart.lineItems}\" var=\"item\">\n"
#~ " ....\n"
@@ -627,21 +500,18 @@
#~ "<![CDATA[<h:dataTable value=\"#{cart.lineItems}\" var=\"item\">\n"
#~ " ....\n"
#~ "</h:dataTable>]]>"
-
#~ msgid ""
#~ "It's even easier to just let the name be defaulted by the Web Bean "
#~ "manager:"
#~ msgstr ""
#~ "É ainda mais fácil, deixar o nome ser atribuído pelo gerenciador do Web "
#~ "Bean:"
-
#~ msgid ""
#~ "<![CDATA[@SessionScoped @Named\n"
#~ "public class ShoppingCart { ... }]]>"
#~ msgstr ""
#~ "<![CDATA[@SessionScoped @Named\n"
#~ "public class ShoppingCart { ... }]]>"
-
#~ msgid ""
#~ "In this case, the name defaults to <literal>shoppingCart</literal> — "
#~ "the unqualified class name, with the first character changed to lowercase."
@@ -649,10 +519,8 @@
#~ "Neste caso, o nome fica <literal>shoppingCart</literal> — o nome da "
#~ "classe não qualificado (unqualified class name), com o primeiro caractere "
#~ "alterado para minúsculas."
-
#~ msgid "Interceptor binding types"
#~ msgstr "Tipos de interceptor binding"
-
#~ msgid ""
#~ "Web Beans supports the interceptor functionality defined by EJB 3, not "
#~ "only for EJB beans, but also for plain Java classes. In addition, Web "
@@ -664,7 +532,6 @@
#~ "Java simples (plain Java classes). Além disso, a Web Beans oferece uma "
#~ "nova abordagem para vincular interceptores (binding interceptors) para "
#~ "beans EJB e outros Web Beans."
-
#~ msgid ""
#~ "<![CDATA[@SessionScoped \n"
#~ "@Interceptors(TransactionInterceptor.class)\n"
@@ -673,7 +540,6 @@
#~ "<![CDATA[@SessionScoped \n"
#~ "@Interceptors(TransactionInterceptor.class)\n"
#~ "public class ShoppingCart { ... }]]>"
-
#~ msgid ""
#~ "However, it is more elegant, and better practice, to indirect the "
#~ "interceptor binding through an <emphasis>interceptor binding type</"
@@ -682,50 +548,40 @@
#~ "No entanto, é mais elegante, e uma melhor prática, indirecionar o binding "
#~ "do interceptador através de um <emphasis>interceptor binding type</"
#~ "emphasis>:"
-
#~ msgid ""
#~ "<![CDATA[@SessionScoped @Transactional\n"
#~ "public class ShoppingCart { ... }]]>"
#~ msgstr ""
#~ "<![CDATA[@SessionScoped @Transactional\n"
#~ "public class ShoppingCart { ... }]]>"
-
#~ msgid "What kinds of objects can be Web Beans?"
#~ msgstr "Que tipos de objetos podem ser Web Beans?"
-
#~ msgid "Simple Web Beans"
#~ msgstr "Web Beans Simples"
-
#~ msgid ""
#~ "The Web Beans specification says that a concrete Java class is a "
#~ "<emphasis>simple</emphasis> Web Bean if:"
#~ msgstr ""
#~ "A especificação de Web Beans diz que uma classe Java concreta é um Web "
#~ "Bean <emphasis>simples</emphasis> se:"
-
#~ msgid ""
#~ "it is not an EE container-managed component, like an EJB, a Servlet or a "
#~ "JPA entity,"
#~ msgstr ""
#~ "não é um componente gerenciado pelo container, como um EJB, um Servlet ou "
#~ "uma entidade da JPA,"
-
#~ msgid "it is not a parameterized type, and"
#~ msgstr "não é um tipo parametrizado, e"
-
#~ msgid ""
#~ "it has a constructor with no parameters, or a constructor annotated "
#~ "<literal>@Initializer</literal>."
#~ msgstr ""
#~ "que tem um construtor sem parâmetros, ou um construtor anotado com "
#~ "<literal>@Initializer</literal>."
-
#~ msgid "Thus, almost every JavaBean is a simple Web Bean."
#~ msgstr "Assim, quase todo JavaBean é um Web Bean simples."
-
#~ msgid "Enterprise Web Beans"
#~ msgstr "Web Beans corporativos (Enterprise Web Beans)"
-
#~ msgid ""
#~ "<![CDATA[@Stateful @SessionScoped\n"
#~ "public class ShoppingCart {\n"
@@ -746,7 +602,6 @@
#~ " public void destroy() {}\n"
#~ "\n"
#~ "}]]>"
-
#~ msgid ""
#~ "So when should we use an enterprise Web Bean instead of a simple Web "
#~ "Bean? Well, whenever we need the advanced enterprise services offered by "
@@ -755,19 +610,14 @@
#~ "Então, quando deveremos usar Web Bean corporativo (enterprise) em vez de "
#~ "um simples Web Bean? Bem, sempre que tivermos a necessidade de serviços "
#~ "corporatvios (enterprise) avançados oferecidos pelo EJB, tais como:"
-
#~ msgid "method-level transaction management and security,"
#~ msgstr "gerenciamento de transações e segurança em nível de método,"
-
#~ msgid "concurrency management,"
#~ msgstr "gerenciamento de concorrência,"
-
#~ msgid "remote and web service invocation, and"
#~ msgstr "remoto e invocação de web service, e"
-
#~ msgid "timers and asynchronous methods,"
#~ msgstr "temporizadores (timers) e métodos assíncronos"
-
#~ msgid ""
#~ "we should use an enterprise Web Bean. When we don't need any of these "
#~ "things, a simple Web Bean will serve just fine."
@@ -775,7 +625,6 @@
#~ "devemos utilizar um Web Bean corporativo (enterprise). Quando não "
#~ "precisamos de nenhuma destas coisas, um Web Bean simples vai servir muito "
#~ "bem."
-
#~ msgid ""
#~ "Many Web Beans (including any session or application scoped Web Bean) are "
#~ "available for concurrent access. Therefore, the concurrency management "
@@ -787,7 +636,6 @@
#~ "gerenciamento de concorrência fornecida pelo EJB 3.1 é especialmente "
#~ "útil. A maioria dos Web Beans em escopo de sessão e aplicação devem ser "
#~ "EJBs."
-
#~ msgid ""
#~ "Finally, it's usually obvious when method-level transaction management, "
#~ "method-level security, timers, remote methods or asynchronous methods are "
@@ -796,10 +644,8 @@
#~ "Por último, isso normalmente é óbvio quando gerenciamento de transações e "
#~ "segurança em nível de método, temporizadores, métodos remotos ou "
#~ "assíncronos são necessários."
-
#~ msgid "Producer methods"
#~ msgstr "Métodos produtores (producer methods)"
-
#~ msgid ""
#~ "<![CDATA[@ApplicationScoped\n"
#~ "public class Generator {\n"
@@ -822,21 +668,17 @@
#~ " }\n"
#~ "\n"
#~ "}]]>"
-
#~ msgid ""
#~ "The result of a producer method is injected just like any other Web Bean."
#~ msgstr ""
#~ "O resultado do método produtor é injetado como qualquer outro Web Bean."
-
#~ msgid "<![CDATA[@Random int randomNumber]]>"
#~ msgstr "<![CDATA[@Random int randomNumber]]>"
-
#~ msgid ""
#~ "Some producer methods return objects that require explicit destruction:"
#~ msgstr ""
#~ "Alguns métodos produtores retornam objetos que exigem destruição "
#~ "explícita :"
-
#~ msgid ""
#~ "<![CDATA[@Produces @RequestScoped Connection connect(User user) {\n"
#~ " return createConnection( user.getId(), user.getPassword() );\n"
@@ -845,14 +687,12 @@
#~ "<![CDATA[@Produces @RequestScoped Connection connect(User user) {\n"
#~ " return createConnection( user.getId(), user.getPassword() );\n"
#~ "}]]>"
-
#~ msgid ""
#~ "These producer methods may define matching <emphasis>disposal methods</"
#~ "emphasis>:"
#~ msgstr ""
#~ "Estes métodos produtores podem definir <emphasis>métodos eliminação "
#~ "(disposal methods)</emphasis>:"
-
#~ msgid ""
#~ "<![CDATA[void close(@Disposes Connection connection) {\n"
#~ " connection.close();\n"
@@ -861,20 +701,18 @@
#~ "<![CDATA[void close(@Disposes Connection connection) {\n"
#~ " connection.close();\n"
#~ "}]]>"
-
#~ msgid ""
#~ "This disposal method is called automatically by the Web Bean manager at "
#~ "the end of the request."
#~ msgstr ""
#~ "Este método de eliminação (disposal method) é chamado automaticamente "
#~ "pelo gerenciador do Web Bean no final da requisição."
-
#~ msgid ""
#~ "We'll talk much more about producer methods in <xref linkend="
#~ "\"producermethods\"/>."
#~ msgstr ""
#~ "Falaremos mais sobre métodos produtores no <xref linkend=\"producermethods"
#~ "\"/>."
-
#~ msgid "JMS endpoints"
#~ msgstr "JMS endpoints"
+
Modified: doc/trunk/reference/pt-BR/next.po
===================================================================
--- doc/trunk/reference/pt-BR/next.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/next.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,7 +6,7 @@
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-04-10 12:56-0300\n"
+"PO-Revision-Date: 2009-12-19 17:59-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -22,77 +22,43 @@
#. Tag: para
#: next.xml:6
#, no-c-format
-msgid ""
-"Because CDI is so new, there's not yet a lot of information available "
-"online. That will change over time. Regardless, the CDI specification "
-"remains the authority for information on CDI. The spec less than 100 pages "
-"and is quite readable (don't worry, it's not like your Blu-ray player "
-"manual). Of course, it covers many details we've skipped over here. The spec "
-"is available on the <ulink src=\"http://jcp.org/en/jsr/detail?id=299\">JSR-"
-"299 page</ulink> at the JCP website."
+msgid "Because CDI is so new, there's not yet a lot of information available online. That will change over time. Regardless, the CDI specification remains the authority for information on CDI. The spec less than 100 pages and is quite readable (don't worry, it's not like your Blu-ray player manual). Of course, it covers many details we've skipped over here. The spec is available on the <ulink src=\"http://jcp.org/en/jsr/detail?id=299\">JSR-299 page</ulink> at the JCP website."
msgstr ""
#. Tag: para
#: next.xml:14
-#, fuzzy, no-c-format
-msgid ""
-"The CDI reference implementation, Weld, is being developed at the <ulink src="
-"\"http://seamframework.org/Weld\">Seam project</ulink>. The RI development "
-"team and the CDI spec lead blog at <ulink src=\"http://in.relation.to\">in."
-"relation.to</ulink>. This guide was originally based on a series of blog "
-"entries published there while the specification was being developed. It's "
-"probably the best source of information about the future of CDI, Weld and "
-"Seam."
-msgstr ""
-"A implementação de referência de Web Beans (Web Beans RI) está sendo "
-"desenvolvida em <literal>http://seamframework.org/WebBeans</literal>. O blog "
-"do time de desenvolvimento da implementação de referência (RI) e do líder da "
-"especificação (Web Beans spec lead) em: <literal>http://in.relation.to</"
-"literal>. Esse artigo é substancialmente baseado em uma série de entradas de "
-"blogs publicados lá."
+#, no-c-format
+msgid "The CDI reference implementation, Weld, is being developed at the <ulink src=\"http://seamframework.org/Weld\">Seam project</ulink>. The RI development team and the CDI spec lead blog at <ulink src=\"http://in.relation.to\">in.relation.to</ulink>. This guide was originally based on a series of blog entries published there while the specification was being developed. It's probably the best source of information about the future of CDI, Weld and Seam."
+msgstr "A implementação de referência da CDI (CDI RI) está sendo desenvolvida em <literal>http://seamframework.org/Weld</literal>. O blog do time de desenvolvimento da implementação de referência (RI) e do líder da especificação da CDI em: <literal>http://in.relation.to</literal>. Esse guia foi originalmente baseado em uma série de entradas de blogs publicados lá enquando a especificação estava sendo desenvolvida. Esse é provavelmente a melhor fonte de informação sobre o futuro da CDI, Weld e Seam."
#. Tag: para
#: next.xml:22
#, no-c-format
-msgid ""
-"We encourage you to follow the <ulink src=\"https://lists.jboss.org/mailman/"
-"listinfo/weld-dev\">weld-dev</ulink> mailing list and to get involved in "
-"<ulink src=\"http://seamframework.org/Weld/Development\">development</"
-"ulink>. If you are reading this guide, you likely have something to offer."
+msgid "We encourage you to follow the <ulink src=\"https://lists.jboss.org/mailman/listinfo/weld-dev\">weld-dev</ulink> mailing list and to get involved in <ulink src=\"http://seamframework.org/Weld/Development\">development</ulink>. If you are reading this guide, you likely have something to offer."
msgstr ""
#. Tag: para
#: next.xml:28
#, no-c-format
-msgid ""
-"We are eager to find volunteers to help revise, proofread or translate this "
-"guide. The first step is getting the source of this guide checked out. To "
-"build against the trunk (latest source), follow these steps:"
+msgid "We are eager to find volunteers to help revise, proofread or translate this guide. The first step is getting the source of this guide checked out. To build against the trunk (latest source), follow these steps:"
msgstr ""
#. Tag: para
#: next.xml:35
#, no-c-format
-msgid ""
-"Checkout source from <ulink src=\"http://anonsvn.jboss.org/repos/weld/doc/"
-"trunk/reference\">http://anonsvn.jboss.org/repos/weld/doc/trunk/reference</"
-"ulink> using SVN"
+msgid "Checkout source from <ulink src=\"http://anonsvn.jboss.org/repos/weld/doc/trunk/reference\">http://anonsvn.jboss.org/repos/weld/doc/trunk/reference</ulink> using SVN"
msgstr ""
#. Tag: programlisting
#: next.xml:40
#, no-c-format
-msgid ""
-"<![CDATA[$> svn co http://anonsvn.jboss.org/repos/weld/doc/trunk/reference "
-"weld-reference]]>"
-msgstr ""
+msgid "<![CDATA[$> svn co http://anonsvn.jboss.org/repos/weld/doc/trunk/reference weld-reference]]>"
+msgstr "<![CDATA[$> svn co http://anonsvn.jboss.org/repos/weld/doc/trunk/reference weld-reference]]>"
#. Tag: para
#: next.xml:43
#, no-c-format
-msgid ""
-"Edit the pom.xml file in the root of the checkout and remove the \"-SNAPSHOT"
-"\" from the version element (so you don't have to build other Weld modules)."
+msgid "Edit the pom.xml file in the root of the checkout and remove the \"-SNAPSHOT\" from the version element (so you don't have to build other Weld modules)."
msgstr ""
#. Tag: para
@@ -105,22 +71,18 @@
#: next.xml:52
#, no-c-format
msgid "<![CDATA[$> mvn]]>"
-msgstr ""
+msgstr "<![CDATA[$> mvn]]>"
#. Tag: para
#: next.xml:54
#, no-c-format
-msgid ""
-"If you experience an out of memory error, try setting this environment "
-"variable: <literal>MAVEN_OPTS=-Xmx1024m</literal>"
+msgid "If you experience an out of memory error, try setting this environment variable: <literal>MAVEN_OPTS=-Xmx1024m</literal>"
msgstr ""
#. Tag: para
#: next.xml:61
#, no-c-format
-msgid ""
-"The PDF version of the reference guide will appear the current directory. "
-"You can find the HTML version in target/docbook/publish/en-US/html"
+msgid "The PDF version of the reference guide will appear the current directory. You can find the HTML version in target/docbook/publish/en-US/html"
msgstr ""
#. Tag: para
@@ -135,7 +97,6 @@
#~ msgstr ""
#~ "Como a Web Beans é muito nova, ainda não existe muita informação "
#~ "disponível online."
-
#~ msgid ""
#~ "Of course, the Web Beans specification is the best source of more "
#~ "information about Web Beans. The spec is about 100 pages long, only twice "
@@ -148,3 +109,4 @@
#~ "duas vezes o tamanho desse artigo. Mas, evidentemente, abrange muitas "
#~ "informações que não abordamos. A especificação está disponível em "
#~ "<literal>http://jcp.org/en/jsr/detail?id=299</literal>."
+
Modified: doc/trunk/reference/pt-BR/producermethods.po
===================================================================
--- doc/trunk/reference/pt-BR/producermethods.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/producermethods.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,7 +6,7 @@
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-04-10 16:06-0300\n"
+"PO-Revision-Date: 2009-12-19 18:07-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -22,17 +22,8 @@
#. Tag: para
#: producermethods.xml:7
#, fuzzy, no-c-format
-msgid ""
-"Producer methods let us overcome certain limitations that arise when a "
-"container, instead of the application, is responsible for instantiating "
-"objects. They're also the easiest way to integrate objects which are not "
-"beans into the CDI environment."
-msgstr ""
-"Métodos produtores permitem superarmos certas limitações que surgem quando o "
-"gerenciador do Web Bean, em vez da aplicação, é responsável por instanciar "
-"objetos. Eles são também a forma mais fácil de integrar os objetos que não "
-"são Web Beans ao ambiente Web Beans. (Veremos uma segunda abordagem em <xref "
-"linkend=\"xml\"/>.)"
+msgid "Producer methods let us overcome certain limitations that arise when a container, instead of the application, is responsible for instantiating objects. They're also the easiest way to integrate objects which are not beans into the CDI environment."
+msgstr "Métodos produtores permitem superarmos certas limitações que surgem quando o gerenciador do Web Bean, em vez da aplicação, é responsável por instanciar objetos. Eles são também a forma mais fácil de integrar os objetos que não são Web Beans ao ambiente Web Beans. (Veremos uma segunda abordagem em <xref linkend=\"xml\"/>.)"
#. Tag: para
#: producermethods.xml:14
@@ -44,35 +35,25 @@
#: producermethods.xml:18
#, fuzzy, no-c-format
msgid "A producer method acts as a source of objects to be injected, where:"
-msgstr ""
-"Um método produtor Web Beans funciona como uma fonte de objetos a ser "
-"injetado, quando:"
+msgstr "Um método produtor Web Beans funciona como uma fonte de objetos a ser injetado, quando:"
#. Tag: para
#: producermethods.xml:22
#, fuzzy, no-c-format
msgid "the objects to be injected are not required to be instances of beans,"
-msgstr ""
-"os objetos a serem injetados não forem obrigados a ser instâncias de Web "
-"Beans,"
+msgstr "os objetos a serem injetados não forem obrigados a ser instâncias de Web Beans,"
#. Tag: para
#: producermethods.xml:25
#, no-c-format
msgid "the concrete type of the objects to be injected may vary at runtime or"
-msgstr ""
-"o tipo concreto dos objetos a serem injetados pode variar em tempo de "
-"execução ou"
+msgstr "o tipo concreto dos objetos a serem injetados pode variar em tempo de execução ou"
#. Tag: para
#: producermethods.xml:28
#, fuzzy, no-c-format
-msgid ""
-"the objects require some custom initialization that is not performed by the "
-"bean constructor"
-msgstr ""
-"os objetos requerem alguma inicialização personalizada que não é realizada "
-"pelo construtor do Web Bean"
+msgid "the objects require some custom initialization that is not performed by the bean constructor"
+msgstr "os objetos requerem alguma inicialização personalizada que não é realizada pelo construtor do Web Bean"
#. Tag: para
#: producermethods.xml:36
@@ -95,12 +76,8 @@
#. Tag: para
#: producermethods.xml:46
#, fuzzy, no-c-format
-msgid ""
-"define multiple beans, with different scopes or initialization, for the same "
-"implementation class, or"
-msgstr ""
-"definir vários Web Beans, com diferentes escopos ou inicialização, para a "
-"mesma implementação da classe, ou"
+msgid "define multiple beans, with different scopes or initialization, for the same implementation class, or"
+msgstr "definir vários Web Beans, com diferentes escopos ou inicialização, para a mesma implementação da classe, ou"
#. Tag: para
#: producermethods.xml:51
@@ -111,21 +88,12 @@
#. Tag: para
#: producermethods.xml:55
#, fuzzy, no-c-format
-msgid ""
-"In particular, producer methods let us use runtime polymorphism with CDI. As "
-"we've seen, alternative beans are one solution to the problem of deployment-"
-"time polymorphism. But once the system is deployed, the CDI implementation "
-"is fixed. A producer method has no such limitation:"
-msgstr ""
-"Em particular, métodos produtores permite-nos utilizar o polimorfismo em "
-"tempo de execução com Web Beans. Como vimos, os tipo de implantação são uma "
-"poderosa solução para o problema do polimorfismo em tempo de implantação. "
-"Mas, uma vez que o sistema está implantado, a implementação do Web Bean é "
-"fixada. Um método produtor não tem essa limitação:"
+msgid "In particular, producer methods let us use runtime polymorphism with CDI. As we've seen, alternative beans are one solution to the problem of deployment-time polymorphism. But once the system is deployed, the CDI implementation is fixed. A producer method has no such limitation:"
+msgstr "Em particular, métodos produtores permite-nos utilizar o polimorfismo em tempo de execução com Web Beans. Como vimos, os tipo de implantação são uma poderosa solução para o problema do polimorfismo em tempo de implantação. Mas, uma vez que o sistema está implantado, a implementação do Web Bean é fixada. Um método produtor não tem essa limitação:"
#. Tag: programlisting
#: producermethods.xml:61
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@SessionScoped\n"
"public class Preferences implements Serializable {\n"
@@ -143,22 +111,18 @@
"}]]>"
msgstr ""
"<![CDATA[@SessionScoped\n"
-"public class Preferences {\n"
-" \n"
-" private PaymentStrategyType paymentStrategy;\n"
-" \n"
-" ...\n"
-" \n"
-" @Produces @Preferred \n"
-" public PaymentStrategy getPaymentStrategy() {\n"
-" switch (paymentStrategy) {\n"
-" case CREDIT_CARD: return new CreditCardPaymentStrategy();\n"
-" case CHEQUE: return new ChequePaymentStrategy();\n"
-" case PAYPAL: return new PayPalPaymentStrategy();\n"
-" default: return null;\n"
-" } \n"
-" }\n"
-" \n"
+"public class Preferences implements Serializable {\n"
+" private PaymentStrategyType paymentStrategy;\n"
+" ...\n"
+" @Produces @Preferred \n"
+" public PaymentStrategy getPaymentStrategy() {\n"
+" switch (paymentStrategy) {\n"
+" case CREDIT_CARD: return new CreditCardPaymentStrategy();\n"
+" case CHECK: return new CheckPaymentStrategy();\n"
+" case PAYPAL: return new PayPalPaymentStrategy();\n"
+" default: return null;\n"
+" } \n"
+" }\n"
"}]]>"
#. Tag: para
@@ -169,23 +133,15 @@
#. Tag: programlisting
#: producermethods.xml:65
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[@Inject @Preferred PaymentStrategy paymentStrategy;]]>"
-msgstr "<![CDATA[@Preferred PaymentStrategy paymentStrat;]]>"
+msgstr "<![CDATA[@Inject @Preferred PaymentStrategy paymentStrategy;]]>"
#. Tag: para
#: producermethods.xml:67
#, fuzzy, no-c-format
-msgid ""
-"This injection point has the same type and qualifier annotations as the "
-"producer method, so it resolves to the producer method using the usual CDI "
-"injection rules. The producer method will be called by the container to "
-"obtain an instance to service this injection point."
-msgstr ""
-"Esse ponto de injeção tem o mesmo tipo e anotações de binding que o método "
-"produtor. Assim, resolve para o método produtor utilizando as regras de "
-"injeção da Web Beans. O método produtor será invocado pelo gerenciador do "
-"Bean Web para obter uma instância para servir esse ponto de injeção."
+msgid "This injection point has the same type and qualifier annotations as the producer method, so it resolves to the producer method using the usual CDI injection rules. The producer method will be called by the container to obtain an instance to service this injection point."
+msgstr "Esse ponto de injeção tem o mesmo tipo e anotações de binding que o método produtor. Assim, resolve para o método produtor utilizando as regras de injeção da Web Beans. O método produtor será invocado pelo gerenciador do Bean Web para obter uma instância para servir esse ponto de injeção."
#. Tag: title
#: producermethods.xml:74
@@ -196,32 +152,18 @@
#. Tag: para
#: producermethods.xml:76
#, fuzzy, no-c-format
-msgid ""
-"The scope of the producer method defaults to <literal>@Dependent</literal>, "
-"and so it will be called <emphasis>every time</emphasis> the container "
-"injects this field or any other field that resolves to the same producer "
-"method. Thus, there could be multiple instances of the "
-"<literal>PaymentStrategy</literal> object for each user session."
-msgstr ""
-"O escopo padrão dos métodos produtores é <literal>@Dependent</literal>, e, "
-"por isso ,serão chamados <emphasis>toda vez</emphasis> que o gerenciador do "
-"Web Bean injetar esse atributo ou qualquer outro atributo que resolve para o "
-"mesmo método produtor. Assim, pode haver várias instâncias do objeto "
-"<literal>PaymentStrategy</literal> para cada sessão do usuário."
+msgid "The scope of the producer method defaults to <literal>@Dependent</literal>, and so it will be called <emphasis>every time</emphasis> the container injects this field or any other field that resolves to the same producer method. Thus, there could be multiple instances of the <literal>PaymentStrategy</literal> object for each user session."
+msgstr "O escopo padrão dos métodos produtores é <literal>@Dependent</literal>, e, por isso ,serão chamados <emphasis>toda vez</emphasis> que o gerenciador do Web Bean injetar esse atributo ou qualquer outro atributo que resolve para o mesmo método produtor. Assim, pode haver várias instâncias do objeto <literal>PaymentStrategy</literal> para cada sessão do usuário."
#. Tag: para
#: producermethods.xml:83
#, no-c-format
-msgid ""
-"To change this behavior, we can add a <literal>@SessionScoped</literal> "
-"annotation to the method."
-msgstr ""
-"Para mudar esse comportamento, nós podemos adicionar a anotação "
-"<literal>@SessionScoped</literal> ao método."
+msgid "To change this behavior, we can add a <literal>@SessionScoped</literal> annotation to the method."
+msgstr "Para mudar esse comportamento, nós podemos adicionar a anotação <literal>@SessionScoped</literal> ao método."
#. Tag: programlisting
#: producermethods.xml:87
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Produces @Preferred @SessionScoped\n"
"public PaymentStrategy getPaymentStrategy() {\n"
@@ -230,20 +172,14 @@
msgstr ""
"<![CDATA[@Produces @Preferred @SessionScoped\n"
"public PaymentStrategy getPaymentStrategy() {\n"
-" ...\n"
+" ...\n"
"}]]>"
#. Tag: para
#: producermethods.xml:89
#, no-c-format
-msgid ""
-"Now, when the producer method is called, the returned "
-"<literal>PaymentStrategy</literal> will be bound to the session context. The "
-"producer method won't be called again in the same session."
-msgstr ""
-"Agora, quando o método produtor é chamado, o <literal>PaymentStrategy</"
-"literal> retornado será associado ao contexto sessão. O método produtor não "
-"será invocado novamente na mesma sessão."
+msgid "Now, when the producer method is called, the returned <literal>PaymentStrategy</literal> will be bound to the session context. The producer method won't be called again in the same session."
+msgstr "Agora, quando o método produtor é chamado, o <literal>PaymentStrategy</literal> retornado será associado ao contexto sessão. O método produtor não será invocado novamente na mesma sessão."
#. Tag: title
#: producermethods.xml:97
@@ -254,32 +190,18 @@
#. Tag: para
#: producermethods.xml:99
#, no-c-format
-msgid ""
-"There's one potential problem with the code above. The implementations of "
-"<literal>CreditCardPaymentStrategy</literal> are instantiated using the Java "
-"<literal>new</literal> operator. Objects instantiated directly by the "
-"application can't take advantage of dependency injection and don't have "
-"interceptors."
-msgstr ""
-"Existe um problema potencial com o código acima. As implementações de "
-"<literal>CreditCardPaymentStrategy</literal> são instanciadas utilizando o "
-"operador de Java <literal>new</literal>. Objetos instanciados diretamente "
-"pela aplicação não usufruem da injeção de dependência e não possuem "
-"interceptadores."
+msgid "There's one potential problem with the code above. The implementations of <literal>CreditCardPaymentStrategy</literal> are instantiated using the Java <literal>new</literal> operator. Objects instantiated directly by the application can't take advantage of dependency injection and don't have interceptors."
+msgstr "Existe um problema potencial com o código acima. As implementações de <literal>CreditCardPaymentStrategy</literal> são instanciadas utilizando o operador de Java <literal>new</literal>. Objetos instanciados diretamente pela aplicação não usufruem da injeção de dependência e não possuem interceptadores."
#. Tag: para
#: producermethods.xml:106
#, fuzzy, no-c-format
-msgid ""
-"If this isn't what we want, we can use dependency injection into the "
-"producer method to obtain bean instances:"
-msgstr ""
-"Se não é isso o que queremos, podemos utilizar a injeção de dependência no "
-"método produtor para obter instâncias do Web Bean:"
+msgid "If this isn't what we want, we can use dependency injection into the producer method to obtain bean instances:"
+msgstr "Se não é isso o que queremos, podemos utilizar a injeção de dependência no método produtor para obter instâncias do Web Bean:"
#. Tag: programlisting
#: producermethods.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Produces @Preferred @SessionScoped\n"
"public PaymentStrategy getPaymentStrategy(CreditCardPaymentStrategy ccps,\n"
@@ -295,63 +217,33 @@
msgstr ""
"<![CDATA[@Produces @Preferred @SessionScoped\n"
"public PaymentStrategy getPaymentStrategy(CreditCardPaymentStrategy ccps,\n"
-" ChequePaymentStrategy cps,\n"
+" CheckPaymentStrategy cps,\n"
" PayPalPaymentStrategy ppps) {\n"
-" switch (paymentStrategy) {\n"
-" case CREDIT_CARD: return ccps;\n"
-" case CHEQUE: return cps;\n"
-" case PAYPAL: return ppps;\n"
-" default: return null;\n"
-" } \n"
+" switch (paymentStrategy) {\n"
+" case CREDIT_CARD: return ccps;\n"
+" case CHEQUE: return cps;\n"
+" case PAYPAL: return ppps;\n"
+" default: return null;\n"
+" } \n"
"}]]>"
#. Tag: para
#: producermethods.xml:113
#, fuzzy, no-c-format
-msgid ""
-"Wait, what if <literal>CreditCardPaymentStrategy</literal> is a request-"
-"scoped bean? Then the producer method has the effect of \"promoting\" the "
-"current request scoped instance into session scope. This is almost certainly "
-"a bug! The request scoped object will be destroyed by the container before "
-"the session ends, but the reference to the object will be left \"hanging\" "
-"in the session scope. This error will <emphasis>not</emphasis> be detected "
-"by the container, so please take extra care when returning bean instances "
-"from producer methods!"
-msgstr ""
-"Espere, o que se <literal>CreditCardPaymentStrategy</literal> é um Web Bean "
-"de escopo de requisição? Então o método produtor tem o efeito de \"promover"
-"\" a instância atual no escopo de requisição para o escopo de sessão. Isso "
-"certamente é um erro! O objeto no escopo de requisição será destruído pelo "
-"gerenciador do Web Bean antes de terminar a sessão, mas a referência ao "
-"objeto será deixada \"presa\" no escopo sessão. Esse erro <emphasis>não</"
-"emphasis> será detectado pelo gerenciador do Web Bean. Por isso, tome "
-"cuidado quando retornar instâncias de Web Bean em métodos produtores!"
+msgid "Wait, what if <literal>CreditCardPaymentStrategy</literal> is a request-scoped bean? Then the producer method has the effect of \"promoting\" the current request scoped instance into session scope. This is almost certainly a bug! The request scoped object will be destroyed by the container before the session ends, but the reference to the object will be left \"hanging\" in the session scope. This error will <emphasis>not</emphasis> be detected by the container, so please take extra care when returning bean instances from producer methods!"
+msgstr "Espere, o que se <literal>CreditCardPaymentStrategy</literal> é um Web Bean de escopo de requisição? Então o método produtor tem o efeito de \"promover\" a instância atual no escopo de requisição para o escopo de sessão. Isso certamente é um erro! O objeto no escopo de requisição será destruído pelo gerenciador do Web Bean antes de terminar a sessão, mas a referência ao objeto será deixada \"presa\" no escopo sessão. Esse erro <emphasis>não</emphasis> será detectado pelo gerenciador do Web Bean. Por isso, tome cuidado quando retornar instâncias de Web Bean em métodos produtores!"
#. Tag: para
#: producermethods.xml:122
#, fuzzy, no-c-format
-msgid ""
-"There's at least three ways we could go about fixing this bug. We could "
-"change the scope of the <literal>CreditCardPaymentStrategy</literal> "
-"implementation, but this would affect other clients of that bean. A better "
-"option would be to change the scope of the producer method to "
-"<literal>@Dependent</literal> or <literal>@RequestScoped</literal>."
-msgstr ""
-"Existem pelo menos três maneiras de corrigirmos esse erro. Podemos alterar o "
-"escopo da implementação do <literal>CreditCardPaymentStrategy</literal>, mas "
-"isso poderia afetar outros clientes desse Web Bean. A mehor opção seria "
-"alterar o escopo do médoto produtor para <literal>@Dependent</literal> ou "
-"<literal>@RequestScoped</literal>."
+msgid "There's at least three ways we could go about fixing this bug. We could change the scope of the <literal>CreditCardPaymentStrategy</literal> implementation, but this would affect other clients of that bean. A better option would be to change the scope of the producer method to <literal>@Dependent</literal> or <literal>@RequestScoped</literal>."
+msgstr "Existem pelo menos três maneiras de corrigirmos esse erro. Podemos alterar o escopo da implementação do <literal>CreditCardPaymentStrategy</literal>, mas isso poderia afetar outros clientes desse Web Bean. A mehor opção seria alterar o escopo do médoto produtor para <literal>@Dependent</literal> ou <literal>@RequestScoped</literal>."
#. Tag: para
#: producermethods.xml:129
#, fuzzy, no-c-format
-msgid ""
-"But a more common solution is to use the special <literal>@New</literal> "
-"qualifier annotation."
-msgstr ""
-"Mas, uma solução mais comum é utilizar a anotação especial de binding "
-"<literal>@New</literal>"
+msgid "But a more common solution is to use the special <literal>@New</literal> qualifier annotation."
+msgstr "Mas, uma solução mais comum é utilizar a anotação especial de binding <literal>@New</literal>"
#. Tag: title
#: producermethods.xml:134
@@ -367,14 +259,12 @@
#. Tag: programlisting
#: producermethods.xml:138
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Produces @Preferred @SessionScoped\n"
-"public PaymentStrategy getPaymentStrategy(@New CreditCardPaymentStrategy "
-"ccps,\n"
+"public PaymentStrategy getPaymentStrategy(@New CreditCardPaymentStrategy ccps,\n"
" @New CheckPaymentStrategy cps,\n"
-" @New PayPalPaymentStrategy ppps) "
-"{\n"
+" @New PayPalPaymentStrategy ppps) {\n"
" switch (paymentStrategy) {\n"
" case CREDIT_CARD: return ccps;\n"
" case CHEQUE: return cps;\n"
@@ -384,35 +274,22 @@
"}]]>"
msgstr ""
"<![CDATA[@Produces @Preferred @SessionScoped\n"
-"public PaymentStrategy getPaymentStrategy(@New CreditCardPaymentStrategy "
-"ccps,\n"
-" @New ChequePaymentStrategy cps,\n"
-" @New PayPalPaymentStrategy ppps) "
-"{\n"
-" switch (paymentStrategy) {\n"
-" case CREDIT_CARD: return ccps;\n"
-" case CHEQUE: return cps;\n"
-" case PAYPAL: return ppps;\n"
-" default: return null;\n"
-" } \n"
+"public PaymentStrategy getPaymentStrategy(@New CreditCardPaymentStrategy ccps,\n"
+" @New CheckPaymentStrategy cps,\n"
+" @New PayPalPaymentStrategy ppps) {\n"
+" switch (paymentStrategy) {\n"
+" case CREDIT_CARD: return ccps;\n"
+" case CHEQUE: return cps;\n"
+" case PAYPAL: return ppps;\n"
+" default: return null;\n"
+" } \n"
"}]]>"
#. Tag: para
#: producermethods.xml:140
#, no-c-format
-msgid ""
-"Then a new <emphasis>dependent</emphasis> instance of "
-"<literal>CreditCardPaymentStrategy</literal> will be created, passed to the "
-"producer method, returned by the producer method and finally bound to the "
-"session context. The dependent object won't be destroyed until the "
-"<literal>Preferences</literal> object is destroyed, at the end of the "
-"session."
-msgstr ""
-"Assim a nova instância <emphasis>dependente</emphasis> de "
-"<literal>CreditCardPaymentStrategy</literal> será criada, passada para o "
-"método produtor, retornada pelo método produtor e, finalmente, associada ao "
-"contexto de sessão. O objeto dependente não será destruído até que o objeto "
-"<literal>Preferences</literal> seja destruído, no término da sessão."
+msgid "Then a new <emphasis>dependent</emphasis> instance of <literal>CreditCardPaymentStrategy</literal> will be created, passed to the producer method, returned by the producer method and finally bound to the session context. The dependent object won't be destroyed until the <literal>Preferences</literal> object is destroyed, at the end of the session."
+msgstr "Assim a nova instância <emphasis>dependente</emphasis> de <literal>CreditCardPaymentStrategy</literal> será criada, passada para o método produtor, retornada pelo método produtor e, finalmente, associada ao contexto de sessão. O objeto dependente não será destruído até que o objeto <literal>Preferences</literal> seja destruído, no término da sessão."
#. Tag: title
#: producermethods.xml:150
@@ -423,9 +300,7 @@
#. Tag: para
#: producermethods.xml:152
#, no-c-format
-msgid ""
-"Some producer methods return objects that require explicit destruction. For "
-"example, somebody needs to close this JDBC connection:"
+msgid "Some producer methods return objects that require explicit destruction. For example, somebody needs to close this JDBC connection:"
msgstr ""
#. Tag: programlisting
@@ -436,13 +311,14 @@
" return createConnection(user.getId(), user.getPassword());\n"
"}]]>"
msgstr ""
+"<![CDATA[@Produces @RequestScoped Connection connect(User user) {\n"
+" return createConnection(user.getId(), user.getPassword());\n"
+"}]]>"
#. Tag: para
#: producermethods.xml:159
#, no-c-format
-msgid ""
-"Destruction can be performed by a matching <emphasis>disposer method</"
-"emphasis>, defined by the same class as the producer method:"
+msgid "Destruction can be performed by a matching <emphasis>disposer method</emphasis>, defined by the same class as the producer method:"
msgstr ""
#. Tag: programlisting
@@ -453,20 +329,16 @@
" connection.close();\n"
"}]]>"
msgstr ""
+"<![CDATA[void close(@Disposes Connection connection) {\n"
+" connection.close();\n"
+"}]]>"
#. Tag: para
#: producermethods.xml:164
#, no-c-format
-msgid ""
-"The disposer method must have at least one parameter, annotated "
-"<literal>@Disposes</literal>, with the same type and qualifiers as the "
-"producer method. The disposer method is called automatically when the "
-"context ends (in this case, at the end of the request), and this parameter "
-"receives the object produced by the producer method. If the disposer method "
-"has additional method parameters, the container will look for a bean that "
-"satisfies the type and qualifiers of each parameter and pass it to the "
-"method automatically."
+msgid "The disposer method must have at least one parameter, annotated <literal>@Disposes</literal>, with the same type and qualifiers as the producer method. The disposer method is called automatically when the context ends (in this case, at the end of the request), and this parameter receives the object produced by the producer method. If the disposer method has additional method parameters, the container will look for a bean that satisfies the type and qualifiers of each parameter and pass it to the method automatically."
msgstr ""
#~ msgid "<chapter>.</chapter>"
#~ msgstr "<chapter>.</chapter>"
+
Modified: doc/trunk/reference/pt-BR/resources.po
===================================================================
--- doc/trunk/reference/pt-BR/resources.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/resources.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,8 +6,8 @@
"Project-Id-Version: Weld_-_JSR-299_Reference_Implementation VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-11-11 15:00+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2009-12-19 18:06-0300\n"
+"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -22,38 +22,19 @@
#. Tag: para
#: resources.xml:7
#, no-c-format
-msgid ""
-"Java EE 5 already introduced some limited support for dependency injection, "
-"in the form of component environment injection. A component environment "
-"resource is a Java EE component, for example a JDBC datasource, JMS queue or "
-"topic, JPA persistence context, remote EJB or web service."
+msgid "Java EE 5 already introduced some limited support for dependency injection, in the form of component environment injection. A component environment resource is a Java EE component, for example a JDBC datasource, JMS queue or topic, JPA persistence context, remote EJB or web service."
msgstr ""
#. Tag: para
#: resources.xml:13
#, no-c-format
-msgid ""
-"Naturally, there is now a slight mismatch with the new style of dependency "
-"injection in CDI. Most notably, component environment injection relies on "
-"string-based names to qualify ambiguous types, and there is no real "
-"consistency as to the nature of the names (sometimes a JNDI name, sometimes "
-"a persistence unit name, sometimes an EJB link, sometimes a nonportable "
-"\"mapped name\"). Producer fields turned out to be an elegant adaptor to "
-"reduce all this complexity to a common model and get component environment "
-"resources to participate in the CDI system just like any other kind of bean."
+msgid "Naturally, there is now a slight mismatch with the new style of dependency injection in CDI. Most notably, component environment injection relies on string-based names to qualify ambiguous types, and there is no real consistency as to the nature of the names (sometimes a JNDI name, sometimes a persistence unit name, sometimes an EJB link, sometimes a nonportable \"mapped name\"). Producer fields turned out to be an elegant adaptor to reduce all this complexity to a common model and get component environment resources to participate in the CDI system just like any other kind of bean."
msgstr ""
#. Tag: para
#: resources.xml:22
#, no-c-format
-msgid ""
-"Fields have a duality in that they can both be the target of Java EE "
-"component environment injection and be declared as a CDI producer field. "
-"Therefore, they can define a mapping from a string-based name in the "
-"component environment, to a combination of type and qualifiers used in the "
-"world of typesafe injection. We call a producer field that represents a "
-"reference to an object in the Java EE component environment a "
-"<emphasis>resource</emphasis>."
+msgid "Fields have a duality in that they can both be the target of Java EE component environment injection and be declared as a CDI producer field. Therefore, they can define a mapping from a string-based name in the component environment, to a combination of type and qualifiers used in the world of typesafe injection. We call a producer field that represents a reference to an object in the Java EE component environment a <emphasis>resource</emphasis>."
msgstr ""
#. Tag: title
@@ -65,11 +46,7 @@
#. Tag: para
#: resources.xml:33
#, no-c-format
-msgid ""
-"We declare a resource by annotating a producer field with a component "
-"environment injection annotation: <literal>@Resource</literal>, "
-"<literal>@EJB</literal>, <literal>@PersistenceContext</literal>, "
-"<literal>@PersistenceUnit</literal> or <literal>@WebServiceRef</literal>."
+msgid "We declare a resource by annotating a producer field with a component environment injection annotation: <literal>@Resource</literal>, <literal>@EJB</literal>, <literal>@PersistenceContext</literal>, <literal>@PersistenceUnit</literal> or <literal>@WebServiceRef</literal>."
msgstr ""
#. Tag: programlisting
@@ -79,15 +56,18 @@
"<![CDATA[@Produces @WebServiceRef(lookup=\"java:app/service/Catalog\")\n"
"Catalog catalog;]]>"
msgstr ""
+"<![CDATA[@Produces @WebServiceRef(lookup=\"java:app/service/Catalog\")\n"
+"Catalog catalog;]]>"
#. Tag: programlisting
#: resources.xml:39
#, no-c-format
msgid ""
-"<![CDATA[@Produces @Resource(lookup=\"java:global/env/jdbc/CustomerDatasource"
-"\") \n"
+"<![CDATA[@Produces @Resource(lookup=\"java:global/env/jdbc/CustomerDatasource\") \n"
"@CustomerDatabase Datasource customerDatabase;]]>"
msgstr ""
+"<![CDATA[@Produces @Resource(lookup=\"java:global/env/jdbc/CustomerDatasource\") \n"
+"@CustomerDatabase Datasource customerDatabase;]]>"
#. Tag: programlisting
#: resources.xml:41
@@ -96,6 +76,8 @@
"<![CDATA[@Produces @PersistenceContext(unitName=\"CustomerDatabase\")\n"
"@CustomerDatabase EntityManager customerDatabasePersistenceContext;]]>"
msgstr ""
+"<![CDATA[@Produces @PersistenceContext(unitName=\"CustomerDatabase\")\n"
+"@CustomerDatabase EntityManager customerDatabasePersistenceContext;]]>"
#. Tag: programlisting
#: resources.xml:43
@@ -104,6 +86,8 @@
"<![CDATA[@Produces @PersistenceUnit(unitName=\"CustomerDatabase\") \n"
"@CustomerDatabase EntityManagerFactory customerDatabasePersistenceUnit;]]>"
msgstr ""
+"<![CDATA[@Produces @PersistenceUnit(unitName=\"CustomerDatabase\") \n"
+"@CustomerDatabase EntityManagerFactory customerDatabasePersistenceUnit;]]>"
#. Tag: programlisting
#: resources.xml:45
@@ -112,6 +96,8 @@
"<![CDATA[@Produces @EJB(ejbLink=\"../their.jar#PaymentService\") \n"
"PaymentService paymentService;]]>"
msgstr ""
+"<![CDATA[@Produces @EJB(ejbLink=\"../their.jar#PaymentService\") \n"
+"PaymentService paymentService;]]>"
#. Tag: para
#: resources.xml:47
@@ -122,11 +108,7 @@
#. Tag: para
#: resources.xml:49
#, no-c-format
-msgid ""
-"It might feel strange to be declaring resources in Java code. Isn't this "
-"stuff that might be deployment-specific? Certainly, and that's why it makes "
-"sense to declare your resources in a class annotation <literal>@Alternative</"
-"literal>."
+msgid "It might feel strange to be declaring resources in Java code. Isn't this stuff that might be deployment-specific? Certainly, and that's why it makes sense to declare your resources in a class annotation <literal>@Alternative</literal>."
msgstr ""
#. Tag: title
@@ -145,54 +127,42 @@
#: resources.xml:62
#, no-c-format
msgid "<![CDATA[@Inject Catalog catalog;]]>"
-msgstr ""
+msgstr "<![CDATA[@Inject Catalog catalog;]]>"
#. Tag: programlisting
#: resources.xml:63
#, no-c-format
msgid "<![CDATA[@Inject @CustomerDatabase Datasource customerDatabase;]]>"
-msgstr ""
+msgstr "<![CDATA[@Inject @CustomerDatabase Datasource customerDatabase;]]>"
#. Tag: programlisting
#: resources.xml:64
#, no-c-format
-msgid ""
-"<![CDATA[@Inject @CustomerDatabase EntityManager "
-"customerDatabaseEntityManager;]]>"
-msgstr ""
+msgid "<![CDATA[@Inject @CustomerDatabase EntityManager customerDatabaseEntityManager;]]>"
+msgstr "<![CDATA[@Inject @CustomerDatabase EntityManager customerDatabaseEntityManager;]]>"
#. Tag: programlisting
#: resources.xml:65
#, no-c-format
-msgid ""
-"<![CDATA[@Inject @CustomerDatabase EntityManagerFactory "
-"customerDatabaseEntityManagerFactory;]]>"
-msgstr ""
+msgid "<![CDATA[@Inject @CustomerDatabase EntityManagerFactory customerDatabaseEntityManagerFactory;]]>"
+msgstr "<![CDATA[@Inject @CustomerDatabase EntityManagerFactory customerDatabaseEntityManagerFactory;]]>"
#. Tag: programlisting
#: resources.xml:66
#, no-c-format
msgid "<![CDATA[@Inject PaymentService paymentService;]]>"
-msgstr ""
+msgstr "<![CDATA[@Inject PaymentService paymentService;]]>"
#. Tag: para
#: resources.xml:68
#, no-c-format
-msgid ""
-"The bean type and qualifiers of the resource are determined by the producer "
-"field declaration."
+msgid "The bean type and qualifiers of the resource are determined by the producer field declaration."
msgstr ""
#. Tag: para
#: resources.xml:72
#, no-c-format
-msgid ""
-"It might seem like a pain to have to write these extra producer field "
-"declarations, just to gain an additional level of indirection. You could "
-"just as well use component environment injection directly, right? But "
-"remember that you're going to be using resources like the "
-"<literal>EntityManager</literal> in several different beans. Isn't it nicer "
-"and more typesafe to write"
+msgid "It might seem like a pain to have to write these extra producer field declarations, just to gain an additional level of indirection. You could just as well use component environment injection directly, right? But remember that you're going to be using resources like the <literal>EntityManager</literal> in several different beans. Isn't it nicer and more typesafe to write"
msgstr ""
#. Tag: programlisting
@@ -218,3 +188,4 @@
#, no-c-format
msgid "all over the place?"
msgstr ""
+
Modified: doc/trunk/reference/pt-BR/ri-spi.po
===================================================================
--- doc/trunk/reference/pt-BR/ri-spi.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/ri-spi.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,7 +6,7 @@
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-07-25 16:20-0300\n"
+"PO-Revision-Date: 2009-12-19 18:04-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -15,17 +15,14 @@
#. Tag: title
#: ri-spi.xml:4
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Integrating Weld into other environments"
-msgstr "Integrando a Web Beans em outros ambientes"
+msgstr "Integrando o Weld em outros ambientes"
#. Tag: para
#: ri-spi.xml:6
#, no-c-format
-msgid ""
-"If you want to use Weld in another environment, you will need to provide "
-"certain information to Weld via the integration SPI. In this Appendix we "
-"will briefly discuss the steps needed."
+msgid "If you want to use Weld in another environment, you will need to provide certain information to Weld via the integration SPI. In this Appendix we will briefly discuss the steps needed."
msgstr ""
#. Tag: title
@@ -37,21 +34,13 @@
#. Tag: para
#: ri-spi.xml:13
#, no-c-format
-msgid ""
-"If you just want to use managed beans, and not take advantage of enterprise "
-"services (EE resource injection, CDI injection into EE component classes, "
-"transactional events, support for CDI services in EJBs) and non-flat "
-"deployments, then the generic servlet support provided by the \"Weld: "
-"Servlets\" extension will be sufficient, and will work in any container "
-"supporting the Servlet API."
+msgid "If you just want to use managed beans, and not take advantage of enterprise services (EE resource injection, CDI injection into EE component classes, transactional events, support for CDI services in EJBs) and non-flat deployments, then the generic servlet support provided by the \"Weld: Servlets\" extension will be sufficient, and will work in any container supporting the Servlet API."
msgstr ""
#. Tag: para
#: ri-spi.xml:21
#, no-c-format
-msgid ""
-"All SPIs and APIs described have extensive JavaDoc, which spell out the "
-"detailed contract between the container and Weld."
+msgid "All SPIs and APIs described have extensive JavaDoc, which spell out the detailed contract between the container and Weld."
msgstr ""
#. Tag: title
@@ -63,54 +52,25 @@
#. Tag: para
#: ri-spi.xml:29
#, fuzzy, no-c-format
-msgid ""
-"The Weld SPI is located in the <literal>weld-spi</literal> module, and "
-"packaged as <literal>weld-spi.jar</literal>. Some SPIs are optional, and "
-"should only be implemented if you need to override the default behavior; "
-"others are required."
-msgstr ""
-"A Web Beans SPI está localizada no módulo <literal>webbeans-spi</literal>, e "
-"empacotado como <literal>webbeans-spi.jar</literal>. Algumas SPIs são "
-"opcionais, se você precisar de substituir o comportamento padrão, outros são "
-"obrigatórios."
+msgid "The Weld SPI is located in the <literal>weld-spi</literal> module, and packaged as <literal>weld-spi.jar</literal>. Some SPIs are optional, and should only be implemented if you need to override the default behavior; others are required."
+msgstr "A Web Beans SPI está localizada no módulo <literal>webbeans-spi</literal>, e empacotado como <literal>webbeans-spi.jar</literal>. Algumas SPIs são opcionais, se você precisar de substituir o comportamento padrão, outros são obrigatórios."
#. Tag: para
#: ri-spi.xml:35
#, no-c-format
-msgid ""
-"All interfaces in the SPI support the decorator pattern and provide a "
-"<literal>Forwarding</literal> class located in the <literal>helpers</"
-"literal> sub package. Additional, commonly used, utility classes, and "
-"standard implementations are also located in the <literal>helpers</literal> "
-"sub package."
-msgstr ""
-"Todas as interfaces na SPI suportam o padrão decorador e fornecem a classe "
-"<literal>Forwarding</literal> localizada no sub-pacote <literal>helpers</"
-"literal>. Adicionalmente, as comumente utilizadas classes utilitárias e "
-"implementações padrão, também estão localizadas no sub-pacote "
-"<literal>helpers</literal>."
+msgid "All interfaces in the SPI support the decorator pattern and provide a <literal>Forwarding</literal> class located in the <literal>helpers</literal> sub package. Additional, commonly used, utility classes, and standard implementations are also located in the <literal>helpers</literal> sub package."
+msgstr "Todas as interfaces na SPI suportam o padrão decorador e fornecem a classe <literal>Forwarding</literal> localizada no sub-pacote <literal>helpers</literal>. Adicionalmente, as comumente utilizadas classes utilitárias e implementações padrão, também estão localizadas no sub-pacote <literal>helpers</literal>."
#. Tag: para
#: ri-spi.xml:41
#, no-c-format
-msgid ""
-"Weld supports multiple environments. An environment is defined by an "
-"implementation of the <literal>Environment</literal> interface. A number of "
-"standard environments are built in, and described by the "
-"<literal>Environments</literal> enumeration. Different environments require "
-"different services to be present (for example a Servlet container doesn't "
-"require transaction, EJB or JPA services). By default an EE environment is "
-"assumed, but you can adjust the environment by calling <literal>bootstrap."
-"setEnvironment()</literal>."
+msgid "Weld supports multiple environments. An environment is defined by an implementation of the <literal>Environment</literal> interface. A number of standard environments are built in, and described by the <literal>Environments</literal> enumeration. Different environments require different services to be present (for example a Servlet container doesn't require transaction, EJB or JPA services). By default an EE environment is assumed, but you can adjust the environment by calling <literal>bootstrap.setEnvironment()</literal>."
msgstr ""
#. Tag: para
#: ri-spi.xml:50
#, no-c-format
-msgid ""
-"Weld uses a generic-typed service registry to allow services to be "
-"registered. All services implement the <literal>Service</literal> interface. "
-"The service registry allows services to be added and retrieved."
+msgid "Weld uses a generic-typed service registry to allow services to be registered. All services implement the <literal>Service</literal> interface. The service registry allows services to be added and retrieved."
msgstr ""
#. Tag: title
@@ -122,54 +82,25 @@
#. Tag: para
#: ri-spi.xml:58
#, no-c-format
-msgid ""
-"An application is often comprised of a number of modules. For example, a "
-"Java EE deployment may contain a number of EJB modules (containing business "
-"logic) and WAR modules (containing the user interface). A container may "
-"enforce certain <emphasis>accessibility</emphasis> rules which limit the "
-"visibility of classes between modules. CDI allows these same rules to apply "
-"to bean and observer method resolution. As the accessibility rules vary "
-"between containers, Weld requires the container to <emphasis>describe</"
-"emphasis> the deployment structure, via the <literal>Deployment</literal> "
-"SPI."
+msgid "An application is often comprised of a number of modules. For example, a Java EE deployment may contain a number of EJB modules (containing business logic) and WAR modules (containing the user interface). A container may enforce certain <emphasis>accessibility</emphasis> rules which limit the visibility of classes between modules. CDI allows these same rules to apply to bean and observer method resolution. As the accessibility rules vary between containers, Weld requires the container to <emphasis>describe</emphasis> the deployment structure, via the <literal>Deployment</literal> SPI."
msgstr ""
#. Tag: para
#: ri-spi.xml:67
#, no-c-format
-msgid ""
-"The CDI specification discusses <emphasis>Bean Deployment Archives</"
-"emphasis> (BDAs)—archives which are marked as containing beans which "
-"should be deployed to the CDI container, and made available for injection "
-"and resolution. Weld reuses this description of <emphasis>Bean Deployment "
-"Archives</emphasis> in its deployment structure SPI. Each deployment exposes "
-"the BDAs which it contains; each BDA may also reference other which it can "
-"access. Together, the transitive closure of this graph forms the beans which "
-"are deployed in the application."
+msgid "The CDI specification discusses <emphasis>Bean Deployment Archives</emphasis> (BDAs)—archives which are marked as containing beans which should be deployed to the CDI container, and made available for injection and resolution. Weld reuses this description of <emphasis>Bean Deployment Archives</emphasis> in its deployment structure SPI. Each deployment exposes the BDAs which it contains; each BDA may also reference other which it can access. Together, the transitive closure of this graph forms the beans which are deployed in the application."
msgstr ""
#. Tag: para
#: ri-spi.xml:76
#, no-c-format
-msgid ""
-"To describe the deployment structure to Weld, the container should provide "
-"an implementation of <literal>Deployment</literal>. <literal>Deployment."
-"getBeanDeploymentArchives()</literal> allows Weld to discover the modules "
-"which make up the application. The CDI specification also allows beans to be "
-"specified programmatically as part of the bean deployment. These beans may, "
-"or may not, be in an existing BDA. For this reason, Weld will call "
-"<literal>Deployment.loadBeanDeploymentArchive(Class clazz)</literal> for "
-"each programmatically described bean."
+msgid "To describe the deployment structure to Weld, the container should provide an implementation of <literal>Deployment</literal>. <literal>Deployment.getBeanDeploymentArchives()</literal> allows Weld to discover the modules which make up the application. The CDI specification also allows beans to be specified programmatically as part of the bean deployment. These beans may, or may not, be in an existing BDA. For this reason, Weld will call <literal>Deployment.loadBeanDeploymentArchive(Class clazz)</literal> for each programmatically described bean."
msgstr ""
#. Tag: para
#: ri-spi.xml:85
#, no-c-format
-msgid ""
-"As programmatically described beans may result in additional BDAs being "
-"added to the graph, Weld will discover the BDA structure every time an "
-"unknown BDA is returned by <literal>Deployment.loadBeanDeploymentArchive</"
-"literal>."
+msgid "As programmatically described beans may result in additional BDAs being added to the graph, Weld will discover the BDA structure every time an unknown BDA is returned by <literal>Deployment.loadBeanDeploymentArchive</literal>."
msgstr ""
#. Tag: title
@@ -181,45 +112,25 @@
#. Tag: para
#: ri-spi.xml:93
#, no-c-format
-msgid ""
-"In a strict container, each BDA might have to explicitly specify which other "
-"BDAs it can access. However many containers will allow an easy mechanism to "
-"make BDAs bi-directionally accessible (such as a library directory). In this "
-"case, it is allowable (and reasonable) to describe all such archives as a "
-"single, 'virtual' <literal>BeanDeploymentArchive</literal>."
+msgid "In a strict container, each BDA might have to explicitly specify which other BDAs it can access. However many containers will allow an easy mechanism to make BDAs bi-directionally accessible (such as a library directory). In this case, it is allowable (and reasonable) to describe all such archives as a single, 'virtual' <literal>BeanDeploymentArchive</literal>."
msgstr ""
#. Tag: para
#: ri-spi.xml:100
#, no-c-format
-msgid ""
-"A container, might, for example, use a flat accessibility structure for the "
-"application. In this case, a single <literal>BeanDeploymentArchive</literal> "
-"would be attached to the <literal>Deployment</literal>."
+msgid "A container, might, for example, use a flat accessibility structure for the application. In this case, a single <literal>BeanDeploymentArchive</literal> would be attached to the <literal>Deployment</literal>."
msgstr ""
#. Tag: para
#: ri-spi.xml:106
#, no-c-format
-msgid ""
-"<literal>BeanDeploymentArchive</literal> provides three methods which allow "
-"it's contents to be discovered by Weld—<literal>BeanDeploymentArchive."
-"getBeanClasses()</literal> must return all the classes in the BDA, "
-"<literal>BeanDeploymentArchive.getBeansXml()</literal> must return all the "
-"deployment descriptors in the archive, and <literal>BeanDeploymentArchive."
-"getEjbs()</literal> must provide an EJB descriptor for every EJB in the BDA, "
-"or an empty list if it is not an EJB archive."
+msgid "<literal>BeanDeploymentArchive</literal> provides three methods which allow it's contents to be discovered by Weld—<literal>BeanDeploymentArchive.getBeanClasses()</literal> must return all the classes in the BDA, <literal>BeanDeploymentArchive.getBeansXml()</literal> must return all the deployment descriptors in the archive, and <literal>BeanDeploymentArchive.getEjbs()</literal> must provide an EJB descriptor for every EJB in the BDA, or an empty list if it is not an EJB archive."
msgstr ""
#. Tag: para
#: ri-spi.xml:114
#, no-c-format
-msgid ""
-"BDA X may also reference another BDA Y whose beans can be resolved by, and "
-"injected into, any bean in BDA X. These are the accessible BDAs, and every "
-"BDA that is directly accessible by BDA X should be returned. A BDA will also "
-"have BDAs which are accessible transitively, and the transitive closure of "
-"the sub-graph of BDA X describes all the beans resolvable by BDA X."
+msgid "BDA X may also reference another BDA Y whose beans can be resolved by, and injected into, any bean in BDA X. These are the accessible BDAs, and every BDA that is directly accessible by BDA X should be returned. A BDA will also have BDAs which are accessible transitively, and the transitive closure of the sub-graph of BDA X describes all the beans resolvable by BDA X."
msgstr ""
#. Tag: title
@@ -231,39 +142,25 @@
#. Tag: para
#: ri-spi.xml:124
#, no-c-format
-msgid ""
-"In practice, you can regard the deployment structure represented by "
-"<literal>Deployment</literal>, and the virtual BDA graph as a mirror of the "
-"classloader structure for a deployment. If a class can from BDA X can be "
-"loaded by another in BDA Y, it is accessible, and therefore BDA Y's "
-"accessible BDAs should include BDA X."
+msgid "In practice, you can regard the deployment structure represented by <literal>Deployment</literal>, and the virtual BDA graph as a mirror of the classloader structure for a deployment. If a class can from BDA X can be loaded by another in BDA Y, it is accessible, and therefore BDA Y's accessible BDAs should include BDA X."
msgstr ""
#. Tag: para
#: ri-spi.xml:132
#, no-c-format
-msgid ""
-"To specify the directly accessible BDAs, the container should provide an "
-"implementation of <literal>BeanDeploymentArchive.getBeanDeploymentArchives()"
-"</literal>."
+msgid "To specify the directly accessible BDAs, the container should provide an implementation of <literal>BeanDeploymentArchive.getBeanDeploymentArchives()</literal>."
msgstr ""
#. Tag: para
#: ri-spi.xml:138
#, no-c-format
-msgid ""
-"Weld allows the container to describe a circular graph, and will convert a "
-"graph to a tree as part of the deployment process."
+msgid "Weld allows the container to describe a circular graph, and will convert a graph to a tree as part of the deployment process."
msgstr ""
#. Tag: para
#: ri-spi.xml:144
#, no-c-format
-msgid ""
-"Certain services are provided for the whole deployment, whilst some are "
-"provided per-BDA. BDA services are provided using "
-"<literal>BeanDeploymentArchive.getServices()</literal> and only apply to the "
-"BDA on which they are provided."
+msgid "Certain services are provided for the whole deployment, whilst some are provided per-BDA. BDA services are provided using <literal>BeanDeploymentArchive.getServices()</literal> and only apply to the BDA on which they are provided."
msgstr ""
#. Tag: title
@@ -275,19 +172,13 @@
#. Tag: para
#: ri-spi.xml:155
#, no-c-format
-msgid ""
-"Weld delegates EJB 3 bean discovery to the container so that it doesn't "
-"duplicate the work done by the EJB container, and respects any vendor-"
-"extensions to the EJB definition."
+msgid "Weld delegates EJB 3 bean discovery to the container so that it doesn't duplicate the work done by the EJB container, and respects any vendor-extensions to the EJB definition."
msgstr ""
#. Tag: para
#: ri-spi.xml:160
#, no-c-format
-msgid ""
-"The <literal>EjbDescriptor</literal> should return the relevant metadata as "
-"defined in the EJB specification. Each business interface of a session bean "
-"should be described using a <literal>BusinessInterfaceDescriptor</literal>."
+msgid "The <literal>EjbDescriptor</literal> should return the relevant metadata as defined in the EJB specification. Each business interface of a session bean should be described using a <literal>BusinessInterfaceDescriptor</literal>."
msgstr ""
#. Tag: title
@@ -299,58 +190,37 @@
#. Tag: para
#: ri-spi.xml:171
#, no-c-format
-msgid ""
-"All the EE resource services are per-BDA services, and may be provided using "
-"one of two methods. Which method to use is at the discretion of the "
-"integrator."
+msgid "All the EE resource services are per-BDA services, and may be provided using one of two methods. Which method to use is at the discretion of the integrator."
msgstr ""
#. Tag: para
#: ri-spi.xml:176
#, no-c-format
-msgid ""
-"The integrator may choose to provide all EE resource injection services "
-"themselves, using another library or framework. In this case the integrator "
-"should use the <literal>EE</literal> environment, and implement the <xref "
-"linkend=\"injection.services\"/> SPI."
+msgid "The integrator may choose to provide all EE resource injection services themselves, using another library or framework. In this case the integrator should use the <literal>EE</literal> environment, and implement the <xref linkend=\"injection.services\"/> SPI."
msgstr ""
#. Tag: para
#: ri-spi.xml:182
#, no-c-format
-msgid ""
-"Alternatively, the integrator may choose to use CDI to provide EE resource "
-"injection. In this case, the <literal>EE_INJECT</literal> environment should "
-"be used, and the integrator should implement the <xref linkend=\"ejb."
-"services.resolution\"/>, <xref linkend=\"resource.services\"/> and <xref "
-"linkend=\"jpa.services\"/>."
+msgid "Alternatively, the integrator may choose to use CDI to provide EE resource injection. In this case, the <literal>EE_INJECT</literal> environment should be used, and the integrator should implement the <xref linkend=\"ejb.services.resolution\"/>, <xref linkend=\"resource.services\"/> and <xref linkend=\"jpa.services\"/>."
msgstr ""
#. Tag: para
#: ri-spi.xml:189
#, no-c-format
-msgid ""
-"CDI only provides annotation-based EE resource injection; if you wish to "
-"provide deployment descriptor (e.g. <literal>ejb-jar.xml</literal>) "
-"injection, you must use <xref linkend=\"injection.services\"/>."
+msgid "CDI only provides annotation-based EE resource injection; if you wish to provide deployment descriptor (e.g. <literal>ejb-jar.xml</literal>) injection, you must use <xref linkend=\"injection.services\"/>."
msgstr ""
#. Tag: para
#: ri-spi.xml:195
#, no-c-format
-msgid ""
-"If the container performs EE resource injection, the injected resources must "
-"be serializable. If EE resource injection is provided by Weld, the resolved "
-"resource must be serializable."
+msgid "If the container performs EE resource injection, the injected resources must be serializable. If EE resource injection is provided by Weld, the resolved resource must be serializable."
msgstr ""
#. Tag: para
#: ri-spi.xml:201
#, no-c-format
-msgid ""
-"If you use a non-EE environment then you may implement any of the EE service "
-"SPIs, and Weld will provide the associated functionality. There is no need "
-"to implement those services you don't need!"
+msgid "If you use a non-EE environment then you may implement any of the EE service SPIs, and Weld will provide the associated functionality. There is no need to implement those services you don't need!"
msgstr ""
#. Tag: title
@@ -368,25 +238,13 @@
#. Tag: para
#: ri-spi.xml:216
#, no-c-format
-msgid ""
-"<literal>EJBServices</literal> is used to resolve local EJBs used to back "
-"session beans, and must always be provided in an EE environment. "
-"<literal>EJBServices.resolveEjb(EjbDescriptor ejbDescriptor)</literal> "
-"returns a wrapper—<literal>SessionObjectReference</literal>—"
-"around the EJB reference. This wrapper allows Weld to request a reference "
-"that implements the given business interface, and, in the case of SFSBs, "
-"both request the removal of the EJB from the container and query whether the "
-"EJB has been previously removed."
+msgid "<literal>EJBServices</literal> is used to resolve local EJBs used to back session beans, and must always be provided in an EE environment. <literal>EJBServices.resolveEjb(EjbDescriptor ejbDescriptor)</literal> returns a wrapper—<literal>SessionObjectReference</literal>—around the EJB reference. This wrapper allows Weld to request a reference that implements the given business interface, and, in the case of SFSBs, both request the removal of the EJB from the container and query whether the EJB has been previously removed."
msgstr ""
#. Tag: para
#: ri-spi.xml:225
#, no-c-format
-msgid ""
-"<literal>EJBResolutionServices.resolveEjb(InjectionPoint ij)</literal> "
-"allows the resolution of <literal>@EJB</literal> (for injection into managed "
-"beans). This service is not required if the implementation of <xref linkend="
-"\"injection.services\"/> takes care of <literal>@EJB</literal> injection."
+msgid "<literal>EJBResolutionServices.resolveEjb(InjectionPoint ij)</literal> allows the resolution of <literal>@EJB</literal> (for injection into managed beans). This service is not required if the implementation of <xref linkend=\"injection.services\"/> takes care of <literal>@EJB</literal> injection."
msgstr ""
#. Tag: title
@@ -398,21 +256,13 @@
#. Tag: para
#: ri-spi.xml:236
#, no-c-format
-msgid ""
-"Just as EJB resolution is delegated to the container, resolution of "
-"<literal>@PersistenceContext</literal> for injection into managed beans "
-"(with the <literal>InjectionPoint</literal> provided), is delegated to the "
-"container."
+msgid "Just as EJB resolution is delegated to the container, resolution of <literal>@PersistenceContext</literal> for injection into managed beans (with the <literal>InjectionPoint</literal> provided), is delegated to the container."
msgstr ""
#. Tag: para
#: ri-spi.xml:242
#, no-c-format
-msgid ""
-"To allow JPA integration, the <literal>JpaServices</literal> interface "
-"should be implemented. This service is not required if the implementation of "
-"<xref linkend=\"injection.services\"/> takes care of "
-"<literal>@PersistenceContext</literal> injection."
+msgid "To allow JPA integration, the <literal>JpaServices</literal> interface should be implemented. This service is not required if the implementation of <xref linkend=\"injection.services\"/> takes care of <literal>@PersistenceContext</literal> injection."
msgstr ""
#. Tag: title
@@ -424,33 +274,19 @@
#. Tag: para
#: ri-spi.xml:253
#, fuzzy, no-c-format
-msgid ""
-"Weld delegates JTA activities to the container. The SPI provides a couple "
-"hooks to easily achieve this with the <literal>TransactionServices</literal> "
-"interface."
-msgstr ""
-"A Web Beans deve delegar as atividades JTA para o container. A SPI fornece "
-"vários ganchos para facilmente conseguir isso com a interface "
-"<literal>TransactionServices</literal>."
+msgid "Weld delegates JTA activities to the container. The SPI provides a couple hooks to easily achieve this with the <literal>TransactionServices</literal> interface."
+msgstr "A Web Beans deve delegar as atividades JTA para o container. A SPI fornece vários ganchos para facilmente conseguir isso com a interface <literal>TransactionServices</literal>."
#. Tag: para
#: ri-spi.xml:258
#, no-c-format
-msgid ""
-"Any <literal>javax.transaction.Synchronization</literal> implementation may "
-"be passed to the <literal>registerSynchronization()</literal> method and the "
-"SPI implementation should immediately register the synchronization with the "
-"JTA transaction manager used for the EJBs."
+msgid "Any <literal>javax.transaction.Synchronization</literal> implementation may be passed to the <literal>registerSynchronization()</literal> method and the SPI implementation should immediately register the synchronization with the JTA transaction manager used for the EJBs."
msgstr ""
#. Tag: para
#: ri-spi.xml:264
#, no-c-format
-msgid ""
-"To make it easier to determine whether or not a transaction is currently "
-"active for the requesting thread, the <literal>isTransactionActive()</"
-"literal> method can be used. The SPI implementation should query the same "
-"JTA transaction manager used for the EJBs."
+msgid "To make it easier to determine whether or not a transaction is currently active for the requesting thread, the <literal>isTransactionActive()</literal> method can be used. The SPI implementation should query the same JTA transaction manager used for the EJBs."
msgstr ""
#. Tag: title
@@ -462,12 +298,7 @@
#. Tag: para
#: ri-spi.xml:274
#, no-c-format
-msgid ""
-"The resolution of <literal>@Resource</literal> (for injection into managed "
-"beans) is delegated to the container. You must provide an implementation of "
-"<literal>ResourceServices</literal> which provides these operations. This "
-"service is not required if the implementation of <xref linkend=\"injection."
-"services\"/> takes care of <literal>@Resource</literal> injection."
+msgid "The resolution of <literal>@Resource</literal> (for injection into managed beans) is delegated to the container. You must provide an implementation of <literal>ResourceServices</literal> which provides these operations. This service is not required if the implementation of <xref linkend=\"injection.services\"/> takes care of <literal>@Resource</literal> injection."
msgstr ""
#. Tag: title
@@ -479,34 +310,19 @@
#. Tag: para
#: ri-spi.xml:285
#, no-c-format
-msgid ""
-"An integrator may wish to use <literal>InjectionServices</literal> to "
-"provide additional field or method injection over-and-above that provided by "
-"Weld. An integration into a Java EE environment may use "
-"<literal>InjectionServices</literal> to provide EE resource injection for "
-"managed beans."
+msgid "An integrator may wish to use <literal>InjectionServices</literal> to provide additional field or method injection over-and-above that provided by Weld. An integration into a Java EE environment may use <literal>InjectionServices</literal> to provide EE resource injection for managed beans."
msgstr ""
#. Tag: para
#: ri-spi.xml:291
#, no-c-format
-msgid ""
-"<literal>InjectionServices</literal> provides a very simple contract, the "
-"<literal>InjectionServices.aroundInject(InjectionContext ic);</literal> "
-"intercepter will be called for every instance that CDI injects, whether it "
-"is a contextual instance, or a non-contextual instance injected by "
-"<literal>InjectionTarget.inject()</literal>."
+msgid "<literal>InjectionServices</literal> provides a very simple contract, the <literal>InjectionServices.aroundInject(InjectionContext ic);</literal> intercepter will be called for every instance that CDI injects, whether it is a contextual instance, or a non-contextual instance injected by <literal>InjectionTarget.inject()</literal>."
msgstr ""
#. Tag: para
#: ri-spi.xml:298
#, no-c-format
-msgid ""
-"The <literal>InjectionContext</literal> can be used to discover additional "
-"information about the injection being performed, including the "
-"<literal>target</literal> being injected. <literal>ic.proceed()</literal> "
-"should be called to perform CDI-style injection, and call initializer "
-"methods."
+msgid "The <literal>InjectionContext</literal> can be used to discover additional information about the injection being performed, including the <literal>target</literal> being injected. <literal>ic.proceed()</literal> should be called to perform CDI-style injection, and call initializer methods."
msgstr ""
#. Tag: title
@@ -518,10 +334,7 @@
#. Tag: para
#: ri-spi.xml:309
#, no-c-format
-msgid ""
-"In order to obtain the <literal>Principal</literal> representing the current "
-"caller identity, the container should provide an implementation of "
-"<literal>SecurityServices</literal>."
+msgid "In order to obtain the <literal>Principal</literal> representing the current caller identity, the container should provide an implementation of <literal>SecurityServices</literal>."
msgstr ""
#. Tag: title
@@ -533,10 +346,7 @@
#. Tag: para
#: ri-spi.xml:319
#, no-c-format
-msgid ""
-"In order to obtain the default <literal>ValidatorFactory</literal> for the "
-"application deployment, the container should provide an implementation of "
-"<literal>ValidationServices</literal>."
+msgid "In order to obtain the default <literal>ValidatorFactory</literal> for the application deployment, the container should provide an implementation of <literal>ValidationServices</literal>."
msgstr ""
#. Tag: title
@@ -548,28 +358,19 @@
#. Tag: para
#: ri-spi.xml:329
#, no-c-format
-msgid ""
-"When a client makes a request to an application which uses Weld, the request "
-"may be addressed at any of the BDAs in the application deployment. To allow "
-"Weld to correctly service the request, it needs to know which BDA the "
-"request is addressed at. Where possible, Weld will provide some context, but "
-"use of these by the integrator is optional."
+msgid "When a client makes a request to an application which uses Weld, the request may be addressed at any of the BDAs in the application deployment. To allow Weld to correctly service the request, it needs to know which BDA the request is addressed at. Where possible, Weld will provide some context, but use of these by the integrator is optional."
msgstr ""
#. Tag: para
#: ri-spi.xml:337
#, no-c-format
-msgid ""
-"Most Servlet contains use a classloader-per-WAR, this may provide a good way "
-"to identify the BDA in use for web requests."
+msgid "Most Servlet contains use a classloader-per-WAR, this may provide a good way to identify the BDA in use for web requests."
msgstr ""
#. Tag: para
#: ri-spi.xml:343
#, no-c-format
-msgid ""
-"When Weld needs to identify the BDA, it will use one of these services, "
-"depending on what is servicing the request:"
+msgid "When Weld needs to identify the BDA, it will use one of these services, depending on what is servicing the request:"
msgstr ""
#. Tag: literal
@@ -581,9 +382,7 @@
#. Tag: para
#: ri-spi.xml:352
#, no-c-format
-msgid ""
-"Identify the WAR in use. The <literal>ServletContext</literal> is provided "
-"for additional context."
+msgid "Identify the WAR in use. The <literal>ServletContext</literal> is provided for additional context."
msgstr ""
#. Tag: title
@@ -595,10 +394,7 @@
#. Tag: para
#: ri-spi.xml:364
#, no-c-format
-msgid ""
-"Weld uses a map like structure to store bean instances - <literal>org.jboss."
-"weld.context.api.BeanStore</literal>. You may find <literal>org.jboss.weld."
-"context.api.helpers.ConcurrentHashMapBeanStore</literal> useful."
+msgid "Weld uses a map like structure to store bean instances - <literal>org.jboss.weld.context.api.BeanStore</literal>. You may find <literal>org.jboss.weld.context.api.helpers.ConcurrentHashMapBeanStore</literal> useful."
msgstr ""
#. Tag: title
@@ -610,11 +406,7 @@
#. Tag: para
#: ri-spi.xml:374
#, no-c-format
-msgid ""
-"Weld expects the Application Server or other container to provide the "
-"storage for each application's context. The <literal>org.jboss.weld.context."
-"api.BeanStore</literal> should be implemented to provide an application "
-"scoped storage."
+msgid "Weld expects the Application Server or other container to provide the storage for each application's context. The <literal>org.jboss.weld.context.api.BeanStore</literal> should be implemented to provide an application scoped storage."
msgstr ""
#. Tag: title
@@ -626,79 +418,49 @@
#. Tag: para
#: ri-spi.xml:384
#, no-c-format
-msgid ""
-"The <literal>org.jboss.weld.bootstrap.api.Bootstrap</literal> interface "
-"defines the initialization for Weld, bean deployment and bean validation. To "
-"boot Weld, you must create an instance of <literal>org.jboss.weld.bootstrap."
-"WeldBeansBootstrap</literal> (which implements <literal>Boostrap</literal>), "
-"tell it about the services in use, and then request the container start."
+msgid "The <literal>org.jboss.weld.bootstrap.api.Bootstrap</literal> interface defines the initialization for Weld, bean deployment and bean validation. To boot Weld, you must create an instance of <literal>org.jboss.weld.bootstrap.WeldBeansBootstrap</literal> (which implements <literal>Boostrap</literal>), tell it about the services in use, and then request the container start."
msgstr ""
#. Tag: para
#: ri-spi.xml:391
#, no-c-format
-msgid ""
-"The bootstrap is split into phases, container initialization, bean "
-"deployment, bean validation and shutdown. Initialization will create a "
-"manager, and add the built-in contexts, and examine the deployment "
-"structure. Bean deployment will deploy any beans (defined using annotations, "
-"programtically, or built in). Bean validation will validate all beans."
+msgid "The bootstrap is split into phases, container initialization, bean deployment, bean validation and shutdown. Initialization will create a manager, and add the built-in contexts, and examine the deployment structure. Bean deployment will deploy any beans (defined using annotations, programtically, or built in). Bean validation will validate all beans."
msgstr ""
#. Tag: para
#: ri-spi.xml:398
#, no-c-format
-msgid ""
-"To initialize the container, you call <literal>Bootstrap.startInitialization"
-"()</literal>. Before calling <literal>startInitialization()</literal>, you "
-"must register any services required by the environment. You can do this by "
-"calling, for example, <literal>bootstrap.getServices().add(JpaServices."
-"class, new MyJpaServices())</literal>. You must also provide the application "
-"context bean store."
+msgid "To initialize the container, you call <literal>Bootstrap.startInitialization()</literal>. Before calling <literal>startInitialization()</literal>, you must register any services required by the environment. You can do this by calling, for example, <literal>bootstrap.getServices().add(JpaServices.class, new MyJpaServices())</literal>. You must also provide the application context bean store."
msgstr ""
#. Tag: para
#: ri-spi.xml:405
#, no-c-format
-msgid ""
-"Having called <literal>startInitialization()</literal>, the "
-"<literal>Manager</literal> for each BDA can be obtained by calling "
-"<literal>Bootstrap.getManager(BeanDeploymentArchive bda)</literal>."
+msgid "Having called <literal>startInitialization()</literal>, the <literal>Manager</literal> for each BDA can be obtained by calling <literal>Bootstrap.getManager(BeanDeploymentArchive bda)</literal>."
msgstr ""
#. Tag: para
#: ri-spi.xml:410
#, fuzzy, no-c-format
-msgid ""
-"To deploy the discovered beans, call <literal>Bootstrap.deployBeans()</"
-"literal>."
-msgstr ""
-"Para iniciar o container é chamado <literal>Bootstrap.boot()</literal>."
+msgid "To deploy the discovered beans, call <literal>Bootstrap.deployBeans()</literal>."
+msgstr "Para iniciar o container é chamado <literal>Bootstrap.boot()</literal>."
#. Tag: para
#: ri-spi.xml:414
#, fuzzy, no-c-format
-msgid ""
-"To validate the deployed beans, call <literal>Bootstrap.validateBeans()</"
-"literal>."
-msgstr ""
-"Para iniciar o container é chamado <literal>Bootstrap.boot()</literal>."
+msgid "To validate the deployed beans, call <literal>Bootstrap.validateBeans()</literal>."
+msgstr "Para iniciar o container é chamado <literal>Bootstrap.boot()</literal>."
#. Tag: para
#: ri-spi.xml:418
#, fuzzy, no-c-format
-msgid ""
-"To place the container into a state where it can service requests, call "
-"<literal>Bootstrap.endInitialization()</literal>"
-msgstr ""
-"Para iniciar o container é chamado <literal>Bootstrap.boot()</literal>."
+msgid "To place the container into a state where it can service requests, call <literal>Bootstrap.endInitialization()</literal>"
+msgstr "Para iniciar o container é chamado <literal>Bootstrap.boot()</literal>."
#. Tag: para
#: ri-spi.xml:423
#, no-c-format
-msgid ""
-"To shutdown the container you call <literal>Bootstrap.shutdown()</literal>. "
-"This allows the container to perform any cleanup operations needed."
+msgid "To shutdown the container you call <literal>Bootstrap.shutdown()</literal>. This allows the container to perform any cleanup operations needed."
msgstr ""
#. Tag: title
@@ -710,12 +472,7 @@
#. Tag: para
#: ri-spi.xml:433
#, no-c-format
-msgid ""
-"Weld needs to load classes and resources from the classpath at various "
-"times. By default, they are loaded from the Thread Context ClassLoader if "
-"available, if not the same classloader that was used to load Weld, however "
-"this may not be correct for some environments. If this is case, you can "
-"implement <literal>org.jboss.weld.spi.ResourceLoader</literal>."
+msgid "Weld needs to load classes and resources from the classpath at various times. By default, they are loaded from the Thread Context ClassLoader if available, if not the same classloader that was used to load Weld, however this may not be correct for some environments. If this is case, you can implement <literal>org.jboss.weld.spi.ResourceLoader</literal>."
msgstr ""
#. Tag: title
@@ -727,9 +484,7 @@
#. Tag: para
#: ri-spi.xml:447
#, no-c-format
-msgid ""
-"There are a number of requirements that Weld places on the container for "
-"correct functioning that fall outside implementation of APIs."
+msgid "There are a number of requirements that Weld places on the container for correct functioning that fall outside implementation of APIs."
msgstr ""
#. Tag: term
@@ -741,10 +496,7 @@
#. Tag: para
#: ri-spi.xml:458
#, no-c-format
-msgid ""
-"If you are integrating Weld into an environment that supports deployment of "
-"multiple applications, you must enable, automatically, or through user "
-"configuation, classloader isolation for each CDI application."
+msgid "If you are integrating Weld into an environment that supports deployment of multiple applications, you must enable, automatically, or through user configuation, classloader isolation for each CDI application."
msgstr ""
#. Tag: term
@@ -756,20 +508,13 @@
#. Tag: para
#: ri-spi.xml:470
#, no-c-format
-msgid ""
-"If you are integrating Weld into a Servlet environment you must register "
-"<literal>org.jboss.weld.servlet.WeldListener</literal> as a Servlet "
-"listener, either automatically, or through user configuration, for each CDI "
-"application which uses Servlet."
+msgid "If you are integrating Weld into a Servlet environment you must register <literal>org.jboss.weld.servlet.WeldListener</literal> as a Servlet listener, either automatically, or through user configuration, for each CDI application which uses Servlet."
msgstr ""
#. Tag: para
#: ri-spi.xml:475
#, no-c-format
-msgid ""
-"You must ensure that that <literal>WeldListener.contextInitialized()</"
-"literal> is called after beans are deployed is complete (<literal>Bootstrap."
-"deployBeans()</literal> has been called)."
+msgid "You must ensure that that <literal>WeldListener.contextInitialized()</literal> is called after beans are deployed is complete (<literal>Bootstrap.deployBeans()</literal> has been called)."
msgstr ""
#. Tag: term
@@ -781,61 +526,38 @@
#. Tag: para
#: ri-spi.xml:487
#, no-c-format
-msgid ""
-"If you are integrating Weld into a JSF environment you must register "
-"<literal>org.jboss.weld.jsf.WeldPhaseListener</literal> as a phase listener."
+msgid "If you are integrating Weld into a JSF environment you must register <literal>org.jboss.weld.jsf.WeldPhaseListener</literal> as a phase listener."
msgstr ""
#. Tag: para
#: ri-spi.xml:492
#, no-c-format
-msgid ""
-"If you are integrating Weld into a JSF environment you must register "
-"<literal>org.jboss.weld.el.WeldELContextListener</literal> as an EL Context "
-"listener."
+msgid "If you are integrating Weld into a JSF environment you must register <literal>org.jboss.weld.el.WeldELContextListener</literal> as an EL Context listener."
msgstr ""
#. Tag: para
#: ri-spi.xml:497
#, no-c-format
-msgid ""
-"If you are integrating Weld into a JSF environment you must obtain the bean "
-"manager for the module and then call <literal>BeanManager."
-"wrapExpressionFactory()</literal>, passing <literal>Application."
-"getExpressionFactory()</literal> as the argument. The wrapped expression "
-"factory must be used in all EL expression evaluations performed by JSF in "
-"this web application."
+msgid "If you are integrating Weld into a JSF environment you must obtain the bean manager for the module and then call <literal>BeanManager.wrapExpressionFactory()</literal>, passing <literal>Application.getExpressionFactory()</literal> as the argument. The wrapped expression factory must be used in all EL expression evaluations performed by JSF in this web application."
msgstr ""
#. Tag: para
#: ri-spi.xml:504
#, no-c-format
-msgid ""
-"If you are integrating Weld into a JSF environment you must obtain the bean "
-"manager for the module and then call <literal>BeanManager.getELResolver()</"
-"literal>, The returned EL resolver should be registered with JSF for this "
-"web application."
+msgid "If you are integrating Weld into a JSF environment you must obtain the bean manager for the module and then call <literal>BeanManager.getELResolver()</literal>, The returned EL resolver should be registered with JSF for this web application."
msgstr ""
#. Tag: para
-#: ri-spi.xml:511 ri-spi.xml:557
+#: ri-spi.xml:511
+#: ri-spi.xml:557
#, no-c-format
-msgid ""
-"There are a number of ways you can obtain the bean manager for the module. "
-"You could call <literal>Bootstrap.getManager()</literal>, passing in the BDA "
-"for this module. Alternatively, you could use the injection into Java EE "
-"component classes, or look up the bean manager in JNDI."
+msgid "There are a number of ways you can obtain the bean manager for the module. You could call <literal>Bootstrap.getManager()</literal>, passing in the BDA for this module. Alternatively, you could use the injection into Java EE component classes, or look up the bean manager in JNDI."
msgstr ""
#. Tag: para
#: ri-spi.xml:518
#, no-c-format
-msgid ""
-"If you are integrating Weld into a JSF environment you must register "
-"<literal>org.jboss.weld.servlet.ConversationPropagationFilter</literal> as a "
-"Servlet listener, either automatically, or through user configuration, for "
-"each CDI application which uses JSF. This filter can be registered for all "
-"Servlet deployment safely."
+msgid "If you are integrating Weld into a JSF environment you must register <literal>org.jboss.weld.servlet.ConversationPropagationFilter</literal> as a Servlet listener, either automatically, or through user configuration, for each CDI application which uses JSF. This filter can be registered for all Servlet deployment safely."
msgstr ""
#. Tag: para
@@ -853,31 +575,19 @@
#. Tag: para
#: ri-spi.xml:538
#, no-c-format
-msgid ""
-"If you are integrating Weld into a JSP environment you must register "
-"<literal>org.jboss.weld.el.WeldELContextListener</literal> as an EL Context "
-"listener."
+msgid "If you are integrating Weld into a JSP environment you must register <literal>org.jboss.weld.el.WeldELContextListener</literal> as an EL Context listener."
msgstr ""
#. Tag: para
#: ri-spi.xml:543
#, no-c-format
-msgid ""
-"If you are integrating Weld into a JSP environment you must obtain the bean "
-"manager for the module and then call <literal>BeanManager."
-"wrapExpressionFactory()</literal>, passing <literal>Application."
-"getExpressionFactory()</literal> as the argument. The wrapped expression "
-"factory must be used in all EL expression evaluations performed by JSP."
+msgid "If you are integrating Weld into a JSP environment you must obtain the bean manager for the module and then call <literal>BeanManager.wrapExpressionFactory()</literal>, passing <literal>Application.getExpressionFactory()</literal> as the argument. The wrapped expression factory must be used in all EL expression evaluations performed by JSP."
msgstr ""
#. Tag: para
#: ri-spi.xml:550
#, no-c-format
-msgid ""
-"If you are integrating Weld into a JSP environment you must obtain the bean "
-"manager for the module and then call <literal>BeanManager.getELResolver()</"
-"literal>, The returned EL resolver should be registered with JSP for this "
-"web application."
+msgid "If you are integrating Weld into a JSP environment you must obtain the bean manager for the module and then call <literal>BeanManager.getELResolver()</literal>, The returned EL resolver should be registered with JSP for this web application."
msgstr ""
#. Tag: term
@@ -889,20 +599,13 @@
#. Tag: para
#: ri-spi.xml:571
#, no-c-format
-msgid ""
-"If you are integrating Weld into an EJB environment you must register "
-"<literal>org.jboss.weld.ejb.SessionBeanInterceptor</literal> as a EJB "
-"interceptor for all EJBs in the application, either automatically, or "
-"through user configuration, for each CDI application which uses enterprise "
-"beans."
+msgid "If you are integrating Weld into an EJB environment you must register <literal>org.jboss.weld.ejb.SessionBeanInterceptor</literal> as a EJB interceptor for all EJBs in the application, either automatically, or through user configuration, for each CDI application which uses enterprise beans."
msgstr ""
#. Tag: para
#: ri-spi.xml:578
#, no-c-format
-msgid ""
-"You must register the <literal>SessionBeanInterceptor</literal> as the inner "
-"most interceptor in the stack for all EJBs."
+msgid "You must register the <literal>SessionBeanInterceptor</literal> as the inner most interceptor in the stack for all EJBs."
msgstr ""
#. Tag: term
@@ -914,30 +617,19 @@
#. Tag: para
#: ri-spi.xml:590
#, no-c-format
-msgid ""
-"Weld can reside on an isolated classloader, or on a shared classloader. If "
-"you choose to use an isolated classloader, the default "
-"<literal>SingletonProvider</literal>, "
-"<literal>IsolatedStaticSingletonProvider</literal>, can be used. If you "
-"choose to use a shared classloader, then you will need to choose another "
-"strategy."
+msgid "Weld can reside on an isolated classloader, or on a shared classloader. If you choose to use an isolated classloader, the default <literal>SingletonProvider</literal>, <literal>IsolatedStaticSingletonProvider</literal>, can be used. If you choose to use a shared classloader, then you will need to choose another strategy."
msgstr ""
#. Tag: para
#: ri-spi.xml:596
#, no-c-format
-msgid ""
-"You can provide your own implementation of <literal>Singleton</literal> and "
-"<literal>SingletonProvider</literal> and register it for use using "
-"<literal>SingletonProvider.initialize(SingletonProvider provider)</literal>."
+msgid "You can provide your own implementation of <literal>Singleton</literal> and <literal>SingletonProvider</literal> and register it for use using <literal>SingletonProvider.initialize(SingletonProvider provider)</literal>."
msgstr ""
#. Tag: para
#: ri-spi.xml:601
#, no-c-format
-msgid ""
-"Weld also provides an implementation of Thread Context Classloader per "
-"application strategy, via the <literal>TCCLSingletonProvider</literal>."
+msgid "Weld also provides an implementation of Thread Context Classloader per application strategy, via the <literal>TCCLSingletonProvider</literal>."
msgstr ""
#. Tag: term
@@ -949,12 +641,7 @@
#. Tag: para
#: ri-spi.xml:612
#, no-c-format
-msgid ""
-"You should bind the bean manager for the bean deployment archive into JNDI "
-"at <literal>java:comp/Manager</literal>. The type should be <literal>javax."
-"enterprise.inject.spi.BeanManager</literal>. To obtain the correct bean "
-"manager for the bean deployment archive, you may call <literal>bootstrap."
-"getBeanManager(beanDeploymentArchive)</literal>"
+msgid "You should bind the bean manager for the bean deployment archive into JNDI at <literal>java:comp/Manager</literal>. The type should be <literal>javax.enterprise.inject.spi.BeanManager</literal>. To obtain the correct bean manager for the bean deployment archive, you may call <literal>bootstrap.getBeanManager(beanDeploymentArchive)</literal>"
msgstr ""
#. Tag: term
@@ -966,33 +653,19 @@
#. Tag: para
#: ri-spi.xml:626
#, no-c-format
-msgid ""
-"The CDI specification requires the container to provide injection into non-"
-"contextual resources for all Java EE component classes. Weld delegates this "
-"responsibility to the container. This can be achieved using the CDI defined "
-"<literal>InjectionTarget</literal> SPI. Furthermore, you must perform this "
-"operation on the correct bean manager for the bean deployment archive "
-"containing the EE component class."
+msgid "The CDI specification requires the container to provide injection into non-contextual resources for all Java EE component classes. Weld delegates this responsibility to the container. This can be achieved using the CDI defined <literal>InjectionTarget</literal> SPI. Furthermore, you must perform this operation on the correct bean manager for the bean deployment archive containing the EE component class."
msgstr ""
#. Tag: para
#: ri-spi.xml:634
#, no-c-format
-msgid ""
-"The CDI specification also requires that a <literal>ProcessInjectionTarget</"
-"literal> event is fired for every Java EE component class. Furthermore, if "
-"an observer calls <literal>ProcessInjectionTarget.setInjectionTarget()</"
-"literal> the container must use <emphasis>the specified</emphasis> injection "
-"target to perform injection."
+msgid "The CDI specification also requires that a <literal>ProcessInjectionTarget</literal> event is fired for every Java EE component class. Furthermore, if an observer calls <literal>ProcessInjectionTarget.setInjectionTarget()</literal> the container must use <emphasis>the specified</emphasis> injection target to perform injection."
msgstr ""
#. Tag: para
#: ri-spi.xml:641
#, no-c-format
-msgid ""
-"To help the integrator, Weld provides <literal>WeldManager."
-"fireProcessInjectionTarget()</literal> which returns the "
-"<literal>InjectionTarget</literal> to use."
+msgid "To help the integrator, Weld provides <literal>WeldManager.fireProcessInjectionTarget()</literal> which returns the <literal>InjectionTarget</literal> to use."
msgstr ""
#. Tag: programlisting
@@ -1022,24 +695,39 @@
"it.dispose();\n"
"cc.release();]]>"
msgstr ""
+"<![CDATA[// Fire ProcessInjectionTarget, returning the InjectionTarget\n"
+"// to use\n"
+"InjectionTarget it = weldBeanManager.fireProcessInjectionTarget(clazz);\n"
+"\n"
+"// Per instance required, create the creational context\n"
+"CreationalContext<?> cc = beanManager.createCreationalContext(null);\n"
+"\n"
+"// Produce the instance, performing any constructor injection required\n"
+"Object instance = it.produce();\n"
+"\n"
+"// Perform injection and call initializers\n"
+"it.inject(instance, cc);\n"
+"\n"
+"// Call the post-construct callback\n"
+"it.postConstruct(instance);\n"
+"\n"
+"// Call the pre-destroy callback\n"
+"it.preDestroy(instance);\n"
+"\n"
+"// Clean up the instance\n"
+"it.dispose();\n"
+"cc.release();]]>"
#. Tag: para
#: ri-spi.xml:647
#, no-c-format
-msgid ""
-"The container may intersperse other operations between these calls. Further, "
-"the integrator may choose to implement any of these calls in another manner, "
-"assuming the contract is fulfilled."
+msgid "The container may intersperse other operations between these calls. Further, the integrator may choose to implement any of these calls in another manner, assuming the contract is fulfilled."
msgstr ""
#. Tag: para
#: ri-spi.xml:651
#, no-c-format
-msgid ""
-"When performing injections on EJBs you must use the Weld-defined SPI, "
-"<literal>WeldManager</literal>. Furthermore, you must perform this operation "
-"on the correct bean manager for the bean deployment archive containing the "
-"EJB."
+msgid "When performing injections on EJBs you must use the Weld-defined SPI, <literal>WeldManager</literal>. Furthermore, you must perform this operation on the correct bean manager for the bean deployment archive containing the EJB."
msgstr ""
#. Tag: programlisting
@@ -1054,12 +742,10 @@
"Bean<?> bean = beanManager.getBean(ejbDescriptor);\n"
"\n"
"// Create the injection target\n"
-"InjectionTarget it = deploymentBeanManager.createInjectionTarget"
-"(ejbDescriptor);\n"
+"InjectionTarget it = deploymentBeanManager.createInjectionTarget(ejbDescriptor);\n"
"\n"
"// Per instance required, create the creational context\n"
-"CreationalContext<?> cc = deploymentBeanManager.createCreationalContext"
-"(bean);\n"
+"CreationalContext<?> cc = deploymentBeanManager.createCreationalContext(bean);\n"
"\n"
"// Perform injection and call initializers\n"
"it.inject(instance, cc);\n"
@@ -1077,6 +763,34 @@
"it.dispose();\n"
"cc.release();]]>"
msgstr ""
+"<![CDATA[// Obtain the EjbDescriptor for the EJB\n"
+"// You may choose to use this utility method to get the descriptor\n"
+"EjbDescriptor<?> ejbDescriptor = beanManager.getEjbDescriptor(ejbName);\n"
+"\n"
+"// Get an the Bean object\n"
+"Bean<?> bean = beanManager.getBean(ejbDescriptor);\n"
+"\n"
+"// Create the injection target\n"
+"InjectionTarget it = deploymentBeanManager.createInjectionTarget(ejbDescriptor);\n"
+"\n"
+"// Per instance required, create the creational context\n"
+"CreationalContext<?> cc = deploymentBeanManager.createCreationalContext(bean);\n"
+"\n"
+"// Perform injection and call initializers\n"
+"it.inject(instance, cc);\n"
+"\n"
+"// You may choose to have CDI call the post construct and pre destroy\n"
+"// lifecycle callbacks\n"
+"\n"
+"// Call the post-construct callback\n"
+"it.postConstruct(instance);\n"
+"\n"
+"// Call the pre-destroy callback\n"
+"it.preDestroy(instance);\n"
+"\n"
+"// Clean up the instance\n"
+"it.dispose();\n"
+"cc.release();]]>"
#~ msgid ""
#~ "Currently Web Beans only runs in JBoss AS 5; integrating the RI into "
@@ -1090,10 +804,8 @@
#~ "Glassfish), em um servlet container (como o Tomcat), ou com uma "
#~ "implementação de EJB3.1 embutida é bastante fácil. Neste apêndice, vamos "
#~ "abordar brevemente os passos necessários."
-
#~ msgid "Web Bean Discovery"
#~ msgstr "Descoberta de Web Bean (Web Bean Discovery)"
-
#~ msgid ""
#~ "<![CDATA[/**\n"
#~ " * Gets list of all classes in classpath archives with META-INF/beans."
@@ -1126,7 +838,6 @@
#~ " * @return An iterable over the beans.xml files \n"
#~ " */\n"
#~ " public Iterable<URL> discoverWebBeansXml();]]>"
-
#~ msgid ""
#~ "<![CDATA[public interface EjbDescriptor<T>\n"
#~ "{\n"
@@ -1263,14 +974,12 @@
#~ " * @return The name\n"
#~ " */\n"
#~ " public String getEjbName();]]>"
-
#~ msgid ""
#~ "<![CDATA[EntityDiscovery delegate = bootstrap.getServices().get"
#~ "(EntityDiscovery.class);]]>"
#~ msgstr ""
#~ "<![CDATA[EntityDiscovery delegate = bootstrap.getServices().get"
#~ "(EntityDiscovery.class);]]>"
-
#~ msgid ""
#~ "<![CDATA[public interface TransactionServices\n"
#~ "{\n"
@@ -1335,16 +1044,12 @@
#~ " */\n"
#~ " public boolean isTransactionActive();\n"
#~ "}]]>"
-
#~ msgid "JMS services"
#~ msgstr "Serviços JMS"
-
#~ msgid "Web Services"
#~ msgstr "Web Services"
-
#~ msgid "JNDI"
#~ msgstr "JNDI"
-
#~ msgid ""
#~ "<![CDATA[\n"
#~ " public interface ResourceLoader {\n"
@@ -1405,17 +1110,14 @@
#~ " \n"
#~ "}\n"
#~ " ]]>"
-
#~ msgid "Servlet injection"
#~ msgstr "Servlet injection"
-
#~ msgid ""
#~ "All interfaces in the SPI support the decorator pattern and provide a "
#~ "<literal>Forwarding</literal> class."
#~ msgstr ""
#~ "Todas as interfaces na SPI suportam o padrão decorator e provêm a classe "
#~ "<literal>Forwarding</literal>."
-
#~ msgid ""
#~ "<![CDATA[public interface EjbServices\n"
#~ "{\n"
@@ -1436,7 +1138,6 @@
#~ " * @return The bean class to descriptor map \n"
#~ " */\n"
#~ " public Iterable<EjbDescriptor<?>> discoverEjbs();]]>"
-
#~ msgid ""
#~ "OPEN ISSUE: Web Beans also requires the container to provide a list of "
#~ "entities in the deployment, so that they aren't discovered as simple "
@@ -1445,7 +1146,6 @@
#~ "Questão aberta: Web Beans também exige que o container forneça uma lista "
#~ "de entidades na implantação, de forma que eles não são descobertos como "
#~ "web beans simples."
-
#~ msgid ""
#~ "<![CDATA[public interface NamingContext extends Serializable {\n"
#~ " \n"
@@ -1490,69 +1190,57 @@
#~ " public void bind(String name, Object value);\n"
#~ " \n"
#~ "}]]>"
-
#~ msgid "Servlet listener and filters"
#~ msgstr "Listener e filtros de servlets"
-
#~ msgid "EJB Discovery"
#~ msgstr "Descoberta de EJB (EJB Discovery)"
-
#~ msgid ""
#~ "org.jboss.webbeans.bootstrap.spi.WebBeanDiscovery= \\ \n"
#~ " org.jboss.webbeans.integration.jbossas.WebBeanDiscoveryImpl"
#~ msgstr ""
#~ "org.jboss.webbeans.bootstrap.spi.WebBeanDiscovery= \\ \n"
#~ " org.jboss.webbeans.integration.jbossas.WebBeanDiscoveryImpl"
-
#~ msgid ""
#~ "<![CDATA[public WebBeanDiscoveryImpl(ServletContext servletContext) {}]]>"
#~ msgstr ""
#~ "<![CDATA[public WebBeanDiscoveryImpl(ServletContext servletContext) {}]]>"
-
#~ msgid ""
#~ "org.jboss.webbeans.bootstrap.spi.EjbDiscovery= \\\n"
#~ " org.jboss.webbeans.integration.jbossas.EjbDiscoveryImpl"
#~ msgstr ""
#~ "org.jboss.webbeans.bootstrap.spi.EjbDiscovery= \\\n"
#~ " org.jboss.webbeans.integration.jbossas.EjbDiscoveryImpl"
-
#~ msgid ""
#~ "<![CDATA[public EjbDiscoveryImpl(ServletContext servletContext) {}]]>"
#~ msgstr ""
#~ "<![CDATA[public EjbDiscoveryImpl(ServletContext servletContext) {}]]>"
-
#~ msgid "and tell the RI to use it:"
#~ msgstr "e informar para a RI usá-lo:"
-
#~ msgid ""
#~ "org.jboss.webbeans.resources.spi.NamingContext=com.acme.MyNamingContext"
#~ msgstr ""
#~ "org.jboss.webbeans.resources.spi.NamingContext=com.acme.MyNamingContext"
-
#~ msgid "<![CDATA[public MyNamingContext(ServletContext servletContext) {}]]>"
#~ msgstr ""
#~ "<![CDATA[public MyNamingContext(ServletContext servletContext) {}]]>"
-
#~ msgid ""
#~ "The servlet context can be used to allow your implementation of "
#~ "<literal>NamingContext</literal> to interact with the container."
#~ msgstr ""
#~ "O contexto servlet pode ser utilizado para permitir a implementação de "
#~ "<literal>NamingContext</literal> para interagir com o container."
-
#~ msgid ""
#~ "org.jboss.webbeans.resources.spi.ResourceLoader=com.acme.ResourceLoader"
#~ msgstr ""
#~ "org.jboss.webbeans.resources.spi.ResourceLoader=com.acme.ResourceLoader"
-
#~ msgid ""
#~ "<![CDATA[public MyResourceLoader(ServletContext servletContext) {}]]>"
#~ msgstr ""
#~ "<![CDATA[public MyResourceLoader(ServletContext servletContext) {}]]>"
-
#~ msgid ""
#~ "The servlet context can be used to allow your implementation of "
#~ "<literal>ResourceLoader</literal> to interact with the container."
#~ msgstr ""
#~ "O contexto servlet pode ser utilizado para permitir a implementação de "
#~ "<literal>ResourceLoader</literal> para interagir com o container."
+
Modified: doc/trunk/reference/pt-BR/scopescontexts.po
===================================================================
--- doc/trunk/reference/pt-BR/scopescontexts.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/scopescontexts.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,7 +6,7 @@
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-04-10 21:22-0300\n"
+"PO-Revision-Date: 2009-12-19 18:06-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -22,24 +22,14 @@
#. Tag: para
#: scopescontexts.xml:7
#, fuzzy, no-c-format
-msgid ""
-"So far, we've seen a few examples of <emphasis>scope type annotations</"
-"emphasis>. The scope of a bean determines the lifecycle of instances of the "
-"bean. The scope also determines which clients refer to which instances of "
-"the bean. According to the CDI specification, a scope determines:"
-msgstr ""
-" Até agora, vimos alguns exemplos de <emphasis>anotações de tipo de escopo</"
-"emphasis>. O escopo de um Web Bean determina o ciclo de vida das instâncias "
-"do Web Bean. O escopo também determina que clientes se referem a quais "
-"instâncias do Web Bean. De acordo com a especificação Web Beans, um escopo "
-"determina:"
+msgid "So far, we've seen a few examples of <emphasis>scope type annotations</emphasis>. The scope of a bean determines the lifecycle of instances of the bean. The scope also determines which clients refer to which instances of the bean. According to the CDI specification, a scope determines:"
+msgstr " Até agora, vimos alguns exemplos de <emphasis>anotações de tipo de escopo</emphasis>. O escopo de um Web Bean determina o ciclo de vida das instâncias do Web Bean. O escopo também determina que clientes se referem a quais instâncias do Web Bean. De acordo com a especificação Web Beans, um escopo determina:"
#. Tag: para
#: scopescontexts.xml:16
#, fuzzy, no-c-format
msgid "When a new instance of any bean with that scope is created"
-msgstr ""
-"Quando uma nova instância de qualquer Web Bean com esse escopo é criada"
+msgstr "Quando uma nova instância de qualquer Web Bean com esse escopo é criada"
#. Tag: para
#: scopescontexts.xml:19
@@ -50,36 +40,19 @@
#. Tag: para
#: scopescontexts.xml:22
#, fuzzy, no-c-format
-msgid ""
-"Which injected references refer to any instance of a bean with that scope"
-msgstr ""
-"Cada referência injetada refere-se a qualquer instância de um Web Bean com "
-"esse escopo"
+msgid "Which injected references refer to any instance of a bean with that scope"
+msgstr "Cada referência injetada refere-se a qualquer instância de um Web Bean com esse escopo"
#. Tag: para
#: scopescontexts.xml:27
#, fuzzy, no-c-format
-msgid ""
-"For example, if we have a session-scoped bean, <literal>CurrentUser</"
-"literal>, all beans that are called in the context of the same "
-"<literal>HttpSession</literal> will see the same instance of "
-"<literal>CurrentUser</literal>. This instance will be automatically created "
-"the first time a <literal>CurrentUser</literal> is needed in that session, "
-"and automatically destroyed when the session ends."
-msgstr ""
-"Por exemplo, se temos um Web Bean de escopo de sessão <literal>CurrentUser</"
-"literal>, todos os Web Beans que são chamados no contexto dele "
-"<literal>HttpSession</literal> verão a mesma instância do "
-"<literal>CurrentUser</literal>. Essa instância será criada automaticamente "
-"na primeira vez que um <literal>CurrentUser</literal> for necessário nessa "
-"sessão, e será automaticamente destruída quando a sessão terminar."
+msgid "For example, if we have a session-scoped bean, <literal>CurrentUser</literal>, all beans that are called in the context of the same <literal>HttpSession</literal> will see the same instance of <literal>CurrentUser</literal>. This instance will be automatically created the first time a <literal>CurrentUser</literal> is needed in that session, and automatically destroyed when the session ends."
+msgstr "Por exemplo, se temos um Web Bean de escopo de sessão <literal>CurrentUser</literal>, todos os Web Beans que são chamados no contexto dele <literal>HttpSession</literal> verão a mesma instância do <literal>CurrentUser</literal>. Essa instância será criada automaticamente na primeira vez que um <literal>CurrentUser</literal> for necessário nessa sessão, e será automaticamente destruída quando a sessão terminar."
#. Tag: para
#: scopescontexts.xml:35
#, no-c-format
-msgid ""
-"There's actually no way to remove a bean from a context until the entire "
-"context is destroyed."
+msgid "There's actually no way to remove a bean from a context until the entire context is destroyed."
msgstr ""
#. Tag: title
@@ -91,53 +64,34 @@
#. Tag: para
#: scopescontexts.xml:43
#, fuzzy, no-c-format
-msgid ""
-"CDI features an <emphasis>extensible context model</emphasis>. It's possible "
-"to define new scopes by creating a new scope type annotation:"
-msgstr ""
-"Web Beans possui um <emphasis>modelo extensível de contexto</emphasis>. É "
-"possível definir novos escopos, criando uma nova anotação de tipo de escopo:"
+msgid "CDI features an <emphasis>extensible context model</emphasis>. It's possible to define new scopes by creating a new scope type annotation:"
+msgstr "Web Beans possui um <emphasis>modelo extensível de contexto</emphasis>. É possível definir novos escopos, criando uma nova anotação de tipo de escopo:"
#. Tag: programlisting
#: scopescontexts.xml:48
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@ScopeType\n"
"@Retention(RUNTIME)\n"
"@Target({TYPE, METHOD})\n"
"public @interface ClusterScoped {}]]>"
msgstr ""
-"<![CDATA[@Retention(RUNTIME)\n"
+"<![CDATA[@ScopeType\n"
+"@Retention(RUNTIME)\n"
"@Target({TYPE, METHOD})\n"
-"@ScopeType\n"
"public @interface ClusterScoped {}]]>"
#. Tag: para
#: scopescontexts.xml:50
#, fuzzy, no-c-format
-msgid ""
-"Of course, that's the easy part of the job. For this scope type to be "
-"useful, we will also need to define a <literal>Context</literal> object that "
-"implements the scope! Implementing a <literal>Context</literal> is usually a "
-"very technical task, intended for framework development only. You can expect "
-"an implementation of the business scope, for instance, in a future version "
-"of Seam."
-msgstr ""
-"Evidentemente, essa é a parte mais fácil do trabalho. Para esse tipo de "
-"escopo ser útil, nós também precisamos definir um objeto <literal>Context</"
-"literal> que implementa o escopo! Implementar um <literal>Context</literal> "
-"é geralmente uma tarefa muito técnica, destinada apenas ao desenvolvimento "
-"do framework."
+msgid "Of course, that's the easy part of the job. For this scope type to be useful, we will also need to define a <literal>Context</literal> object that implements the scope! Implementing a <literal>Context</literal> is usually a very technical task, intended for framework development only. You can expect an implementation of the business scope, for instance, in a future version of Seam."
+msgstr "Evidentemente, essa é a parte mais fácil do trabalho. Para esse tipo de escopo ser útil, nós também precisamos definir um objeto <literal>Context</literal> que implementa o escopo! Implementar um <literal>Context</literal> é geralmente uma tarefa muito técnica, destinada apenas ao desenvolvimento do framework."
#. Tag: para
#: scopescontexts.xml:57
#, fuzzy, no-c-format
-msgid ""
-"We can apply a scope type annotation to a bean implementation class to "
-"specify the scope of the bean:"
-msgstr ""
-"Podemos aplicar uma anotação de tipo de escopo a uma classe de implementação "
-"de um Web Bean para especificar o escopo do Web Bean:"
+msgid "We can apply a scope type annotation to a bean implementation class to specify the scope of the bean:"
+msgstr "Podemos aplicar uma anotação de tipo de escopo a uma classe de implementação de um Web Bean para especificar o escopo do Web Bean:"
#. Tag: programlisting
#: scopescontexts.xml:61
@@ -200,12 +154,8 @@
#. Tag: para
#: scopescontexts.xml:91
#, no-c-format
-msgid ""
-"any servlet request has access to active request, session and application "
-"scopes, and, additionally"
-msgstr ""
-"qualquer requisição servlet tem acesso aos escopos de requisição, sessão e "
-"aplicação ativos, e, adicionalmente"
+msgid "any servlet request has access to active request, session and application scopes, and, additionally"
+msgstr "qualquer requisição servlet tem acesso aos escopos de requisição, sessão e aplicação ativos, e, adicionalmente"
#. Tag: para
#: scopescontexts.xml:96
@@ -216,9 +166,7 @@
#. Tag: para
#: scopescontexts.xml:101
#, no-c-format
-msgid ""
-"A CDI extension can support the conversation scope for other frameworks as "
-"well."
+msgid "A CDI extension can support the conversation scope for other frameworks as well."
msgstr ""
#. Tag: para
@@ -254,26 +202,14 @@
#. Tag: para
#: scopescontexts.xml:121
#, fuzzy, no-c-format
-msgid ""
-"If the application tries to invoke a bean with a scope that does not have an "
-"active context, a <literal>ContextNotActiveException</literal> is thrown by "
-"the container at runtime."
-msgstr ""
-"Se a aplicação tentar invocar um Web Bean com um escopo que não tem um "
-"contexto ativo, uma <literal>ContextNotActiveException</literal> é lançada "
-"pelo gerenciador do Web Bean em tempo de execução."
+msgid "If the application tries to invoke a bean with a scope that does not have an active context, a <literal>ContextNotActiveException</literal> is thrown by the container at runtime."
+msgstr "Se a aplicação tentar invocar um Web Bean com um escopo que não tem um contexto ativo, uma <literal>ContextNotActiveException</literal> é lançada pelo gerenciador do Web Bean em tempo de execução."
#. Tag: para
#: scopescontexts.xml:126
#, no-c-format
-msgid ""
-"Three of the four built-in scopes should be extremely familiar to every Java "
-"EE developer, so let's not waste time discussing them here. One of the "
-"scopes, however, is new."
-msgstr ""
-"Três dos quatro escopos pré-definidos devem ser extremamente familiares a "
-"todos os desenvolvedores Java EE, então não vamos perder tempo discutindo-os "
-"aqui. Um dos escopos, porém, é novo."
+msgid "Three of the four built-in scopes should be extremely familiar to every Java EE developer, so let's not waste time discussing them here. One of the scopes, however, is new."
+msgstr "Três dos quatro escopos pré-definidos devem ser extremamente familiares a todos os desenvolvedores Java EE, então não vamos perder tempo discutindo-os aqui. Um dos escopos, porém, é novo."
#. Tag: title
#: scopescontexts.xml:134
@@ -284,16 +220,8 @@
#. Tag: para
#: scopescontexts.xml:136
#, fuzzy, no-c-format
-msgid ""
-"The conversation scope is a bit like the traditional session scope in that "
-"it holds state associated with a user of the system, and spans multiple "
-"requests to the server. However, unlike the session scope, the conversation "
-"scope:"
-msgstr ""
-"O escopo de conversação da Web Beans é um parecido com o tradicional escopo "
-"de sessão na medida em que mantém estado associado a um usuário do sistema, "
-"e o mantém durante várias requisições para o servidor. No entanto, ao "
-"contrário do escopo de sessão, o escopo de conversação:"
+msgid "The conversation scope is a bit like the traditional session scope in that it holds state associated with a user of the system, and spans multiple requests to the server. However, unlike the session scope, the conversation scope:"
+msgstr "O escopo de conversação da Web Beans é um parecido com o tradicional escopo de sessão na medida em que mantém estado associado a um usuário do sistema, e o mantém durante várias requisições para o servidor. No entanto, ao contrário do escopo de sessão, o escopo de conversação:"
#. Tag: para
#: scopescontexts.xml:144
@@ -304,40 +232,20 @@
#. Tag: para
#: scopescontexts.xml:147
#, no-c-format
-msgid ""
-"holds state associated with a particular web browser tab in a JSF "
-"application (browsers tend to share domain cookies, and hence the session "
-"cookie, between tabs, so this is not the case for the session scope)."
+msgid "holds state associated with a particular web browser tab in a JSF application (browsers tend to share domain cookies, and hence the session cookie, between tabs, so this is not the case for the session scope)."
msgstr ""
#. Tag: para
#: scopescontexts.xml:154
#, fuzzy, no-c-format
-msgid ""
-"A conversation represents a task—a unit of work from the point of view "
-"of the user. The conversation context holds state associated with what the "
-"user is currently working on. If the user is doing multiple things at the "
-"same time, there are multiple conversations."
-msgstr ""
-"Uma conversação representa uma tarefa, uma unidade de trabalho do ponto-de-"
-"vista do usuário. O contexto de conversação mantém o estado associado ao "
-"usuário que estiver utilizando no momento. Se o usuário estiver fazendo "
-"várias coisas ao mesmo tempo, existem várias conversações."
+msgid "A conversation represents a task—a unit of work from the point of view of the user. The conversation context holds state associated with what the user is currently working on. If the user is doing multiple things at the same time, there are multiple conversations."
+msgstr "Uma conversação representa uma tarefa, uma unidade de trabalho do ponto-de-vista do usuário. O contexto de conversação mantém o estado associado ao usuário que estiver utilizando no momento. Se o usuário estiver fazendo várias coisas ao mesmo tempo, existem várias conversações."
#. Tag: para
#: scopescontexts.xml:160
#, fuzzy, no-c-format
-msgid ""
-"The conversation context is active during any JSF request. Most "
-"conversations are destroyed at the end of the request. If a conversation "
-"should hold state across multiple requests, it must be explicitly promoted "
-"to a <emphasis>long-running conversation</emphasis>."
-msgstr ""
-"A conversação está ativa durante qualquer requisição JSF. No entanto, a "
-"maioria das coversações é destruída no final da requisição. Se uma "
-"conversação deve manter estado através de múltiplas requisições, deve "
-"explicitamente ser promovida para uma <emphasis>conversação de longa duração "
-"(long-running conversation)</emphasis>."
+msgid "The conversation context is active during any JSF request. Most conversations are destroyed at the end of the request. If a conversation should hold state across multiple requests, it must be explicitly promoted to a <emphasis>long-running conversation</emphasis>."
+msgstr "A conversação está ativa durante qualquer requisição JSF. No entanto, a maioria das coversações é destruída no final da requisição. Se uma conversação deve manter estado através de múltiplas requisições, deve explicitamente ser promovida para uma <emphasis>conversação de longa duração (long-running conversation)</emphasis>."
#. Tag: title
#: scopescontexts.xml:167
@@ -348,13 +256,8 @@
#. Tag: para
#: scopescontexts.xml:169
#, fuzzy, no-c-format
-msgid ""
-"CDI provides a built-in bean for controlling the lifecycle of conversations "
-"in a JSF application. This bean may be obtained by injection:"
-msgstr ""
-"Web Beans oferece um Web Bean pré-definido para o controle do ciclo de vida "
-"das conversações em uma aplicação JSF. Esse Web Bean pode ser obtido por "
-"injeção:"
+msgid "CDI provides a built-in bean for controlling the lifecycle of conversations in a JSF application. This bean may be obtained by injection:"
+msgstr "Web Beans oferece um Web Bean pré-definido para o controle do ciclo de vida das conversações em uma aplicação JSF. Esse Web Bean pode ser obtido por injeção:"
#. Tag: programlisting
#: scopescontexts.xml:174
@@ -365,31 +268,18 @@
#. Tag: para
#: scopescontexts.xml:176
#, no-c-format
-msgid ""
-"To promote the conversation associated with the current request to a long-"
-"running conversation, call the <literal>begin()</literal> method from "
-"application code. To schedule the current long-running conversation context "
-"for destruction at the end of the current request, call <literal>end()</"
-"literal>."
-msgstr ""
-"Para promover a conversação associada a requisição atual em uma conversação "
-"de longa duração, chame o método <literal>begin()</literal> no código da "
-"aplicação. Para agendar a destruição do atual contexto de conversão de longa "
-"duração no final da requisição atual, chame <literal>end()</literal>."
+msgid "To promote the conversation associated with the current request to a long-running conversation, call the <literal>begin()</literal> method from application code. To schedule the current long-running conversation context for destruction at the end of the current request, call <literal>end()</literal>."
+msgstr "Para promover a conversação associada a requisição atual em uma conversação de longa duração, chame o método <literal>begin()</literal> no código da aplicação. Para agendar a destruição do atual contexto de conversão de longa duração no final da requisição atual, chame <literal>end()</literal>."
#. Tag: para
#: scopescontexts.xml:182
#, fuzzy, no-c-format
-msgid ""
-"In the following example, a conversation-scoped bean controls the "
-"conversation with which it is associated:"
-msgstr ""
-"No exemplo a seguir, um Web Bean em escopo de conversação controla a "
-"conversação ao qual estiver associado:"
+msgid "In the following example, a conversation-scoped bean controls the conversation with which it is associated:"
+msgstr "No exemplo a seguir, um Web Bean em escopo de conversação controla a conversação ao qual estiver associado:"
#. Tag: programlisting
#: scopescontexts.xml:186
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@ConversationScoped @Stateful\n"
"public class OrderBuilder {\n"
@@ -420,48 +310,40 @@
" public void destroy() {}\n"
"}]]>"
msgstr ""
-"@ConversationScoped @Stateful\n"
+"<![CDATA[@ConversationScoped @Stateful\n"
"public class OrderBuilder {\n"
+" private Order order;\n"
+" private @Inject Conversation conversation;\n"
+" private @PersistenceContext(type = EXTENDED) EntityManager em;\n"
+" \n"
+" @Produces public Order getOrder() {\n"
+" return order;\n"
+" }\n"
"\n"
-" private Order order;\n"
-" private @Current Conversation conversation;\n"
-" private @PersistenceContext(type=EXTENDED) EntityManager em;\n"
-" \n"
-" @Produces public Order getOrder() {\n"
-" return order;\n"
-" }\n"
+" public Order createOrder() {\n"
+" order = new Order();\n"
+" conversation.begin();\n"
+" return order;\n"
+" }\n"
+" \n"
+" public void addLineItem(Product product, int quantity) {\n"
+" order.add(new LineItem(product, quantity));\n"
+" }\n"
"\n"
-" public Order createOrder() {\n"
-" order = new Order();\n"
-" conversation.begin();\n"
-" return order;\n"
-" }\n"
-" \n"
-" public void addLineItem(Product product, int quantity) {\n"
-" order.add( new LineItem(product, quantity) );\n"
-" }\n"
-"\n"
-" public void saveOrder(Order order) {\n"
-" em.persist(order);\n"
-" conversation.end();\n"
-" }\n"
-" \n"
-" @Remove\n"
-" public void destroy() {}\n"
-" \n"
-"}"
+" public void saveOrder(Order order) {\n"
+" em.persist(order);\n"
+" conversation.end();\n"
+" }\n"
+" \n"
+" @Remove\n"
+" public void destroy() {}\n"
+"}]]>"
#. Tag: para
#: scopescontexts.xml:188
#, fuzzy, no-c-format
-msgid ""
-"This bean is able to control its own lifecycle through use of the "
-"<literal>Conversation</literal> API. But some other beans have a lifecycle "
-"which depends completely upon another object."
-msgstr ""
-"Esse Web Bean é capaz de controlar seu próprio ciclo de vida através do uso "
-"da API <literal>Conversation</literal>. Mas alguns outros Web Beans têm um "
-"cliclo vida que depende totalmente de um outro objeto."
+msgid "This bean is able to control its own lifecycle through use of the <literal>Conversation</literal> API. But some other beans have a lifecycle which depends completely upon another object."
+msgstr "Esse Web Bean é capaz de controlar seu próprio ciclo de vida através do uso da API <literal>Conversation</literal>. Mas alguns outros Web Beans têm um cliclo vida que depende totalmente de um outro objeto."
#. Tag: title
#: scopescontexts.xml:196
@@ -472,32 +354,14 @@
#. Tag: para
#: scopescontexts.xml:198
#, fuzzy, no-c-format
-msgid ""
-"The conversation context automatically propagates with any JSF faces request "
-"(JSF form submission) or redirect. It does not automatically propagate with "
-"non-faces requests, for example, navigation via a link."
-msgstr ""
-"Contexto de conversação propaga-se automaticamente em qualquer requisição "
-"faces JSF (formulário de submissão JSF). E não se propaga automaticamente "
-"em requisições não-faces, por exemplo, em navegação através de um link."
+msgid "The conversation context automatically propagates with any JSF faces request (JSF form submission) or redirect. It does not automatically propagate with non-faces requests, for example, navigation via a link."
+msgstr "Contexto de conversação propaga-se automaticamente em qualquer requisição faces JSF (formulário de submissão JSF). E não se propaga automaticamente em requisições não-faces, por exemplo, em navegação através de um link."
#. Tag: para
#: scopescontexts.xml:203
#, fuzzy, no-c-format
-msgid ""
-"We can force the conversation to propagate with a non-faces request by "
-"including the unique identifier of the conversation as a request parameter. "
-"The CDI specification reserves the request parameter named <literal>cid</"
-"literal> for this use. The unique identifier of the conversation may be "
-"obtained from the <literal>Conversation</literal> object, which has the EL "
-"bean name <literal>conversation</literal>."
-msgstr ""
-"Nós podemos forçar a propagação da conversação em uma requisição não-faces "
-"incluindo o identificador único da conversação como um parâmetro da "
-"requisição. A especificação Web Beans reserva o parâmetro denominado "
-"<literal>cid</literal> para essa utilização. O identificador único da "
-"conversação pode ser obtido a partir do objeto <literal>Conversation</"
-"literal>, que tem o nome Web Bean <literal>conversation</literal>."
+msgid "We can force the conversation to propagate with a non-faces request by including the unique identifier of the conversation as a request parameter. The CDI specification reserves the request parameter named <literal>cid</literal> for this use. The unique identifier of the conversation may be obtained from the <literal>Conversation</literal> object, which has the EL bean name <literal>conversation</literal>."
+msgstr "Nós podemos forçar a propagação da conversação em uma requisição não-faces incluindo o identificador único da conversação como um parâmetro da requisição. A especificação Web Beans reserva o parâmetro denominado <literal>cid</literal> para essa utilização. O identificador único da conversação pode ser obtido a partir do objeto <literal>Conversation</literal>, que tem o nome Web Bean <literal>conversation</literal>."
#. Tag: para
#: scopescontexts.xml:210
@@ -508,12 +372,8 @@
#. Tag: programlisting
#: scopescontexts.xml:214
#, no-c-format
-msgid ""
-"<![CDATA[<a href=\"/addProduct.jsp?cid=#{conversation.id}\">Add Product</a>]]"
-">"
-msgstr ""
-"<![CDATA[<a href=\"/addProduct.jsp?cid=#{conversation.id}\">Add Product</a>]]"
-">"
+msgid "<![CDATA[<a href=\"/addProduct.jsp?cid=#{conversation.id}\">Add Product</a>]]>"
+msgstr "<![CDATA[<a href=\"/addProduct.jsp?cid=#{conversation.id}\">Add Product</a>]]>"
#. Tag: para
#: scopescontexts.xml:216
@@ -529,22 +389,15 @@
" <f:param name=\"cid\" value=\"#{conversation.id}\"/>\n"
"</h:link>]]>"
msgstr ""
+"<![CDATA[<h:link outcome=\"/addProduct.xhtml value=\"Add Product\">\n"
+" <f:param name=\"cid\" value=\"#{conversation.id}\"/>\n"
+"</h:link>]]>"
#. Tag: para
#: scopescontexts.xml:223
#, fuzzy, no-c-format
-msgid ""
-"The conversation context propagates across redirects, making it very easy to "
-"implement the common POST-then-redirect pattern, without resort to fragile "
-"constructs such as a \"flash\" object. The container automatically adds the "
-"conversation id to the redirect URL as a request parameter."
-msgstr ""
-"O gerenciador do Web Bean também é utilizado para propagar conversações em "
-"qualquer redirecionamento, mesmo se a conversação não estiver marcada como "
-"uma conversação de longa duração. Isso torna muito fácil a implementação do "
-"padrão POST-then-redirect, sem ter de recorrer a construções frágeis, como "
-"um objeto \"flash\". Neste caso, o gerenciador do Web Bean automaticamente "
-"adiciona um parâmetro de requisição a URL redirecionada."
+msgid "The conversation context propagates across redirects, making it very easy to implement the common POST-then-redirect pattern, without resort to fragile constructs such as a \"flash\" object. The container automatically adds the conversation id to the redirect URL as a request parameter."
+msgstr "O gerenciador do Web Bean também é utilizado para propagar conversações em qualquer redirecionamento, mesmo se a conversação não estiver marcada como uma conversação de longa duração. Isso torna muito fácil a implementação do padrão POST-then-redirect, sem ter de recorrer a construções frágeis, como um objeto \"flash\". Neste caso, o gerenciador do Web Bean automaticamente adiciona um parâmetro de requisição a URL redirecionada."
#. Tag: title
#: scopescontexts.xml:233
@@ -555,32 +408,14 @@
#. Tag: para
#: scopescontexts.xml:235
#, fuzzy, no-c-format
-msgid ""
-"The container is permitted to destroy a conversation and all state held in "
-"its context at any time in order to conserve resources. A CDI implementation "
-"will normally do this on the basis of some kind of timeout—though this "
-"is not required by the specification. The timeout is the period of "
-"inactivity before the conversation is destroyed (as opposed to the amount of "
-"time the conversation is active)."
-msgstr ""
-"O gerenciador do Web Bean pode destruir uma conversação e todos os estados "
-"mantidos em seu contexto, a qualquer momento, a fim de preservar recursos. A "
-"implementação do gerenciador do Web Bean irá normalmente fazer isso, com "
-"base em algum tipo de timeout — embora isso não seja exigido pela "
-"especificação Web Beans. O timeout é o período de inatividade antes que a "
-"conversação seja destruída."
+msgid "The container is permitted to destroy a conversation and all state held in its context at any time in order to conserve resources. A CDI implementation will normally do this on the basis of some kind of timeout—though this is not required by the specification. The timeout is the period of inactivity before the conversation is destroyed (as opposed to the amount of time the conversation is active)."
+msgstr "O gerenciador do Web Bean pode destruir uma conversação e todos os estados mantidos em seu contexto, a qualquer momento, a fim de preservar recursos. A implementação do gerenciador do Web Bean irá normalmente fazer isso, com base em algum tipo de timeout — embora isso não seja exigido pela especificação Web Beans. O timeout é o período de inatividade antes que a conversação seja destruída."
#. Tag: para
#: scopescontexts.xml:242
#, fuzzy, no-c-format
-msgid ""
-"The <literal>Conversation</literal> object provides a method to set the "
-"timeout. This is a hint to the container, which is free to ignore the "
-"setting."
-msgstr ""
-"O objeto <literal>Conversation</literal> fornece um método para definir o "
-"tempo limite (timeout). Essa é uma sugestão para o gerente do Web Bean, que "
-"é livre para ignorar essa configuração."
+msgid "The <literal>Conversation</literal> object provides a method to set the timeout. This is a hint to the container, which is free to ignore the setting."
+msgstr "O objeto <literal>Conversation</literal> fornece um método para definir o tempo limite (timeout). Essa é uma sugestão para o gerente do Web Bean, que é livre para ignorar essa configuração."
#. Tag: programlisting
#: scopescontexts.xml:247
@@ -597,23 +432,14 @@
#. Tag: para
#: scopescontexts.xml:256
#, fuzzy, no-c-format
-msgid ""
-"In addition to the four built-in scopes, CDI features the so-called "
-"<emphasis>dependent pseudo-scope</emphasis>. This is the default scope for a "
-"bean which does not explicitly declare a scope type."
-msgstr ""
-"Além dos quatro escopos pré-definidos, Web Beans possui o chamado "
-"<emphasis>dependent pseudo-scope</emphasis>. Esse é o escopo padrão para um "
-"Web Bean que não declare explicitamente um tipo de escopo."
+msgid "In addition to the four built-in scopes, CDI features the so-called <emphasis>dependent pseudo-scope</emphasis>. This is the default scope for a bean which does not explicitly declare a scope type."
+msgstr "Além dos quatro escopos pré-definidos, Web Beans possui o chamado <emphasis>dependent pseudo-scope</emphasis>. Esse é o escopo padrão para um Web Bean que não declare explicitamente um tipo de escopo."
#. Tag: para
#: scopescontexts.xml:261
#, fuzzy, no-c-format
-msgid ""
-"For example, this bean has the scope type <literal>@Dependent</literal>:"
-msgstr ""
-"Por exemplo, esse Web Bean tem o tipo de escopo <literal>@Dependent</"
-"literal>:"
+msgid "For example, this bean has the scope type <literal>@Dependent</literal>:"
+msgstr "Por exemplo, esse Web Bean tem o tipo de escopo <literal>@Dependent</literal>:"
#. Tag: programlisting
#: scopescontexts.xml:265
@@ -624,62 +450,44 @@
#. Tag: para
#: scopescontexts.xml:267
#, no-c-format
-msgid ""
-"An instances of a dependent bean is never shared between different clients "
-"or different injection points. It is strictly a <emphasis>dependent object</"
-"emphasis> of some other object. It is instantiated when the object it "
-"belongs to is created, and destroyed when the object it belongs to is "
-"destroyed."
+msgid "An instances of a dependent bean is never shared between different clients or different injection points. It is strictly a <emphasis>dependent object</emphasis> of some other object. It is instantiated when the object it belongs to is created, and destroyed when the object it belongs to is destroyed."
msgstr ""
#. Tag: para
#: scopescontexts.xml:273
#, fuzzy, no-c-format
-msgid ""
-"CDI makes it easy to obtain a dependent instance of a bean, even if the bean "
-"is already declared as a bean with some other scope type."
-msgstr ""
-"Web Beans torna fácil a obtenção de uma instância dependente de uma classe "
-"Java ou um EJB, mesmo se a classe ou EJB já tiverem sido declarados como um "
-"Web Bean com outro tipo de escopo."
+msgid "CDI makes it easy to obtain a dependent instance of a bean, even if the bean is already declared as a bean with some other scope type."
+msgstr "Web Beans torna fácil a obtenção de uma instância dependente de uma classe Java ou um EJB, mesmo se a classe ou EJB já tiverem sido declarados como um Web Bean com outro tipo de escopo."
#. Tag: title
#: scopescontexts.xml:281
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The <literal>@New</literal> qualifier"
-msgstr "A anotação <literal>@New</literal> "
+msgstr "The <literal>@New</literal> qualifier"
#. Tag: para
#: scopescontexts.xml:283
#, no-c-format
-msgid ""
-"The built-in qualifier <literal>@New</literal> allows us to obtain a "
-"dependent object of a specified class."
+msgid "The built-in qualifier <literal>@New</literal> allows us to obtain a dependent object of a specified class."
msgstr ""
#. Tag: programlisting
#: scopescontexts.xml:287
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[@Inject @New Calculator calculator;]]>"
-msgstr "<![CDATA[@New Calculator calculator;]]>"
+msgstr "<![CDATA[@Inject @New Calculator calculator;]]>"
#. Tag: para
#: scopescontexts.xml:289
#, no-c-format
-msgid ""
-"The class must be a valid managed bean or session bean, but need not be an "
-"enabled bean."
+msgid "The class must be a valid managed bean or session bean, but need not be an enabled bean."
msgstr ""
#. Tag: para
#: scopescontexts.xml:291
#, fuzzy, no-c-format
-msgid ""
-"This works even if <literal>Calculator</literal> is <emphasis>already</"
-"emphasis> declared with a different scope type, for example:"
-msgstr ""
-"Isso é verdade mesmo se <literal>Calculator</literal> <emphasis>já</"
-"emphasis> estiver declarado com um tipo de escopo diferente, por exemplo:"
+msgid "This works even if <literal>Calculator</literal> is <emphasis>already</emphasis> declared with a different scope type, for example:"
+msgstr "Isso é verdade mesmo se <literal>Calculator</literal> <emphasis>já</emphasis> estiver declarado com um tipo de escopo diferente, por exemplo:"
#. Tag: programlisting
#: scopescontexts.xml:296
@@ -694,16 +502,12 @@
#. Tag: para
#: scopescontexts.xml:298
#, no-c-format
-msgid ""
-"So the following injected attributes each get a different instance of "
-"<literal>Calculator</literal>:"
-msgstr ""
-"Portanto, os seguintes atributos injetados obtêm uma instância diferente de "
-"<literal>Calculator</literal>:"
+msgid "So the following injected attributes each get a different instance of <literal>Calculator</literal>:"
+msgstr "Portanto, os seguintes atributos injetados obtêm uma instância diferente de <literal>Calculator</literal>:"
#. Tag: programlisting
#: scopescontexts.xml:302
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public class PaymentCalc {\n"
" @Inject Calculator calculator;\n"
@@ -711,36 +515,21 @@
"}]]>"
msgstr ""
"<![CDATA[public class PaymentCalc {\n"
-"\n"
-" @Current Calculator calculator;\n"
-" @New Calculator newCalculator;\n"
-"\n"
+" @Inject Calculator calculator;\n"
+" @Inject @New Calculator newCalculator;\n"
"}]]>"
#. Tag: para
#: scopescontexts.xml:304
#, no-c-format
-msgid ""
-"The <literal>calculator</literal> field has a conversation-scoped instance "
-"of <literal>Calculator</literal> injected. The <literal>newCalculator</"
-"literal> field has a new instance of <literal>Calculator</literal> injected, "
-"with a lifecycle that is bound to the owning <literal>PaymentCalc</literal>."
-msgstr ""
-"O campo <literal>calculator</literal> tem uma instância de "
-"<literal>Calculator</literal> em escopo de conversação injetada. O campo "
-"<literal>newCalculator</literal> tem uma nova instância do "
-"<literal>Calculator</literal> injetada, com ciclo de vida que é vinculado à "
-"<literal>PaymentCalc</literal>."
+msgid "The <literal>calculator</literal> field has a conversation-scoped instance of <literal>Calculator</literal> injected. The <literal>newCalculator</literal> field has a new instance of <literal>Calculator</literal> injected, with a lifecycle that is bound to the owning <literal>PaymentCalc</literal>."
+msgstr "O campo <literal>calculator</literal> tem uma instância de <literal>Calculator</literal> em escopo de conversação injetada. O campo <literal>newCalculator</literal> tem uma nova instância do <literal>Calculator</literal> injetada, com ciclo de vida que é vinculado à <literal>PaymentCalc</literal>."
#. Tag: para
#: scopescontexts.xml:310
#, no-c-format
-msgid ""
-"This feature is particularly useful with producer methods, as we'll see in "
-"the next chapter."
-msgstr ""
-"Essa funcionalidade é particularmente útil em métodos produtores, como "
-"poderemos verificar no próximo capítulo. "
+msgid "This feature is particularly useful with producer methods, as we'll see in the next chapter."
+msgstr "Essa funcionalidade é particularmente útil em métodos produtores, como poderemos verificar no próximo capítulo. "
#~ msgid ""
#~ "holds state associated with a particular web browser tab in a JSF "
@@ -748,7 +537,6 @@
#~ msgstr ""
#~ "mantém o estado associado a uma determinada aba em um navegador web em "
#~ "uma aplicação JSF."
-
#~ msgid ""
#~ "When an injection point of a Web Bean resolves to a dependent Web Bean, a "
#~ "new instance of the dependent Web Bean is created every time the first "
@@ -763,14 +551,12 @@
#~ "dependentes nunca são compartilhadas entre diferentes Web Beans ou "
#~ "diferentes pontos de injeção. Eles são <emphasis>objetos dependentes</"
#~ "emphasis> de alguma outra instância de Web Bean."
-
#~ msgid ""
#~ "Dependent Web Bean instances are destroyed when the instance they depend "
#~ "upon is destroyed."
#~ msgstr ""
#~ "Instâncias de Web Bean dependentes são destruídas quando a instância de "
#~ "que eles dependem é destruída."
-
#~ msgid ""
#~ "The built-in <literal>@New</literal> binding annotation allows "
#~ "<emphasis>implicit</emphasis> definition of a dependent Web Bean at an "
@@ -779,7 +565,6 @@
#~ "A anotação de binding pré-definida <literal>@New</literal> permite a "
#~ "definição <emphasis>implicita</emphasis> de um Web Bean dependente em um "
#~ "ponto de injeção. Suponha que nós declaramos o seguinte campo injetado:"
-
#~ msgid ""
#~ "Then a Web Bean with scope <literal>@Dependent</literal>, binding type "
#~ "<literal>@New</literal>, API type <literal>Calculator</literal>, "
@@ -790,3 +575,4 @@
#~ "binding <literal>@New</literal>, API do tipo <literal>Calculator</"
#~ "literal>, classe de implementação <literal>Calculator</literal> e tipo de "
#~ "implantação <literal>@Standard</literal> é definido implicitamente."
+
Modified: doc/trunk/reference/pt-BR/specialization.po
===================================================================
--- doc/trunk/reference/pt-BR/specialization.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/specialization.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,7 +6,7 @@
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-07-25 16:31-0300\n"
+"PO-Revision-Date: 2009-12-19 18:08-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -22,64 +22,37 @@
#. Tag: para
#: specialization.xml:7
#, no-c-format
-msgid ""
-"When you first start developing with CDI, you'll likely be dealing only with "
-"a single bean implementation for each bean type. In this case, it's easy to "
-"understand how beans get selected for injection. As the complexity of your "
-"application grows, multiple occurrences of the same bean type start "
-"appearing, either because you have multiple implementations or two beans "
-"share a common (Java) inheritance. That's when you have to begin studying "
-"the specialization, inheritance and alternative rules to work through "
-"unsatisfied or ambiguous dependencies or to avoid certain beans from being "
-"called."
+msgid "When you first start developing with CDI, you'll likely be dealing only with a single bean implementation for each bean type. In this case, it's easy to understand how beans get selected for injection. As the complexity of your application grows, multiple occurrences of the same bean type start appearing, either because you have multiple implementations or two beans share a common (Java) inheritance. That's when you have to begin studying the specialization, inheritance and alternative rules to work through unsatisfied or ambiguous dependencies or to avoid certain beans from being called."
msgstr ""
#. Tag: para
#: specialization.xml:16
#, no-c-format
-msgid ""
-"The CDI specification recognizes two distinct scenarios in which one bean "
-"extends another:"
+msgid "The CDI specification recognizes two distinct scenarios in which one bean extends another:"
msgstr ""
#. Tag: para
#: specialization.xml:23
#, no-c-format
-msgid ""
-"The second bean <emphasis>specializes</emphasis> the first bean in certain "
-"deployment scenarios. In these deployments, the second bean completely "
-"replaces the first, fulfilling the same role in the system."
+msgid "The second bean <emphasis>specializes</emphasis> the first bean in certain deployment scenarios. In these deployments, the second bean completely replaces the first, fulfilling the same role in the system."
msgstr ""
#. Tag: para
#: specialization.xml:29
#, no-c-format
-msgid ""
-"The second bean is simply reusing the Java implementation, and otherwise "
-"bears no relation to the first bean. The first bean may not even have been "
-"designed for use as a contextual object."
+msgid "The second bean is simply reusing the Java implementation, and otherwise bears no relation to the first bean. The first bean may not even have been designed for use as a contextual object."
msgstr ""
#. Tag: para
#: specialization.xml:37
#, no-c-format
-msgid ""
-"The second case is the default assumed by CDI. It's possible to have two "
-"beans in the system with the same part bean type (interface or parent "
-"class). As you've learned, you select between the two implementations using "
-"qualifiers."
+msgid "The second case is the default assumed by CDI. It's possible to have two beans in the system with the same part bean type (interface or parent class). As you've learned, you select between the two implementations using qualifiers."
msgstr ""
#. Tag: para
#: specialization.xml:43
#, no-c-format
-msgid ""
-"The first case is the exception, and also requires more care. In any given "
-"deployment, only one bean can fulfill a given role at a time. That means one "
-"bean needs to be enabled and the other disabled. There are a two modifiers "
-"involved: <literal>@Alternative</literal> and <literal>@Specializes</"
-"literal>. We'll start by looking at alternatives and then show the "
-"guarantees that specialization adds."
+msgid "The first case is the exception, and also requires more care. In any given deployment, only one bean can fulfill a given role at a time. That means one bean needs to be enabled and the other disabled. There are a two modifiers involved: <literal>@Alternative</literal> and <literal>@Specializes</literal>. We'll start by looking at alternatives and then show the guarantees that specialization adds."
msgstr ""
#. Tag: title
@@ -91,46 +64,32 @@
#. Tag: para
#: specialization.xml:53
#, fuzzy, no-c-format
-msgid ""
-"CDI lets you <emphasis>override</emphasis> the implementation of a bean type "
-"at deployment time using an alternative. For example, the following bean "
-"provides a default implementation of the <literal>PaymentProcessor</literal> "
-"interface:"
-msgstr ""
-"Nós já vimos a forma como o modelo de injeção de dependências da Web Beans "
-"permite <emphasis>sobrescrever</emphasis> a implementação da API em tempo "
-"de implantação. Por exemplo, o seguinte Bean Web corporativo fornece uma "
-"implementação da API <literal>PaymentProcessor</literal> em produção:"
+msgid "CDI lets you <emphasis>override</emphasis> the implementation of a bean type at deployment time using an alternative. For example, the following bean provides a default implementation of the <literal>PaymentProcessor</literal> interface:"
+msgstr "Nós já vimos a forma como o modelo de injeção de dependências da Web Beans permite <emphasis>sobrescrever</emphasis> a implementação da API em tempo de implantação. Por exemplo, o seguinte Bean Web corporativo fornece uma implementação da API <literal>PaymentProcessor</literal> em produção:"
#. Tag: programlisting
#: specialization.xml:59
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public class DefaultPaymentProcessor \n"
" implements PaymentProcessor {\n"
" ...\n"
"}]]>"
msgstr ""
-"@CreditCard @Stateless\n"
-"public class CreditCardPaymentProcessor \n"
-" implements PaymentProcessor {\n"
-" ...\n"
-"}"
+"<![CDATA[public class DefaultPaymentProcessor \n"
+" implements PaymentProcessor {\n"
+" ...\n"
+"}]]>"
#. Tag: para
#: specialization.xml:61
#, fuzzy, no-c-format
-msgid ""
-"But in our staging environment, we don't really want to submit payments to "
-"the external system, so we override that implementation of "
-"<literal>PaymentProcessor</literal> with a different bean:"
-msgstr ""
-"Mas, no nosso ambiente simulado, nos sobrepomos a implementação de "
-"<literal>PaymentProcessor</literal> com um Web Bean diferente:"
+msgid "But in our staging environment, we don't really want to submit payments to the external system, so we override that implementation of <literal>PaymentProcessor</literal> with a different bean:"
+msgstr "Mas, no nosso ambiente simulado, nos sobrepomos a implementação de <literal>PaymentProcessor</literal> com um Web Bean diferente:"
#. Tag: programlisting
#: specialization.xml:66
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public @Alternative\n"
"class StagingPaymentProcessor \n"
@@ -138,11 +97,11 @@
" ...\n"
"}]]>"
msgstr ""
-"@CreditCard @Stateless\n"
-"public class CreditCardPaymentProcessor \n"
-" implements PaymentProcessor {\n"
-" ...\n"
-"}"
+"<![CDATA[public @Alternative\n"
+"class StagingPaymentProcessor \n"
+" implements PaymentProcessor {\n"
+" ...\n"
+"}]]>"
#. Tag: para
#: specialization.xml:68
@@ -152,7 +111,7 @@
#. Tag: programlisting
#: specialization.xml:70
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public @Alternative\n"
"class StagingPaymentProcessor \n"
@@ -160,29 +119,22 @@
" ...\n"
"}]]>"
msgstr ""
-"@Stateless @Staging @Specializes\n"
-"public class StagingCreditCardPaymentProcessor \n"
-" extends CreditCardPaymentProcessor {\n"
-" ...\n"
-"}"
+"<![CDATA[public @Alternative\n"
+"class StagingPaymentProcessor \n"
+" extends DefaultPaymentProcessor {\n"
+" ...\n"
+"}]]>"
#. Tag: para
#: specialization.xml:72
#, no-c-format
-msgid ""
-"We've already seen how we can enable this alternative by listing its class "
-"in the <literal>beans.xml</literal> descriptor."
+msgid "We've already seen how we can enable this alternative by listing its class in the <literal>beans.xml</literal> descriptor."
msgstr ""
#. Tag: para
#: specialization.xml:77
#, no-c-format
-msgid ""
-"But suppose we have many alternatives in the staging environment. It would "
-"be much more convenient to be able to enable them all at once. So let's make "
-"<literal>@Staging</literal> an <literal>@Alternative</literal> stereotype "
-"and annotate the staging beans with this stereotype instead. You'll see how "
-"this level of indirection pays off. First, we create the stereotype:"
+msgid "But suppose we have many alternatives in the staging environment. It would be much more convenient to be able to enable them all at once. So let's make <literal>@Staging</literal> an <literal>@Alternative</literal> stereotype and annotate the staging beans with this stereotype instead. You'll see how this level of indirection pays off. First, we create the stereotype:"
msgstr ""
#. Tag: programlisting
@@ -195,18 +147,21 @@
"@Target(TYPE)\n"
"public @interface Staging {}]]>"
msgstr ""
+"<![CDATA[@Alternative\n"
+"@Stereotype\n"
+"@Retention(RUNTIME)\n"
+"@Target(TYPE)\n"
+"public @interface Staging {}]]>"
#. Tag: para
#: specialization.xml:86
#, no-c-format
-msgid ""
-"Then we replace the <literal>@Alternative</literal> annotation on our bean "
-"with <literal>@Staging</literal>:"
+msgid "Then we replace the <literal>@Alternative</literal> annotation on our bean with <literal>@Staging</literal>:"
msgstr ""
#. Tag: programlisting
#: specialization.xml:90
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Staging\n"
"public class StagingPaymentProcessor \n"
@@ -214,18 +169,16 @@
" ...\n"
"}]]>"
msgstr ""
-"@CreditCard @Stateless @Staging\n"
-"public class StagingCreditCardPaymentProcessor \n"
-" implements PaymentProcessor {\n"
-" ...\n"
-"}"
+"<![CDATA[@Staging\n"
+"public class StagingPaymentProcessor \n"
+" implements PaymentProcessor {\n"
+" ...\n"
+"}]]>"
#. Tag: para
#: specialization.xml:92
#, no-c-format
-msgid ""
-"Finally, we activate the <literal>@Staging</literal> stereotype in the "
-"<literal>beans.xml</literal> descriptor:"
+msgid "Finally, we activate the <literal>@Staging</literal> stereotype in the <literal>beans.xml</literal> descriptor:"
msgstr ""
#. Tag: programlisting
@@ -243,13 +196,21 @@
" </alternatives>\n"
"</beans>]]>"
msgstr ""
+"<![CDATA[<beans\n"
+" xmlns=\"http://java.sun.com/xml/ns/javaee\"\n"
+" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+" xsi:schemaLocation=\"\n"
+" http://java.sun.com/xml/ns/javaee\n"
+" http://java.sun.com/xml/ns/javaee/beans_1_0.xsd\">\n"
+" <alternatives>\n"
+" <stereotype>org.mycompany.myapp.Staging</stereotype>\n"
+" </alternatives>\n"
+"</beans>]]>"
#. Tag: para
#: specialization.xml:98
#, no-c-format
-msgid ""
-"Now, no matter how many staging beans we have, they will all be enabled at "
-"once."
+msgid "Now, no matter how many staging beans we have, they will all be enabled at once."
msgstr ""
#. Tag: title
@@ -261,41 +222,25 @@
#. Tag: para
#: specialization.xml:107
#, no-c-format
-msgid ""
-"When we enable an alternative, does that mean the default implementation is "
-"disabled? Well, not exactly. If the default implementation has a qualifier, "
-"for instance <literal>@LargeTransaction</literal>, and the alternative does "
-"not, you could still inject the default implementation."
+msgid "When we enable an alternative, does that mean the default implementation is disabled? Well, not exactly. If the default implementation has a qualifier, for instance <literal>@LargeTransaction</literal>, and the alternative does not, you could still inject the default implementation."
msgstr ""
#. Tag: programlisting
#: specialization.xml:113
#, no-c-format
-msgid ""
-"<![CDATA[@Inject @LargeTransaction PaymentProcessor paymentProcessor;]]>"
-msgstr ""
+msgid "<![CDATA[@Inject @LargeTransaction PaymentProcessor paymentProcessor;]]>"
+msgstr "<![CDATA[@Inject @LargeTransaction PaymentProcessor paymentProcessor;]]>"
#. Tag: para
#: specialization.xml:115
#, no-c-format
-msgid ""
-"So we haven't completely replaced the default implementation in this "
-"deployment of the system. The only way one bean can completely override a "
-"second bean at all injection points is if it implements all the bean types "
-"and declares all the qualifiers of the second bean. However, if the second "
-"bean declares a producer method or observer method, then even this is not "
-"enough to ensure that the second bean is never called! We need something "
-"extra."
+msgid "So we haven't completely replaced the default implementation in this deployment of the system. The only way one bean can completely override a second bean at all injection points is if it implements all the bean types and declares all the qualifiers of the second bean. However, if the second bean declares a producer method or observer method, then even this is not enough to ensure that the second bean is never called! We need something extra."
msgstr ""
#. Tag: para
#: specialization.xml:123
#, no-c-format
-msgid ""
-"CDI provides a special feature, called <emphasis>specialization</emphasis>, "
-"that helps the developer avoid these traps. Specialization is a way of "
-"informing the system of your intent to completely replace and disable an "
-"implementation of a bean."
+msgid "CDI provides a special feature, called <emphasis>specialization</emphasis>, that helps the developer avoid these traps. Specialization is a way of informing the system of your intent to completely replace and disable an implementation of a bean."
msgstr ""
#. Tag: title
@@ -307,9 +252,7 @@
#. Tag: para
#: specialization.xml:134
#, no-c-format
-msgid ""
-"When the goal is to replace one bean implementation with a second, to help "
-"prevent developer error, the first bean may:"
+msgid "When the goal is to replace one bean implementation with a second, to help prevent developer error, the first bean may:"
msgstr ""
#. Tag: para
@@ -321,23 +264,18 @@
#. Tag: para
#: specialization.xml:146
#, no-c-format
-msgid ""
-"directly override the producer method, in the case that the second bean is a "
-"producer method, and then"
+msgid "directly override the producer method, in the case that the second bean is a producer method, and then"
msgstr ""
#. Tag: para
#: specialization.xml:152
#, fuzzy, no-c-format
-msgid ""
-"explicitly declare that it <emphasis>specializes</emphasis> the second bean:"
-msgstr ""
-"Nós dizemos que a alta prioridade na Web Bean <emphasis>specializa</"
-"emphasis> sua superclasse."
+msgid "explicitly declare that it <emphasis>specializes</emphasis> the second bean:"
+msgstr "Nós dizemos que a alta prioridade na Web Bean <emphasis>specializa</emphasis> sua superclasse."
#. Tag: programlisting
#: specialization.xml:154
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Alternative @Specializes\n"
"public class MockCreditCardPaymentProcessor \n"
@@ -345,95 +283,73 @@
" ...\n"
"}]]>"
msgstr ""
-"@Stateless @Staging @Specializes\n"
-"public class StagingCreditCardPaymentProcessor \n"
-" extends CreditCardPaymentProcessor {\n"
-" ...\n"
-"}"
+"<![CDATA[@Alternative @Specializes\n"
+"public class MockCreditCardPaymentProcessor \n"
+" extends CreditCardPaymentProcessor {\n"
+" ...\n"
+"}]]>"
#. Tag: para
#: specialization.xml:156
#, no-c-format
-msgid ""
-"When an enabled bean specializes another bean, the other bean is never "
-"instantiated or called by the container. Even if the other bean defines a "
-"producer or observer method, the method will never be called."
+msgid "When an enabled bean specializes another bean, the other bean is never instantiated or called by the container. Even if the other bean defines a producer or observer method, the method will never be called."
msgstr ""
#. Tag: para
#: specialization.xml:161
#, no-c-format
-msgid ""
-"So why does specialization work, and what does it have to do with "
-"inheritance?"
+msgid "So why does specialization work, and what does it have to do with inheritance?"
msgstr ""
#. Tag: para
#: specialization.xml:165
#, no-c-format
-msgid ""
-"Since we're informing the container that our alternative bean is meant to "
-"stand in as a replacement for the default implementation, the alternative "
-"implementation automatically inherits all qualifiers of the default "
-"implementation. Thus, in our example, "
-"<literal>MockCreditCardPaymentProcessor</literal> inherits the qualifiers "
-"<literal>@Default</literal> and <literal>@CreditCard</literal>."
+msgid "Since we're informing the container that our alternative bean is meant to stand in as a replacement for the default implementation, the alternative implementation automatically inherits all qualifiers of the default implementation. Thus, in our example, <literal>MockCreditCardPaymentProcessor</literal> inherits the qualifiers <literal>@Default</literal> and <literal>@CreditCard</literal>."
msgstr ""
#. Tag: para
#: specialization.xml:172
#, no-c-format
-msgid ""
-"Furthermore, if the default implementation declares a bean EL name using "
-"<literal>@Named</literal>, the name is inherited by the specialized "
-"alternative bean."
+msgid "Furthermore, if the default implementation declares a bean EL name using <literal>@Named</literal>, the name is inherited by the specialized alternative bean."
msgstr ""
#~ msgid "Specialization"
#~ msgstr "Especialização"
-
#~ msgid "@CreditCard PaymentProcessor ccpp"
#~ msgstr "@CreditCard PaymentProcessor ccpp"
-
#~ msgid ""
#~ "Would receive an instance of <literal>StagingCreditCardPaymentProcessor</"
#~ "literal>."
#~ msgstr ""
#~ "Pode receber uma instância de <literal>StagingCreditCardPaymentProcessor</"
#~ "literal>."
-
#~ msgid "Unfortunately, there are several traps we can easily fall into:"
#~ msgstr ""
#~ "Infelizmente, existem várias armadilhas que facilmente podemos cair:"
-
#~ msgid ""
#~ "the higher-priority Web Bean may not implement all the API types of the "
#~ "Web Bean that it attempts to override,"
#~ msgstr ""
#~ "o Web Bean de maior prioridade não pode implementar todos os tipos da API "
#~ "do Web Bean que tenta sobrepor,"
-
#~ msgid ""
#~ "the higher-priority Web Bean may not declare all the binding types of the "
#~ "Web Bean that it attempts to override,"
#~ msgstr ""
#~ "o Web Bean de maior prioridade não pode declarar todos os tipos de "
#~ "binding do Web Bean que tenta sobrepor,"
-
#~ msgid ""
#~ "the higher-priority Web Bean might not have the same name as the Web Bean "
#~ "that it attempts to override, or"
#~ msgstr ""
#~ "o Web Bean de maior prioridade talvez não tenha o mesmo nome que o Web "
#~ "Bean que tenta sobrepor, ou"
-
#~ msgid ""
#~ "the Web Bean that it attempts to override might declare a producer "
#~ "method, disposal method or observer method."
#~ msgstr ""
#~ "o Web Bean que tenta sobrepor poderia declarar um método produtor, método "
#~ "de eliminação ou método observador."
-
#~ msgid ""
#~ "In each of these cases, the Web Bean that we tried to override could "
#~ "still be called at runtime. Therefore, overriding is somewhat prone to "
@@ -442,7 +358,6 @@
#~ "Em cada um destes casos, o Web Bean que tentamos sobrescrever ainda podia "
#~ "ser chamado em tempo de execução. Portanto, a sobrescrita é algo propensa "
#~ "a erros de desenvolvimento."
-
#~ msgid ""
#~ "Specialization is a feature that is specific to simple and enterprise Web "
#~ "Beans. To make use of specialization, the higher-priority Web Bean must:"
@@ -450,10 +365,8 @@
#~ "Especialização é uma característica que é específica de Web Beans simples "
#~ "e enterprise. Para fazer uso da especialização, o Web Bean de maior "
#~ "prioridade deve:"
-
#~ msgid "be a direct subclass of the Web Bean it overrides, and"
#~ msgstr "ser uma subclasse direta do Web Bean que sobrescreve, e"
-
#~ msgid ""
#~ "be a simple Web Bean if the Web Bean it overrides is a simple Web Bean or "
#~ "an enterprise Web Bean if the Web Bean it overrides is an enterprise Web "
@@ -462,16 +375,12 @@
#~ "ser um simples Web se o Web Bean que sobrepuser for um Web Bean simples "
#~ "ou um Web Bean enterprise se o Web Bean que sobrepuser for um Web Bean "
#~ "enterprise, e"
-
#~ msgid "be annotated <literal>@Specializes</literal>."
#~ msgstr "será anotada <literal>@Specializes</literal>."
-
#~ msgid "Advantages of specialization"
#~ msgstr "Vantagens da especialização"
-
#~ msgid "When specialization is used:"
#~ msgstr "Quando a especialização é utilizada:"
-
#~ msgid ""
#~ "producer methods, disposal methods and observer methods declared by the "
#~ "superclass are called upon an instance of the Web Bean annotated "
@@ -480,7 +389,6 @@
#~ "métodos produtores, métodos de eliminação e métodos observadores "
#~ "declarados pela superclasse são chamados sobre uma instância do Web Bean "
#~ "anotado com <literal>@Specializes</literal>."
-
#~ msgid ""
#~ "In our example, the binding type <literal>@CreditCard</literal> of "
#~ "<literal>CreditCardPaymentProcessor</literal> is inherited by "
@@ -489,10 +397,8 @@
#~ "Em nosso exemplo, o tipo de ligação (binding type) <literal>@CreditCard</"
#~ "literal> do <literal>CreditCardPaymentProcessor</literal> é herdado por "
#~ "<literal>StagingCreditCardPaymentProcessor</literal>."
-
#~ msgid "Furthermore, the Web Bean manager will validate that:"
#~ msgstr "Além disso, o gerenciador do Web Bean irá validar que:"
-
#~ msgid ""
#~ "the deployment type of the Web Bean annotated <literal>@Specializes</"
#~ "literal> has a higher precedence than the deployment type of the "
@@ -501,14 +407,13 @@
#~ "o tipo de implantação do Web Bean anotado com <literal>@Specializes</"
#~ "literal> tem uma precedência maior do que o tipo de implantação da "
#~ "superclasse, e"
-
#~ msgid ""
#~ "there is no other enabled Web Bean that also specializes the superclass."
#~ msgstr "não há outro Web Bean ativado que também especializa a superclasse."
-
#~ msgid ""
#~ "If any of these conditions are violated, the Web Bean manager throws an "
#~ "exception at initialization time."
#~ msgstr ""
#~ "Se qualquer uma dessas condições são violadas, o gerenciador do Web Bean "
#~ "lança uma excepção em tempo de inicialização."
+
Modified: doc/trunk/reference/pt-BR/stereotypes.po
===================================================================
--- doc/trunk/reference/pt-BR/stereotypes.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/stereotypes.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,7 +6,7 @@
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-04-10 19:48-0300\n"
+"PO-Revision-Date: 2009-12-19 18:10-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -28,16 +28,8 @@
#. Tag: para
#: stereotypes.xml:11
#, fuzzy, no-c-format
-msgid ""
-"In many systems, use of architectural patterns produces a set of recurring "
-"bean roles. A stereotype allows a framework developer to identify such a "
-"role and declare some common metadata for beans with that role in a central "
-"place."
-msgstr ""
-"Em muitos sistemas, a utilização de padrões arquiteturais produz um conjunto "
-"de papéis Web Bean recorrentes. Um estereótipo permite a um desenvolvedor de "
-"framwework identificar esse papel e declarar alguns metadados comums para "
-"Web Beans com esse papel em um local centralizado."
+msgid "In many systems, use of architectural patterns produces a set of recurring bean roles. A stereotype allows a framework developer to identify such a role and declare some common metadata for beans with that role in a central place."
+msgstr "Em muitos sistemas, a utilização de padrões arquiteturais produz um conjunto de papéis Web Bean recorrentes. Um estereótipo permite a um desenvolvedor de framwework identificar esse papel e declarar alguns metadados comums para Web Beans com esse papel em um local centralizado."
#. Tag: para
#: stereotypes.xml:17
@@ -67,9 +59,7 @@
#: stereotypes.xml:34
#, fuzzy, no-c-format
msgid "all beans with the stereotype have defaulted bean EL names, or that"
-msgstr ""
-"Um estereótipo também pode especificar que todos os Web Beans com o "
-"estereótipo têm um nome Web Bean padrão."
+msgstr "Um estereótipo também pode especificar que todos os Web Beans com o estereótipo têm um nome Web Bean padrão."
#. Tag: para
#: stereotypes.xml:37
@@ -80,25 +70,18 @@
#. Tag: para
#: stereotypes.xml:41
#, no-c-format
-msgid ""
-"A bean may declare zero, one or multiple stereotypes. Stereotype annotations "
-"may be applied to a bean class or producer method or field."
+msgid "A bean may declare zero, one or multiple stereotypes. Stereotype annotations may be applied to a bean class or producer method or field."
msgstr ""
#. Tag: para
#: stereotypes.xml:48
#, fuzzy, no-c-format
-msgid ""
-"A stereotype is an annotation, annotated <literal>@Stereotype</literal>, "
-"that packages several other annotations. For instance, the following "
-"stereotype identifies action classes in some MVC framework:"
-msgstr ""
-"Um estereótipo é um tipo de anotação Java. Esse estereótipo identifica "
-"classes de ação em algum framework MVC:"
+msgid "A stereotype is an annotation, annotated <literal>@Stereotype</literal>, that packages several other annotations. For instance, the following stereotype identifies action classes in some MVC framework:"
+msgstr "Um estereótipo é um tipo de anotação Java. Esse estereótipo identifica classes de ação em algum framework MVC:"
#. Tag: programlisting
#: stereotypes.xml:53
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Stereotype\n"
"@Retention(RUNTIME)\n"
@@ -106,9 +89,10 @@
"...\n"
"public @interface Action {}]]>"
msgstr ""
-"<![CDATA[@Retention(RUNTIME)\n"
+"<![CDATA[@Stereotype\n"
+"@Retention(RUNTIME)\n"
"@Target(TYPE)\n"
-"@Stereotype\n"
+"...\n"
"public @interface Action {}]]>"
#. Tag: para
@@ -130,9 +114,7 @@
#. Tag: para
#: stereotypes.xml:61
#, no-c-format
-msgid ""
-"Of course, we need to apply some other annotations to our stereotype or else "
-"it wouldn't be adding much value."
+msgid "Of course, we need to apply some other annotations to our stereotype or else it wouldn't be adding much value."
msgstr ""
#. Tag: title
@@ -144,16 +126,12 @@
#. Tag: para
#: stereotypes.xml:68
#, fuzzy, no-c-format
-msgid ""
-"A stereotype may specify a default scope for beans annotated with the "
-"stereotype. For example:"
-msgstr ""
-"Um estereótipo também pode especificar que todos os Web Beans com o "
-"estereótipo têm um nome Web Bean padrão."
+msgid "A stereotype may specify a default scope for beans annotated with the stereotype. For example:"
+msgstr "Um estereótipo também pode especificar que todos os Web Beans com o estereótipo têm um nome Web Bean padrão."
#. Tag: programlisting
#: stereotypes.xml:72
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@RequestScoped\n"
"@Stereotype\n"
@@ -161,35 +139,32 @@
"@Target(TYPE)\n"
"public @interface Action {}]]>"
msgstr ""
-"<![CDATA[@Retention(RUNTIME)\n"
-"@Target(TYPE)\n"
+"<![CDATA[@RequestScoped\n"
"@Stereotype\n"
+"@Retention(RUNTIME)\n"
+"@Target(TYPE)\n"
"public @interface Action {}]]>"
#. Tag: para
#: stereotypes.xml:74
#, fuzzy, no-c-format
msgid "A particular action may still override this default if necessary:"
-msgstr ""
-"Evidentemente, uma determinada ação pode ainda,se necessário, substituir "
-"estes padrões:"
+msgstr "Evidentemente, uma determinada ação pode ainda,se necessário, substituir estes padrões:"
#. Tag: programlisting
#: stereotypes.xml:78
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Dependent @Action \n"
"public class DependentScopedLoginAction { ... }]]>"
msgstr ""
-"<![CDATA[@Dependent @Mock @Action \n"
-"public class MockLoginAction { ... }]]>"
+"<![CDATA[@Dependent @Action \n"
+"public class DependentScopedLoginAction { ... }]]>"
#. Tag: para
#: stereotypes.xml:80
#, no-c-format
-msgid ""
-"Naturally, overriding a single default isn't much use. But remember, "
-"stereotypes can define more than just the default scope."
+msgid "Naturally, overriding a single default isn't much use. But remember, stereotypes can define more than just the default scope."
msgstr ""
#. Tag: title
@@ -201,16 +176,12 @@
#. Tag: para
#: stereotypes.xml:90
#, fuzzy, no-c-format
-msgid ""
-"A stereotype may specify a set of interceptor bindings to be inherited by "
-"all beans with that stereotype."
-msgstr ""
-"Um estereótipo pode especificar um conjunto de interceptadores de bindings a "
-"serem herdados por todos os Web Beans com esse estereótipo."
+msgid "A stereotype may specify a set of interceptor bindings to be inherited by all beans with that stereotype."
+msgstr "Um estereótipo pode especificar um conjunto de interceptadores de bindings a serem herdados por todos os Web Beans com esse estereótipo."
#. Tag: programlisting
#: stereotypes.xml:94
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@RequestScoped\n"
"@Transactional(requiresNew=true)\n"
@@ -220,24 +191,19 @@
"@Target(TYPE)\n"
"public @interface Action {}]]>"
msgstr ""
-"<![CDATA[@Retention(RUNTIME)\n"
-"@Target(TYPE)\n"
-"@RequestScoped\n"
+"<![CDATA[@RequestScoped\n"
"@Transactional(requiresNew=true)\n"
"@Secure\n"
-"@WebTier\n"
"@Stereotype\n"
+"@Retention(RUNTIME)\n"
+"@Target(TYPE)\n"
"public @interface Action {}]]>"
#. Tag: para
#: stereotypes.xml:96
#, fuzzy, no-c-format
-msgid ""
-"This helps us get technical concerns, like transactions and security, even "
-"further away from the business code!"
-msgstr ""
-"Isso nos ajuda a manter os detalhes técnicos ainda mais longe do código de "
-"negócios!"
+msgid "This helps us get technical concerns, like transactions and security, even further away from the business code!"
+msgstr "Isso nos ajuda a manter os detalhes técnicos ainda mais longe do código de negócios!"
#. Tag: title
#: stereotypes.xml:103
@@ -248,20 +214,12 @@
#. Tag: para
#: stereotypes.xml:105
#, fuzzy, no-c-format
-msgid ""
-"We can specify that all beans with a certain stereotype have a defaulted EL "
-"name when a name is not explicitly defined for that bean. All we need to do "
-"is add an empty <literal>@Named</literal> annotation:"
-msgstr ""
-"Por último, é possível especificar que todos os Web Beans com um certo "
-"estereótipo tenham um nome Web Bean padronizado pelo gerenciador do Web "
-"Bean. As ações são,muitas vezes, referenciadas em páginas JSP. Por isso, "
-"elas são um caso de utilização perfeito desse recurso. Tudo o que precisamos "
-"fazer é adicionar uma anotação <literal>@Nome</literal> vazia:\t"
+msgid "We can specify that all beans with a certain stereotype have a defaulted EL name when a name is not explicitly defined for that bean. All we need to do is add an empty <literal>@Named</literal> annotation:"
+msgstr "Por último, é possível especificar que todos os Web Beans com um certo estereótipo tenham um nome Web Bean padronizado pelo gerenciador do Web Bean. As ações são,muitas vezes, referenciadas em páginas JSP. Por isso, elas são um caso de utilização perfeito desse recurso. Tudo o que precisamos fazer é adicionar uma anotação <literal>@Nome</literal> vazia:\t"
#. Tag: programlisting
#: stereotypes.xml:110
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@RequestScoped\n"
"@Transactional(requiresNew=true)\n"
@@ -272,25 +230,20 @@
"@Target(TYPE)\n"
"public @interface Action {}]]>"
msgstr ""
-"<![CDATA[@Retention(RUNTIME)\n"
-"@Target(TYPE)\n"
-"@RequestScoped\n"
+"<![CDATA[@RequestScoped\n"
"@Transactional(requiresNew=true)\n"
"@Secure\n"
"@Named\n"
-"@WebTier\n"
"@Stereotype\n"
+"@Retention(RUNTIME)\n"
+"@Target(TYPE)\n"
"public @interface Action {}]]>"
#. Tag: para
#: stereotypes.xml:112
#, fuzzy, no-c-format
-msgid ""
-"Now, the <literal>LoginAction</literal> bean will have the defaulted name "
-"<literal>loginAction</literal>."
-msgstr ""
-"Agora, <literal>LoginAction</literal> terá o nome <literal>loginAction</"
-"literal>."
+msgid "Now, the <literal>LoginAction</literal> bean will have the defaulted name <literal>loginAction</literal>."
+msgstr "Agora, <literal>LoginAction</literal> terá o nome <literal>loginAction</literal>."
#. Tag: title
#: stereotypes.xml:119
@@ -301,15 +254,12 @@
#. Tag: para
#: stereotypes.xml:121
#, no-c-format
-msgid ""
-"A stereotype can indicate that all beans to which it is applied are "
-"<literal>@Alternative</literal>s. An <emphasis>alternative stereotype</"
-"emphasis> lets us classify beans by deployment scenario."
+msgid "A stereotype can indicate that all beans to which it is applied are <literal>@Alternative</literal>s. An <emphasis>alternative stereotype</emphasis> lets us classify beans by deployment scenario."
msgstr ""
#. Tag: programlisting
#: stereotypes.xml:126
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Alternative\n"
"@Stereotype\n"
@@ -317,28 +267,27 @@
"@Target(TYPE)\n"
"public @interface Mock {}]]>"
msgstr ""
-"<![CDATA[@Retention(RUNTIME)\n"
-"@Target(TYPE)\n"
+"<![CDATA[@Alternative\n"
"@Stereotype\n"
-"public @interface Action {}]]>"
+"@Retention(RUNTIME)\n"
+"@Target(TYPE)\n"
+"public @interface Mock {}]]>"
#. Tag: para
#: stereotypes.xml:128
#, no-c-format
-msgid ""
-"We can apply an alternative stereotype to a whole set of beans, and activate "
-"them all with one line of code in <literal>beans.xml</literal>."
+msgid "We can apply an alternative stereotype to a whole set of beans, and activate them all with one line of code in <literal>beans.xml</literal>."
msgstr ""
#. Tag: programlisting
#: stereotypes.xml:133
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Mock\n"
"public class MockLoginAction extends LoginAction { ... }]]>"
msgstr ""
-"<![CDATA[@Action \n"
-"public class LoginAction { ... }]]>"
+"<![CDATA[@Mock\n"
+"public class MockLoginAction extends LoginAction { ... }]]>"
#. Tag: title
#: stereotypes.xml:141
@@ -349,25 +298,18 @@
#. Tag: para
#: stereotypes.xml:143
#, no-c-format
-msgid ""
-"This may blow your mind a bit, but stereotypes may declare other "
-"stereotypes, which we'll call <emphasis>stereotype stacking</emphasis>. You "
-"may want to do this if you have two distinct stereotypes which are "
-"meaningful on their own, but in other situation may be meaningful when "
-"combined."
+msgid "This may blow your mind a bit, but stereotypes may declare other stereotypes, which we'll call <emphasis>stereotype stacking</emphasis>. You may want to do this if you have two distinct stereotypes which are meaningful on their own, but in other situation may be meaningful when combined."
msgstr ""
#. Tag: para
#: stereotypes.xml:150
#, no-c-format
-msgid ""
-"Here's an example that combines the <literal>@Action</literal> and "
-"<literal>@Auditable</literal> stereotypes:"
+msgid "Here's an example that combines the <literal>@Action</literal> and <literal>@Auditable</literal> stereotypes:"
msgstr ""
#. Tag: programlisting
#: stereotypes.xml:155
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Auditable\n"
"@Action\n"
@@ -376,12 +318,12 @@
"@Retention(RUNTIME)\n"
"public @interface AuditableAction {}]]>"
msgstr ""
-"<![CDATA[@Named \n"
-"@RequestScoped \n"
-"@Stereotype \n"
-"@Target({TYPE, METHOD}) \n"
-"@Retention(RUNTIME) \n"
-"public @interface Model {} ]]>"
+"<![CDATA[@Auditable\n"
+"@Action\n"
+"@Stereotype\n"
+"@Target(TYPE)\n"
+"@Retention(RUNTIME)\n"
+"public @interface AuditableAction {}]]>"
#. Tag: title
#: stereotypes.xml:160
@@ -392,24 +334,18 @@
#. Tag: para
#: stereotypes.xml:162
#, fuzzy, no-c-format
-msgid ""
-"We've already met two standard stereotypes defined by the CDI specification: "
-"<literal>@Interceptor</literal> and <literal>@Decorator</literal>."
-msgstr ""
-"Já conhecemos dois estereótipos padrões definidos pela especificação de Web "
-"Beans: <literal>@Interceptor</literal> e <literal>@Decorator</literal>."
+msgid "We've already met two standard stereotypes defined by the CDI specification: <literal>@Interceptor</literal> and <literal>@Decorator</literal>."
+msgstr "Já conhecemos dois estereótipos padrões definidos pela especificação de Web Beans: <literal>@Interceptor</literal> e <literal>@Decorator</literal>."
#. Tag: para
#: stereotypes.xml:167
#, no-c-format
-msgid ""
-"CDI defines one further standard stereotype, <literal>@Model</literal>, "
-"which is expected to be used frequently in web applications:"
+msgid "CDI defines one further standard stereotype, <literal>@Model</literal>, which is expected to be used frequently in web applications:"
msgstr ""
#. Tag: programlisting
#: stereotypes.xml:172
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[@Named \n"
"@RequestScoped \n"
@@ -423,36 +359,26 @@
"@Stereotype \n"
"@Target({TYPE, METHOD}) \n"
"@Retention(RUNTIME) \n"
-"public @interface Model {} ]]>"
+"public @interface Model {}]]>"
#. Tag: para
#: stereotypes.xml:174
#, fuzzy, no-c-format
-msgid ""
-"Instead of using JSF managed beans, just annotate a bean <literal>@Model</"
-"literal>, and use it directly in your JSF view!"
-msgstr ""
-"Esse estereótipo é destinado ao uso com o JSF. Em vez de utilizar JSF "
-"managed beans, basta anotar um Web Bean com <literal>@Model</literal>, e "
-"utilizá-lo diretamente em sua página JSF."
+msgid "Instead of using JSF managed beans, just annotate a bean <literal>@Model</literal>, and use it directly in your JSF view!"
+msgstr "Esse estereótipo é destinado ao uso com o JSF. Em vez de utilizar JSF managed beans, basta anotar um Web Bean com <literal>@Model</literal>, e utilizá-lo diretamente em sua página JSF."
#~ msgid "According to the Web Beans specification:"
#~ msgstr "De acordo com a especificação Web Beans:"
-
#~ msgid "a default deployment type,"
#~ msgstr "um tipo padrão de implantação, "
-
#~ msgid "a restriction upon the Web Bean scope,"
#~ msgstr "uma restrição ao escopo do Web Bean,"
-
#~ msgid ""
#~ "a requirement that the Web Bean implement or extend a certain type, and"
#~ msgstr ""
#~ "uma exigência de que o Web Bean implemente ou estenda um certo tipo, e"
-
#~ msgid "A Web Bean may declare zero, one or multiple stereotypes."
#~ msgstr "Um Web Bean pode declarar zero, um ou vários estereótipos."
-
#~ msgid ""
#~ "A stereotype may specify a default scope and/or default deployment type "
#~ "for Web Beans with that stereotype. For example, if the deployment type "
@@ -465,7 +391,6 @@
#~ "implantação <literal>@WebTier</literal> identifica Web Beans que só "
#~ "deverão ser implantados quando o sistema executar como uma aplicação web. "
#~ "Podemos especificar os seguintes padrões para classes de ação :"
-
#~ msgid ""
#~ "<![CDATA[@Retention(RUNTIME)\n"
#~ "@Target(TYPE)\n"
@@ -480,16 +405,13 @@
#~ "@WebTier\n"
#~ "@Stereotype\n"
#~ "public @interface Action {}]]>"
-
#~ msgid ""
#~ "If we want to force all actions to a particular scope, we can do that too."
#~ msgstr ""
#~ "Se quisermos forçar todas as ações para um escopo particular, podemos "
#~ "fazer isso também."
-
#~ msgid "Restricting scope and type with a stereotype"
#~ msgstr "Restringindo o escopo e o tipo com um estereótipo"
-
#~ msgid ""
#~ "Suppose that we wish to prevent actions from declaring certain scopes. "
#~ "Web Beans lets us explicitly specify the set of allowed scopes for Web "
@@ -498,7 +420,6 @@
#~ "Suponha que queremos impedir as ações de declarar certos escopos. Web "
#~ "Beans permite-nos indicar explicitamente o conjunto de escopos permitidos "
#~ "para Web Beans com um certo estereótipo. Por exemplo:"
-
#~ msgid ""
#~ "<![CDATA[@Retention(RUNTIME)\n"
#~ "@Target(TYPE)\n"
@@ -513,7 +434,6 @@
#~ "@WebTier\n"
#~ "@Stereotype(supportedScopes=RequestScoped.class)\n"
#~ "public @interface Action {}]]>"
-
#~ msgid ""
#~ "If a particular action class attempts to specify a scope other than the "
#~ "Web Beans request scope, an exception will be thrown by the Web Bean "
@@ -522,14 +442,12 @@
#~ "Se uma determinada classe de ação tenta especificar um escopo diferente "
#~ "do escopo de requisição da Web Beans, uma exceção será lançada pelo "
#~ "gerenciador do Web Bean em tempo de inicialização."
-
#~ msgid ""
#~ "We can also force all Web Bean with a certain stereotype to implement an "
#~ "interface or extend a class:"
#~ msgstr ""
#~ "Também podemos forçar todos os Web Beans com um certo estereótipo a "
#~ "implementar uma interface ou estender uma classe:"
-
#~ msgid ""
#~ "<![CDATA[@Retention(RUNTIME)\n"
#~ "@Target(TYPE)\n"
@@ -544,7 +462,6 @@
#~ "@WebTier\n"
#~ "@Stereotype(requiredTypes=AbstractAction.class)\n"
#~ "public @interface Action {}]]>"
-
#~ msgid ""
#~ "If a particular action class does not extend the class "
#~ "<literal>AbstractAction</literal>, an exception will be thrown by the Web "
@@ -553,6 +470,6 @@
#~ "Se uma determinada classe de ação não estender a classe "
#~ "<literal>AbstractAction</literal>, uma exceção será lançada pelo "
#~ "gerenciador do Web Bean em tempo de inicialização."
-
#~ msgid "Web Beans defines one further standard stereotype:"
#~ msgstr "Web Beans define mais um estereótipo padrão:"
+
Modified: doc/trunk/reference/pt-BR/viewlayers.po
===================================================================
--- doc/trunk/reference/pt-BR/viewlayers.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/viewlayers.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -3,11 +3,10 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Web_Beans:_Java_Contexts_and_Dependency_Injection "
-"VERSION\n"
+"Project-Id-Version: Web_Beans:_Java_Contexts_and_Dependency_Injection VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-06-13 11:30-0300\n"
+"PO-Revision-Date: 2009-12-19 18:08-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -29,19 +28,13 @@
#. Tag: para
#: viewlayers.xml:10
#, no-c-format
-msgid ""
-"Weld provides integration between the Apache Wicket web framework and CDI. "
-"This functionality is provided by the <literal>weld-wicket</literal> "
-"extension module, which naturally must be on the classpath of the Wicket "
-"application."
+msgid "Weld provides integration between the Apache Wicket web framework and CDI. This functionality is provided by the <literal>weld-wicket</literal> extension module, which naturally must be on the classpath of the Wicket application."
msgstr ""
#. Tag: para
#: viewlayers.xml:16
#, no-c-format
-msgid ""
-"This section describes some of the utilities provided by the Wicket "
-"extension module to support the CDI integration."
+msgid "This section describes some of the utilities provided by the Wicket extension module to support the CDI integration."
msgstr ""
#. Tag: title
@@ -53,21 +46,13 @@
#. Tag: para
#: viewlayers.xml:24
#, no-c-format
-msgid ""
-"Each wicket application must have a <literal>WebApplication</literal> "
-"subclass; Weld provides, for your utility, a subclass of this which sets up "
-"the Wicket CDI integration. You should subclass <literal>org.jboss.weld."
-"wicket.WeldApplication</literal>."
+msgid "Each wicket application must have a <literal>WebApplication</literal> subclass; Weld provides, for your utility, a subclass of this which sets up the Wicket CDI integration. You should subclass <literal>org.jboss.weld.wicket.WeldApplication</literal>."
msgstr ""
#. Tag: para
#: viewlayers.xml:31
#, no-c-format
-msgid ""
-"If you would prefer not to subclass <literal>WeldApplication</literal>, you "
-"can manually add a (small!) number of overrides and listeners to your own "
-"<literal>WebApplication</literal> subclass. The JavaDocs of "
-"<literal>WeldApplication</literal>detail this."
+msgid "If you would prefer not to subclass <literal>WeldApplication</literal>, you can manually add a (small!) number of overrides and listeners to your own <literal>WebApplication</literal> subclass. The JavaDocs of <literal>WeldApplication</literal>detail this."
msgstr ""
#. Tag: para
@@ -78,7 +63,7 @@
#. Tag: programlisting
#: viewlayers.xml:41
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[public class SampleApplication extends WeldApplication {\n"
" @Override\n"
@@ -87,7 +72,7 @@
" }\n"
"}]]>"
msgstr ""
-"<![CDATA[public class SampleApplication extends WebBeansApplication {\n"
+"<![CDATA[public class SampleApplication extends WeldApplication {\n"
" @Override\n"
" public Class getHomePage() {\n"
" return HomePage.class;\n"
@@ -103,41 +88,31 @@
#. Tag: para
#: viewlayers.xml:46
#, no-c-format
-msgid ""
-"Wicket can also take advantage of the conversation scope from CDI, provided "
-"by the Wicket extension module. This module takes care of:"
+msgid "Wicket can also take advantage of the conversation scope from CDI, provided by the Wicket extension module. This module takes care of:"
msgstr ""
#. Tag: para
#: viewlayers.xml:52
#, no-c-format
-msgid ""
-"Setting up the conversation context at the beginning of a Wicket request, "
-"and tearing it down afterwards"
+msgid "Setting up the conversation context at the beginning of a Wicket request, and tearing it down afterwards"
msgstr ""
#. Tag: para
#: viewlayers.xml:58
#, no-c-format
-msgid ""
-"Storing the id of any long-running conversation in Wicket's metadata when "
-"the page response is complete"
+msgid "Storing the id of any long-running conversation in Wicket's metadata when the page response is complete"
msgstr ""
#. Tag: para
#: viewlayers.xml:64
#, no-c-format
-msgid ""
-"Activating the correct long-running conversation based upon which page is "
-"being accessed"
+msgid "Activating the correct long-running conversation based upon which page is being accessed"
msgstr ""
#. Tag: para
#: viewlayers.xml:69
#, no-c-format
-msgid ""
-"Propagating the conversation context for any long-running conversation to "
-"new pages"
+msgid "Propagating the conversation context for any long-running conversation to new pages"
msgstr ""
#. Tag: title
@@ -149,14 +124,7 @@
#. Tag: para
#: viewlayers.xml:77
#, no-c-format
-msgid ""
-"As in JSF applications, a conversation <emphasis>always</emphasis> exists "
-"for any request to Wicket, but its lifetime is only that of the current "
-"request unless it is marked as <emphasis>long-running</emphasis>. The "
-"boundaries of a long-running conversation are controlled in the same way as "
-"in JSF applications, by injecting the <literal>Conversation</literal> "
-"instance and invoking either the <literal>begin()</literal> or <literal>end()"
-"</literal> methods:"
+msgid "As in JSF applications, a conversation <emphasis>always</emphasis> exists for any request to Wicket, but its lifetime is only that of the current request unless it is marked as <emphasis>long-running</emphasis>. The boundaries of a long-running conversation are controlled in the same way as in JSF applications, by injecting the <literal>Conversation</literal> instance and invoking either the <literal>begin()</literal> or <literal>end()</literal> methods:"
msgstr ""
#. Tag: programlisting
@@ -171,6 +139,13 @@
"// end a conversation\n"
"conversation.end();]]>"
msgstr ""
+"<![CDATA[private @Inject Conversation conversation;\n"
+"...\n"
+"// begin a conversation\n"
+"conversation.begin();\n"
+"...\n"
+"// end a conversation\n"
+"conversation.end();]]>"
#. Tag: title
#: viewlayers.xml:91
@@ -181,20 +156,9 @@
#. Tag: para
#: viewlayers.xml:92
#, no-c-format
-msgid ""
-"When a conversation is marked as long-running, the id of that conversation "
-"will be stored in Wicket's metadata for the current page. If a new page is "
-"created and set as the response target through <literal>setResponsePage()</"
-"literal>, this new page will also participate in this conversation. This "
-"occurs for both directly instantiated pages (<literal>setResponsePage(new "
-"OtherPage())</literal>), as well as for bookmarkable pages created with "
-"<literal>setResponsePage(OtherPage.class)</literal> where <literal>OtherPage."
-"class</literal> is mounted as bookmarkable from your "
-"<literal>WebApplication</literal> subclass (or through annotations). In the "
-"latter case, because the new page instance is not created until after a "
-"redirect, the conversation id will be propagated through a request "
-"parameter, and then stored in page metadata after the redirect."
+msgid "When a conversation is marked as long-running, the id of that conversation will be stored in Wicket's metadata for the current page. If a new page is created and set as the response target through <literal>setResponsePage()</literal>, this new page will also participate in this conversation. This occurs for both directly instantiated pages (<literal>setResponsePage(new OtherPage())</literal>), as well as for bookmarkable pages created with <literal>setResponsePage(OtherPage.class)</literal> where <literal>OtherPage.class</literal> is mounted as bookmarkable from your <literal>WebApplication</literal> subclass (or through annotations). In the latter case, because the new page instance is not created until after a redirect, the conversation id will be propagated through a request parameter, and then stored in page metadata after the redirect."
msgstr ""
#~ msgid "Using Web Beans with Wicket"
#~ msgstr "Utilizando a Web Beans com o Wicket"
+
Modified: doc/trunk/reference/pt-BR/weldexamples.po
===================================================================
--- doc/trunk/reference/pt-BR/weldexamples.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/weldexamples.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,8 +6,8 @@
"Project-Id-Version: Weld_-_JSR-299_Reference_Implementation VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-11-11 15:00+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2009-12-19 18:04-0300\n"
+"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -22,10 +22,7 @@
#. Tag: para
#: weldexamples.xml:7
#, no-c-format
-msgid ""
-"It's time to pull the covers back and dive into the internals of Weld "
-"example applications. Let's start with the simpler of the two examples, "
-"<literal>weld-numberguess</literal>."
+msgid "It's time to pull the covers back and dive into the internals of Weld example applications. Let's start with the simpler of the two examples, <literal>weld-numberguess</literal>."
msgstr ""
#. Tag: title
@@ -37,31 +34,19 @@
#. Tag: para
#: weldexamples.xml:15
#, no-c-format
-msgid ""
-"In the numberguess application you get 10 attempts to guess a number between "
-"1 and 100. After each attempt, you're told whether your guess was too high "
-"or too low."
+msgid "In the numberguess application you get 10 attempts to guess a number between 1 and 100. After each attempt, you're told whether your guess was too high or too low."
msgstr ""
#. Tag: para
#: weldexamples.xml:20
#, no-c-format
-msgid ""
-"The numberguess example is comprised of a number of beans, configuration "
-"files and Facelets (JSF) views, packaged as a WAR module. Let's start by "
-"examining the configuration files."
+msgid "The numberguess example is comprised of a number of beans, configuration files and Facelets (JSF) views, packaged as a WAR module. Let's start by examining the configuration files."
msgstr ""
#. Tag: para
#: weldexamples.xml:25
#, no-c-format
-msgid ""
-"All the configuration files for this example are located in <literal>WEB-INF/"
-"</literal>, which can be found in the <literal>src/main/webapp</literal> "
-"directory of the example. First, we have the JSF 2.0 version of "
-"<literal>faces-config.xml</literal>. A standardized version of Facelets is "
-"the default view handler in JSF 2.0, so there's really nothing that we have "
-"to configure. Thus, the configuration consists of only the root element."
+msgid "All the configuration files for this example are located in <literal>WEB-INF/</literal>, which can be found in the <literal>src/main/webapp</literal> directory of the example. First, we have the JSF 2.0 version of <literal>faces-config.xml</literal>. A standardized version of Facelets is the default view handler in JSF 2.0, so there's really nothing that we have to configure. Thus, the configuration consists of only the root element."
msgstr ""
#. Tag: programlisting
@@ -76,14 +61,18 @@
" http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd\">\n"
"</faces-config>]]>"
msgstr ""
+"<![CDATA[<faces-config version=\"2.0\"\n"
+" xmlns=\"http://java.sun.com/xml/ns/javaee\"\n"
+" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+" xsi:schemaLocation=\"\n"
+" http://java.sun.com/xml/ns/javaee\n"
+" http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd\">\n"
+"</faces-config>]]>"
#. Tag: para
#: weldexamples.xml:35
#, no-c-format
-msgid ""
-"There's also an empty <literal>beans.xml</literal> file, which tells the "
-"container to look for beans in this application and to activate the CDI "
-"services."
+msgid "There's also an empty <literal>beans.xml</literal> file, which tells the container to look for beans in this application and to activate the CDI services."
msgstr ""
#. Tag: para
@@ -96,10 +85,7 @@
#: weldexamples.xml:42
#, no-c-format
msgid ""
-"<programlistingco> <areaspec> <area id=\"faces.servlet\" coords=\"10\"/> "
-"<area id=\"faces.servlet.mapping\" coords=\"16\"/> <area id=\"faces.default."
-"suffix\" coords=\"21\"/> <area id=\"session.timeout\" coords=\"26\"/> </"
-"areaspec> <programlisting role=\"XML\"><![CDATA[<web-app version=\"2.5\"\n"
+"<programlistingco> <areaspec> <area id=\"faces.servlet\" coords=\"10\"/> <area id=\"faces.servlet.mapping\" coords=\"16\"/> <area id=\"faces.default.suffix\" coords=\"21\"/> <area id=\"session.timeout\" coords=\"26\"/> </areaspec> <programlisting role=\"XML\"><![CDATA[<web-app version=\"2.5\"\n"
" xmlns=\"http://java.sun.com/xml/ns/javaee\"\n"
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
" xsi:schemaLocation=\"\n"
@@ -129,24 +115,7 @@
" <session-timeout>10</session-timeout>\n"
" </session-config>\n"
"\n"
-"</web-app>]]></programlisting> <calloutlist> <callout arearefs=\"faces."
-"servlet\"> <para> Enable and initialize the JSF servlet </para> </callout> "
-"<callout arearefs=\"faces.servlet.mapping\"> <para> Configure requests for "
-"URLs ending in <literal>.jsf</literal> to be handled by JSF </para> </"
-"callout> <callout arearefs=\"faces.default.suffix\"> <para> Tell JSF that we "
-"will be giving our JSF views (Facelets templates) an extension of <literal>."
-"xhtml</literal> </para> </callout> <callout arearefs=\"session.timeout\"> "
-"<para> Configure a session timeout of 10 minutes </para> </callout> </"
-"calloutlist> </programlistingco> <note> <para> This demo uses JSF 2 as the "
-"view framework, but you can use Weld with any servlet-based web framework, "
-"such as JSF 1.2 or Wicket. </para> </note> <para> Let's take a look at the "
-"main JSF view, <literal>src/main/webapp/home.xhtml</literal>. </para> "
-"<programlistingco> <areaspec> <area id=\"template\" coords=\"8\"/> <area id="
-"\"statusMessages\" coords=\"12\"/> <area id=\"instructions\" coords=\"20\"/> "
-"<area id=\"guess\" coords=\"27\"/> <area id=\"validator\" coords=\"29\"/> "
-"<area id=\"submit\" coords=\"30\"/> </areaspec> <programlisting role=\"HTML"
-"\"><![CDATA[<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN"
-"\"\n"
+"</web-app>]]></programlisting> <calloutlist> <callout arearefs=\"faces.servlet\"> <para> Enable and initialize the JSF servlet </para> </callout> <callout arearefs=\"faces.servlet.mapping\"> <para> Configure requests for URLs ending in <literal>.jsf</literal> to be handled by JSF </para> </callout> <callout arearefs=\"faces.default.suffix\"> <para> Tell JSF that we will be giving our JSF views (Facelets templates) an extension of <literal>.xhtml</literal> </para> </callout> <callout arearefs=\"session.timeout\"> <para> Configure a session timeout of 10 minutes </para> </callout> </calloutlist> </programlistingco> <note> <para> This demo uses JSF 2 as the view framework, but you can use Weld with any servlet-based web framework, such as JSF 1.2 or Wicket. </para> </note> <para> Let's take a look at the main JSF view, <literal>src/main/webapp/home.xhtml</literal>. </para> <programlistingco> <areaspec> <area id=\"template\" coords=\"8\"/> <area id=\"statusMessages\" coords=\"!
12\"/> <area id=\"instructions\" coords=\"20\"/> <area id=\"guess\" coords=\"27\"/> <area id=\"validator\" coords=\"29\"/> <area id=\"submit\" coords=\"30\"/> </areaspec> <programlisting role=\"HTML\"><![CDATA[<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n"
" \"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"
@@ -160,62 +129,37 @@
" <div style=\"color: red\">\n"
" <h:messages id=\"messages\" globalOnly=\"false\"/>\n"
" <h:outputText id=\"Higher\" value=\"Higher!\"\n"
-" rendered=\"#{game.number gt game.guess and game.guess ne 0}"
-"\"/>\n"
+" rendered=\"#{game.number gt game.guess and game.guess ne 0}\"/>\n"
" <h:outputText id=\"Lower\" value=\"Lower!\"\n"
-" rendered=\"#{game.number lt game.guess and game.guess ne 0}"
-"\"/>\n"
+" rendered=\"#{game.number lt game.guess and game.guess ne 0}\"/>\n"
" </div>\n"
" \n"
" <div>\n"
-" I'm thinking of a number between #{game.smallest} and #{game."
-"biggest}.\n"
+" I'm thinking of a number between #{game.smallest} and #{game.biggest}.\n"
" You have #{game.remainingGuesses} guesses remaining.\n"
" </div>\n"
" \n"
" <div>\n"
" Your guess: \n"
" <h:inputText id=\"inputGuess\" value=\"#{game.guess}\"\n"
-" size=\"3\" required=\"true\" disabled=\"#{game.number eq "
-"game.guess}\"\n"
+" size=\"3\" required=\"true\" disabled=\"#{game.number eq game.guess}\"\n"
" validator=\"#{game.validateNumberRange}\"/>\n"
" <h:commandButton id=\"guessButton\" value=\"Guess\" \n"
-" action=\"#{game.check}\" disabled=\"#{game.number eq game."
-"guess}\"/>\n"
+" action=\"#{game.check}\" disabled=\"#{game.number eq game.guess}\"/>\n"
" </div>\n"
" <div>\n"
-" <h:commandButton id=\"restartButton\" value=\"Reset\" action="
-"\"#{game.reset}\" immediate=\"true\"/>\n"
+" <h:commandButton id=\"restartButton\" value=\"Reset\" action=\"#{game.reset}\" immediate=\"true\"/>\n"
" </div>\n"
" </h:form>\n"
" </ui:define>\n"
" </ui:composition>\n"
-"</html>]]></programlisting> <calloutlist> <callout arearefs=\"template\"> "
-"<para> Facelets is the built-in templating language for JSF. Here we are "
-"wrapping our page in a template which defines the layout. </para> </callout> "
-"<callout arearefs=\"statusMessages\"> <para> There are a number of messages "
-"which can be sent to the user, \"Higher!\", \"Lower!\" and \"Correct!\" </"
-"para> </callout> <callout arearefs=\"instructions\"> <para> As the user "
-"guesses, the range of numbers they can guess gets smaller - this sentence "
-"changes to make sure they know the number range of a valid guess. </para> </"
-"callout> <callout arearefs=\"guess\"> <para> This input field is bound to a "
-"bean property using a value expression. </para> </callout> <callout arearefs="
-"\"validator\"> <para> A validator binding is used to make sure the user "
-"doesn't accidentally input a number outside of the range in which they can "
-"guess - if the validator wasn't here, the user might use up a guess on an "
-"out of bounds number. </para> </callout> <callout arearefs=\"submit\"> "
-"<para> And, of course, there must be a way for the user to send their guess "
-"to the server. Here we bind to an action method on the bean. </para> </"
-"callout> </calloutlist> </programlistingco>"
+"</html>]]></programlisting> <calloutlist> <callout arearefs=\"template\"> <para> Facelets is the built-in templating language for JSF. Here we are wrapping our page in a template which defines the layout. </para> </callout> <callout arearefs=\"statusMessages\"> <para> There are a number of messages which can be sent to the user, \"Higher!\", \"Lower!\" and \"Correct!\" </para> </callout> <callout arearefs=\"instructions\"> <para> As the user guesses, the range of numbers they can guess gets smaller - this sentence changes to make sure they know the number range of a valid guess. </para> </callout> <callout arearefs=\"guess\"> <para> This input field is bound to a bean property using a value expression. </para> </callout> <callout arearefs=\"validator\"> <para> A validator binding is used to make sure the user doesn't accidentally input a number outside of the range in which they can guess - if the validator wasn't here, the user might use up a guess on an out of bounds num!
ber. </para> </callout> <callout arearefs=\"submit\"> <para> And, of course, there must be a way for the user to send their guess to the server. Here we bind to an action method on the bean. </para> </callout> </calloutlist> </programlistingco>"
msgstr ""
#. Tag: para
#: weldexamples.xml:142
#, no-c-format
-msgid ""
-"The example exists of 4 classes, the first two of which are qualifiers. "
-"First, there is the <literal>@Random</literal> qualifier, used for injecting "
-"a random number:"
+msgid "The example exists of 4 classes, the first two of which are qualifiers. First, there is the <literal>@Random</literal> qualifier, used for injecting a random number:"
msgstr ""
#. Tag: programlisting
@@ -227,13 +171,15 @@
"@Retention(RUNTIME)\n"
"public @interface Random {}]]>"
msgstr ""
+"<![CDATA[@Qualifier\n"
+"@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
+"@Retention(RUNTIME)\n"
+"public @interface Random {}]]>"
#. Tag: para
#: weldexamples.xml:149
#, no-c-format
-msgid ""
-"There is also the <literal>@MaxNumber</literal> qualifier, used for "
-"injecting the maximum number that can be injected:"
+msgid "There is also the <literal>@MaxNumber</literal> qualifier, used for injecting the maximum number that can be injected:"
msgstr ""
#. Tag: programlisting
@@ -246,14 +192,16 @@
"public @interface MaxNumber {}\n"
"]]>"
msgstr ""
+"<![CDATA[@Qualifier\n"
+"@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
+"@Retention(RUNTIME)\n"
+"public @interface MaxNumber {}\n"
+"]]>"
#. Tag: para
#: weldexamples.xml:156
#, no-c-format
-msgid ""
-"The application-scoped <literal>Generator</literal> class is responsible for "
-"creating the random number, via a producer method. It also exposes the "
-"maximum possible number via a producer method:"
+msgid "The application-scoped <literal>Generator</literal> class is responsible for creating the random number, via a producer method. It also exposes the maximum possible number via a producer method:"
msgstr ""
#. Tag: programlisting
@@ -263,8 +211,7 @@
"<![CDATA[@ApplicationScoped\n"
"public class Generator implements Serializable {\n"
"\n"
-" private java.util.Random random = new java.util.Random(System."
-"currentTimeMillis());\n"
+" private java.util.Random random = new java.util.Random(System.currentTimeMillis());\n"
" \n"
" private int maxNumber = 100;\n"
" \n"
@@ -282,43 +229,49 @@
"\n"
"}]]>"
msgstr ""
+"<![CDATA[@ApplicationScoped\n"
+"public class Generator implements Serializable {\n"
+"\n"
+" private java.util.Random random = new java.util.Random(System.currentTimeMillis());\n"
+" \n"
+" private int maxNumber = 100;\n"
+" \n"
+" java.util.Random getRandom() {\n"
+" return random;\n"
+" }\n"
+" \n"
+" @Produces @Random int next() { \n"
+" return getRandom().nextInt(maxNumber); \n"
+" }\n"
+" \n"
+" @Produces @MaxNumber int getMaxNumber() {\n"
+" return maxNumber;\n"
+" }\n"
+"\n"
+"}]]>"
#. Tag: para
#: weldexamples.xml:163
#, no-c-format
-msgid ""
-"The <literal>Generator</literal> is application scoped, so we don't get a "
-"different random each time."
+msgid "The <literal>Generator</literal> is application scoped, so we don't get a different random each time."
msgstr ""
#. Tag: para
#: weldexamples.xml:168
#, no-c-format
-msgid ""
-"The package declaration and imports have been excluded from these listings. "
-"The complete listing is available in the example source code."
+msgid "The package declaration and imports have been excluded from these listings. The complete listing is available in the example source code."
msgstr ""
#. Tag: para
#: weldexamples.xml:174
#, no-c-format
-msgid ""
-"The final bean in the application is the session-scoped <literal>Game</"
-"literal> class. This is the primary entry point of the application. It's "
-"responsible for setting up or resetting the game, capturing and validating "
-"the user's guess and providing feedback to the user with a "
-"<literal>FacesMessage</literal>. We've used the post-construct lifecycle "
-"method to initialize the game by retrieving a random number from the "
-"<literal>@Random Instance<Integer></literal> bean."
+msgid "The final bean in the application is the session-scoped <literal>Game</literal> class. This is the primary entry point of the application. It's responsible for setting up or resetting the game, capturing and validating the user's guess and providing feedback to the user with a <literal>FacesMessage</literal>. We've used the post-construct lifecycle method to initialize the game by retrieving a random number from the <literal>@Random Instance<Integer></literal> bean."
msgstr ""
#. Tag: para
#: weldexamples.xml:182
#, no-c-format
-msgid ""
-"You'll notice that we've also added the <literal>@Named</literal> annotation "
-"to this class. This annotation is only required when you want to make the "
-"bean accessible to a JSF view via EL (i.e., #{game})."
+msgid "You'll notice that we've also added the <literal>@Named</literal> annotation to this class. This annotation is only required when you want to make the bean accessible to a JSF view via EL (i.e., #{game})."
msgstr ""
#. Tag: programlisting
@@ -348,8 +301,7 @@
" smallest = guess + 1;\n"
" }\n"
" else if (guess == number) {\n"
-" FacesContext.getCurrentInstance().addMessage(null, new FacesMessage"
-"(\"Correct!\"));\n"
+" FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(\"Correct!\"));\n"
" }\n"
" remainingGuesses--;\n"
" }\n"
@@ -363,8 +315,7 @@
" this.number = randomNumber.get();\n"
" }\n"
" \n"
-" public void validateNumberRange(FacesContext context, UIComponent "
-"toValidate, Object value) {\n"
+" public void validateNumberRange(FacesContext context, UIComponent toValidate, Object value) {\n"
" if (remainingGuesses <= 0) {\n"
" FacesMessage message = new FacesMessage(\"No guesses left!\");\n"
" context.addMessage(toValidate.getClientId(context), message);\n"
@@ -407,6 +358,85 @@
"\n"
"}]]>"
msgstr ""
+"<![CDATA[@Named\n"
+"@SessionScoped\n"
+"public class Game implements Serializable {\n"
+"\n"
+" private int number;\n"
+" private int guess;\n"
+" private int smallest;\n"
+" private int biggest;\n"
+" private int remainingGuesses;\n"
+"\n"
+" @Inject @MaxNumber private int maxNumber;\n"
+" @Inject @Random Instance<Integer> randomNumber;\n"
+" \n"
+" public Game() {}\n"
+" \n"
+" public void check() {\n"
+" if (guess > number) {\n"
+" biggest = guess - 1;\n"
+" }\n"
+" else if (guess < number) {\n"
+" smallest = guess + 1;\n"
+" }\n"
+" else if (guess == number) {\n"
+" FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(\"Correct!\"));\n"
+" }\n"
+" remainingGuesses--;\n"
+" }\n"
+" \n"
+" @PostConstruct\n"
+" public void reset() {\n"
+" this.smallest = 0;\n"
+" this.guess = 0;\n"
+" this.remainingGuesses = 10;\n"
+" this.biggest = maxNumber;\n"
+" this.number = randomNumber.get();\n"
+" }\n"
+" \n"
+" public void validateNumberRange(FacesContext context, UIComponent toValidate, Object value) {\n"
+" if (remainingGuesses <= 0) {\n"
+" FacesMessage message = new FacesMessage(\"No guesses left!\");\n"
+" context.addMessage(toValidate.getClientId(context), message);\n"
+" ((UIInput) toValidate).setValid(false);\n"
+" return;\n"
+" }\n"
+" int input = (Integer) value;\n"
+"\n"
+" if (input < smallest || input > biggest) {\n"
+" ((UIInput) toValidate).setValid(false);\n"
+"\n"
+" FacesMessage message = new FacesMessage(\"Invalid guess\");\n"
+" context.addMessage(toValidate.getClientId(context), message);\n"
+" }\n"
+" }\n"
+"\n"
+" public int getNumber() {\n"
+" return number;\n"
+" }\n"
+" \n"
+" public int getGuess() {\n"
+" return guess;\n"
+" }\n"
+" \n"
+" public void setGuess(int guess) {\n"
+" this.guess = guess;\n"
+" }\n"
+" \n"
+" public int getSmallest() {\n"
+" return smallest;\n"
+" }\n"
+" \n"
+" public int getBiggest() {\n"
+" return biggest;\n"
+" }\n"
+" \n"
+" public int getRemainingGuesses() {\n"
+" return remainingGuesses;\n"
+" }\n"
+"\n"
+"}]]>"
#. Tag: title
#: weldexamples.xml:190
@@ -417,32 +447,19 @@
#. Tag: para
#: weldexamples.xml:192
#, no-c-format
-msgid ""
-"A couple of modifications must be made to the numberguess artifact in order "
-"to deploy it to Tomcat or Jetty. First, Weld must be deployed as a Web "
-"Application library under <literal>WEB-INF/lib</literal> since the servlet "
-"container does not provide the CDI services. For your convenience we provide "
-"a single JAR suitable for running Weld in any servlet container (including "
-"Jetty), <literal>weld-servlet.jar</literal>."
+msgid "A couple of modifications must be made to the numberguess artifact in order to deploy it to Tomcat or Jetty. First, Weld must be deployed as a Web Application library under <literal>WEB-INF/lib</literal> since the servlet container does not provide the CDI services. For your convenience we provide a single JAR suitable for running Weld in any servlet container (including Jetty), <literal>weld-servlet.jar</literal>."
msgstr ""
#. Tag: para
#: weldexamples.xml:200
#, no-c-format
-msgid ""
-"You must also include the JARs for JSF, EL, and the common annotations "
-"(<literal>jsr250-api.jar</literal>), all of which are provided by the Java "
-"EE platform (a Java EE application server). Are you starting to appreciate "
-"why a Java EE platform is worth using?"
+msgid "You must also include the JARs for JSF, EL, and the common annotations (<literal>jsr250-api.jar</literal>), all of which are provided by the Java EE platform (a Java EE application server). Are you starting to appreciate why a Java EE platform is worth using?"
msgstr ""
#. Tag: para
#: weldexamples.xml:207
#, no-c-format
-msgid ""
-"Second, we need to explicitly specify the servlet listener in <literal>web."
-"xml</literal>, again because the container isn't doing this stuff for you. "
-"The servlet listener boots Weld and controls it's interaction with requests."
+msgid "Second, we need to explicitly specify the servlet listener in <literal>web.xml</literal>, again because the container isn't doing this stuff for you. The servlet listener boots Weld and controls it's interaction with requests."
msgstr ""
#. Tag: programlisting
@@ -450,20 +467,17 @@
#, no-c-format
msgid ""
"<![CDATA[<listener>\n"
-" <listener-class>org.jboss.weld.environment.servlet.Listener</listener-"
-"class>\n"
+" <listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>\n"
"</listener>]]>"
msgstr ""
+"<![CDATA[<listener>\n"
+" <listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>\n"
+"</listener>]]>"
#. Tag: para
#: weldexamples.xml:215
#, no-c-format
-msgid ""
-"When Weld boots, it places the <literal>javax.enterprise.inject.spi."
-"BeanManager</literal>, the portable SPI for obtaining bean instances, in the "
-"ServletContext under a variable name equal to the fully-qualified interface "
-"name. You generally don't need to access this interface, but Weld makes use "
-"of it."
+msgid "When Weld boots, it places the <literal>javax.enterprise.inject.spi.BeanManager</literal>, the portable SPI for obtaining bean instances, in the ServletContext under a variable name equal to the fully-qualified interface name. You generally don't need to access this interface, but Weld makes use of it."
msgstr ""
#. Tag: title
@@ -475,41 +489,25 @@
#. Tag: para
#: weldexamples.xml:227
#, no-c-format
-msgid ""
-"Weld includes a number of portable extensions for JSR-299, including an "
-"extension for Wicket, which allows you to inject beans into Wicket "
-"components and leverage the conversation context. In this section, we'll "
-"walk you through the Wicket version of the numberguess example."
+msgid "Weld includes a number of portable extensions for JSR-299, including an extension for Wicket, which allows you to inject beans into Wicket components and leverage the conversation context. In this section, we'll walk you through the Wicket version of the numberguess example."
msgstr ""
#. Tag: para
#: weldexamples.xml:234
#, no-c-format
-msgid ""
-"You may want to review the Wicket documentation at <ulink url=\"http://"
-"wicket.apache.org/\">http://wicket.apache.org/</ulink> before reading this "
-"section, if you aren't already familiar with the framework."
+msgid "You may want to review the Wicket documentation at <ulink url=\"http://wicket.apache.org/\">http://wicket.apache.org/</ulink> before reading this section, if you aren't already familiar with the framework."
msgstr ""
#. Tag: para
#: weldexamples.xml:241
#, no-c-format
-msgid ""
-"Wicket is another environment that relies on the Weld servlet extension. The "
-"use of <ulink url=\"http://jetty.mortbay.org\">Jetty</ulink> is common in "
-"the Wicket community, and is thus chosen here as the runtime container. "
-"You've seen already that Jetty is perfectly capable of running CDI "
-"applications with Weld add-ons, and this environment is no different."
+msgid "Wicket is another environment that relies on the Weld servlet extension. The use of <ulink url=\"http://jetty.mortbay.org\">Jetty</ulink> is common in the Wicket community, and is thus chosen here as the runtime container. You've seen already that Jetty is perfectly capable of running CDI applications with Weld add-ons, and this environment is no different."
msgstr ""
#. Tag: para
#: weldexamples.xml:249
#, no-c-format
-msgid ""
-"We'll also be using the Eclipse IDE in these examples. Instructions are "
-"provided later for running the example from the command line, but since "
-"you'll likely need to do more than just deploy examples, we'll get setup in "
-"this full development environment."
+msgid "We'll also be using the Eclipse IDE in these examples. Instructions are provided later for running the example from the command line, but since you'll likely need to do more than just deploy examples, we'll get setup in this full development environment."
msgstr ""
#. Tag: title
@@ -521,63 +519,37 @@
#. Tag: para
#: weldexamples.xml:259
#, no-c-format
-msgid ""
-"To use the Wicket example in Eclipse, you have one of two choices. You can "
-"either use a Maven plugin to generate a regular Eclipse Web project, or you "
-"can open the example natively using the <ulink src=\"http://m2eclipse."
-"sonatype.org/\">m2eclipse plugin</ulink>. Since the Weld source code relies "
-"so heavily on Maven, we encourage you to bite the bullet and adopt the "
-"m2eclipse plugin. Both approaches are described here for your convenience.."
+msgid "To use the Wicket example in Eclipse, you have one of two choices. You can either use a Maven plugin to generate a regular Eclipse Web project, or you can open the example natively using the <ulink src=\"http://m2eclipse.sonatype.org/\">m2eclipse plugin</ulink>. Since the Weld source code relies so heavily on Maven, we encourage you to bite the bullet and adopt the m2eclipse plugin. Both approaches are described here for your convenience.."
msgstr ""
#. Tag: para
#: weldexamples.xml:267
#, no-c-format
-msgid ""
-"If you have m2eclipse installed, you can open any Maven project directly. "
-"From within Eclipse, select <emphasis>File -> Import... -> Maven Projects</"
-"emphasis>. Then, browse to the location of the Wicket numberguess example. "
-"You should see that Eclipse recognizes the existence of a Maven project."
+msgid "If you have m2eclipse installed, you can open any Maven project directly. From within Eclipse, select <emphasis>File -> Import... -> Maven Projects</emphasis>. Then, browse to the location of the Wicket numberguess example. You should see that Eclipse recognizes the existence of a Maven project."
msgstr ""
#. Tag: para
#: weldexamples.xml:279
#, no-c-format
-msgid ""
-"This will create a project in your workspace called <literal>weld-wicket-"
-"numberguess</literal>."
+msgid "This will create a project in your workspace called <literal>weld-wicket-numberguess</literal>."
msgstr ""
#. Tag: para
#: weldexamples.xml:283
#, no-c-format
-msgid ""
-"You'll notice after importing, the project has a build error. That's because "
-"we need to enable a Maven profile. Right-click on the project and select "
-"<emphasis>Properties</emphasis>, then select the <emphasis>Maven</emphasis> "
-"tab in the window that appears. In the form field labeled \"Active Maven "
-"Profiles (comma separated):\", type <literal>jetty</literal>. That will "
-"enable some extra dependencies that allow the project to compile. You're now "
-"ready to develop!"
+msgid "You'll notice after importing, the project has a build error. That's because we need to enable a Maven profile. Right-click on the project and select <emphasis>Properties</emphasis>, then select the <emphasis>Maven</emphasis> tab in the window that appears. In the form field labeled \"Active Maven Profiles (comma separated):\", type <literal>jetty</literal>. That will enable some extra dependencies that allow the project to compile. You're now ready to develop!"
msgstr ""
#. Tag: para
#: weldexamples.xml:292
#, no-c-format
-msgid ""
-"You are also advised to uncheck the box \"Skip Maven compiler when "
-"processing resources\" in the Maven properties screen because of conflicts "
-"with the Maven enforcer plugin."
+msgid "You are also advised to uncheck the box \"Skip Maven compiler when processing resources\" in the Maven properties screen because of conflicts with the Maven enforcer plugin."
msgstr ""
#. Tag: para
#: weldexamples.xml:298
#, no-c-format
-msgid ""
-"If you are not using the m2eclipse plugin, you have to follow different "
-"steps to import the project. First, switch into the Wicket numberguess "
-"example, then execute the Maven Eclipse plugin with the jetty profile "
-"activated, as follows:"
+msgid "If you are not using the m2eclipse plugin, you have to follow different steps to import the project. First, switch into the Wicket numberguess example, then execute the Maven Eclipse plugin with the jetty profile activated, as follows:"
msgstr ""
#. Tag: programlisting
@@ -591,11 +563,7 @@
#. Tag: para
#: weldexamples.xml:306
#, no-c-format
-msgid ""
-"Then, from Eclipse, choose <emphasis>File -> Import... -> General -> "
-"Existing Projects into Workspace</emphasis>, select the root directory of "
-"the numberguess example, and click Finish. This will create a project in "
-"your workspace called <literal>weld-wicket-numberguess</literal>."
+msgid "Then, from Eclipse, choose <emphasis>File -> Import... -> General -> Existing Projects into Workspace</emphasis>, select the root directory of the numberguess example, and click Finish. This will create a project in your workspace called <literal>weld-wicket-numberguess</literal>."
msgstr ""
#. Tag: para
@@ -613,15 +581,7 @@
#. Tag: para
#: weldexamples.xml:327
#, no-c-format
-msgid ""
-"This project follows the <literal>wicket-quickstart</literal> approach of "
-"creating an instance of Jetty in the <literal>Start</literal> class. So "
-"running the example is as simple as right-clicking on that Start class in "
-"<literal>src/test/java</literal> in the <emphasis>Package Explorer</"
-"emphasis> and choosing <emphasis>Run as Java Application</emphasis>. You "
-"should see console output related to Jetty starting up; then visit able "
-"<literal>http://localhost:9090</literal> to view the app. To debug choose "
-"<emphasis>Debug as Java Application</emphasis> instead."
+msgid "This project follows the <literal>wicket-quickstart</literal> approach of creating an instance of Jetty in the <literal>Start</literal> class. So running the example is as simple as right-clicking on that Start class in <literal>src/test/java</literal> in the <emphasis>Package Explorer</emphasis> and choosing <emphasis>Run as Java Application</emphasis>. You should see console output related to Jetty starting up; then visit able <literal>http://localhost:9090</literal> to view the app. To debug choose <emphasis>Debug as Java Application</emphasis> instead."
msgstr ""
#. Tag: title
@@ -633,19 +593,14 @@
#. Tag: para
#: weldexamples.xml:340
#, no-c-format
-msgid ""
-"This example can also be deployed from the command line in a (similar to the "
-"other examples). Assuming you have set up the <literal>local.build."
-"properties</literal> file in the <literal>examples</literal> directory to "
-"specify the location of JBoss AS or Tomcat, as previously described, you can "
-"run:"
+msgid "This example can also be deployed from the command line in a (similar to the other examples). Assuming you have set up the <literal>local.build.properties</literal> file in the <literal>examples</literal> directory to specify the location of JBoss AS or Tomcat, as previously described, you can run:"
msgstr ""
#. Tag: programlisting
#: weldexamples.xml:346
#, no-c-format
msgid "<![CDATA[$> ant deploy]]>"
-msgstr ""
+msgstr "<![CDATA[$> ant deploy]]>"
#. Tag: para
#: weldexamples.xml:348
@@ -657,29 +612,25 @@
#: weldexamples.xml:350
#, no-c-format
msgid "<![CDATA[$> ant tomcat.deploy]]>"
-msgstr ""
+msgstr "<![CDATA[$> ant tomcat.deploy]]>"
#. Tag: para
#: weldexamples.xml:352
#, no-c-format
-msgid ""
-"to deploy the example to Tomcat. You can then access application at "
-"<literal>http://localhost:9090/weld-numberguess-wicket</literal>."
+msgid "to deploy the example to Tomcat. You can then access application at <literal>http://localhost:9090/weld-numberguess-wicket</literal>."
msgstr ""
#. Tag: para
#: weldexamples.xml:357
#, no-c-format
-msgid ""
-"Alternatively, you can run the application in place on an embedded Jetty "
-"container using the following Maven command:"
+msgid "Alternatively, you can run the application in place on an embedded Jetty container using the following Maven command:"
msgstr ""
#. Tag: programlisting
#: weldexamples.xml:362
#, no-c-format
msgid "<![CDATA[$> mvn jetty:run -Pjetty]]>"
-msgstr ""
+msgstr "<![CDATA[$> mvn jetty:run -Pjetty]]>"
#. Tag: para
#: weldexamples.xml:364
@@ -696,25 +647,13 @@
#. Tag: para
#: weldexamples.xml:373
#, no-c-format
-msgid ""
-"The code in the wicket numberguess example is very similar to the JSF-based "
-"numberguess example. The business layer is identical! Where things differ is "
-"in view binding. JSF uses Unified EL expressions to bind XML-based view "
-"layer components in JSF views to beans. In contrast, Wicket defines its "
-"components in Java. These Java-based view components have a one-to-one "
-"mapping with HTML elements in an adjacent (pure) HTML file. All view logic, "
-"including binding of components to models and controlling the response of "
-"view actions, is handled in Java."
+msgid "The code in the wicket numberguess example is very similar to the JSF-based numberguess example. The business layer is identical! Where things differ is in view binding. JSF uses Unified EL expressions to bind XML-based view layer components in JSF views to beans. In contrast, Wicket defines its components in Java. These Java-based view components have a one-to-one mapping with HTML elements in an adjacent (pure) HTML file. All view logic, including binding of components to models and controlling the response of view actions, is handled in Java."
msgstr ""
#. Tag: para
#: weldexamples.xml:382
#, no-c-format
-msgid ""
-"The integration of Weld with Wicket takes advantage of the same qualifier "
-"annotations used in your business layer to provide injection into your "
-"<literal>WebPage</literal> subclass (or into other custom Wicket component "
-"subclasses)."
+msgid "The integration of Weld with Wicket takes advantage of the same qualifier annotations used in your business layer to provide injection into your <literal>WebPage</literal> subclass (or into other custom Wicket component subclasses)."
msgstr ""
#. Tag: para
@@ -726,10 +665,7 @@
#. Tag: para
#: weldexamples.xml:394
#, no-c-format
-msgid ""
-"Each wicket application must have a <literal>WeldApplication</literal> "
-"subclass. In our case, our application class is "
-"<literal>NumberGuessApplication</literal>:"
+msgid "Each wicket application must have a <literal>WeldApplication</literal> subclass. In our case, our application class is <literal>NumberGuessApplication</literal>:"
msgstr ""
#. Tag: programlisting
@@ -742,36 +678,34 @@
" }\n"
"}]]>"
msgstr ""
+"<![CDATA[public class NumberGuessApplication extends WeldApplication {\n"
+" @Override public Class getHomePage() {\n"
+" return HomePage.class;\n"
+" }\n"
+"}]]>"
#. Tag: para
#: weldexamples.xml:399
#, no-c-format
-msgid ""
-"This class specifies which page Wicket should treat as our home page, in our "
-"case, <literal>HomePage.class</literal>"
+msgid "This class specifies which page Wicket should treat as our home page, in our case, <literal>HomePage.class</literal>"
msgstr ""
#. Tag: para
#: weldexamples.xml:405
#, no-c-format
-msgid ""
-"In <literal>HomePage</literal>, we see typical Wicket code to set up page "
-"elements. The bit that is interesting is the injection of the <literal>Game</"
-"literal> bean:"
+msgid "In <literal>HomePage</literal>, we see typical Wicket code to set up page elements. The bit that is interesting is the injection of the <literal>Game</literal> bean:"
msgstr ""
#. Tag: programlisting
#: weldexamples.xml:410
#, no-c-format
msgid "<![CDATA[@Inject Game game;]]>"
-msgstr ""
+msgstr "<![CDATA[@Inject Game game;]]>"
#. Tag: para
#: weldexamples.xml:412
#, no-c-format
-msgid ""
-"The <literal>Game</literal> bean is can then be used, for example, by the "
-"code for submitting a guess:"
+msgid "The <literal>Game</literal> bean is can then be used, for example, by the code for submitting a guess:"
msgstr ""
#. Tag: programlisting
@@ -803,42 +737,53 @@
" } \n"
"}; ]]>"
msgstr ""
+"<![CDATA[final Component guessButton = new AjaxButton(\"GuessButton\") {\n"
+" protected void onSubmit(AjaxRequestTarget target, Form form) {\n"
+" if (game.check()) {\n"
+" info(\"Correct!\");\n"
+" setVisible(false);\n"
+" prompt.setVisible(false);\n"
+" guessLabel.setVisible(false);\n"
+" inputGuess.setVisible(false);\n"
+" }\n"
+" else if (game.getRemainingGuesses() == 0) {\n"
+" info(\"Sorry, the answer was \" + game.getNumber());\n"
+" setVisible(false);\n"
+" guessLabel.setVisible(false);\n"
+" inputGuess.setVisible(false);\n"
+" }\n"
+" else if (game.getNumber() > game.getGuess()) {\n"
+" info(\"Higher!\");\n"
+" }\n"
+" else if (game.getNumber() < game.getGuess()) {\n"
+" info(\"Lower\");\n"
+" }\n"
+" target.addComponent(form);\n"
+" } \n"
+"}; ]]>"
#. Tag: para
#: weldexamples.xml:420
#, no-c-format
-msgid ""
-"All injections may be serialized; actual storage of the bean is managed by "
-"JSR-299. Note that Wicket components, like the <literal>HomePage</literal> "
-"and it subcomponents, are <emphasis>not</emphasis> JSR-299 beans."
+msgid "All injections may be serialized; actual storage of the bean is managed by JSR-299. Note that Wicket components, like the <literal>HomePage</literal> and it subcomponents, are <emphasis>not</emphasis> JSR-299 beans."
msgstr ""
#. Tag: para
#: weldexamples.xml:425
#, no-c-format
-msgid ""
-"Wicket components allow injection, but they <emphasis>cannot</emphasis> use "
-"interceptors, decorators or lifecycle callbacks such as "
-"<literal>@PostConstruct</literal> or methods. The components would need to "
-"delegate to actual beans to leverage these features."
+msgid "Wicket components allow injection, but they <emphasis>cannot</emphasis> use interceptors, decorators or lifecycle callbacks such as <literal>@PostConstruct</literal> or methods. The components would need to delegate to actual beans to leverage these features."
msgstr ""
#. Tag: para
#: weldexamples.xml:433
#, no-c-format
-msgid ""
-"The example uses AJAX for processing of button events, and dynamically hides "
-"buttons that are no longer relevant, for example when the user has won the "
-"game."
+msgid "The example uses AJAX for processing of button events, and dynamically hides buttons that are no longer relevant, for example when the user has won the game."
msgstr ""
#. Tag: para
#: weldexamples.xml:440
#, no-c-format
-msgid ""
-"In order to activate Wicket for this webapp, the Wicket filter is added to "
-"<literal>web.xml</literal>, and our application class is specified in "
-"<literal>web.xml</literal>:"
+msgid "In order to activate Wicket for this webapp, the Wicket filter is added to <literal>web.xml</literal>, and our application class is specified in <literal>web.xml</literal>:"
msgstr ""
#. Tag: programlisting
@@ -847,12 +792,10 @@
msgid ""
"<![CDATA[<filter>\n"
" <filter-name>Wicket Filter</filter-name>\n"
-" <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-"
-"class>\n"
+" <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>\n"
" <init-param>\n"
" <param-name>applicationClassName</param-name>\n"
-" <param-value>org.jboss.weld.examples.wicket.NumberGuessApplication</"
-"param-value>\n"
+" <param-value>org.jboss.weld.examples.wicket.NumberGuessApplication</param-value>\n"
" </init-param>\n"
"</filter>\n"
"\n"
@@ -861,17 +804,24 @@
" <url-pattern>/*</url-pattern>\n"
"</filter-mapping>]]>"
msgstr ""
+"<![CDATA[<filter>\n"
+" <filter-name>Wicket Filter</filter-name>\n"
+" <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>\n"
+" <init-param>\n"
+" <param-name>applicationClassName</param-name>\n"
+" <param-value>org.jboss.weld.examples.wicket.NumberGuessApplication</param-value>\n"
+" </init-param>\n"
+"</filter>\n"
+"\n"
+"<filter-mapping>\n"
+" <filter-name>Wicket Filter</filter-name>\n"
+" <url-pattern>/*</url-pattern>\n"
+"</filter-mapping>]]>"
#. Tag: para
#: weldexamples.xml:447
#, no-c-format
-msgid ""
-"The servlet listener is still required, as in the Tomcat example, to "
-"bootstrap CDI when Jetty starts and to hook CDI into the Jetty servlet "
-"request and session lifecycles. However, rather than putting it into the web."
-"xml, it is placed into an override file, <literal>src/main/webapp/WEB-INF/"
-"jetty-additions-to-web.xml</literal>, that is passed to Jetty as an extra "
-"descriptor to be appended to the <literal>web.xml</literal> configuration."
+msgid "The servlet listener is still required, as in the Tomcat example, to bootstrap CDI when Jetty starts and to hook CDI into the Jetty servlet request and session lifecycles. However, rather than putting it into the web.xml, it is placed into an override file, <literal>src/main/webapp/WEB-INF/jetty-additions-to-web.xml</literal>, that is passed to Jetty as an extra descriptor to be appended to the <literal>web.xml</literal> configuration."
msgstr ""
#. Tag: programlisting
@@ -880,11 +830,15 @@
msgid ""
"<![CDATA[<web-app version=\"2.4\" ...>\n"
" <listener>\n"
-" <listener-class>org.jboss.weld.environment.servlet.Listener</listener-"
-"class>\n"
+" <listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>\n"
" </listener>\n"
"</web-app>]]>"
msgstr ""
+"<![CDATA[<web-app version=\"2.4\" ...>\n"
+" <listener>\n"
+" <listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>\n"
+" </listener>\n"
+"</web-app>]]>"
#. Tag: title
#: weldexamples.xml:464
@@ -895,11 +849,7 @@
#. Tag: para
#: weldexamples.xml:466
#, no-c-format
-msgid ""
-"This example shows how to use the Weld SE extension to in a Java SE based "
-"Swing application with no EJB or servlet dependencies. This example can be "
-"found in the <literal>examples/se/numberguess</literal> folder of the Weld "
-"distribution."
+msgid "This example shows how to use the Weld SE extension to in a Java SE based Swing application with no EJB or servlet dependencies. This example can be found in the <literal>examples/se/numberguess</literal> folder of the Weld distribution."
msgstr ""
#. Tag: para
@@ -917,17 +867,13 @@
#. Tag: para
#: weldexamples.xml:484
#, no-c-format
-msgid ""
-"Ensure that the <literal>JAVA_HOME</literal> environment variable is "
-"pointing to your JDK installation"
+msgid "Ensure that the <literal>JAVA_HOME</literal> environment variable is pointing to your JDK installation"
msgstr ""
#. Tag: para
#: weldexamples.xml:490
#, no-c-format
-msgid ""
-"Open a command line or terminal window in the <literal>examples/se/"
-"numberguess</literal> directory"
+msgid "Open a command line or terminal window in the <literal>examples/se/numberguess</literal> directory"
msgstr ""
#. Tag: para
@@ -945,37 +891,26 @@
#. Tag: para
#: weldexamples.xml:503
#, no-c-format
-msgid ""
-"Let's have a look at the significant code and configuration files that make "
-"up this example."
+msgid "Let's have a look at the significant code and configuration files that make up this example."
msgstr ""
#. Tag: para
#: weldexamples.xml:508
#, no-c-format
-msgid ""
-"As usual, there is an empty <literal>beans.xml</literal> file in the root "
-"package (<literal>src/main/resources/beans.xml</literal>), which marks this "
-"application as a CDI application."
+msgid "As usual, there is an empty <literal>beans.xml</literal> file in the root package (<literal>src/main/resources/beans.xml</literal>), which marks this application as a CDI application."
msgstr ""
#. Tag: para
#: weldexamples.xml:514
#, no-c-format
-msgid ""
-"The game's main logic is located in <literal>Game.java</literal>. Here is "
-"the code for that class, highlighting the ways in which this differs from "
-"the web application version:"
+msgid "The game's main logic is located in <literal>Game.java</literal>. Here is the code for that class, highlighting the ways in which this differs from the web application version:"
msgstr ""
#. Tag: section
#: weldexamples.xml:518
#, no-c-format
msgid ""
-"<programlistingco> <areaspec> <area id=\"scope\" coords=\"1\"/> <area id="
-"\"name\" coords=\"2\"/> <area id=\"messages1\" coords=\"26\"/> <area id="
-"\"validation\" coords=\"41\"/> <area id=\"reset\" coords=\"73\"/> </"
-"areaspec> <programlisting role=\"JAVA\"><![CDATA[@ApplicationScoped\n"
+"<programlistingco> <areaspec> <area id=\"scope\" coords=\"1\"/> <area id=\"name\" coords=\"2\"/> <area id=\"messages1\" coords=\"26\"/> <area id=\"validation\" coords=\"41\"/> <area id=\"reset\" coords=\"73\"/> </areaspec> <programlisting role=\"JAVA\"><![CDATA[@ApplicationScoped\n"
"public class Game implements Serializable\n"
"{\n"
"\n"
@@ -1046,8 +981,7 @@
"\n"
" private boolean checkNewNumberRangeIsValid()\n"
" {\n"
-" return validNumberRange = ((guess >= smallest) && (guess <= "
-"biggest));\n"
+" return validNumberRange = ((guess >= smallest) && (guess <= biggest));\n"
" }\n"
"\n"
" @PostConstruct\n"
@@ -1059,46 +993,14 @@
" this.biggest = maxNumber;\n"
" this.number = rndGenerator.next();\n"
" }\n"
-"}]]></programlisting> <calloutlist> <callout arearefs=\"scope\"> <para> The "
-"bean is application scoped rather than session scoped, since an instance of "
-"a Swing application typically represents a single 'session'. </para> </"
-"callout> <callout arearefs=\"name\"> <para> Notice that the bean is not "
-"named, since it doesn't need to be accessed via EL. </para> </callout> "
-"<callout arearefs=\"messages1\"> <para> In Java SE there is no JSF "
-"<literal>FacesContext</literal> to which messages can be added. Instead the "
-"<literal>Game</literal> class provides additional information about the "
-"state of the current game including: </para> <itemizedlist> <listitem> "
-"<para> If the game has been won or lost </para> </listitem> <listitem> "
-"<para> If the most recent guess was invalid </para> </listitem> </"
-"itemizedlist> <para> This allows the Swing UI to query the state of the "
-"game, which it does indirectly via a class called <literal>MessageGenerator</"
-"literal>, in order to determine the appropriate messages to display to the "
-"user during the game. </para> </callout> <callout arearefs=\"validation\"> "
-"<para> Since there is no dedicated validation phase, validation of user "
-"input is performed during the <literal>check()</literal> method. </para> </"
-"callout> <callout arearefs=\"reset\"> <para> The <literal>reset()</literal> "
-"method makes a call to the injected <literal>rndGenerator</literal> in order "
-"to get the random number at the start of each game. Note that it cannot use "
-"<literal>manager.getInstanceByType(Integer.class, new AnnotationLiteral<"
-"Random>(){})</literal> as the JSF example does because there will not be "
-"any active contexts like there is during a JSF request. </para> </callout> </"
-"calloutlist> </programlistingco> <para> The <literal>MessageGenerator</"
-"literal> class depends on the current instance of <literal>Game</literal> "
-"and queries its state in order to determine the appropriate messages to "
-"provide as the prompt for the user's next guess and the response to the "
-"previous guess. The code for <literal>MessageGenerator</literal> is as "
-"follows: </para> <programlistingco> <areaspec> <area id=\"game\" coords=\"3"
-"\"/> <area id=\"challenge\" coords=\"6\"/> <area id=\"result\" coords=\"17\"/"
-"> </areaspec> <programlisting role=\"JAVA\"><![CDATA[public class "
-"MessageGenerator\n"
+"}]]></programlisting> <calloutlist> <callout arearefs=\"scope\"> <para> The bean is application scoped rather than session scoped, since an instance of a Swing application typically represents a single 'session'. </para> </callout> <callout arearefs=\"name\"> <para> Notice that the bean is not named, since it doesn't need to be accessed via EL. </para> </callout> <callout arearefs=\"messages1\"> <para> In Java SE there is no JSF <literal>FacesContext</literal> to which messages can be added. Instead the <literal>Game</literal> class provides additional information about the state of the current game including: </para> <itemizedlist> <listitem> <para> If the game has been won or lost </para> </listitem> <listitem> <para> If the most recent guess was invalid </para> </listitem> </itemizedlist> <para> This allows the Swing UI to query the state of the game, which it does indirectly via a class called <literal>MessageGenerator</literal>, in order to determine the appropriate m!
essages to display to the user during the game. </para> </callout> <callout arearefs=\"validation\"> <para> Since there is no dedicated validation phase, validation of user input is performed during the <literal>check()</literal> method. </para> </callout> <callout arearefs=\"reset\"> <para> The <literal>reset()</literal> method makes a call to the injected <literal>rndGenerator</literal> in order to get the random number at the start of each game. Note that it cannot use <literal>manager.getInstanceByType(Integer.class, new AnnotationLiteral<Random>(){})</literal> as the JSF example does because there will not be any active contexts like there is during a JSF request. </para> </callout> </calloutlist> </programlistingco> <para> The <literal>MessageGenerator</literal> class depends on the current instance of <literal>Game</literal> and queries its state in order to determine the appropriate messages to provide as the prompt for the user's next guess and the response t!
o the previous guess. The code for <literal>MessageGenerator</!
literal>
is as follows: </para> <programlistingco> <areaspec> <area id=\"game\" coords=\"3\"/> <area id=\"challenge\" coords=\"6\"/> <area id=\"result\" coords=\"17\"/> </areaspec> <programlisting role=\"JAVA\"><![CDATA[public class MessageGenerator\n"
"{\n"
" @Inject\n"
" private Game game;\n"
"\n"
" public String getChallengeMessage()\n"
" {\n"
-" StringBuilder challengeMsg = new StringBuilder(\"I'm thinking of a "
-"number between \");\n"
+" StringBuilder challengeMsg = new StringBuilder(\"I'm thinking of a number between \");\n"
" challengeMsg.append(game.getSmallest());\n"
" challengeMsg.append(\" and \");\n"
" challengeMsg.append(game.getBiggest());\n"
@@ -1138,24 +1040,10 @@
" direction = \"Lower\";\n"
" }\n"
"\n"
-" return direction + \"! You have \" + game.getRemainingGuesses() + "
-"\" guesses left.\";\n"
+" return direction + \"! You have \" + game.getRemainingGuesses() + \" guesses left.\";\n"
" }\n"
" }\n"
-"}]]></programlisting> <calloutlist> <callout arearefs=\"game\"> <para> The "
-"instance of <literal>Game</literal> for the application is injected here. </"
-"para> </callout> <callout arearefs=\"challenge\"> <para> The <literal>Game</"
-"literal>'s state is interrogated to determine the appropriate challenge "
-"message ... </para> </callout> <callout arearefs=\"result\"> <para> ... and "
-"again to determine whether to congratulate, console or encourage the user to "
-"continue. </para> </callout> </calloutlist> </programlistingco> <para> "
-"Finally we come to the <literal>NumberGuessFrame</literal> class which "
-"provides the Swing front end to our guessing game. </para> "
-"<programlistingco> <areaspec> <area id=\"gameIn\" coords=\"3\"/> <area id="
-"\"messagesIn\" coords=\"6\"/> <area id=\"start\" coords=\"9\"/> <area id="
-"\"init\" coords=\"21\"/> <area id=\"guess1\" coords=\"38\"/> <area id="
-"\"replay\" coords=\"48\"/> </areaspec> <programlisting role=\"JAVA\"><![CDATA"
-"[public class NumberGuessFrame extends javax.swing.JFrame\n"
+"}]]></programlisting> <calloutlist> <callout arearefs=\"game\"> <para> The instance of <literal>Game</literal> for the application is injected here. </para> </callout> <callout arearefs=\"challenge\"> <para> The <literal>Game</literal>'s state is interrogated to determine the appropriate challenge message ... </para> </callout> <callout arearefs=\"result\"> <para> ... and again to determine whether to congratulate, console or encourage the user to continue. </para> </callout> </calloutlist> </programlistingco> <para> Finally we come to the <literal>NumberGuessFrame</literal> class which provides the Swing front end to our guessing game. </para> <programlistingco> <areaspec> <area id=\"gameIn\" coords=\"3\"/> <area id=\"messagesIn\" coords=\"6\"/> <area id=\"start\" coords=\"9\"/> <area id=\"init\" coords=\"21\"/> <area id=\"guess1\" coords=\"38\"/> <area id=\"replay\" coords=\"48\"/> </areaspec> <programlisting role=\"JAVA\"><![CDATA[public class NumberGuessFrame extends j!
avax.swing.JFrame\n"
"{\n"
" @Inject\n"
" private Game game;\n"
@@ -1192,8 +1080,7 @@
" ...\n"
" }\n"
"\n"
-" private void guessButtonActionPerformed( java.awt.event.ActionEvent "
-"evt )\n"
+" private void guessButtonActionPerformed( java.awt.event.ActionEvent evt )\n"
" {\n"
" int guess = Integer.parseInt(guessText.getText());\n"
" game.setGuess( guess );\n"
@@ -1220,32 +1107,7 @@
" ...\n"
" private javax.swing.JButton replayBtn;\n"
"\n"
-"}]]></programlisting> <calloutlist> <callout arearefs=\"gameIn\"> <para> The "
-"injected instance of the game (logic and state). </para> </callout> <callout "
-"arearefs=\"messagesIn\"> <para> The injected message generator for UI "
-"messages. </para> </callout> <callout arearefs=\"start\"> <para> This "
-"application is started in the prescribed Weld SE way, by observing the "
-"<literal>ContainerInitialized</literal> event. </para> </callout> <callout "
-"arearefs=\"init\"> <para> This method initializes all of the Swing "
-"components. Note the use of the <literal>msgGenerator</literal> here. </"
-"para> </callout> <callout arearefs=\"guess1\"> <para> "
-"<literal>guessButtonActionPerformed</literal> is called when the 'Guess' "
-"button is clicked, and it does the following: </para> <itemizedlist> "
-"<listitem> <para> Gets the guess entered by the user and sets it as the "
-"current guess in the <literal>Game</literal> </para> </listitem> <listitem> "
-"<para> Calls <literal>game.check()</literal> to validate and perform one "
-"'turn' of the game </para> </listitem> <listitem> <para> Calls "
-"<literal>refreshUI</literal>. If there were validation errors with the "
-"input, this will have been captured during <literal>game.check()</literal> "
-"and as such will be reflected in the messages returned by "
-"<literal>MessageGenerator</literal> and subsequently presented to the user. "
-"If there are no validation errors then the user will be told to guess again "
-"(higher or lower) or that the game has ended either in a win (correct guess) "
-"or a loss (ran out of guesses). </para> </listitem> </itemizedlist> </"
-"callout> <callout arearefs=\"replay\"> <para> "
-"<literal>replayBtnActionPerformed</literal> simply calls <literal>game.reset"
-"()</literal> to start a new game and refreshes the messages in the UI. </"
-"para> </callout> </calloutlist> </programlistingco>"
+"}]]></programlisting> <calloutlist> <callout arearefs=\"gameIn\"> <para> The injected instance of the game (logic and state). </para> </callout> <callout arearefs=\"messagesIn\"> <para> The injected message generator for UI messages. </para> </callout> <callout arearefs=\"start\"> <para> This application is started in the prescribed Weld SE way, by observing the <literal>ContainerInitialized</literal> event. </para> </callout> <callout arearefs=\"init\"> <para> This method initializes all of the Swing components. Note the use of the <literal>msgGenerator</literal> here. </para> </callout> <callout arearefs=\"guess1\"> <para> <literal>guessButtonActionPerformed</literal> is called when the 'Guess' button is clicked, and it does the following: </para> <itemizedlist> <listitem> <para> Gets the guess entered by the user and sets it as the current guess in the <literal>Game</literal> </para> </listitem> <listitem> <para> Calls <literal>game.check()</literal> to validate and per!
form one 'turn' of the game </para> </listitem> <listitem> <para> Calls <literal>refreshUI</literal>. If there were validation errors with the input, this will have been captured during <literal>game.check()</literal> and as such will be reflected in the messages returned by <literal>MessageGenerator</literal> and subsequently presented to the user. If there are no validation errors then the user will be told to guess again (higher or lower) or that the game has ended either in a win (correct guess) or a loss (ran out of guesses). </para> </listitem> </itemizedlist> </callout> <callout arearefs=\"replay\"> <para> <literal>replayBtnActionPerformed</literal> simply calls <literal>game.reset()</literal> to start a new game and refreshes the messages in the UI. </para> </callout> </calloutlist> </programlistingco>"
msgstr ""
#. Tag: title
@@ -1257,36 +1119,25 @@
#. Tag: para
#: weldexamples.xml:718
#, no-c-format
-msgid ""
-"The translator example will take any sentences you enter, and translate them "
-"to Latin. (Well, not really, but the stub is there for you to implement, at "
-"least. Good luck!)"
+msgid "The translator example will take any sentences you enter, and translate them to Latin. (Well, not really, but the stub is there for you to implement, at least. Good luck!)"
msgstr ""
#. Tag: para
#: weldexamples.xml:723
#, no-c-format
-msgid ""
-"The translator example is built as an EAR and contains EJBs. As a result, "
-"it's structure is more complex than the numberguess example."
+msgid "The translator example is built as an EAR and contains EJBs. As a result, it's structure is more complex than the numberguess example."
msgstr ""
#. Tag: para
#: weldexamples.xml:729
#, no-c-format
-msgid ""
-"Java EE 6, which bundles EJB 3.1, allows you to package EJBs in a WAR, which "
-"will make this structure much simpler! Still, there are other advantages of "
-"using an EAR."
+msgid "Java EE 6, which bundles EJB 3.1, allows you to package EJBs in a WAR, which will make this structure much simpler! Still, there are other advantages of using an EAR."
msgstr ""
#. Tag: para
#: weldexamples.xml:735
#, no-c-format
-msgid ""
-"First, let's take a look at the EAR aggregator, which is located in the "
-"example's <literal>ear</literal> directory. Maven automatically generates "
-"the <literal>application.xml</literal> for us from this plugin configuration:"
+msgid "First, let's take a look at the EAR aggregator, which is located in the example's <literal>ear</literal> directory. Maven automatically generates the <literal>application.xml</literal> for us from this plugin configuration:"
msgstr ""
#. Tag: programlisting
@@ -1307,22 +1158,30 @@
" </configuration>\n"
"</plugin>]]>"
msgstr ""
+"<![CDATA[<plugin>\n"
+" <groupId>org.apache.maven.plugins</groupId>\n"
+" <artifactId>maven-ear-plugin</artifactId>\n"
+" <configuration>\n"
+" <modules>\n"
+" <webModule>\n"
+" <groupId>org.jboss.weld.examples.jsf.translator</groupId>\n"
+" <artifactId>weld-jsf-translator-war</artifactId>\n"
+" <contextRoot>/weld-translator</contextRoot>\n"
+" </webModule>\n"
+" </modules>\n"
+" </configuration>\n"
+"</plugin>]]>"
#. Tag: para
#: weldexamples.xml:742
#, no-c-format
-msgid ""
-"This configuration overrides the web context path, resulting in this "
-"application URL: <ulink url=\"http://localhost:8080/weld-translator\">http://"
-"localhost:8080/weld-translator</ulink>."
+msgid "This configuration overrides the web context path, resulting in this application URL: <ulink url=\"http://localhost:8080/weld-translator\">http://localhost:8080/weld-translator</ulink>."
msgstr ""
#. Tag: para
#: weldexamples.xml:748
#, no-c-format
-msgid ""
-"If you weren't using Maven to generate these files, you would need "
-"<literal>META-INF/application.xml</literal>:"
+msgid "If you weren't using Maven to generate these files, you would need <literal>META-INF/application.xml</literal>:"
msgstr ""
#. Tag: programlisting
@@ -1350,25 +1209,37 @@
" </module>\n"
"</application>]]>"
msgstr ""
+"<![CDATA[<application version=\"5\"\n"
+" xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
+" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+" xsi:schemaLocation=\"\n"
+" http://java.sun.com/xml/ns/javaee\n"
+" http://java.sun.com/xml/ns/javaee/application_5.xsd\">\n"
+"\n"
+" <display-name>weld-jsf-translator-ear</display-name>\n"
+" <description>The Weld JSF translator example (EAR)</description>\n"
+" \n"
+" <module>\n"
+" <web>\n"
+" <web-uri>weld-translator.war</web-uri>\n"
+" <context-root>/weld-translator</context-root>\n"
+" </web>\n"
+" </module>\n"
+" <module>\n"
+" <ejb>weld-translator.jar</ejb>\n"
+" </module>\n"
+"</application>]]>"
#. Tag: para
#: weldexamples.xml:756
#, no-c-format
-msgid ""
-"Next, lets look at the WAR, which is located in the example's <literal>war</"
-"literal> directory. Just as in the numberguess example, we have a "
-"<literal>faces-config.xml</literal> for JSF 2.0 and a <literal>web.xml</"
-"literal> (to activate JSF) under WEB-INF, both sourced from <literal>src/"
-"main/webapp/WEB-INF</literal>."
+msgid "Next, lets look at the WAR, which is located in the example's <literal>war</literal> directory. Just as in the numberguess example, we have a <literal>faces-config.xml</literal> for JSF 2.0 and a <literal>web.xml</literal> (to activate JSF) under WEB-INF, both sourced from <literal>src/main/webapp/WEB-INF</literal>."
msgstr ""
#. Tag: para
#: weldexamples.xml:762
#, no-c-format
-msgid ""
-"More interesting is the JSF view used to translate text. Just as in the "
-"numberguess example we have a template, which surrounds the form (ommitted "
-"here for brevity):"
+msgid "More interesting is the JSF view used to translate text. Just as in the numberguess example we have a template, which surrounds the form (ommitted here for brevity):"
msgstr ""
#. Tag: programlisting
@@ -1388,8 +1259,7 @@
" </tr>\n"
" <tr>\n"
" <td>\n"
-" <h:inputTextarea id=\"text\" value=\"#{translator.text}\" "
-"required=\"true\" rows=\"5\" cols=\"80\"/>\n"
+" <h:inputTextarea id=\"text\" value=\"#{translator.text}\" required=\"true\" rows=\"5\" cols=\"80\"/>\n"
" </td>\n"
" <td>\n"
" <h:outputText value=\"#{translator.translatedText}\"/>\n"
@@ -1397,50 +1267,59 @@
" </tr>\n"
" </table>\n"
" <div>\n"
-" <h:commandButton id=\"button\" value=\"Translate\" action=\"#"
-"{translator.translate}\"/>\n"
+" <h:commandButton id=\"button\" value=\"Translate\" action=\"#{translator.translate}\"/>\n"
" </div>\n"
" \n"
"</h:form>]]>"
msgstr ""
+"<![CDATA[<h:form id=\"translator\">\n"
+"\n"
+" <table>\n"
+" <tr align=\"center\" style=\"font-weight: bold\">\n"
+" <td>\n"
+" Your text\n"
+" </td>\n"
+" <td>\n"
+" Translation\n"
+" </td>\n"
+" </tr>\n"
+" <tr>\n"
+" <td>\n"
+" <h:inputTextarea id=\"text\" value=\"#{translator.text}\" required=\"true\" rows=\"5\" cols=\"80\"/>\n"
+" </td>\n"
+" <td>\n"
+" <h:outputText value=\"#{translator.translatedText}\"/>\n"
+" </td>\n"
+" </tr>\n"
+" </table>\n"
+" <div>\n"
+" <h:commandButton id=\"button\" value=\"Translate\" action=\"#{translator.translate}\"/>\n"
+" </div>\n"
+" \n"
+"</h:form>]]>"
#. Tag: para
#: weldexamples.xml:769
#, no-c-format
-msgid ""
-"The user can enter some text in the left-hand textarea, and hit the "
-"translate button to see the result to the right."
+msgid "The user can enter some text in the left-hand textarea, and hit the translate button to see the result to the right."
msgstr ""
#. Tag: para
#: weldexamples.xml:774
#, no-c-format
-msgid ""
-"Finally, let's look at the EJB module, which is located in the example's "
-"<literal>ejb</literal> directory. In <literal>src/main/resources/META-INF</"
-"literal> there is just an empty <literal>beans.xml</literal>, used to mark "
-"the archive as containing beans."
+msgid "Finally, let's look at the EJB module, which is located in the example's <literal>ejb</literal> directory. In <literal>src/main/resources/META-INF</literal> there is just an empty <literal>beans.xml</literal>, used to mark the archive as containing beans."
msgstr ""
#. Tag: para
#: weldexamples.xml:780
#, no-c-format
-msgid ""
-"We've saved the most interesting bit to last, the code! The project has two "
-"simple beans, <literal>SentenceParser</literal> and <literal>TextTranslator</"
-"literal> and two session beans, <literal>TranslatorControllerBean</literal> "
-"and <literal>SentenceTranslator</literal>. You should be getting quite "
-"familiar with what a bean looks like by now, so we'll just highlight the "
-"most interesting bits here."
+msgid "We've saved the most interesting bit to last, the code! The project has two simple beans, <literal>SentenceParser</literal> and <literal>TextTranslator</literal> and two session beans, <literal>TranslatorControllerBean</literal> and <literal>SentenceTranslator</literal>. You should be getting quite familiar with what a bean looks like by now, so we'll just highlight the most interesting bits here."
msgstr ""
#. Tag: para
#: weldexamples.xml:787
#, no-c-format
-msgid ""
-"Both <literal>SentenceParser</literal> and <literal>TextTranslator</literal> "
-"are dependent beans, and <literal>TextTranslator</literal> uses constructor "
-"injection:"
+msgid "Both <literal>SentenceParser</literal> and <literal>TextTranslator</literal> are dependent beans, and <literal>TextTranslator</literal> uses constructor injection:"
msgstr ""
#. Tag: programlisting
@@ -1467,17 +1346,30 @@
"\n"
"}]]>"
msgstr ""
+"<![CDATA[public class TextTranslator implements Serializable { \n"
+"\n"
+" private SentenceParser sentenceParser; \n"
+"\n"
+" @EJB private Translator translator; \n"
+" \n"
+" @Inject public TextTranslator(SentenceParser sentenceParser) { \n"
+" this.sentenceParser = sentenceParser; \n"
+" }\n"
+" \n"
+" public String translate(String text) { \n"
+" StringBuilder sb = new StringBuilder(); \n"
+" for (String sentence: sentenceParser.parse(text)) { \n"
+" sb.append(translator.translate(sentence)).append(\". \"); \n"
+" } \n"
+" return sb.toString().trim(); \n"
+" }\n"
+"\n"
+"}]]>"
#. Tag: para
#: weldexamples.xml:794
#, no-c-format
-msgid ""
-"<literal>TextTranslator</literal> uses the simple bean (really just a plain "
-"Java class!) <literal>SentenceParser</literal> to parse the sentence and "
-"then calls on the stateless bean with the local business interface "
-"<literal>Translator</literal> to perform the translation. That's where the "
-"magic happens. Of course, we couldn't develop a full translator, but it's "
-"convincing enough to anyone who doesn't understand Latin!"
+msgid "<literal>TextTranslator</literal> uses the simple bean (really just a plain Java class!) <literal>SentenceParser</literal> to parse the sentence and then calls on the stateless bean with the local business interface <literal>Translator</literal> to perform the translation. That's where the magic happens. Of course, we couldn't develop a full translator, but it's convincing enough to anyone who doesn't understand Latin!"
msgstr ""
#. Tag: programlisting
@@ -1493,15 +1385,19 @@
"\n"
"}]]>"
msgstr ""
+"<![CDATA[@Stateless\n"
+"public class SentenceTranslator implements Translator { \n"
+"\n"
+" public String translate(String sentence) { \n"
+" return \"Lorem ipsum dolor sit amet\"; \n"
+" }\n"
+"\n"
+"}]]>"
#. Tag: para
#: weldexamples.xml:804
#, no-c-format
-msgid ""
-"Finally, there is UI orientated controller. This is a request scoped, named, "
-"stateful session bean, which injects the translator. It collects the text "
-"from the user and dispatches it to the translator. The bean also has getters "
-"and setters for all the fields on the page."
+msgid "Finally, there is UI orientated controller. This is a request scoped, named, stateful session bean, which injects the translator. It collects the text from the user and dispatches it to the translator. The bean also has getters and setters for all the fields on the page."
msgstr ""
#. Tag: programlisting
@@ -1539,13 +1435,40 @@
"\n"
"}]]>"
msgstr ""
+"<![CDATA[@Stateful\n"
+"@RequestScoped\n"
+"@Named(\"translator\")\n"
+"public class TranslatorControllerBean implements TranslatorController {\n"
+"\n"
+" @Inject private TextTranslator translator;\n"
+" \n"
+" private String inputText;\n"
+" \n"
+" private String translatedText;\n"
+" \n"
+" public void translate() {\n"
+" translatedText = translator.translate(inputText);\n"
+" }\n"
+" \n"
+" public String getText() {\n"
+" return inputText;\n"
+" }\n"
+" \n"
+" public void setText(String text) {\n"
+" this.inputText = text;\n"
+" }\n"
+" \n"
+" public String getTranslatedText() {\n"
+" return translatedText;\n"
+" }\n"
+" \n"
+" @Remove public void remove() {}\n"
+"\n"
+"}]]>"
#. Tag: para
#: weldexamples.xml:814
#, no-c-format
-msgid ""
-"That concludes our short tour of the Weld starter examples. For more "
-"information on Weld, or to help out with development, please visit <ulink "
-"url=\"http://www.seamframework.org/Weld/Development\">http://www."
-"seamframework.org/Weld/Development</ulink>."
+msgid "That concludes our short tour of the Weld starter examples. For more information on Weld, or to help out with development, please visit <ulink url=\"http://www.seamframework.org/Weld/Development\">http://www.seamframework.org/Weld/Development</ulink>."
msgstr ""
+
Modified: doc/trunk/reference/pt-BR/xml.po
===================================================================
--- doc/trunk/reference/pt-BR/xml.po 2009-12-19 05:09:55 UTC (rev 5361)
+++ doc/trunk/reference/pt-BR/xml.po 2009-12-19 20:27:05 UTC (rev 5362)
@@ -6,7 +6,7 @@
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-11-11 15:00+0000\n"
-"PO-Revision-Date: 2009-04-10 19:58-0300\n"
+"PO-Revision-Date: 2009-12-19 18:03-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -22,72 +22,38 @@
#. Tag: para
#: xml.xml:7
#, fuzzy, no-c-format
-msgid ""
-"So far, we've seen plenty of examples of beans declared using annotations. "
-"However, there are a couple of occasions when we can't use annotations to "
-"define the bean:"
-msgstr ""
-"Até agora,vimos muitos exemplos de declaração de Web Beans usando anotações. "
-"No entanto, há várias situações em que não podemos usar anotações para "
-"definir um Web Bean:"
+msgid "So far, we've seen plenty of examples of beans declared using annotations. However, there are a couple of occasions when we can't use annotations to define the bean:"
+msgstr "Até agora,vimos muitos exemplos de declaração de Web Beans usando anotações. No entanto, há várias situações em que não podemos usar anotações para definir um Web Bean:"
#. Tag: para
#: xml.xml:14
#, no-c-format
msgid "when the implementation class comes from some preexisting library, or"
-msgstr ""
-"quando a classe de implementação vem de alguma biblioteca preexistente, ou"
+msgstr "quando a classe de implementação vem de alguma biblioteca preexistente, ou"
#. Tag: para
#: xml.xml:19
#, fuzzy, no-c-format
msgid "when there should be multiple beans with the same implementation class."
-msgstr ""
-"quando deveria haver vários Web Beans com a mesma classe de implementação."
+msgstr "quando deveria haver vários Web Beans com a mesma classe de implementação."
#. Tag: para
#: xml.xml:25
#, no-c-format
-msgid ""
-"One way to address these problems is to write a producer method. Weld offers "
-"another option: declare the bean using XML. This feature will hopefully one "
-"day be part of the CDI specification. Until then, it remains a portable "
-"extension."
+msgid "One way to address these problems is to write a producer method. Weld offers another option: declare the bean using XML. This feature will hopefully one day be part of the CDI specification. Until then, it remains a portable extension."
msgstr ""
#. Tag: para
#: xml.xml:31
#, fuzzy, no-c-format
-msgid ""
-"Many frameworks use XML to provide metadata relating to Java classes. "
-"However, Weld uses a very different approach to specifying the names of Java "
-"classes, fields or methods to most other frameworks. Instead of writing "
-"class and member names as the string values of XML elements and attributes, "
-"Weld lets you use the class or member name as the name of the XML element."
-msgstr ""
-"Muitos frameworks usam XML para fornecer metadados relativos às classes "
-"Java. No entanto, Web Beans utiliza uma abordagem muito diferente para "
-"especificar os nomes de classes Java, atributos ou métodos dos outros "
-"frameworks. Em vez de escrever os nomes das classes e dos membros ( como uma "
-"String de valores em elementos e atributos XML), Web Beans permite que você "
-"use o nome da classe ou membro como o nome do elemento XML."
+msgid "Many frameworks use XML to provide metadata relating to Java classes. However, Weld uses a very different approach to specifying the names of Java classes, fields or methods to most other frameworks. Instead of writing class and member names as the string values of XML elements and attributes, Weld lets you use the class or member name as the name of the XML element."
+msgstr "Muitos frameworks usam XML para fornecer metadados relativos às classes Java. No entanto, Web Beans utiliza uma abordagem muito diferente para especificar os nomes de classes Java, atributos ou métodos dos outros frameworks. Em vez de escrever os nomes das classes e dos membros ( como uma String de valores em elementos e atributos XML), Web Beans permite que você use o nome da classe ou membro como o nome do elemento XML."
#. Tag: para
#: xml.xml:38
#, no-c-format
-msgid ""
-"The advantage of this approach is that you can write an XML schema that "
-"prevents spelling errors in your XML document. It's even possible for a tool "
-"to generate the XML schema automatically from the compiled Java code. Or, an "
-"integrated development environment could perform the same validation without "
-"the need for the explicit intermediate generation step."
-msgstr ""
-"A vantagem dessa abordagem é que você pode escrever um esquema XML (XML "
-"schema) que evita erros ortográficos no seu documento XML. É até mesmo "
-"possível para uma ferramenta gerar o esquema XML (XML schema) "
-"automaticamente, a partir do código Java compilad.Ou, um ambiente integrado "
-"de desenvolvimento poderia fazer a mesma validação sem a necessidade "
-"explicíta do passo intermediário de geração."
+msgid "The advantage of this approach is that you can write an XML schema that prevents spelling errors in your XML document. It's even possible for a tool to generate the XML schema automatically from the compiled Java code. Or, an integrated development environment could perform the same validation without the need for the explicit intermediate generation step."
+msgstr "A vantagem dessa abordagem é que você pode escrever um esquema XML (XML schema) que evita erros ortográficos no seu documento XML. É até mesmo possível para uma ferramenta gerar o esquema XML (XML schema) automaticamente, a partir do código Java compilad.Ou, um ambiente integrado de desenvolvimento poderia fazer a mesma validação sem a necessidade explicíta do passo intermediário de geração."
#. Tag: title
#: xml.xml:46
@@ -98,76 +64,46 @@
#. Tag: para
#: xml.xml:48
#, fuzzy, no-c-format
-msgid ""
-"For each Java package, Weld defines a corresponding XML namespace. The "
-"namespace is formed by prepending <literal>urn:java:</literal> to the Java "
-"package name. For the package <literal>com.mydomain.myapp</literal>, the XML "
-"namespace is <literal>urn:java:com.mydomain.myapp</literal>."
-msgstr ""
-"Para cada pacote Java, Web Beans define um namespace XML correspondente. O "
-"nome é formado precedendo <literal>urn:java:</literal> ao nome do pacote "
-"Java. Para o pacote <literal>com.mydomain.myapp</literal>, o namespace XML é "
-"<literal>urn:java:com.mydomain.myapp</literal>."
+msgid "For each Java package, Weld defines a corresponding XML namespace. The namespace is formed by prepending <literal>urn:java:</literal> to the Java package name. For the package <literal>com.mydomain.myapp</literal>, the XML namespace is <literal>urn:java:com.mydomain.myapp</literal>."
+msgstr "Para cada pacote Java, Web Beans define um namespace XML correspondente. O nome é formado precedendo <literal>urn:java:</literal> ao nome do pacote Java. Para o pacote <literal>com.mydomain.myapp</literal>, o namespace XML é <literal>urn:java:com.mydomain.myapp</literal>."
#. Tag: para
#: xml.xml:54
#, no-c-format
-msgid ""
-"Java types belonging to a package are referred to using an XML element in "
-"the namespace corresponding to the package. The name of the element is the "
-"name of the Java type. Fields and methods of the type are specified by child "
-"elements in the same namespace. If the type is an annotation, members are "
-"specified by attributes of the element."
-msgstr ""
-"Tipos Java pertencentes a um pacote são referenciados a utilizar um elemento "
-"XML no namespace correspondente ao pacote. O nome do elemento é o nome do "
-"tipo Java. Atributos e métodos do tipo são especificados por elementos "
-"filhos do mesmo namespace. Se o tipo for uma anotação, os membros são "
-"definidos por atributos do elemento."
+msgid "Java types belonging to a package are referred to using an XML element in the namespace corresponding to the package. The name of the element is the name of the Java type. Fields and methods of the type are specified by child elements in the same namespace. If the type is an annotation, members are specified by attributes of the element."
+msgstr "Tipos Java pertencentes a um pacote são referenciados a utilizar um elemento XML no namespace correspondente ao pacote. O nome do elemento é o nome do tipo Java. Atributos e métodos do tipo são especificados por elementos filhos do mesmo namespace. Se o tipo for uma anotação, os membros são definidos por atributos do elemento."
#. Tag: para
#: xml.xml:61
#, no-c-format
-msgid ""
-"For example, the element <literal><util:Date/></literal> in the "
-"following XML fragment refers to the class <literal>java.util.Date</literal>:"
-msgstr ""
-"Por exemplo, o elemento <literal><util:Date/></literal> no seguinte "
-"fragmento XML refere-se à classe <literal>java.util.Date</literal>:"
+msgid "For example, the element <literal><util:Date/></literal> in the following XML fragment refers to the class <literal>java.util.Date</literal>:"
+msgstr "Por exemplo, o elemento <literal><util:Date/></literal> no seguinte fragmento XML refere-se à classe <literal>java.util.Date</literal>:"
#. Tag: programlisting
#: xml.xml:66
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[<beans xmlns=\"urn:java:javax.beans\"\n"
" xmlns:util=\"urn:java:java.util\">\n"
" <util:Date/>\n"
"</beans>]]>"
msgstr ""
-"<![CDATA[<WebBeans xmlns=\"urn:java:javax.webbeans\"\n"
-" xmlns:util=\"urn:java:java.util\">\n"
-"\n"
-" <util:Date/>\n"
-"\n"
-"</WebBeans>]]>"
+"<![CDATA[<beans xmlns=\"urn:java:javax.beans\"\n"
+" xmlns:util=\"urn:java:java.util\">\n"
+" <util:Date/>\n"
+"</beans>]]>"
#. Tag: para
#: xml.xml:68
#, fuzzy, no-c-format
-msgid ""
-"And this is all the code we need to declare that <literal>Date</literal> is "
-"a bean! An instance of <literal>Date</literal> may now be injected by any "
-"other bean:"
-msgstr ""
-"E esse é todo o código necessário para declarar que <literal>Date</literal> "
-"é um simples Web Bean! Uma instância de <literal>Date</literal> pode agora "
-"ser injetada por qualquer outro Web Bean:"
+msgid "And this is all the code we need to declare that <literal>Date</literal> is a bean! An instance of <literal>Date</literal> may now be injected by any other bean:"
+msgstr "E esse é todo o código necessário para declarar que <literal>Date</literal> é um simples Web Bean! Uma instância de <literal>Date</literal> pode agora ser injetada por qualquer outro Web Bean:"
#. Tag: programlisting
#: xml.xml:73
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<![CDATA[private @Inject Date date;]]>"
-msgstr "<![CDATA[@Current Date date]]>"
+msgstr "<![CDATA[private @Inject Date date;]]>"
#. Tag: title
#: xml.xml:78
@@ -178,17 +114,12 @@
#. Tag: para
#: xml.xml:80
#, fuzzy, no-c-format
-msgid ""
-"We can declare the scope, deployment type and interceptor binding types "
-"using direct child elements of the bean declaration:"
-msgstr ""
-"Podemos declarar o escopo, tipo de puplicação (deployment type) e tipo de "
-"ligação de interceptador (interceptor binding types) com a utilização direta "
-"de elementos filhos na declaração do Web Bean:"
+msgid "We can declare the scope, deployment type and interceptor binding types using direct child elements of the bean declaration:"
+msgstr "Podemos declarar o escopo, tipo de puplicação (deployment type) e tipo de ligação de interceptador (interceptor binding types) com a utilização direta de elementos filhos na declaração do Web Bean:"
#. Tag: programlisting
#: xml.xml:85
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[<myapp:ShoppingCart>\n"
" <SessionScoped/>\n"
@@ -197,22 +128,20 @@
"</myapp:ShoppingCart>]]>"
msgstr ""
"<![CDATA[<myapp:ShoppingCart>\n"
-" <SessionScoped/>\n"
-" <myfwk:Transactional requiresNew=\"true\"/>\n"
-" <myfwk:Secure/>\n"
+" <SessionScoped/>\n"
+" <myfwk:Transactional requiresNew=\"true\"/>\n"
+" <myfwk:Secure/>\n"
"</myapp:ShoppingCart>]]>"
#. Tag: para
#: xml.xml:87
#, fuzzy, no-c-format
msgid "We use exactly the same approach to specify names and qualifiers:"
-msgstr ""
-"Utilizamos exatamente a mesma abordagem para especificar nomes e tipos de "
-"ligação:"
+msgstr "Utilizamos exatamente a mesma abordagem para especificar nomes e tipos de ligação:"
#. Tag: programlisting
#: xml.xml:89
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[<util:Date>\n"
" <Named>currentTime</Named>\n"
@@ -231,54 +160,48 @@
"</util:Date>]]>"
msgstr ""
"<![CDATA[<util:Date>\n"
-" <Named>currentTime</Named>\n"
+" <Named>currentTime</Named>\n"
"</util:Date>\n"
"\n"
"<util:Date>\n"
-" <SessionScoped/>\n"
-" <myapp:Login/>\n"
-" <Named>loginTime</Named>\n"
+" <SessionScoped/>\n"
+" <myapp:Login/>\n"
+" <Named>loginTime</Named>\n"
"</util:Date>\n"
"\n"
"<util:Date>\n"
-" <ApplicationScoped/>\n"
-" <myapp:SystemStart/>\n"
-" <Named>systemStartTime</Named>\n"
+" <ApplicationScoped/>\n"
+" <myapp:SystemStart/>\n"
+" <Named>systemStartTime</Named>\n"
"</util:Date>]]>"
#. Tag: para
#: xml.xml:91
#, fuzzy, no-c-format
-msgid ""
-"Where <literal>@Login</literal> and <literal>@SystemStart</literal> are "
-"qualifier annotations types."
-msgstr ""
-"Em que <literal>@Login</literal> e <literal>@SystemStart</literal> são "
-"anotações do tipo ligação."
+msgid "Where <literal>@Login</literal> and <literal>@SystemStart</literal> are qualifier annotations types."
+msgstr "Em que <literal>@Login</literal> e <literal>@SystemStart</literal> são anotações do tipo ligação."
#. Tag: programlisting
#: xml.xml:95
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[private @Inject Date currentTime;\n"
"private @Login Date loginTime;\n"
"private @SystemStart Date systemStartTime;]]>"
msgstr ""
-"<![CDATA[@Current Date currentTime;\n"
-"@Login Date loginTime;\n"
-"@SystemStart Date systemStartTime;]]>"
+"<![CDATA[private @Inject Date currentTime;\n"
+"private @Login Date loginTime;\n"
+"private @SystemStart Date systemStartTime;]]>"
#. Tag: para
#: xml.xml:97
#, fuzzy, no-c-format
msgid "As usual, a bean may support multiple qualifier types:"
-msgstr ""
-"Como é habitual, um Web Bean pode suportar múltiplos tipos de ligação "
-"(binding types):"
+msgstr "Como é habitual, um Web Bean pode suportar múltiplos tipos de ligação (binding types):"
#. Tag: programlisting
#: xml.xml:99
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[<myapp:AsynchronousChequePaymentProcessor>\n"
" <myapp:PayByCheque/>\n"
@@ -286,23 +209,19 @@
"</myapp:AsynchronousChequePaymentProcessor>]]>"
msgstr ""
"<![CDATA[<myapp:AsynchronousChequePaymentProcessor>\n"
-" <myapp:PayByCheque/>\n"
-" <myapp:Asynchronous/>\n"
+" <myapp:PayByCheque/>\n"
+" <myapp:Asynchronous/>\n"
"</myapp:AsynchronousChequePaymentProcessor>]]>"
#. Tag: para
#: xml.xml:101
#, fuzzy, no-c-format
-msgid ""
-"Interceptors and decorators are beans as well, so they may be declared just "
-"like any other bean:"
-msgstr ""
-"Interceptadores e Decoradores são simplesmente Web Beans. Assim, podem ser "
-"declarados como qualquer outro Web Bean:"
+msgid "Interceptors and decorators are beans as well, so they may be declared just like any other bean:"
+msgstr "Interceptadores e Decoradores são simplesmente Web Beans. Assim, podem ser declarados como qualquer outro Web Bean:"
#. Tag: programlisting
#: xml.xml:105
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[<myfwk:TransactionInterceptor>\n"
" <Interceptor/>\n"
@@ -310,8 +229,8 @@
"</myfwk:TransactionInterceptor>]]>"
msgstr ""
"<![CDATA[<myfwk:TransactionInterceptor>\n"
-" <Interceptor/>\n"
-" <myfwk:Transactional/>\n"
+" <Interceptor/>\n"
+" <myfwk:Transactional/>\n"
"</myfwk:TransactionInterceptor>]]>"
#. Tag: title
@@ -336,13 +255,11 @@
#: xml.xml:121
#, fuzzy, no-c-format
msgid "Weld lets us define a bean at an injection point. For example:"
-msgstr ""
-"Web Beans nos permite definir um Web Bean em um ponto de injeção. Por "
-"exemplo:"
+msgstr "Web Beans nos permite definir um Web Bean em um ponto de injeção. Por exemplo:"
#. Tag: programlisting
#: xml.xml:123
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[<myapp:System>\n"
" <ApplicationScoped/>\n"
@@ -356,43 +273,27 @@
"</myapp:System>]]>"
msgstr ""
"<![CDATA[<myapp:System>\n"
-" <ApplicationScoped/>\n"
-" <myapp:admin>\n"
-" <myapp:Name>\n"
-" <myapp:firstname>Gavin</myapp:firstname>\n"
-" <myapp:lastname>King</myapp:lastname>\n"
-" <myapp:email>gavin(a)hibernate.org</myapp:email>\n"
-" </myapp:Name>\n"
-" </myapp:admin>\n"
+" <ApplicationScoped/>\n"
+" <myapp:admin>\n"
+" <myapp:Name>\n"
+" <myapp:firstname>Gavin</myapp:firstname>\n"
+" <myapp:lastname>King</myapp:lastname>\n"
+" <myapp:email>gavin(a)hibernate.org</myapp:email>\n"
+" </myapp:Name>\n"
+" </myapp:admin>\n"
"</myapp:System>]]>"
#. Tag: para
#: xml.xml:125
#, fuzzy, no-c-format
-msgid ""
-"The <literal><Name></literal> element declares a bean of scope "
-"<literal>@Dependent</literal> and class <literal>Name</literal>, with a set "
-"of initial field values. This bean has a special, container-generated "
-"qualifier and is therefore injectable only to the specific injection point "
-"at which it is declared."
-msgstr ""
-"O elemento <literal><Name></literal> declara um Web Bean simples de "
-"escopo <literal>@Dependent</literal> e classe <literal>Name</literal>, com "
-"um conjunto inicial de valores para os campos. Esse Web Bean possui a "
-"especial, container-generated binding and is therefore injectable only to "
-"the specific injection point at which it is declared."
+msgid "The <literal><Name></literal> element declares a bean of scope <literal>@Dependent</literal> and class <literal>Name</literal>, with a set of initial field values. This bean has a special, container-generated qualifier and is therefore injectable only to the specific injection point at which it is declared."
+msgstr "O elemento <literal><Name></literal> declara um Web Bean simples de escopo <literal>@Dependent</literal> e classe <literal>Name</literal>, com um conjunto inicial de valores para os campos. Esse Web Bean possui a especial, container-generated binding and is therefore injectable only to the specific injection point at which it is declared."
#. Tag: para
#: xml.xml:131
#, fuzzy, no-c-format
-msgid ""
-"This simple but powerful feature allows the Weld XML format to be used to "
-"specify whole graphs of Java objects. It's not quite a full databinding "
-"solution, but it's close!"
-msgstr ""
-"Esse simples - mas poderoso - recurso permite que o formato XML do Web Beans "
-"seja utilizado para especificar grafos completos de objetos Java. Não é uma "
-"solução de ligação de dados (databinding) completa, mas está bem próxima!"
+msgid "This simple but powerful feature allows the Weld XML format to be used to specify whole graphs of Java objects. It's not quite a full databinding solution, but it's close!"
+msgstr "Esse simples - mas poderoso - recurso permite que o formato XML do Web Beans seja utilizado para especificar grafos completos de objetos Java. Não é uma solução de ligação de dados (databinding) completa, mas está bem próxima!"
#. Tag: title
#: xml.xml:139
@@ -403,25 +304,17 @@
#. Tag: para
#: xml.xml:141
#, fuzzy, no-c-format
-msgid ""
-"If we want our XML document format to be authored by people who aren't Java "
-"developers, or who don't have access to our code, we need to provide a "
-"schema. There's nothing specific to Weld about writing or using the schema."
-msgstr ""
-"Se desejamos que o formato do documento XML seja criado por pessoas que não "
-"são desenvolvedores Java, ou por pessoas que não têm acesso ao nosso código, "
-"precisamos fornecer um esquema (XML schema). Não há nada específico no Web "
-"Beans sobre escrever ou utilizar o esquema."
+msgid "If we want our XML document format to be authored by people who aren't Java developers, or who don't have access to our code, we need to provide a schema. There's nothing specific to Weld about writing or using the schema."
+msgstr "Se desejamos que o formato do documento XML seja criado por pessoas que não são desenvolvedores Java, ou por pessoas que não têm acesso ao nosso código, precisamos fornecer um esquema (XML schema). Não há nada específico no Web Beans sobre escrever ou utilizar o esquema."
#. Tag: programlisting
#: xml.xml:147
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<![CDATA[<beans xmlns=\"urn:java:javax.beans\"\n"
" xmlns:myapp=\"urn:java:com.mydomain.myapp\"\n"
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
-" xsi:schemaLocation=\"urn:java:javax.beans http://java.sun.com/jee/beans-"
-"1.0.xsd\n"
+" xsi:schemaLocation=\"urn:java:javax.beans http://java.sun.com/jee/beans-1.0.xsd\n"
" urn:java:com.mydomain.myapp http://mydomain.com/xsd/myapp-1.2.xsd\">\n"
"\n"
" <myapp:System>\n"
@@ -430,37 +323,28 @@
"\n"
"</beans>]]>"
msgstr ""
-"<![CDATA[<WebBeans xmlns=\"urn:java:javax.webbeans\"\n"
-" xmlns:myapp=\"urn:java:com.mydomain.myapp\"\n"
-" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
-" xsi:schemaLocation=\"urn:java:javax.webbeans http://java.sun.com/"
-"jee/web-beans-1.0.xsd\n"
-" urn:java:com.mydomain.myapp http://mydomain."
-"com/xsd/myapp-1.2.xsd\">\n"
+"<![CDATA[<beans xmlns=\"urn:java:javax.beans\"\n"
+" xmlns:myapp=\"urn:java:com.mydomain.myapp\"\n"
+" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+" xsi:schemaLocation=\"urn:java:javax.beans http://java.sun.com/jee/beans-1.0.xsd\n"
+" urn:java:com.mydomain.myapp http://mydomain.com/xsd/myapp-1.2.xsd\">\n"
"\n"
-" <myapp:System>\n"
-" ...\n"
-" </myapp:System>\n"
+" <myapp:System>\n"
+" ...\n"
+" </myapp:System>\n"
"\n"
-"</WebBeans>]]>"
+"</beans>]]>"
#. Tag: para
#: xml.xml:149
#, fuzzy, no-c-format
-msgid ""
-"Writing an XML schema is quite tedious. Therefore, the Weld project will "
-"provide a tool which automatically generates the XML schema from compiled "
-"Java code."
-msgstr ""
-"Escrever um esquema XML (XML schema) é um tanto tedioso. Tod via, o projeto "
-"Web Beans RI fornecerá uma ferramenta que automaticamente gera o esquema "
-"XML (XML schema), a partir do código da classe Java compilada."
+msgid "Writing an XML schema is quite tedious. Therefore, the Weld project will provide a tool which automatically generates the XML schema from compiled Java code."
+msgstr "Escrever um esquema XML (XML schema) é um tanto tedioso. Tod via, o projeto Web Beans RI fornecerá uma ferramenta que automaticamente gera o esquema XML (XML schema), a partir do código da classe Java compilada."
#~ msgid "In either of these cases, Web Beans gives us two options:"
#~ msgstr "Em ambos os casos, We Beans nos dá duas opções:"
-
#~ msgid "write a producer method, or"
#~ msgstr "escrever um método produtor (producer method), ou"
-
#~ msgid "declare the Web Bean using XML."
#~ msgstr "declarar um Web Bean utilizando XML."
+
14 years, 11 months
Weld SVN: r5361 - in core/trunk/tests/src/test: java/org/jboss/weld/tests/decorators/generic and 1 other directories.
by weld-commits@lists.jboss.org
Author: marius.bogoevici
Date: 2009-12-19 00:09:55 -0500 (Sat, 19 Dec 2009)
New Revision: 5361
Added:
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/StringPartialDecorator.java
Removed:
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/AnotherPartialDecorator.java
Modified:
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/decoratedTypes/PartialDecoratorTest.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/PartialDecorator.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/PartialDecoratorTest.java
core/trunk/tests/src/test/resources/org/jboss/weld/tests/decorators/generic/beans.xml
Log:
Enabling unit tests for WELD-333.
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/decoratedTypes/PartialDecoratorTest.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/decoratedTypes/PartialDecoratorTest.java 2009-12-19 04:53:36 UTC (rev 5360)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/decoratedTypes/PartialDecoratorTest.java 2009-12-19 05:09:55 UTC (rev 5361)
@@ -30,7 +30,7 @@
public class PartialDecoratorTest extends AbstractWeldTest
{
- @Test(groups = "broken")
+ @Test
public void testDecoratorDoesNotDecorateOutsideDecoratedTypes()
{
TestBean testBean = getCurrentManager().getInstanceByType(TestBean.class);
Deleted: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/AnotherPartialDecorator.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/AnotherPartialDecorator.java 2009-12-19 04:53:36 UTC (rev 5360)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/AnotherPartialDecorator.java 2009-12-19 05:09:55 UTC (rev 5361)
@@ -1,41 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright <Year>, Red Hat, Inc. and/or its affiliates, and individual
- * contributors by the @authors tag. See the copyright.txt in the
- * distribution for a full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.jboss.weld.tests.decorators.generic;
-
-import javax.decorator.Decorator;
-import javax.decorator.Delegate;
-import javax.inject.Inject;
-
-/**
- * @author Marius Bogoevici
- */
-@Decorator
-public class AnotherPartialDecorator implements Decorated<String>
-{
- @Inject
- @Delegate
- GenericBean<String> delegate;
-
- static boolean invoked = true;
-
- public String decoratedEcho(String parameter)
- {
- invoked = true;
- return delegate.decoratedEcho(parameter);
- }
-}
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/PartialDecorator.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/PartialDecorator.java 2009-12-19 04:53:36 UTC (rev 5360)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/PartialDecorator.java 2009-12-19 05:09:55 UTC (rev 5361)
@@ -30,9 +30,9 @@
@Inject @Delegate GenericBean<T> delegate;
- static boolean decoratedInvoked;
+ static boolean decoratedInvoked = false;
- static boolean notDecoratedInvoked;
+ static boolean notDecoratedInvoked = false;
public T decoratedEcho(T parameter)
{
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/PartialDecoratorTest.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/PartialDecoratorTest.java 2009-12-19 04:53:36 UTC (rev 5360)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/PartialDecoratorTest.java 2009-12-19 05:09:55 UTC (rev 5361)
@@ -30,7 +30,7 @@
public class PartialDecoratorTest extends AbstractWeldTest
{
- @Test(groups = "broken")
+ @Test
public void testDecoratorDoesNotDecorateOutsideDecoratedTypes()
{
TestBean testBean = getCurrentManager().getInstanceByType(TestBean.class);
@@ -38,7 +38,8 @@
assert PartialDecorator.decoratedInvoked;
assert !PartialDecorator.notDecoratedInvoked;
- assert AnotherPartialDecorator.invoked;
+ assert StringPartialDecorator.invoked;
+ assert !IntegerPartialDecorator.invoked;
assert GenericBean.decoratedInvoked;
assert GenericBean.notDecoratedInvoked;
}
Copied: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/StringPartialDecorator.java (from rev 5360, core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/AnotherPartialDecorator.java)
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/StringPartialDecorator.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/StringPartialDecorator.java 2009-12-19 05:09:55 UTC (rev 5361)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright <Year>, Red Hat, Inc. and/or its affiliates, and individual
+ * contributors by the @authors tag. See the copyright.txt in the
+ * distribution for a full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.jboss.weld.tests.decorators.generic;
+
+import javax.decorator.Decorator;
+import javax.decorator.Delegate;
+import javax.inject.Inject;
+
+/**
+ * @author Marius Bogoevici
+ */
+@Decorator
+public class StringPartialDecorator implements Decorated<String>
+{
+ @Inject
+ @Delegate
+ GenericBean<String> delegate;
+
+ static boolean invoked = false;
+
+ public String decoratedEcho(String parameter)
+ {
+ invoked = true;
+ return delegate.decoratedEcho(parameter);
+ }
+}
Modified: core/trunk/tests/src/test/resources/org/jboss/weld/tests/decorators/generic/beans.xml
===================================================================
--- core/trunk/tests/src/test/resources/org/jboss/weld/tests/decorators/generic/beans.xml 2009-12-19 04:53:36 UTC (rev 5360)
+++ core/trunk/tests/src/test/resources/org/jboss/weld/tests/decorators/generic/beans.xml 2009-12-19 05:09:55 UTC (rev 5361)
@@ -1,6 +1,6 @@
<beans>
<decorators>
<decorator>org.jboss.weld.tests.decorators.generic.PartialDecorator</decorator>
- <decorator>org.jboss.weld.tests.decorators.generic.AnotherPartialDecorator</decorator>
+ <decorator>org.jboss.weld.tests.decorators.generic.StringPartialDecorator</decorator>
</decorators>
</beans>
\ No newline at end of file
14 years, 11 months
Weld SVN: r5360 - in core/trunk: impl/src/main/java/org/jboss/weld/bean/proxy and 10 other directories.
by weld-commits@lists.jboss.org
Author: marius.bogoevici
Date: 2009-12-18 23:53:36 -0500 (Fri, 18 Dec 2009)
New Revision: 5360
Added:
core/trunk/impl/src/main/java/org/jboss/weld/bean/CustomDecoratorWrapper.java
core/trunk/impl/src/main/java/org/jboss/weld/bean/WeldDecorator.java
core/trunk/impl/src/main/java/org/jboss/weld/util/Deployers.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/Window.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/WindowImpl.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/CustomDecoratorDeploymentObserver.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/CustomWindowFrame.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/InnerWindowFrame.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/OuterWindowFrame.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/Window.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/WindowImpl.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/AnotherPartialDecorator.java
Removed:
core/trunk/impl/src/main/java/org/jboss/weld/bean/AnnotatedItemProvidingDecoratorWrapper.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/Window.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/AfterBeanDiscoveryObserver.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/CustomFrame.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/InnerFrame.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/OuterFrame.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/Window.java
Modified:
core/trunk/impl/src/main/java/org/jboss/weld/bean/DecoratorImpl.java
core/trunk/impl/src/main/java/org/jboss/weld/bean/ManagedBean.java
core/trunk/impl/src/main/java/org/jboss/weld/bean/proxy/DecoratorProxyMethodHandler.java
core/trunk/impl/src/main/java/org/jboss/weld/bootstrap/events/AfterBeanDiscoveryImpl.java
core/trunk/jboss-tck-runner/src/test/resources/tck-tests.xml
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/SimpleDecorator1.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/SimpleDecorator2.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/AbstractDecoratorTestHelper.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithConstructorInjectedDelegate.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithConstructorInjectedDelegateAndAbstractMethod.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithFieldInjectedDelegate.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithFieldInjectedDelegateAndAbstractMethod.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithFieldInjectedDelegateAndSelfInvokedAbstractMethod.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithInitializerMethodInjectedDelegate.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithInitializerMethodInjectedDelegateAndAbstractMethod.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorTest.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorWithAbstractMethodAndInitializerMethodTest.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorWithAbstractMethodTest.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorWithCallToItselfTest.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorWithConstructorTest.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorWithInitializerMethodTest.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/CustomDecorator.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/CustomDecoratorTest.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/PartialDecoratorTest.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/interceptors/simple/SimpleDecorator.java
core/trunk/tests/src/test/resources/org/jboss/weld/tests/decorators/custom/beans-custom-only.xml
core/trunk/tests/src/test/resources/org/jboss/weld/tests/decorators/custom/beans.xml
core/trunk/tests/src/test/resources/org/jboss/weld/tests/decorators/custom/javax.enterprise.inject.spi.Extension
core/trunk/tests/src/test/resources/org/jboss/weld/tests/decorators/generic/beans.xml
Log:
WELD-333. Only methods defined on decorated types are decorated.
Deleted: core/trunk/impl/src/main/java/org/jboss/weld/bean/AnnotatedItemProvidingDecoratorWrapper.java
===================================================================
--- core/trunk/impl/src/main/java/org/jboss/weld/bean/AnnotatedItemProvidingDecoratorWrapper.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/impl/src/main/java/org/jboss/weld/bean/AnnotatedItemProvidingDecoratorWrapper.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -1,60 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright <Year>, Red Hat, Inc. and/or its affiliates, and individual
- * contributors by the @authors tag. See the copyright.txt in the
- * distribution for a full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.jboss.weld.bean;
-
-import javax.enterprise.inject.spi.Decorator;
-
-import org.jboss.weld.BeanManagerImpl;
-import org.jboss.weld.introspector.WeldClass;
-import org.jboss.weld.resources.ClassTransformer;
-
-/**
- * A wrapper for a decorated instance. Allows to enhance custom decorators with metadata
- * about the WeldClass at deployment time.
- *
- * @author Marius Bogoevici
- */
-public class AnnotatedItemProvidingDecoratorWrapper extends ForwardingDecorator<Object>
-{
- private Decorator<Object> delegate;
- private WeldClass<?> annotatedItem;
-
- public static AnnotatedItemProvidingDecoratorWrapper of(Decorator<?> delegate, BeanManagerImpl beanManager)
- {
- return new AnnotatedItemProvidingDecoratorWrapper((Decorator<Object>) delegate, beanManager);
- }
-
- private AnnotatedItemProvidingDecoratorWrapper(Decorator<Object> delegate, BeanManagerImpl beanManager)
- {
- this.delegate = delegate;
- ClassTransformer transformer = beanManager.getServices().get(ClassTransformer.class);
- Class<?> beanClass = delegate.getBeanClass();
- this.annotatedItem = transformer.loadClass(beanClass);
- }
-
- @Override
- protected Decorator<Object> delegate()
- {
- return delegate;
- }
-
- public WeldClass<?> getAnnotatedItem()
- {
- return annotatedItem;
- }
-}
Copied: core/trunk/impl/src/main/java/org/jboss/weld/bean/CustomDecoratorWrapper.java (from rev 5312, core/trunk/impl/src/main/java/org/jboss/weld/bean/AnnotatedItemProvidingDecoratorWrapper.java)
===================================================================
--- core/trunk/impl/src/main/java/org/jboss/weld/bean/CustomDecoratorWrapper.java (rev 0)
+++ core/trunk/impl/src/main/java/org/jboss/weld/bean/CustomDecoratorWrapper.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -0,0 +1,73 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright <Year>, Red Hat, Inc. and/or its affiliates, and individual
+ * contributors by the @authors tag. See the copyright.txt in the
+ * distribution for a full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.jboss.weld.bean;
+
+import javax.enterprise.inject.spi.Decorator;
+
+import org.jboss.weld.BeanManagerImpl;
+import org.jboss.weld.introspector.MethodSignature;
+import org.jboss.weld.introspector.WeldClass;
+import org.jboss.weld.resources.ClassTransformer;
+import org.jboss.weld.util.Deployers;
+
+import java.util.Set;
+
+/**
+ * A wrapper for a decorated instance. Allows to enhance custom decorators with metadata
+ * about the WeldClass at deployment time.
+ *
+ * @author Marius Bogoevici
+ */
+public class CustomDecoratorWrapper extends ForwardingDecorator<Object> implements WeldDecorator<Object>
+{
+ private Decorator<Object> delegate;
+ private WeldClass<?> annotatedItem;
+
+ private Set<MethodSignature> decoratedMethodSignatures;
+
+ public static CustomDecoratorWrapper of(Decorator<?> delegate, BeanManagerImpl beanManager)
+ {
+ return new CustomDecoratorWrapper((Decorator<Object>) delegate, beanManager);
+ }
+
+ private CustomDecoratorWrapper(Decorator<Object> delegate, BeanManagerImpl beanManager)
+ {
+ this.delegate = delegate;
+ ClassTransformer transformer = beanManager.getServices().get(ClassTransformer.class);
+ Class<?> beanClass = delegate.getBeanClass();
+ this.annotatedItem = transformer.loadClass(beanClass);
+ this.decoratedMethodSignatures = Deployers.getDecoratedMethodSignatures(beanManager, delegate.getDecoratedTypes());
+ }
+
+ @Override
+ protected Decorator<Object> delegate()
+ {
+ return delegate;
+ }
+
+ public WeldClass<?> getAnnotatedItem()
+ {
+ return annotatedItem;
+ }
+
+ public Set<MethodSignature> getDecoratedMethodSignatures()
+ {
+ return decoratedMethodSignatures;
+ }
+
+}
Modified: core/trunk/impl/src/main/java/org/jboss/weld/bean/DecoratorImpl.java
===================================================================
--- core/trunk/impl/src/main/java/org/jboss/weld/bean/DecoratorImpl.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/impl/src/main/java/org/jboss/weld/bean/DecoratorImpl.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -23,7 +23,6 @@
import static org.jboss.weld.logging.messages.BeanMessage.DELEGATE_TYPE_PARAMETER_MISMATCH;
import static org.jboss.weld.logging.messages.BeanMessage.NO_DELEGATE_FOR_DECORATOR;
import static org.jboss.weld.logging.messages.BeanMessage.TOO_MANY_DELEGATES_FOR_DECORATOR;
-import static org.jboss.weld.logging.messages.BeanMessage.UNABLE_TO_PROCESS;
import java.io.Serializable;
import java.lang.annotation.Annotation;
@@ -43,7 +42,6 @@
import org.jboss.weld.BeanManagerImpl;
import org.jboss.weld.DefinitionException;
-import org.jboss.weld.ForbiddenStateException;
import org.jboss.weld.bean.proxy.AbstractDecoratorMethodHandler;
import org.jboss.weld.bootstrap.BeanDeployerEnvironment;
import org.jboss.weld.injection.MethodInjectionPoint;
@@ -56,16 +54,19 @@
import org.jboss.weld.introspector.jlr.WeldClassImpl;
import org.jboss.weld.introspector.jlr.WeldConstructorImpl;
import org.jboss.weld.resources.ClassTransformer;
+import org.jboss.weld.util.Deployers;
import org.jboss.weld.util.Proxies;
import org.jboss.weld.util.reflection.Reflections;
-public class DecoratorImpl<T> extends ManagedBean<T> implements Decorator<T>
+public class DecoratorImpl<T> extends ManagedBean<T> implements WeldDecorator<T>
{
private WeldClass<?> annotatedDelegateItem;
private WeldClass<T> proxyClassForAbstractDecorators;
private WeldConstructor<T> constructorForAbstractDecorator;
+ private Set<MethodSignature> decoratedMethodSignatures;
+
public static <T> Decorator<T> wrap(final Decorator<T> decorator)
{
return new ForwardingDecorator<T>()
@@ -110,6 +111,7 @@
private Type delegateType;
private Set<Type> delegateTypes;
private Set<Type> decoratedTypes;
+ private HashSet<WeldClass<?>> annotatedDecoratedTypes;
protected DecoratorImpl(WeldClass<T> type, BeanManagerImpl manager)
{
@@ -136,6 +138,8 @@
this.decoratedTypes = new HashSet<Type>();
this.decoratedTypes.addAll(getAnnotatedItem().getInterfaceOnlyFlattenedTypeHierarchy());
this.decoratedTypes.remove(Serializable.class);
+
+ this.decoratedMethodSignatures = Deployers.getDecoratedMethodSignatures(getManager(), this.decoratedTypes);
}
protected void initDelegateInjectionPoint()
@@ -203,11 +207,6 @@
{
throw new DefinitionException(DELEGATE_MUST_SUPPORT_EVERY_DECORATED_TYPE, decoratedType, this );
}
- else
- {
- throw new ForbiddenStateException(UNABLE_TO_PROCESS, decoratedType);
- }
-
}
}
annotatedDelegateItem = WeldClassImpl.of(delegateInjectionPoint.getJavaClass(), manager.getServices().get(ClassTransformer.class));
@@ -307,4 +306,8 @@
return super.getDescription("decorator");
}
+ public Set<MethodSignature> getDecoratedMethodSignatures()
+ {
+ return decoratedMethodSignatures;
+ }
}
Modified: core/trunk/impl/src/main/java/org/jboss/weld/bean/ManagedBean.java
===================================================================
--- core/trunk/impl/src/main/java/org/jboss/weld/bean/ManagedBean.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/impl/src/main/java/org/jboss/weld/bean/ManagedBean.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -388,9 +388,9 @@
DecoratorImpl<?> decoratorBean = (DecoratorImpl<?>) decorator;
decoratorClass = decoratorBean.getAnnotatedItem();
}
- else if (decorator instanceof AnnotatedItemProvidingDecoratorWrapper)
+ else if (decorator instanceof CustomDecoratorWrapper)
{
- decoratorClass = ((AnnotatedItemProvidingDecoratorWrapper) decorator).getAnnotatedItem();
+ decoratorClass = ((CustomDecoratorWrapper) decorator).getAnnotatedItem();
}
else
{
Added: core/trunk/impl/src/main/java/org/jboss/weld/bean/WeldDecorator.java
===================================================================
--- core/trunk/impl/src/main/java/org/jboss/weld/bean/WeldDecorator.java (rev 0)
+++ core/trunk/impl/src/main/java/org/jboss/weld/bean/WeldDecorator.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual
+ * contributors by the @authors tag. See the copyright.txt in the
+ * distribution for a full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.jboss.weld.bean;
+
+import java.util.Set;
+
+import javax.enterprise.inject.spi.Decorator;
+
+import org.jboss.weld.introspector.MethodSignature;
+import org.jboss.weld.introspector.WeldClass;
+
+
+
+/**
+ * Sub-interface of {@link Decorator} that contains metadata information about Weld-deployed
+ * Decorators (including custom decorators).
+ *
+ * @author Marius Bogoevici
+ */
+public interface WeldDecorator<T> extends Decorator<T>
+{
+
+ WeldClass<?> getAnnotatedItem();
+
+ Set<MethodSignature> getDecoratedMethodSignatures();
+
+}
Modified: core/trunk/impl/src/main/java/org/jboss/weld/bean/proxy/DecoratorProxyMethodHandler.java
===================================================================
--- core/trunk/impl/src/main/java/org/jboss/weld/bean/proxy/DecoratorProxyMethodHandler.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/impl/src/main/java/org/jboss/weld/bean/proxy/DecoratorProxyMethodHandler.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -25,8 +25,7 @@
import org.jboss.interceptor.util.proxy.TargetInstanceProxyMethodHandler;
import org.jboss.weld.ForbiddenStateException;
-import org.jboss.weld.bean.AnnotatedItemProvidingDecoratorWrapper;
-import org.jboss.weld.bean.DecoratorImpl;
+import org.jboss.weld.bean.WeldDecorator;
import org.jboss.weld.introspector.MethodSignature;
import org.jboss.weld.introspector.WeldMethod;
import org.jboss.weld.introspector.jlr.MethodSignatureImpl;
@@ -81,26 +80,23 @@
MethodSignature methodSignature = new MethodSignatureImpl(method);
for (SerializableContextualInstance<Decorator<Object>, Object> beanInstance : decoratorInstances)
{
- WeldMethod<?, ?> decoratorMethod;
-
- if (beanInstance.getContextual().get() instanceof DecoratorImpl<?>)
+ if (beanInstance.getContextual().get() instanceof WeldDecorator<?>)
{
- decoratorMethod = ((DecoratorImpl<?>)beanInstance.getContextual().get()).getAnnotatedItem().getWeldMethod(methodSignature);
+ WeldDecorator<?> decorator = (WeldDecorator<?>) beanInstance.getContextual().get();
+ if (decorator.getDecoratedMethodSignatures().contains(methodSignature))
+ {
+ WeldMethod<?, ?> decoratorMethod = decorator.getAnnotatedItem().getWeldMethod(methodSignature);
+ if (decoratorMethod != null)
+ {
+ return decoratorMethod.invokeOnInstance(beanInstance.getInstance(), args);
+ }
+ }
}
- else if (beanInstance.getContextual().get() instanceof AnnotatedItemProvidingDecoratorWrapper)
- {
- decoratorMethod = ((AnnotatedItemProvidingDecoratorWrapper)beanInstance.getContextual().get()).getAnnotatedItem().getWeldMethod(methodSignature);
- }
else
{
throw new ForbiddenStateException(UNEXPECTED_UNWRAPPED_CUSTOM_DECORATOR, beanInstance.getContextual().get());
}
- if (decoratorMethod != null)
- {
- return decoratorMethod.invokeOnInstance(beanInstance.getInstance(), args);
- }
}
-
- return Reflections.invoke(method,getTargetInstance(), args);
+ return Reflections.invoke(method, getTargetInstance(), args);
}
}
Modified: core/trunk/impl/src/main/java/org/jboss/weld/bootstrap/events/AfterBeanDiscoveryImpl.java
===================================================================
--- core/trunk/impl/src/main/java/org/jboss/weld/bootstrap/events/AfterBeanDiscoveryImpl.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/impl/src/main/java/org/jboss/weld/bootstrap/events/AfterBeanDiscoveryImpl.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -28,7 +28,7 @@
import javax.enterprise.inject.spi.Decorator;
import org.jboss.weld.BeanManagerImpl;
-import org.jboss.weld.bean.AnnotatedItemProvidingDecoratorWrapper;
+import org.jboss.weld.bean.CustomDecoratorWrapper;
import org.jboss.weld.bootstrap.BeanDeployment;
import org.jboss.weld.bootstrap.spi.BeanDeploymentArchive;
import org.jboss.weld.bootstrap.spi.Deployment;
@@ -65,7 +65,7 @@
}
else if (bean instanceof Decorator)
{
- beanManager.addDecorator(AnnotatedItemProvidingDecoratorWrapper.of((Decorator<?>)bean, beanManager));
+ beanManager.addDecorator(CustomDecoratorWrapper.of((Decorator<?>)bean, beanManager));
}
else
{
Added: core/trunk/impl/src/main/java/org/jboss/weld/util/Deployers.java
===================================================================
--- core/trunk/impl/src/main/java/org/jboss/weld/util/Deployers.java (rev 0)
+++ core/trunk/impl/src/main/java/org/jboss/weld/util/Deployers.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -0,0 +1,69 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual
+ * contributors by the @authors tag. See the copyright.txt in the
+ * distribution for a full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.jboss.weld.util;
+
+import org.jboss.weld.BeanManagerImpl;
+import org.jboss.weld.ForbiddenStateException;
+import org.jboss.weld.introspector.MethodSignature;
+import org.jboss.weld.introspector.WeldClass;
+import org.jboss.weld.introspector.WeldMethod;
+
+import java.lang.reflect.ParameterizedType;
+import java.lang.reflect.Type;
+import java.util.HashSet;
+import java.util.Set;
+
+import static org.jboss.weld.logging.messages.BeanMessage.UNABLE_TO_PROCESS;
+
+/**
+ * Helper class for {@link org.jboss.deployers.spi.deployer.Deployer} inspections.
+ *
+ * @author Marius Bogoevici
+ */
+public class Deployers
+{
+ public static Set<MethodSignature> getDecoratedMethodSignatures(BeanManagerImpl beanManager, Set<Type> decoratedTypes)
+ {
+ Set<MethodSignature> methodSignatures = new HashSet<MethodSignature>();
+ for (Type type: decoratedTypes)
+ {
+ WeldClass<?> weldClass = getWeldClassOfDecoratedType(beanManager, type);
+ for (WeldMethod<?, ?> method : weldClass.getWeldMethods())
+ {
+ if (!methodSignatures.contains(method.getSignature()))
+ {
+ methodSignatures.add(method.getSignature());
+ }
+ }
+ }
+ return methodSignatures;
+ }
+
+ public static WeldClass<?> getWeldClassOfDecoratedType(BeanManagerImpl beanManager, Type type)
+ {
+ if (type instanceof Class<?>)
+ {
+ return (WeldClass<?>) beanManager.createAnnotatedType((Class<?>) type);
+ }
+ if (type instanceof ParameterizedType && (((ParameterizedType) type).getRawType() instanceof Class))
+ {
+ return (WeldClass<?>) beanManager.createAnnotatedType((Class<?>) ((ParameterizedType) type).getRawType());
+ }
+ throw new ForbiddenStateException(UNABLE_TO_PROCESS, type);
+ }
+}
Modified: core/trunk/jboss-tck-runner/src/test/resources/tck-tests.xml
===================================================================
--- core/trunk/jboss-tck-runner/src/test/resources/tck-tests.xml 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/jboss-tck-runner/src/test/resources/tck-tests.xml 2009-12-19 04:53:36 UTC (rev 5360)
@@ -27,11 +27,52 @@
<exclude name="testGetTimerMethod" />
</methods>
</class>
- <!-- T
+ <!--
The following tests are broken in TCK 1.0.0 and succeed because of a bug in the 1.0.0 version of the RI
- The fix for the 1.0.1 version of the RI requires version 1.1.0 of the TCK.
- The tests must be re-enabled once the 1.1.0 version of the TCK is used.
+ The fix for the 1.0.1 version of the RI requires version 1.0.1 or later of the TCK.
+ The tests must be re-enabled once CDI TCK 1.0.1 or later is used.
-->
+ <class name="org.jboss.jsr299.tck.tests.context.dependent.DependentContextTest">
+ <methods>
+ <exclude name="testDependentScopedDecoratorsAreDependentObjectsOfBean"/>
+ </methods>
+ </class>
+ <class name="org.jboss.jsr299.tck.tests.decorators.definition.DecoratorDefinitionTest">
+ <methods>
+ <exclude name="testDecoratorIsManagedBean"/>
+ </methods>
+ </class>
+ <class name="org.jboss.jsr299.tck.tests.decorators.definition.inject.delegateConstructor.DelegateInjectionPointTest">
+ <methods>
+ <exclude name="testDecoratorDelegateInjectionPoints"/>
+ </methods>
+ </class>
+ <class name="org.jboss.jsr299.tck.tests.decorators.definition.inject.delegateField.DelegateFieldInjectionPointTest">
+ <methods>
+ <exclude name="testDecoratorDelegateInjectionPoints"/>
+ </methods>
+ </class>
+ <class name="org.jboss.jsr299.tck.tests.decorators.definition.inject.delegateInitializerMethod.DelegateInjectionPointTest">
+ <methods>
+ <exclude name="testDecoratorDelegateInjectionPoints"/>
+ </methods>
+ </class>
+ <class name="org.jboss.jsr299.tck.tests.decorators.invocation.DecoratorInvocationTest">
+ <methods>
+ <exclude name="testChainedDecoratorInvocation"/>
+ <exclude name="testDecoratorInvocation"/>
+ </methods>
+ </class>
+ <class name="org.jboss.jsr299.tck.tests.decorators.invocation.observer.DecoratorInvocationTest">
+ <methods>
+ <exclude name="testDecoratorInvocation"/>
+ </methods>
+ </class>
+ <class name="org.jboss.jsr299.tck.tests.decorators.invocation.producer.method.DecoratorInvocationTest">
+ <methods>
+ <exclude name="testDecoratorInvocation"/>
+ </methods>
+ </class>
<class name="org.jboss.jsr299.tck.tests.implementation.producer.field.definition.ProducerFieldDefinitionTest">
<methods>
<exclude name="testApiTypeForArrayTypeReturn"/>
@@ -50,6 +91,11 @@
<exclude name="testStereotype"/>
</methods>
</class>
+ <class name="org.jboss.jsr299.tck.tests.lookup.injectionpoint.InjectionPointTest">
+ <methods>
+ <exclude name="testIsDelegate"/>
+ </methods>
+ </class>
<class name="org.jboss.jsr299.tck.tests.implementation.producer.method.definition.ProducerMethodDefinitionTest">
<methods>
<exclude name="testParameterizedReturnType"/>
@@ -61,7 +107,6 @@
<exclude name="testResolveByTypeWithTypeParameter"/>
</methods>
</class>
-
</classes>
</test>
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/SimpleDecorator1.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/SimpleDecorator1.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/SimpleDecorator1.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -31,7 +31,7 @@
* @version $Revision: 1.1 $
*/
@Decorator
-public class SimpleDecorator1
+public abstract class SimpleDecorator1 implements SimpleBean
{
@Inject @Delegate
SimpleBean delegate;
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/SimpleDecorator2.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/SimpleDecorator2.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/SimpleDecorator2.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -31,7 +31,7 @@
* @version $Revision: 1.1 $
*/
@Decorator
-public class SimpleDecorator2
+public abstract class SimpleDecorator2 implements SimpleBean
{
@Inject @Delegate
SimpleBean delegate;
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/AbstractDecoratorTestHelper.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/AbstractDecoratorTestHelper.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/AbstractDecoratorTestHelper.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -24,8 +24,8 @@
{
static void resetAll()
{
- Window.drawn = false;
- Window.moved = false;
+ WindowImpl.drawn = false;
+ WindowImpl.moved = false;
FrameWithFieldInjectedDelegate.drawn = false;
FrameWithFieldInjectedDelegateAndAbstractMethod.moved = false;
FrameWithFieldInjectedDelegateAndSelfInvokedAbstractMethod.moved = false;
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithConstructorInjectedDelegate.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithConstructorInjectedDelegate.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithConstructorInjectedDelegate.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -25,7 +25,7 @@
* @author <a href="mailto:mariusb@redhat.com">Marius Bogoevici</a>
*/
@Decorator
-public abstract class FrameWithConstructorInjectedDelegate
+public abstract class FrameWithConstructorInjectedDelegate implements Window
{
static boolean drawn;
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithConstructorInjectedDelegateAndAbstractMethod.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithConstructorInjectedDelegateAndAbstractMethod.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithConstructorInjectedDelegateAndAbstractMethod.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -25,7 +25,7 @@
* @author <a href="mailto:mariusb@redhat.com">Marius Bogoevici</a>
*/
@Decorator
-public abstract class FrameWithConstructorInjectedDelegateAndAbstractMethod
+public abstract class FrameWithConstructorInjectedDelegateAndAbstractMethod implements Window
{
Window window;
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithFieldInjectedDelegate.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithFieldInjectedDelegate.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithFieldInjectedDelegate.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -25,7 +25,7 @@
* @author <a href="mailto:mariusb@redhat.com">Marius Bogoevici</a>
*/
@Decorator
-public abstract class FrameWithFieldInjectedDelegate
+public abstract class FrameWithFieldInjectedDelegate implements Window
{
static boolean drawn;
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithFieldInjectedDelegateAndAbstractMethod.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithFieldInjectedDelegateAndAbstractMethod.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithFieldInjectedDelegateAndAbstractMethod.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -25,7 +25,7 @@
* @author <a href="mailto:mariusb@redhat.com">Marius Bogoevici</a>
*/
@Decorator
-public abstract class FrameWithFieldInjectedDelegateAndAbstractMethod
+public abstract class FrameWithFieldInjectedDelegateAndAbstractMethod implements Window
{
static boolean moved;
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithFieldInjectedDelegateAndSelfInvokedAbstractMethod.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithFieldInjectedDelegateAndSelfInvokedAbstractMethod.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithFieldInjectedDelegateAndSelfInvokedAbstractMethod.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -25,7 +25,7 @@
* @author <a href="mailto:mariusb@redhat.com">Marius Bogoevici</a>
*/
@Decorator
-public abstract class FrameWithFieldInjectedDelegateAndSelfInvokedAbstractMethod
+public abstract class FrameWithFieldInjectedDelegateAndSelfInvokedAbstractMethod implements Window
{
static boolean moved;
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithInitializerMethodInjectedDelegate.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithInitializerMethodInjectedDelegate.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithInitializerMethodInjectedDelegate.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -25,7 +25,7 @@
* @author <a href="mailto:mariusb@redhat.com">Marius Bogoevici</a>
*/
@Decorator
-public abstract class FrameWithInitializerMethodInjectedDelegate
+public abstract class FrameWithInitializerMethodInjectedDelegate implements Window
{
static boolean drawn;
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithInitializerMethodInjectedDelegateAndAbstractMethod.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithInitializerMethodInjectedDelegateAndAbstractMethod.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/FrameWithInitializerMethodInjectedDelegateAndAbstractMethod.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -25,7 +25,7 @@
* @author <a href="mailto:mariusb@redhat.com">Marius Bogoevici</a>
*/
@Decorator
-public abstract class FrameWithInitializerMethodInjectedDelegateAndAbstractMethod
+public abstract class FrameWithInitializerMethodInjectedDelegateAndAbstractMethod implements Window
{
static boolean moved;
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorTest.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorTest.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorTest.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -37,9 +37,9 @@
resetAll();
- Window window = getCurrentManager().getInstanceByType(Window.class);
+ Window window = getCurrentManager().getInstanceByType(WindowImpl.class);
window.draw();
- assert Window.drawn;
+ assert WindowImpl.drawn;
assert FrameWithFieldInjectedDelegate.drawn;
}
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorWithAbstractMethodAndInitializerMethodTest.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorWithAbstractMethodAndInitializerMethodTest.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorWithAbstractMethodAndInitializerMethodTest.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -35,17 +35,17 @@
public void testAbstractDecoratorApplied()
{
- Window window = getCurrentManager().getInstanceByType(Window.class);
+ Window window = getCurrentManager().getInstanceByType(WindowImpl.class);
resetAll();
window.draw();
- assert Window.drawn;
+ assert WindowImpl.drawn;
assert FrameWithFieldInjectedDelegate.drawn;
assert !FrameWithInitializerMethodInjectedDelegateAndAbstractMethod.moved;
resetAll();
window.move();
- assert Window.moved;
+ assert WindowImpl.moved;
assert !FrameWithFieldInjectedDelegate.drawn;
assert FrameWithInitializerMethodInjectedDelegateAndAbstractMethod.moved;
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorWithAbstractMethodTest.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorWithAbstractMethodTest.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorWithAbstractMethodTest.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -35,17 +35,17 @@
public void testAbstractDecoratorApplied()
{
- Window window = getCurrentManager().getInstanceByType(Window.class);
+ Window window = getCurrentManager().getInstanceByType(WindowImpl.class);
resetAll();
window.draw();
- assert Window.drawn;
+ assert WindowImpl.drawn;
assert FrameWithFieldInjectedDelegate.drawn;
assert !FrameWithFieldInjectedDelegateAndAbstractMethod.moved;
resetAll();
window.move();
- assert Window.moved;
+ assert WindowImpl.moved;
assert !FrameWithFieldInjectedDelegate.drawn;
assert FrameWithFieldInjectedDelegateAndAbstractMethod.moved;
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorWithCallToItselfTest.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorWithCallToItselfTest.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorWithCallToItselfTest.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -35,11 +35,11 @@
public void testAbstractDecoratorApplied()
{
- Window window = getCurrentManager().getInstanceByType(Window.class);
+ Window window = getCurrentManager().getInstanceByType(WindowImpl.class);
resetAll();
window.move();
- assert Window.drawn;
+ assert WindowImpl.drawn;
assert FrameWithFieldInjectedDelegate.drawn;
assert FrameWithFieldInjectedDelegateAndSelfInvokedAbstractMethod.moved;
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorWithConstructorTest.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorWithConstructorTest.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorWithConstructorTest.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -37,15 +37,15 @@
resetAll();
- Window window = getCurrentManager().getInstanceByType(Window.class);
+ Window window = getCurrentManager().getInstanceByType(WindowImpl.class);
window.draw();
- assert Window.drawn;
+ assert WindowImpl.drawn;
assert FrameWithConstructorInjectedDelegate.drawn;
resetAll();
window.move();
- assert !Window.moved;
- assert Window.drawn;
+ assert !WindowImpl.moved;
+ assert WindowImpl.drawn;
assert FrameWithConstructorInjectedDelegate.drawn;
assert FrameWithConstructorInjectedDelegateAndAbstractMethod.moved;
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorWithInitializerMethodTest.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorWithInitializerMethodTest.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/SimpleAbstractDecoratorWithInitializerMethodTest.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -37,9 +37,9 @@
resetAll();
- Window window = getCurrentManager().getInstanceByType(Window.class);
+ Window window = getCurrentManager().getInstanceByType(WindowImpl.class);
window.draw();
- assert Window.drawn;
+ assert WindowImpl.drawn;
assert FrameWithInitializerMethodInjectedDelegate.drawn;
}
Deleted: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/Window.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/Window.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/Window.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -1,38 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual
- * contributors by the @authors tag. See the copyright.txt in the
- * distribution for a full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.jboss.weld.tests.decorators.abstractDecorator;
-
-/**
- *
- * @author Marius Bogoevici
- */
-public class Window
-{
- static boolean drawn;
-
- static boolean moved;
-
- public void draw()
- {
- drawn = true;
- }
-
- public void move()
- {
- moved = true;
- }
-}
\ No newline at end of file
Added: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/Window.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/Window.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/Window.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -0,0 +1,28 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual
+ * contributors by the @authors tag. See the copyright.txt in the
+ * distribution for a full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.jboss.weld.tests.decorators.abstractDecorator;
+
+/**
+ * @author Marius Bogoevici
+ */
+public interface Window
+{
+ void draw();
+
+ void move();
+}
Copied: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/WindowImpl.java (from rev 5320, core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/Window.java)
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/WindowImpl.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/abstractDecorator/WindowImpl.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual
+ * contributors by the @authors tag. See the copyright.txt in the
+ * distribution for a full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.jboss.weld.tests.decorators.abstractDecorator;
+
+/**
+ *
+ * @author Marius Bogoevici
+ */
+public class WindowImpl implements Window
+{
+ static boolean drawn;
+
+ static boolean moved;
+
+ public void draw()
+ {
+ drawn = true;
+ }
+
+ public void move()
+ {
+ moved = true;
+ }
+}
\ No newline at end of file
Deleted: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/AfterBeanDiscoveryObserver.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/AfterBeanDiscoveryObserver.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/AfterBeanDiscoveryObserver.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -1,32 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright <Year>, Red Hat, Inc. and/or its affiliates, and individual
- * contributors by the @authors tag. See the copyright.txt in the
- * distribution for a full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.jboss.weld.tests.decorators.custom;
-
-import javax.enterprise.event.Observes;
-import javax.enterprise.inject.spi.AfterBeanDiscovery;
-import javax.enterprise.inject.spi.BeanManager;
-import javax.enterprise.inject.spi.Extension;
-
-
-public class AfterBeanDiscoveryObserver implements Extension
-{
- public void addDecorators(@Observes AfterBeanDiscovery event, BeanManager beanManager)
- {
- event.addBean(new CustomDecorator(beanManager));
- }
-}
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/CustomDecorator.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/CustomDecorator.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/CustomDecorator.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -70,7 +70,7 @@
public Set<Type> getTypes()
{
- return Collections.<Type>singleton(Window.class);
+ return Collections.<Type>singleton(CustomWindowFrame.class);
}
public Set<Annotation> getQualifiers()
@@ -96,7 +96,7 @@
public Class<?> getBeanClass()
{
- return CustomFrame.class;
+ return CustomWindowFrame.class;
}
public boolean isAlternative()
@@ -116,7 +116,7 @@
public Object create(CreationalContext<Object> creationalContext)
{
- CustomFrame customFrame = new CustomFrame();
+ CustomWindowFrame customFrame = new CustomWindowFrame();
customFrame.window = (Window) beanManager.getInjectableReference(injectionPoints.iterator().next(), creationalContext);
return customFrame;
}
@@ -129,12 +129,12 @@
class CustomInjectionPoint implements InjectionPoint
{
private final WeldClass<?> targetClass;
- private final WeldField<CustomFrame,?> windowField;
+ private final WeldField<CustomWindowFrame,?> windowField;
public CustomInjectionPoint()
{
ClassTransformer transformer = new ClassTransformer(new TypeStore());
- targetClass = WeldClassImpl.of(CustomFrame.class, transformer);
+ targetClass = WeldClassImpl.of(CustomWindowFrame.class, transformer);
windowField = targetClass.getDeclaredWeldField("window");
}
Copied: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/CustomDecoratorDeploymentObserver.java (from rev 5320, core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/AfterBeanDiscoveryObserver.java)
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/CustomDecoratorDeploymentObserver.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/CustomDecoratorDeploymentObserver.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright <Year>, Red Hat, Inc. and/or its affiliates, and individual
+ * contributors by the @authors tag. See the copyright.txt in the
+ * distribution for a full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.jboss.weld.tests.decorators.custom;
+
+import javax.enterprise.event.Observes;
+import javax.enterprise.inject.spi.AfterBeanDiscovery;
+import javax.enterprise.inject.spi.BeanManager;
+import javax.enterprise.inject.spi.Extension;
+import javax.enterprise.inject.spi.ProcessAnnotatedType;
+
+
+public class CustomDecoratorDeploymentObserver implements Extension
+{
+ public void addDecorators(@Observes AfterBeanDiscovery event, BeanManager beanManager)
+ {
+ event.addBean(new CustomDecorator(beanManager));
+ }
+
+ /**
+ * Must veto the custom decorator class, otherwise a bean will be created
+ */
+ public void vetoCustomDecorator(@Observes ProcessAnnotatedType event, BeanManager beanManager)
+ {
+ if (event.getAnnotatedType().getJavaClass().equals(CustomWindowFrame.class))
+ event.veto();
+ }
+}
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/CustomDecoratorTest.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/CustomDecoratorTest.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/CustomDecoratorTest.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -31,7 +31,6 @@
import org.jboss.weld.util.serviceProvider.PackageServiceLoaderFactory;
import org.jboss.weld.BeanManagerImpl;
-import org.testng.annotations.AfterClass;
import org.testng.annotations.Test;
/**
@@ -43,7 +42,7 @@
@Test
public void testCustomDecoratorAppliedByItself()
{
- MockBeanDeploymentArchive beanDeploymentArchive = new MockBeanDeploymentArchive("1", Window.class, CustomFrame.class, InnerFrame.class, OuterFrame.class );
+ MockBeanDeploymentArchive beanDeploymentArchive = new MockBeanDeploymentArchive("1", WindowImpl.class, CustomWindowFrame.class, InnerWindowFrame.class, OuterWindowFrame.class );
beanDeploymentArchive.setBeansXmlFiles(Arrays.asList(CustomDecoratorTest.class.getResource("beans-custom-only.xml")));
TestContainer testContainer = new TestContainer(new MockServletLifecycle(new MockDeployment(beanDeploymentArchive), beanDeploymentArchive));
testContainer.getLifecycle().initialize();
@@ -51,20 +50,20 @@
testContainer.getLifecycle().beginApplication();
BeanManagerImpl beanManager = testContainer.getBeanManager();
- Bean<Object> windowBean = (Bean<Object>) beanManager.getBeans(Window.class).iterator().next();
+ Bean<Object> windowBean = (Bean<Object>) beanManager.getBeans(WindowImpl.class).iterator().next();
CreationalContext<Object> creationalContext = beanManager.createCreationalContext(windowBean);
- Window window = (Window) windowBean.create(creationalContext);
+ WindowImpl window = (WindowImpl) windowBean.create(creationalContext);
window.draw();
assert window.isDrawn();
- assert CustomFrame.drawn;
+ assert CustomWindowFrame.drawn;
testContainer.stopContainer();
}
@Test
public void testCustomDecoratorAppliedWithWeldDecorators()
{
- MockBeanDeploymentArchive beanDeploymentArchive = new MockBeanDeploymentArchive("1", Window.class, CustomFrame.class, InnerFrame.class, OuterFrame.class );
+ MockBeanDeploymentArchive beanDeploymentArchive = new MockBeanDeploymentArchive("1", WindowImpl.class, CustomWindowFrame.class, InnerWindowFrame.class, OuterWindowFrame.class );
beanDeploymentArchive.setBeansXmlFiles(Arrays.asList(CustomDecoratorTest.class.getResource("beans.xml")));
TestContainer testContainer = new TestContainer(new MockServletLifecycle(new MockDeployment(beanDeploymentArchive), beanDeploymentArchive));
testContainer.getLifecycle().initialize();
@@ -72,15 +71,15 @@
testContainer.getLifecycle().beginApplication();
BeanManagerImpl beanManager = testContainer.getBeanManager();
- Bean<Object> windowBean = (Bean<Object>) beanManager.getBeans(Window.class).iterator().next();
+ Bean<Object> windowBean = (Bean<Object>) beanManager.getBeans(WindowImpl.class).iterator().next();
CreationalContext<Object> creationalContext = beanManager.createCreationalContext(windowBean);
- Window window = (Window) windowBean.create(creationalContext);
+ WindowImpl window = (WindowImpl) windowBean.create(creationalContext);
window.draw();
assert window.isDrawn();
- assert OuterFrame.drawn;
- assert InnerFrame.drawn;
- assert CustomFrame.drawn;
+ assert OuterWindowFrame.drawn;
+ assert InnerWindowFrame.drawn;
+ assert CustomWindowFrame.drawn;
testContainer.stopContainer();
}
Deleted: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/CustomFrame.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/CustomFrame.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/CustomFrame.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -1,17 +0,0 @@
-package org.jboss.weld.tests.decorators.custom;
-
-/**
- * @author Marius Bogoevici
- */
-public class CustomFrame
-{
- public static boolean drawn;
-
- Window window;
-
- public void draw()
- {
- window.draw();
- drawn = true;
- }
-}
Copied: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/CustomWindowFrame.java (from rev 5320, core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/CustomFrame.java)
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/CustomWindowFrame.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/CustomWindowFrame.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -0,0 +1,17 @@
+package org.jboss.weld.tests.decorators.custom;
+
+/**
+ * @author Marius Bogoevici
+ */
+public class CustomWindowFrame implements Window
+{
+ public static boolean drawn;
+
+ Window window;
+
+ public void draw()
+ {
+ window.draw();
+ drawn = true;
+ }
+}
Deleted: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/InnerFrame.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/InnerFrame.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/InnerFrame.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -1,40 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright <Year>, Red Hat, Inc. and/or its affiliates, and individual
- * contributors by the @authors tag. See the copyright.txt in the
- * distribution for a full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.jboss.weld.tests.decorators.custom;
-
-import javax.decorator.Decorator;
-import javax.decorator.Delegate;
-import javax.inject.Inject;
-
-/**
- * @author Marius Bogoevici
- */
-@Decorator
-public class InnerFrame
-{
- static boolean drawn = false;
-
- @Inject @Delegate Window window;
-
- void draw()
- {
- window.draw();
- drawn = true;
- }
-
-}
Copied: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/InnerWindowFrame.java (from rev 5320, core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/InnerFrame.java)
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/InnerWindowFrame.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/InnerWindowFrame.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright <Year>, Red Hat, Inc. and/or its affiliates, and individual
+ * contributors by the @authors tag. See the copyright.txt in the
+ * distribution for a full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.jboss.weld.tests.decorators.custom;
+
+import javax.decorator.Decorator;
+import javax.decorator.Delegate;
+import javax.inject.Inject;
+
+/**
+ * @author Marius Bogoevici
+ */
+@Decorator
+public class InnerWindowFrame implements Window
+{
+ static boolean drawn = false;
+
+ @Inject @Delegate
+ Window window;
+
+ public void draw()
+ {
+ window.draw();
+ drawn = true;
+ }
+
+}
Deleted: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/OuterFrame.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/OuterFrame.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/OuterFrame.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -1,40 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright <Year>, Red Hat, Inc. and/or its affiliates, and individual
- * contributors by the @authors tag. See the copyright.txt in the
- * distribution for a full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.jboss.weld.tests.decorators.custom;
-
-import javax.decorator.Decorator;
-import javax.decorator.Delegate;
-import javax.inject.Inject;
-
-/**
- * @author Marius Bogoevici
- */
-@Decorator
-public class OuterFrame
-{
- static boolean drawn = false;
-
- @Inject @Delegate Window window;
-
- void draw()
- {
- window.draw();
- drawn = true;
- }
-
-}
Copied: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/OuterWindowFrame.java (from rev 5320, core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/OuterFrame.java)
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/OuterWindowFrame.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/OuterWindowFrame.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright <Year>, Red Hat, Inc. and/or its affiliates, and individual
+ * contributors by the @authors tag. See the copyright.txt in the
+ * distribution for a full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.jboss.weld.tests.decorators.custom;
+
+import javax.decorator.Decorator;
+import javax.decorator.Delegate;
+import javax.inject.Inject;
+
+/**
+ * @author Marius Bogoevici
+ */
+@Decorator
+public class OuterWindowFrame implements Window
+{
+ static boolean drawn = false;
+
+ @Inject @Delegate
+ Window window;
+
+ public void draw()
+ {
+ window.draw();
+ drawn = true;
+ }
+
+}
Deleted: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/Window.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/Window.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/Window.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -1,36 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright <Year>, Red Hat, Inc. and/or its affiliates, and individual
- * contributors by the @authors tag. See the copyright.txt in the
- * distribution for a full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.jboss.weld.tests.decorators.custom;
-
-/**
- * @author Marius Bogoevici
- */
-public class Window
-{
- public boolean drawn = false;
-
- void draw()
- {
- drawn = true;
- }
-
- public boolean isDrawn()
- {
- return drawn;
- }
-}
Added: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/Window.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/Window.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/Window.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -0,0 +1,26 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual
+ * contributors by the @authors tag. See the copyright.txt in the
+ * distribution for a full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.jboss.weld.tests.decorators.custom;
+
+/**
+ * @author Marius Bogoevici
+ */
+public interface Window
+{
+ void draw();
+}
Copied: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/WindowImpl.java (from rev 5320, core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/Window.java)
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/WindowImpl.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/custom/WindowImpl.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual
+ * contributors by the @authors tag. See the copyright.txt in the
+ * distribution for a full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.jboss.weld.tests.decorators.custom;
+
+/**
+ * @author Marius Bogoevici
+ */
+public class WindowImpl implements Window
+{
+ public boolean drawn = false;
+
+ public void draw()
+ {
+ drawn = true;
+ }
+
+ public boolean isDrawn()
+ {
+ return drawn;
+ }
+}
Added: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/AnotherPartialDecorator.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/AnotherPartialDecorator.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/AnotherPartialDecorator.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright <Year>, Red Hat, Inc. and/or its affiliates, and individual
+ * contributors by the @authors tag. See the copyright.txt in the
+ * distribution for a full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.jboss.weld.tests.decorators.generic;
+
+import javax.decorator.Decorator;
+import javax.decorator.Delegate;
+import javax.inject.Inject;
+
+/**
+ * @author Marius Bogoevici
+ */
+@Decorator
+public class AnotherPartialDecorator implements Decorated<String>
+{
+ @Inject
+ @Delegate
+ GenericBean<String> delegate;
+
+ static boolean invoked = true;
+
+ public String decoratedEcho(String parameter)
+ {
+ invoked = true;
+ return delegate.decoratedEcho(parameter);
+ }
+}
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/PartialDecoratorTest.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/PartialDecoratorTest.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/generic/PartialDecoratorTest.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -38,6 +38,7 @@
assert PartialDecorator.decoratedInvoked;
assert !PartialDecorator.notDecoratedInvoked;
+ assert AnotherPartialDecorator.invoked;
assert GenericBean.decoratedInvoked;
assert GenericBean.notDecoratedInvoked;
}
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/interceptors/simple/SimpleDecorator.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/interceptors/simple/SimpleDecorator.java 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/interceptors/simple/SimpleDecorator.java 2009-12-19 04:53:36 UTC (rev 5360)
@@ -26,7 +26,7 @@
* @version $Revision: 1.1 $
*/
@Decorator
-public class SimpleDecorator
+public class SimpleDecorator implements SimpleBean
{
@Inject @Delegate
SimpleBean delegate;
Modified: core/trunk/tests/src/test/resources/org/jboss/weld/tests/decorators/custom/beans-custom-only.xml
===================================================================
--- core/trunk/tests/src/test/resources/org/jboss/weld/tests/decorators/custom/beans-custom-only.xml 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/resources/org/jboss/weld/tests/decorators/custom/beans-custom-only.xml 2009-12-19 04:53:36 UTC (rev 5360)
@@ -1,22 +1,5 @@
-<!--
- ~ JBoss, Home of Professional Open Source
- ~ Copyright <Year>, Red Hat, Inc. and/or its affiliates, and individual
- ~ contributors by the @authors tag. See the copyright.txt in the
- ~ distribution for a full listing of individual contributors.
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- -->
-
<beans>
<decorators>
- <decorator>org.jboss.weld.tests.decorators.custom.CustomFrame</decorator>
+ <decorator>org.jboss.weld.tests.decorators.custom.CustomWindowFrame</decorator>
</decorators>
</beans>
Modified: core/trunk/tests/src/test/resources/org/jboss/weld/tests/decorators/custom/beans.xml
===================================================================
--- core/trunk/tests/src/test/resources/org/jboss/weld/tests/decorators/custom/beans.xml 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/resources/org/jboss/weld/tests/decorators/custom/beans.xml 2009-12-19 04:53:36 UTC (rev 5360)
@@ -17,8 +17,8 @@
<beans>
<decorators>
- <decorator>org.jboss.weld.tests.decorators.custom.OuterFrame</decorator>
- <decorator>org.jboss.weld.tests.decorators.custom.CustomFrame</decorator>
- <decorator>org.jboss.weld.tests.decorators.custom.InnerFrame</decorator>
+ <decorator>org.jboss.weld.tests.decorators.custom.OuterWindowFrame</decorator>
+ <decorator>org.jboss.weld.tests.decorators.custom.CustomWindowFrame</decorator>
+ <decorator>org.jboss.weld.tests.decorators.custom.InnerWindowFrame</decorator>
</decorators>
</beans>
Modified: core/trunk/tests/src/test/resources/org/jboss/weld/tests/decorators/custom/javax.enterprise.inject.spi.Extension
===================================================================
--- core/trunk/tests/src/test/resources/org/jboss/weld/tests/decorators/custom/javax.enterprise.inject.spi.Extension 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/resources/org/jboss/weld/tests/decorators/custom/javax.enterprise.inject.spi.Extension 2009-12-19 04:53:36 UTC (rev 5360)
@@ -1 +1 @@
-org.jboss.weld.tests.decorators.custom.AfterBeanDiscoveryObserver
+org.jboss.weld.tests.decorators.custom.CustomDecoratorDeploymentObserver
Modified: core/trunk/tests/src/test/resources/org/jboss/weld/tests/decorators/generic/beans.xml
===================================================================
--- core/trunk/tests/src/test/resources/org/jboss/weld/tests/decorators/generic/beans.xml 2009-12-18 23:39:01 UTC (rev 5359)
+++ core/trunk/tests/src/test/resources/org/jboss/weld/tests/decorators/generic/beans.xml 2009-12-19 04:53:36 UTC (rev 5360)
@@ -1,5 +1,6 @@
<beans>
<decorators>
<decorator>org.jboss.weld.tests.decorators.generic.PartialDecorator</decorator>
+ <decorator>org.jboss.weld.tests.decorators.generic.AnotherPartialDecorator</decorator>
</decorators>
</beans>
\ No newline at end of file
14 years, 11 months
Weld SVN: r5359 - in cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests: decorators/definition/inject/delegateConstructor and 5 other directories.
by weld-commits@lists.jboss.org
Author: marius.bogoevici
Date: 2009-12-18 18:39:01 -0500 (Fri, 18 Dec 2009)
New Revision: 5359
Modified:
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/dependent/InteriorDecorator.java
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/inject/delegateConstructor/TimestampLogger.java
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/inject/delegateField/TimestampLogger.java
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/inject/delegateInitializerMethod/TimestampLogger.java
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/invocation/FooDecorator1.java
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/invocation/FooDecorator2.java
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/invocation/TimestampLogger.java
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/invocation/observer/ObserverDecorator.java
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/invocation/producer/method/ProducerDecorator.java
Log:
CDITCK-86. Make sure that Decorators actually implement the decorated interfaces.
Modified: cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/dependent/InteriorDecorator.java
===================================================================
--- cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/dependent/InteriorDecorator.java 2009-12-18 23:35:47 UTC (rev 5358)
+++ cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/dependent/InteriorDecorator.java 2009-12-18 23:39:01 UTC (rev 5359)
@@ -9,7 +9,7 @@
import javax.inject.Inject;
@Decorator
-class InteriorDecorator
+class InteriorDecorator implements Interior
{
@Inject @Delegate @Room Interior interior;
Modified: cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/inject/delegateConstructor/TimestampLogger.java
===================================================================
--- cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/inject/delegateConstructor/TimestampLogger.java 2009-12-18 23:35:47 UTC (rev 5358)
+++ cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/inject/delegateConstructor/TimestampLogger.java 2009-12-18 23:39:01 UTC (rev 5359)
@@ -26,7 +26,7 @@
*
*/
@Decorator
-public class TimestampLogger
+public class TimestampLogger implements Logger
{
public static final String PREFIX = TimestampLogger.class.getSimpleName();
Modified: cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/inject/delegateField/TimestampLogger.java
===================================================================
--- cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/inject/delegateField/TimestampLogger.java 2009-12-18 23:35:47 UTC (rev 5358)
+++ cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/inject/delegateField/TimestampLogger.java 2009-12-18 23:39:01 UTC (rev 5359)
@@ -26,7 +26,7 @@
*
*/
@Decorator
-public class TimestampLogger
+public class TimestampLogger implements Logger
{
public static final String PREFIX = TimestampLogger.class.getSimpleName();
Modified: cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/inject/delegateInitializerMethod/TimestampLogger.java
===================================================================
--- cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/inject/delegateInitializerMethod/TimestampLogger.java 2009-12-18 23:35:47 UTC (rev 5358)
+++ cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/inject/delegateInitializerMethod/TimestampLogger.java 2009-12-18 23:39:01 UTC (rev 5359)
@@ -26,7 +26,7 @@
*
*/
@Decorator
-public class TimestampLogger
+public class TimestampLogger implements Logger
{
public static final String PREFIX = TimestampLogger.class.getSimpleName();
Modified: cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/invocation/FooDecorator1.java
===================================================================
--- cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/invocation/FooDecorator1.java 2009-12-18 23:35:47 UTC (rev 5358)
+++ cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/invocation/FooDecorator1.java 2009-12-18 23:39:01 UTC (rev 5359)
@@ -26,7 +26,7 @@
*
*/
@Decorator
-public class FooDecorator1
+public class FooDecorator1 implements Foo
{
private static InjectionPoint injectionPoint;
Modified: cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/invocation/FooDecorator2.java
===================================================================
--- cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/invocation/FooDecorator2.java 2009-12-18 23:35:47 UTC (rev 5358)
+++ cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/invocation/FooDecorator2.java 2009-12-18 23:39:01 UTC (rev 5359)
@@ -26,7 +26,7 @@
*
*/
@Decorator
-public class FooDecorator2
+public class FooDecorator2 implements Foo
{
private static InjectionPoint injectionPoint;
Modified: cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/invocation/TimestampLogger.java
===================================================================
--- cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/invocation/TimestampLogger.java 2009-12-18 23:35:47 UTC (rev 5358)
+++ cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/invocation/TimestampLogger.java 2009-12-18 23:39:01 UTC (rev 5359)
@@ -26,7 +26,7 @@
*
*/
@Decorator
-public class TimestampLogger
+public class TimestampLogger implements Logger
{
public static final String PREFIX = TimestampLogger.class.getSimpleName();
Modified: cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/invocation/observer/ObserverDecorator.java
===================================================================
--- cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/invocation/observer/ObserverDecorator.java 2009-12-18 23:35:47 UTC (rev 5358)
+++ cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/invocation/observer/ObserverDecorator.java 2009-12-18 23:39:01 UTC (rev 5359)
@@ -26,7 +26,7 @@
*
*/
@Decorator
-public class ObserverDecorator
+public class ObserverDecorator implements Observer
{
@Inject @Delegate
Modified: cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/invocation/producer/method/ProducerDecorator.java
===================================================================
--- cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/invocation/producer/method/ProducerDecorator.java 2009-12-18 23:35:47 UTC (rev 5358)
+++ cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/invocation/producer/method/ProducerDecorator.java 2009-12-18 23:39:01 UTC (rev 5359)
@@ -26,7 +26,7 @@
*
*/
@Decorator
-public class ProducerDecorator
+public class ProducerDecorator implements Producer
{
@Inject @Delegate
14 years, 11 months
Weld SVN: r5358 - cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition.
by weld-commits@lists.jboss.org
Author: marius.bogoevici
Date: 2009-12-18 18:35:47 -0500 (Fri, 18 Dec 2009)
New Revision: 5358
Modified:
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/DecoratorDefinitionTest.java
Log:
CDITCK-87. Relax the test for the Decorators (if the bean implements a sub-interface of Decorator, the test based on getInterfaces() may fail).
Modified: cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/DecoratorDefinitionTest.java
===================================================================
--- cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/DecoratorDefinitionTest.java 2009-12-18 09:38:41 UTC (rev 5357)
+++ cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/DecoratorDefinitionTest.java 2009-12-18 23:35:47 UTC (rev 5358)
@@ -61,7 +61,7 @@
boolean implementsInterface = false;
for (Class<?> interfaze : decorators.get(0).getClass().getInterfaces())
{
- if (interfaze.equals(Decorator.class))
+ if (Decorator.class.isAssignableFrom(interfaze))
{
implementsInterface = true;
break;
14 years, 11 months
Weld SVN: r5357 - ftest/trunk.
by weld-commits@lists.jboss.org
Author: kpiwko(a)redhat.com
Date: 2009-12-18 04:38:41 -0500 (Fri, 18 Dec 2009)
New Revision: 5357
Added:
ftest/trunk/checkout.sh
Log:
WELD-349
Added: ftest/trunk/checkout.sh
===================================================================
--- ftest/trunk/checkout.sh (rev 0)
+++ ftest/trunk/checkout.sh 2009-12-18 09:38:41 UTC (rev 5357)
@@ -0,0 +1,94 @@
+#!/bin/sh
+
+usage()
+{
+cat << EOF
+usage: $0 options
+
+This script will check out Weld Functional Tests modules.
+
+OPTIONS:
+ -h Show this message
+ -d Destination directory, otherwise the PWD is used
+ -r Checkout in readonly mode from anonsvn
+ -v Be more verbose
+ -du Dont run SVN update if the module already exists
+EOF
+}
+
+DESTINATION=`pwd`
+READONLY=0
+VERBOSE=0
+SVNBASE=
+SVNARGS=
+SVNUPDATE=1
+
+MODULES="common login numberguess translator"
+
+while getopts “h:r:d:v” OPTION
+do
+ case $OPTION in
+ h)
+ usage
+ exit 1
+ ;;
+ d)
+ DESTINATION=$OPTARG
+ ;;
+ du)
+ SVNUPDATE=0
+ ;;
+ r)
+ READONLY=1
+ ;;
+ v)
+ VERBOSE=1
+ ;;
+ ?)
+ usage
+ exit
+ ;;
+ esac
+done
+
+if [ "$READONLY" -eq "1" ]
+then
+ SVNBASE="http://anonsvn.jboss.org/repos/weld"
+else
+ SVNBASE="https://svn.jboss.org/repos/weld"
+fi
+
+if [ "$VERBOSE" -eq "0" ]
+then
+ SVNARGS="--quiet"
+fi
+
+
+url="$SVNBASE/ftest/trunk"
+moduledir=$DESTINATION
+if [ -d $DESTINATION ]
+then
+ echo "Checking out to $DESTINATION"
+ echo "Updating ftest trunk"
+ svncmd="svn up $SVNARGS $url $DESTINATION"
+else
+ echo "Creating directory $DESTINATION to checkout to"
+ echo "Checking out ftest trunk"
+ svncmd="svn co $SVNARGS $url $DESTINATION"
+fi
+$svncmd
+
+for module in $MODULES
+do
+ url="$SVNBASE/ftest/$module/trunk"
+ moduledir=$DESTINATION/$module
+ if [ -d $moduledir ]
+ then
+ echo "Updating $module"
+ svncmd="svn up $SVNARGS $DESTINATION/$module"
+ else
+ echo "Checking out $module"
+ svncmd="svn co $SVNARGS $url $DESTINATION/$module"
+ fi
+ $svncmd
+done
Property changes on: ftest/trunk/checkout.sh
___________________________________________________________________
Name: svn:executable
+ *
14 years, 11 months
Weld SVN: r5356 - archetypes/tags/1.0.0-BETA1/jsf/servlet-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates.
by weld-commits@lists.jboss.org
Author: dan.j.allen
Date: 2009-12-17 19:08:58 -0500 (Thu, 17 Dec 2009)
New Revision: 5356
Modified:
archetypes/tags/1.0.0-BETA1/jsf/servlet-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml
Log:
title
Modified: archetypes/tags/1.0.0-BETA1/jsf/servlet-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml
===================================================================
--- archetypes/tags/1.0.0-BETA1/jsf/servlet-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml 2009-12-18 00:08:44 UTC (rev 5355)
+++ archetypes/tags/1.0.0-BETA1/jsf/servlet-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml 2009-12-18 00:08:58 UTC (rev 5356)
@@ -4,7 +4,7 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
- <title>JSF 2 and CDI Starter Application</title>
+ <title>CDI and JSF 2 Starter Application</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<h:outputStylesheet name="css/screen.css"/>
</h:head>
14 years, 11 months
Weld SVN: r5355 - archetypes/trunk/jsf/servlet-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates.
by weld-commits@lists.jboss.org
Author: dan.j.allen
Date: 2009-12-17 19:08:44 -0500 (Thu, 17 Dec 2009)
New Revision: 5355
Modified:
archetypes/trunk/jsf/servlet-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml
Log:
update title
Modified: archetypes/trunk/jsf/servlet-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml
===================================================================
--- archetypes/trunk/jsf/servlet-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml 2009-12-18 00:08:14 UTC (rev 5354)
+++ archetypes/trunk/jsf/servlet-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml 2009-12-18 00:08:44 UTC (rev 5355)
@@ -4,7 +4,7 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
- <title>Java EE 6 Starter Application</title>
+ <title>CDI and JSF 2 Starter Application</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<h:outputStylesheet name="css/screen.css"/>
</h:head>
14 years, 11 months
Weld SVN: r5354 - archetypes/tags/1.0.0-BETA1/jsf/servlet-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates.
by weld-commits@lists.jboss.org
Author: dan.j.allen
Date: 2009-12-17 19:08:14 -0500 (Thu, 17 Dec 2009)
New Revision: 5354
Modified:
archetypes/tags/1.0.0-BETA1/jsf/servlet-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml
Log:
update title
Modified: archetypes/tags/1.0.0-BETA1/jsf/servlet-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml
===================================================================
--- archetypes/tags/1.0.0-BETA1/jsf/servlet-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml 2009-12-17 23:09:29 UTC (rev 5353)
+++ archetypes/tags/1.0.0-BETA1/jsf/servlet-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml 2009-12-18 00:08:14 UTC (rev 5354)
@@ -4,7 +4,7 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
- <title>Java EE 6 Starter Application</title>
+ <title>JSF 2 and CDI Starter Application</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<h:outputStylesheet name="css/screen.css"/>
</h:head>
14 years, 11 months