Author: nico.ben
Date: 2008-12-19 18:40:34 -0500 (Fri, 19 Dec 2008)
New Revision: 612
Modified:
doc/trunk/reference/it-IT/Book_Info.po
doc/trunk/reference/it-IT/modules/decorators.po
doc/trunk/reference/it-IT/modules/ee.po
doc/trunk/reference/it-IT/modules/events.po
doc/trunk/reference/it-IT/modules/intro.po
doc/trunk/reference/it-IT/modules/next.po
Log:
WBRI-69: Italian translation for Web Beans
Modified: doc/trunk/reference/it-IT/Book_Info.po
===================================================================
--- doc/trunk/reference/it-IT/Book_Info.po 2008-12-19 22:42:07 UTC (rev 611)
+++ doc/trunk/reference/it-IT/Book_Info.po 2008-12-19 23:40:34 UTC (rev 612)
@@ -3,11 +3,11 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: master.xml \n"
+"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:29+0000\n"
-"PO-Revision-Date: 2008-12-19 20:29+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2008-12-20 00:05+0100\n"
+"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -17,40 +17,35 @@
#: Book_Info.xml:6
#, no-c-format
msgid "Introduction to Web Beans"
-msgstr ""
+msgstr "Introduzione a Web Beans"
#. Tag: subtitle
#: Book_Info.xml:7
#, no-c-format
-msgid ""
-"The new Java standard for dependency injection and contextual state "
-"management"
-msgstr ""
+msgid "The new Java standard for dependency injection and contextual state
management"
+msgstr "Il nuovo standard Java per la dependency injection e la gestione contestuale
dello stato"
#. Tag: author
#: Book_Info.xml:10
#, no-c-format
msgid "<firstname>Gavin</firstname>
<surname>King</surname>"
-msgstr ""
+msgstr "<firstname>Gavin</firstname>
<surname>King</surname>"
#. Tag: affiliation
#: Book_Info.xml:13
#, no-c-format
-msgid ""
-"<jobtitle>Web Beans (JSR-299) specification lead</jobtitle>
<orgname>Red Hat "
-"Middleware LLC</orgname>"
-msgstr ""
+msgid "<jobtitle>Web Beans (JSR-299) specification lead</jobtitle>
<orgname>Red Hat Middleware LLC</orgname>"
+msgstr "<jobtitle>Responsabile della specifica di Web Beans
(JSR-299)</jobtitle> <orgname>Red Hat Middleware LLC</orgname>"
#. Tag: author
#: Book_Info.xml:19
#, no-c-format
msgid "<firstname>Pete</firstname>
<surname>Muir</surname>"
-msgstr ""
+msgstr "<firstname>Pete</firstname>
<surname>Muir</surname>"
#. Tag: affiliation
#: Book_Info.xml:22
#, no-c-format
-msgid ""
-"<jobtitle>Web Beans (JSR-299) Reference Implementation lead</jobtitle>
"
-"<orgname>Red Hat Middleware LLC</orgname>"
-msgstr ""
+msgid "<jobtitle>Web Beans (JSR-299) Reference Implementation
lead</jobtitle> <orgname>Red Hat Middleware LLC</orgname>"
+msgstr "<jobtitle>Responsabile per l'implementazione della documentazione
Web Beans (JSR-299)</jobtitle> <orgname>Red Hat Middleware
LLC</orgname>"
+
Modified: doc/trunk/reference/it-IT/modules/decorators.po
===================================================================
--- doc/trunk/reference/it-IT/modules/decorators.po 2008-12-19 22:42:07 UTC (rev 611)
+++ doc/trunk/reference/it-IT/modules/decorators.po 2008-12-19 23:40:34 UTC (rev 612)
@@ -3,11 +3,11 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: master.xml \n"
+"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:26+0000\n"
-"PO-Revision-Date: 2008-12-19 20:26+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2008-12-20 00:39+0100\n"
+"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -17,38 +17,26 @@
#: decorators.xml:4
#, no-c-format
msgid "Decorators"
-msgstr ""
+msgstr "Decoratori"
#. Tag: para
#: decorators.xml:6
#, no-c-format
-msgid ""
-"Interceptors are a powerful way to capture and separate concerns which are "
-"<emphasis>orthogonal</emphasis> to the 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 and security. "
-"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 ""
+msgid "Interceptors are a powerful way to capture and separate concerns which are
<emphasis>orthogonal</emphasis> to the 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 and security. 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 "Gli interceptor sono un potente modo per catturare e separare i concern
(N.d.T. un concern è un particulare concetto o area di interesse) che sono
<emphasis>orthogonal</emphasis> al sistema tipo. Qualsiasi interceptor è
capace di intercettare le invocazioni di qualsiasi tipo Java. Questo li rende perfetti per
risolvere concern tecnici quali gestione delle transazioni e la sicurezza. Comunque, per
natura, gli interceptor non sono consapevoli dell'attuale semantica degli eventi che
intercettano. Quindi gli interceptor non sono il giusto strumento per separare i concern
di tipo business."
+# ...concerns that cut across many disparate types = ?
#. Tag: para
#: decorators.xml:14
#, 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. This makes decorators
"
-"a perfect tool for modeling some kinds of business concerns. It also means "
-"that a decorator doesn't have the generality of an interceptor. Decorators
"
-"aren't able to solve technical concerns that cut across many disparate
types."
-msgstr ""
+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. This makes decorators a perfect tool for
modeling some kinds of business concerns. It also means that a decorator doesn't have
the generality of an interceptor. Decorators aren't able to solve technical concerns
that cut across many disparate types."
+msgstr "Il contrario è vero per i <emphasis>decoratori</emphasis>. Un
decoratore intercetta le invocazioni solamente per una certa interfaccia Java, e quindi è
consapevole della semantica legata a questa. Ciò rende i decoratori uno strumento perfetto
per modellare alcuni tipi di concern di business. E significa pure che un decoratore non
ha la generalità di un interceptor. I decoratori non sono capaci di risolvere i concern
tecnici che agiscono per diversi tipi."
#. Tag: para
#: decorators.xml:22
#, no-c-format
msgid "Suppose we have an interface that represents accounts:"
-msgstr ""
+msgstr "Supponiamo di avere un'interfaccia che rappresenti degli account:"
#. Tag: programlisting
#: decorators.xml:24
@@ -61,24 +49,24 @@
" public void deposit(BigDecimal amount);\n"
"}]]>"
msgstr ""
+"<![CDATA[public interface Account {\n"
+" public BigDecimal getBalance();\n"
+" public User getOwner();\n"
+" public void withdraw(BigDecimal amount);\n"
+" public void deposit(BigDecimal amount);\n"
+"}]]>"
#. Tag: para
#: decorators.xml:26
#, no-c-format
-msgid ""
-"Several different Web 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 ""
+msgid "Several different Web 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 "Parecchi Web Beans del nostro sistema implementano l'interfaccia
<literal>Account</literal>. Abbiamo come comune requisito legale, per ogni
tipo di account, che le transazioni lunghe vengano registrate dal sistema in uno speciale
log. Questo è un lavoro perfetto per un decoratore."
#. Tag: para
#: decorators.xml:32
#, no-c-format
-msgid ""
-"A decorator is a simple Web Bean that implements the type it decorates and "
-"is annotated <literal>(a)Decorator</literal>."
-msgstr ""
+msgid "A decorator is a simple Web Bean that implements the type it decorates and is
annotated <literal>(a)Decorator</literal>."
+msgstr "Un decorator è un semplice Web Beans che implementa il tipo che decora ed è
annotato con <literal>(a)Decorator</literal>.\""
#. Tag: programlisting
#: decorators.xml:35
@@ -108,99 +96,106 @@
" \n"
"}]]>"
msgstr ""
+"<![CDATA[@Decorator\n"
+"public abstract class LargeTransactionDecorator \n"
+" implements Account {\n"
+" \n"
+" @Decorates Account account;\n"
+" \n"
+" @PersistenceContext EntityManager em;\n"
+" \n"
+" public void withdraw(BigDecimal amount) {\n"
+" account.withdraw(amount);\n"
+" if ( amount.compareTo(LARGE_AMOUNT)>0 ) {\n"
+" em.persist( new LoggedWithdrawl(amount) );\n"
+" }\n"
+" }\n"
+" \n"
+" public void deposit(BigDecimal amount);\n"
+" account.deposit(amount);\n"
+" if ( amount.compareTo(LARGE_AMOUNT)>0 ) {\n"
+" em.persist( new LoggedDeposit(amount) );\n"
+" }\n"
+" }\n"
+" \n"
+"}]]>"
#. Tag: para
#: decorators.xml:37
#, no-c-format
-msgid ""
-"Unlike other simple Web Beans, a decorator may be an abstract class. If "
-"there's nothing special the decorator needs to do for a particular method of
"
-"the decorated interface, you don't need to implement that method."
+msgid "Unlike other simple Web Beans, a decorator may be an abstract class. If
there's nothing special the decorator needs to do for a particular method of the
decorated interface, you don't need to implement that method."
msgstr ""
#. Tag: title
#: decorators.xml:43
#, no-c-format
msgid "Delegate attributes"
-msgstr ""
+msgstr "Attributi delegate"
#. Tag: para
#: decorators.xml:45
#, no-c-format
-msgid ""
-"All decorators have a <emphasis>delegate attribute</emphasis>. The type
and "
-"binding types of the delegate attribute determine which Web Beans the "
-"decorator is bound to. The delegate attribute type must implement or extend "
-"all interfaces implemented by the decorator."
+msgid "All decorators have a <emphasis>delegate attribute</emphasis>.
The type and binding types of the delegate attribute determine which Web Beans the
decorator is bound to. The delegate attribute type must implement or extend all interfaces
implemented by the decorator."
msgstr ""
#. Tag: para
#: decorators.xml:50
#, no-c-format
-msgid ""
-"This delegate attribute specifies that the decorator is bound to all Web "
-"Beans that implement <literal>Account</literal>:"
-msgstr ""
+msgid "This delegate attribute specifies that the decorator is bound to all Web
Beans that implement <literal>Account</literal>:"
+msgstr "Quest'attributo delegate specifica che ildecorator è legao a tutti i Web
Beans che implementano <literal>Account</literal>:"
#. Tag: programlisting
#: decorators.xml:53
#, no-c-format
msgid "<![CDATA[@Decorates Account account;]]>"
-msgstr ""
+msgstr "<![CDATA[@Decorates Account account;]]>"
#. Tag: para
#: decorators.xml:55
#, no-c-format
-msgid ""
-"A delegate attribute may specify a binding annotation. Then the decorator "
-"will only be bound to Web Beans with the same binding."
+msgid "A delegate attribute may specify a binding annotation. Then the decorator
will only be bound to Web Beans with the same binding."
msgstr ""
#. Tag: programlisting
#: decorators.xml:58
#, no-c-format
msgid "<![CDATA[@Decorates @Foreign Account account;]]>"
-msgstr ""
+msgstr "<![CDATA[@Decorates @Foreign Account account;]]>"
#. Tag: para
#: decorators.xml:60
#, no-c-format
msgid "A decorator is bound to any Web Bean which:"
-msgstr ""
+msgstr "Un decorator è legato ad un qualsiasi Web Bean che:"
#. Tag: para
#: decorators.xml:64
#, no-c-format
msgid "has the type of the delegate attribute as an API type, and"
-msgstr ""
+msgstr "ha il tipo di attributo delegate come un tipo API, e"
#. Tag: para
#: decorators.xml:67
#, no-c-format
msgid "has all binding types that are declared by the delegate attribute."
-msgstr ""
+msgstr "ha tutti i tipi di binding che sono dichiarati dall'attributo
delegate."
#. Tag: para
#: decorators.xml:71
#, no-c-format
-msgid ""
-"The decorator may invoke the delegate attribute, which has much the same "
-"effect as calling <literal>InvocationContext.proceed()</literal> from
an "
-"interceptor."
+msgid "The decorator may invoke the delegate attribute, which has much the same
effect as calling <literal>InvocationContext.proceed()</literal> from an
interceptor."
msgstr ""
#. Tag: title
#: decorators.xml:78
#, no-c-format
msgid "Enabling decorators"
-msgstr ""
+msgstr "Abilitare i decoratori"
#. Tag: para
#: decorators.xml:80
#, no-c-format
-msgid ""
-"We need to <emphasis>enable</emphasis> our decorator in
<literal>web-beans."
-"xml</literal>."
+msgid "We need to <emphasis>enable</emphasis> our decorator in
<literal>web-beans.xml</literal>."
msgstr ""
#. Tag: programlisting
@@ -211,33 +206,31 @@
" <myapp:LargeTransactionDecorator/>\n"
"</Decorators>]]>"
msgstr ""
+"<![CDATA[<Decorators>\n"
+" <myapp:LargeTransactionDecorator/>\n"
+"</Decorators>]]>"
#. Tag: para
#: decorators.xml:85
#, no-c-format
-msgid ""
-"This declaration serves the same purpose for decorators that the "
-"<literal><Interceptors></literal> declaration serves for
interceptors:"
+msgid "This declaration serves the same purpose for decorators that the
<literal><Interceptors></literal> declaration serves for
interceptors:"
msgstr ""
#. Tag: para
#: decorators.xml:90
#, no-c-format
-msgid ""
-"it enables us to specify a total ordering for all decorators in our system, "
-"ensuring deterministic behavior, and"
-msgstr ""
+msgid "it enables us to specify a total ordering for all decorators in our system,
ensuring deterministic behavior, and"
+msgstr "Consente di specificare un ordinamento totale per tutti i decoratori del
sistema, assicurando un comportamento deterministico, e"
#. Tag: para
#: decorators.xml:94
#, no-c-format
msgid "it lets us enable or disable decorator classes at deployment time."
-msgstr ""
+msgstr "consente di abilitare o disabilitare le classi decorato durante la fase di
deploy."
#. Tag: para
#: decorators.xml:98
#, no-c-format
-msgid ""
-"Interceptors for a method are called before decorators that apply to that "
-"method."
-msgstr ""
+msgid "Interceptors for a method are called before decorators that apply to that
method."
+msgstr "Gli interceptor per un metodo sono chiamati prima dei decoratori che vengono
applicati a tali metodo."
+
Modified: doc/trunk/reference/it-IT/modules/ee.po
===================================================================
--- doc/trunk/reference/it-IT/modules/ee.po 2008-12-19 22:42:07 UTC (rev 611)
+++ doc/trunk/reference/it-IT/modules/ee.po 2008-12-19 23:40:34 UTC (rev 612)
@@ -3,11 +3,11 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: master.xml \n"
+"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:26+0000\n"
-"PO-Revision-Date: 2008-12-19 20:26+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2008-12-20 00:09+0100\n"
+"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -17,33 +17,24 @@
#: ee.xml:4
#, no-c-format
msgid "Java EE integration"
-msgstr ""
+msgstr "Integrazione Java EE"
#. Tag: para
#: ee.xml:6
#, no-c-format
-msgid ""
-"Web Beans is fully integrated into the Java EE environment. Web 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 some objects, such as Servlets and Message-Driven Beans, which are not "
-"Web Beans."
+msgid "Web Beans is fully integrated into the Java EE environment. Web 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 some objects, such as
Servlets and Message-Driven Beans, which are not Web Beans."
msgstr ""
#. Tag: title
#: ee.xml:12
#, no-c-format
msgid "Injecting Java EE resources into a Web Bean"
-msgstr ""
+msgstr "Iniettare risorse Java EE in un Web Bean"
#. Tag: para
#: ee.xml:14
#, no-c-format
-msgid ""
-"All simple and enterprise Web Beans may take advantage of Java EE dependency
"
-"injection using <literal>@Resource</literal>,
<literal>@EJB</literal> and "
-"<literal>@PersistenceContext</literal>. We've already seen a couple
of "
-"examples of this, though we didn't pay much attention at the time:"
+msgid "All simple and enterprise Web Beans may take advantage of Java EE dependency
injection using <literal>@Resource</literal>,
<literal>@EJB</literal> and
<literal>@PersistenceContext</literal>. We've already seen a couple of
examples of this, though we didn't pay much attention at the time:"
msgstr ""
#. Tag: programlisting
@@ -55,11 +46,18 @@
"\n"
" @Resource Transaction transaction;\n"
"\n"
-" @AroundInvoke public Object manageTransaction(InvocationContext ctx) "
-"{ ... }\n"
+" @AroundInvoke public Object manageTransaction(InvocationContext ctx) { ...
}\n"
" \n"
"}]]>"
msgstr ""
+"<![CDATA[@Transactional @Interceptor\n"
+"public class TransactionInterceptor {\n"
+"\n"
+" @Resource Transaction transaction;\n"
+"\n"
+" @AroundInvoke public Object manageTransaction(InvocationContext ctx) { ...
}\n"
+" \n"
+"}]]>"
#. Tag: programlisting
#: ee.xml:21
@@ -75,37 +73,38 @@
"\n"
"}]]>"
msgstr ""
+"<![CDATA[@SessionScoped\n"
+"public class Login {\n"
+"\n"
+" @Current Credentials credentials;\n"
+" @PersistenceContext EntityManager userDatabase;\n"
+" \n"
+" ...\n"
+"\n"
+"}]]>"
#. Tag: para
#: ee.xml:23
#, no-c-format
-msgid ""
-"The Java EE <literal>@PostConstruct</literal> and
<literal>@PreDestroy</"
-"literal> callbacks are also supported for all simple and enterprise Web "
-"Beans. The <literal>@PostConstruct</literal> method is called after
"
-"<emphasis>all</emphasis> injection has been performed."
+msgid "The Java EE <literal>@PostConstruct</literal> and
<literal>@PreDestroy</literal> callbacks are also supported for all simple and
enterprise Web Beans. The <literal>@PostConstruct</literal> method is called
after <emphasis>all</emphasis> injection has been performed."
msgstr ""
#. Tag: para
#: ee.xml:28
#, no-c-format
-msgid ""
-"There is one restriction to be aware of here:
<literal>@PersistenceContext"
-"(type=EXTENDED)</literal> is not supported for simple Web Beans."
+msgid "There is one restriction to be aware of here:
<literal>@PersistenceContext(type=EXTENDED)</literal> is not supported for
simple Web Beans."
msgstr ""
#. Tag: title
#: ee.xml:35
#, no-c-format
msgid "Calling a Web Bean from a Servlet"
-msgstr ""
+msgstr "Chiamare un Web Bean da un servlet"
#. Tag: para
#: ee.xml:37
#, no-c-format
-msgid ""
-"It's easy to use a Web Bean from a Servlet in Java EE 6. Simply inject the
"
-"Web Bean using Web Beans field or initializer method injection."
+msgid "It's easy to use a Web Bean from a Servlet in Java EE 6. Simply inject
the Web Bean using Web Beans field or initializer method injection."
msgstr ""
#. Tag: programlisting
@@ -118,8 +117,7 @@
" @Current 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.getAttribute(\"username\")
):\n"
" credentials.setPassword( request.getAttribute(\"password\")
):\n"
@@ -134,14 +132,31 @@
" \n"
"}"
msgstr ""
+"public class Login extends HttpServlet {\n"
+"\n"
+" @Current Credentials credentials;\n"
+" @Current Login login;\n"
+"\n"
+" @Override\n"
+" public void service(HttpServletRequest request, HttpServletResponse
response)\n"
+" throws ServletException, IOException {\n"
+" credentials.setUsername( request.getAttribute(\"username\")
):\n"
+" credentials.setPassword( request.getAttribute(\"password\")
):\n"
+" login.login();\n"
+" if ( login.isLoggedIn() ) {\n"
+" response.sendRedirect(\"/home.jsp\");\n"
+" }\n"
+" else {\n"
+" response.sendRedirect(\"/loginError.jsp\");\n"
+" }\n"
+" }\n"
+" \n"
+"}"
#. Tag: para
#: ee.xml:42
#, no-c-format
-msgid ""
-"The Web Beans 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."
+msgid "The Web Beans 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 ""
#. Tag: title
@@ -153,19 +168,13 @@
#. Tag: para
#: ee.xml:51
#, no-c-format
-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 "
-"lookup, or injection using <literal>@EJB</literal>, for example. In
"
-"particular, you can use Web Beans injection in Message-Driven Beans, which "
-"are not considered Web Beans because you can't inject them."
+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 lookup, or injection
using <literal>@EJB</literal>, for example. In particular, you can use Web
Beans injection in Message-Driven Beans, which are not considered Web Beans because you
can't inject them."
msgstr ""
#. Tag: para
#: ee.xml:57
#, no-c-format
-msgid ""
-"You can even use Web Beans interceptor bindings for Message-Driven Beans."
+msgid "You can even use Web Beans interceptor bindings for Message-Driven
Beans."
msgstr ""
#. Tag: programlisting
@@ -184,51 +193,46 @@
" \n"
"}"
msgstr ""
+"@Transactional @MessageDriven\n"
+"public class ProcessOrder implements MessageListener {\n"
+"\n"
+" @Current Inventory inventory;\n"
+" @PersistenceContext EntityManager em;\n"
+"\n"
+" public void onMessage(Message message) {\n"
+" ...\n"
+" }\n"
+" \n"
+"}"
#. Tag: para
#: ee.xml:61
#, no-c-format
-msgid ""
-"Thus, receiving messages is super-easy in a Web Beans environment. But "
-"beware that there is no session or conversation context available when a "
-"message is delivered to a Message-Driven Bean. Only
<literal>@RequestScoped</"
-"literal> and <literal>@ApplicationScoped</literal> Web Beans are
available."
+msgid "Thus, receiving messages is super-easy in a Web Beans environment. But beware
that there is no session or conversation context available when a message is delivered to
a Message-Driven Bean. Only <literal>@RequestScoped</literal> and
<literal>@ApplicationScoped</literal> Web Beans are available."
msgstr ""
#. Tag: para
#: ee.xml:66
#, no-c-format
msgid "It's also easy to send messages using Web Beans."
-msgstr ""
+msgstr "E' anche molto facile spedire messaggi usando Web Beans."
#. Tag: title
#: ee.xml:71
#, no-c-format
msgid "JMS endpoints"
-msgstr ""
+msgstr "Endpoint JMS"
#. Tag: para
#: ee.xml:73
#, 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."
+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 ""
#. Tag: para
#: ee.xml:82
#, no-c-format
-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
associated "
-"binding type and connection factory."
+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 associated
binding type and connection factory."
msgstr ""
#. Tag: programlisting
@@ -237,11 +241,15 @@
msgid ""
"<![CDATA[<Queue>\n"
" <destination>java:comp/env/jms/OrderQueue</destination>\n"
-" <connectionFactory>java:comp/env/jms/QueueConnectionFactory</"
-"connectionFactory>\n"
+"
<connectionFactory>java:comp/env/jms/QueueConnectionFactory</connectionFactory>\n"
" <myapp:OrderProcessor/> \n"
"</Queue>]]>"
msgstr ""
+"<![CDATA[<Queue>\n"
+" <destination>java:comp/env/jms/OrderQueue</destination>\n"
+"
<connectionFactory>java:comp/env/jms/QueueConnectionFactory</connectionFactory>\n"
+" <myapp:OrderProcessor/> \n"
+"</Queue>]]>"
#. Tag: programlisting
#: ee.xml:88
@@ -249,21 +257,20 @@
msgid ""
"<![CDATA[<Topic>\n"
" <destination>java:comp/env/jms/StockPrices</destination>\n"
-" <connectionFactory>java:comp/env/jms/TopicConnectionFactory</"
-"connectionFactory>\n"
+"
<connectionFactory>java:comp/env/jms/TopicConnectionFactory</connectionFactory>\n"
" <myapp:StockPrices/> \n"
"</Topic>]]>"
msgstr ""
+"<![CDATA[<Topic>\n"
+" <destination>java:comp/env/jms/StockPrices</destination>\n"
+"
<connectionFactory>java:comp/env/jms/TopicConnectionFactory</connectionFactory>\n"
+" <myapp:StockPrices/> \n"
+"</Topic>]]>"
#. Tag: para
#: ee.xml:90
#, no-c-format
-msgid ""
-"Now we can just inject the <literal>Queue</literal>, "
-"<literal>QueueConnection</literal>,
<literal>QueueSession</literal> or "
-"<literal>QueueSender</literal> for a queue, or the
<literal>Topic</literal>, "
-"<literal>TopicConnection</literal>,
<literal>TopicSession</literal> or "
-"<literal>TopicPublisher</literal> for a topic."
+msgid "Now we can just inject the <literal>Queue</literal>,
<literal>QueueConnection</literal>,
<literal>QueueSession</literal> or <literal>QueueSender</literal>
for a queue, or the <literal>Topic</literal>,
<literal>TopicConnection</literal>,
<literal>TopicSession</literal> or
<literal>TopicPublisher</literal> for a topic."
msgstr ""
#. Tag: programlisting
@@ -279,6 +286,14 @@
" orderSender.send(msg);\n"
"}"
msgstr ""
+"@OrderProcessor QueueSender orderSender;\n"
+"@OrderProcessor QueueSession orderSession;\n"
+"\n"
+"public void sendMessage() {\n"
+" MapMessage msg = orderSession.createMapMessage();\n"
+" ...\n"
+" orderSender.send(msg);\n"
+"}"
#. Tag: programlisting
#: ee.xml:98
@@ -291,39 +306,34 @@
" pricePublisher.send( priceSession.createTextMessage(price) );\n"
"}"
msgstr ""
+"@StockPrices TopicPublisher pricePublisher;\n"
+"@StockPrices TopicSession priceSession;\n"
+"\n"
+"public void sendMessage(String price) {\n"
+" pricePublisher.send( priceSession.createTextMessage(price) );\n"
+"}"
#. Tag: para
#: ee.xml:100
#, no-c-format
-msgid ""
-"The lifecycle of the injected JMS objects are completely controlled by the "
-"Web Bean manager."
+msgid "The lifecycle of the injected JMS objects are completely controlled by the
Web Bean manager."
msgstr ""
#. Tag: title
#: ee.xml:106
#, no-c-format
msgid "Packaging and deployment"
-msgstr ""
+msgstr "Packaging and deployment"
#. Tag: para
#: ee.xml:108
#, no-c-format
-msgid ""
-"Web Beans doesn't define any special deployment archive. You can package Web
"
-"Beans in JARs, EJB-JARs or WARs—any deployment location in the "
-"application classpath. However, each archive that contains Web Beans must "
-"include a file named <literal>web-beans.xml</literal> in the
<literal>META-"
-"INF</literal> or <literal>WEB-INF</literal> directory. The file
may be "
-"empty. Web Beans deployed in archives that do not have a
<literal>web-beans."
-"xml</literal> file will not be available for use in the application."
+msgid "Web Beans doesn't define any special deployment archive. You can package
Web Beans in JARs, EJB-JARs or WARs—any deployment location in the application
classpath. However, each archive that contains Web Beans must include a file named
<literal>web-beans.xml</literal> in the
<literal>META-INF</literal> or <literal>WEB-INF</literal>
directory. The file may be empty. Web Beans deployed in archives that do not have a
<literal>web-beans.xml</literal> file will not be available for use in the
application."
msgstr ""
#. Tag: para
#: ee.xml:116
#, no-c-format
-msgid ""
-"For Java SE execution, Web Beans may be deployed in any location in which "
-"EJBs may be deployed for execution by the embeddable EJB Lite container. "
-"Again, each location must contain a <literal>web-beans.xml</literal>
file."
+msgid "For Java SE execution, Web Beans may be deployed in any location in which
EJBs may be deployed for execution by the embeddable EJB Lite container. Again, each
location must contain a <literal>web-beans.xml</literal> file."
msgstr ""
+
Modified: doc/trunk/reference/it-IT/modules/events.po
===================================================================
--- doc/trunk/reference/it-IT/modules/events.po 2008-12-19 22:42:07 UTC (rev 611)
+++ doc/trunk/reference/it-IT/modules/events.po 2008-12-19 23:40:34 UTC (rev 612)
@@ -3,11 +3,11 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: master.xml \n"
+"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:26+0000\n"
-"PO-Revision-Date: 2008-12-19 20:26+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2008-12-20 00:11+0100\n"
+"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -17,74 +17,54 @@
#: events.xml:4
#, no-c-format
msgid "Events"
-msgstr ""
+msgstr "Eventi"
#. Tag: para
#: events.xml:6
#, no-c-format
-msgid ""
-"The Web Beans event notification facility allows Web Beans to interact in a "
-"totally decoupled manner. Event <emphasis>producers</emphasis> raise
events "
-"that are then delivered to event <emphasis>observers</emphasis> by the
Web "
-"Bean manager. This basic schema might sound like the familiar observer/"
-"observable pattern, but there are a couple of twists:"
+msgid "The Web Beans event notification facility allows Web Beans to interact in a
totally decoupled manner. Event <emphasis>producers</emphasis> raise events
that are then delivered to event <emphasis>observers</emphasis> by the Web
Bean manager. This basic schema might sound like the familiar observer/observable pattern,
but there are a couple of twists:"
msgstr ""
#. Tag: para
#: events.xml:14
#, no-c-format
-msgid ""
-"not only are event producers decoupled from observers; observers are "
-"completely decoupled from producers,"
+msgid "not only are event producers decoupled from observers; observers are
completely decoupled from producers,"
msgstr ""
#. Tag: para
#: events.xml:18
#, no-c-format
-msgid ""
-"observers can specify a combination of \"selectors\" to narrow the set of
"
-"event notifications they will receive, and"
+msgid "observers can specify a combination of \"selectors\" to narrow the
set of event notifications they will receive, and"
msgstr ""
#. Tag: para
#: events.xml:22
#, 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"
+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 ""
#. Tag: title
#: events.xml:28
#, no-c-format
msgid "Event observers"
-msgstr ""
+msgstr "Osservatori di eventi"
#. Tag: para
#: events.xml:30
#, no-c-format
-msgid ""
-"An <emphasis>observer method</emphasis> is a method of a Web Bean with
a "
-"parameter annotated <literal>(a)Observes</literal>."
+msgid "An <emphasis>observer method</emphasis> is a method of a Web Bean
with a parameter annotated <literal>(a)Observes</literal>."
msgstr ""
#. Tag: programlisting
#: events.xml:33
#, no-c-format
-msgid ""
-"<![CDATA[public void onAnyDocumentEvent(@Observes Document document) "
-"{ ... }]]>"
-msgstr ""
+msgid "<![CDATA[public void onAnyDocumentEvent(@Observes Document document) { ...
}]]>"
+msgstr "<![CDATA[public void onAnyDocumentEvent(@Observes Document document) {
... }]]>"
#. Tag: para
#: events.xml:35
#, 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>. Observer methods may also specify \"selectors\", which are
just "
-"instances of Web Beans binding types. When a binding type is used as an "
-"event selector, it is called an <emphasis>event binding
type</emphasis>."
+msgid "The annotated parameter is called the <emphasis>event
parameter</emphasis>. The type of the event parameter is the observed
<emphasis>event type</emphasis>. Observer methods may also specify
\"selectors\", which are just instances of Web Beans binding types. When a
binding type is used as an event selector, it is called an <emphasis>event binding
type</emphasis>."
msgstr ""
#. Tag: programlisting
@@ -96,105 +76,88 @@
"@Retention(RUNTIME)\n"
"public @interface Updated { ... }]]>"
msgstr ""
+"<![CDATA[@BindingType\n"
+"@Target({PARAMETER, FIELD})\n"
+"@Retention(RUNTIME)\n"
+"public @interface Updated { ... }]]>"
#. Tag: para
#: events.xml:43
#, no-c-format
-msgid ""
-"We specify the event bindings of the observer method by annotating the event
"
-"parameter:"
+msgid "We specify the event bindings of the observer method by annotating the event
parameter:"
msgstr ""
#. Tag: programlisting
-#: events.xml:46 events.xml:190
+#: events.xml:46
+#: events.xml:190
#, no-c-format
-msgid ""
-"<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document "
-"document) { ... }]]>"
-msgstr ""
+msgid "<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document
document) { ... }]]>"
+msgstr "<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document
document) { ... }]]>"
#. Tag: para
#: events.xml:48
#, no-c-format
-msgid ""
-"An observer method need not specify any event bindings—in this case it
"
-"is interested in <emphasis>all</emphasis> events of a particular type.
If it "
-"does specify event bindings, it is only interested in events which also have
"
-"those event bindings."
+msgid "An observer method need not specify any event bindings—in this case
it is interested in <emphasis>all</emphasis> events of a particular type. If
it does specify event bindings, it is only interested in events which also have those
event bindings."
msgstr ""
#. Tag: para
#: events.xml:53
#, no-c-format
-msgid ""
-"The observer method may have additional parameters, which are injected "
-"according to the usual Web Beans method parameter injection semantics:"
+msgid "The observer method may have additional parameters, which are injected
according to the usual Web Beans method parameter injection semantics:"
msgstr ""
#. Tag: programlisting
#: events.xml:56
#, no-c-format
-msgid ""
-"<![CDATA[public void afterDocumentUpdate(@Observes @Updated Document "
-"document, User user) { ... }]]>"
-msgstr ""
+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:61
#, no-c-format
msgid "Event producers"
-msgstr ""
+msgstr "Produttori di eventi"
#. Tag: para
#: events.xml:63
#, no-c-format
-msgid ""
-"The event producer may obtain an <emphasis>event notifier</emphasis>
object "
-"by injection:"
+msgid "The event producer may obtain an <emphasis>event
notifier</emphasis> object by injection:"
msgstr ""
#. Tag: programlisting
#: events.xml:66
#, no-c-format
msgid "<![CDATA[@Observable Event<Document> documentEvent]]>"
-msgstr ""
+msgstr "<![CDATA[@Observable Event<Document> documentEvent]]>"
#. Tag: para
#: events.xml:68
#, no-c-format
-msgid ""
-"The <literal>@Observable</literal> annotation implicitly defines a Web
Bean "
-"with scope <literal>@Dependent</literal> and deployment type "
-"<literal>@Standard</literal>, with an implementation provided by the
Web "
-"Bean manager."
+msgid "The <literal>@Observable</literal> annotation implicitly defines
a Web Bean with scope <literal>@Dependent</literal> and deployment type
<literal>@Standard</literal>, with an implementation provided by the Web Bean
manager."
msgstr ""
#. Tag: para
#: events.xml:72
#, no-c-format
-msgid ""
-"A producer raises events by calling the <literal>fire()</literal>
method of "
-"the <literal>Event</literal> interface, passing an
<emphasis>event object</"
-"emphasis>:"
+msgid "A producer raises events by calling the <literal>fire()</literal>
method of the <literal>Event</literal> interface, passing an
<emphasis>event object</emphasis>:"
msgstr ""
#. Tag: programlisting
#: events.xml:75
#, no-c-format
msgid "<![CDATA[documentEvent.fire(document);]]>"
-msgstr ""
+msgstr "<![CDATA[documentEvent.fire(document);]]>"
#. Tag: para
#: events.xml:77
#, no-c-format
-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 every "
-"observer method that:"
+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 every observer
method that:"
msgstr ""
#. Tag: para
-#: events.xml:83 events.xml:107 events.xml:126
+#: events.xml:83
+#: events.xml:107
+#: events.xml:126
#, no-c-format
msgid "has an event parameter to which the event object is assignable, and"
msgstr ""
@@ -208,36 +171,25 @@
#. Tag: para
#: events.xml:90
#, no-c-format
-msgid ""
-"The Web Bean manager 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 Web Bean manager stops calling observer methods, "
-"and the exception is rethrown by the <literal>fire()</literal>
method."
+msgid "The Web Bean manager 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 Web Bean manager stops calling observer methods, and the exception is rethrown by the
<literal>fire()</literal> method."
msgstr ""
#. Tag: para
#: events.xml:95
#, no-c-format
-msgid ""
-"To specify a \"selector\", the event producer may pass an instance of the
"
-"event binding type to the <literal>fire()</literal> method:"
+msgid "To specify a \"selector\", the event producer may pass an instance
of the event binding type to the <literal>fire()</literal> method:"
msgstr ""
#. Tag: programlisting
#: events.xml:98
#, no-c-format
-msgid ""
-"<![CDATA[documentEvent.fire( document, new
AnnotationLiteral<Updated>()"
-"{} );]]>"
-msgstr ""
+msgid "<![CDATA[documentEvent.fire( document, new
AnnotationLiteral<Updated>(){} );]]>"
+msgstr "<![CDATA[documentEvent.fire( document, new
AnnotationLiteral<Updated>(){} );]]>"
#. Tag: para
#: events.xml:100
#, no-c-format
-msgid ""
-"The helper class <literal>AnnotationLiteral</literal> makes it possible
to "
-"instantiate binding types inline, since this is otherwise difficult to do in
"
-"Java."
+msgid "The helper class <literal>AnnotationLiteral</literal> makes it
possible to instantiate binding types inline, since this is otherwise difficult to do in
Java."
msgstr ""
#. Tag: para
@@ -249,41 +201,31 @@
#. Tag: para
#: events.xml:110
#, no-c-format
-msgid ""
-"does not specify any event binding <emphasis>except</emphasis> for the
event "
-"bindings passed to <literal>fire()</literal>."
+msgid "does not specify any event binding <emphasis>except</emphasis>
for the event bindings passed to <literal>fire()</literal>."
msgstr ""
#. Tag: para
#: events.xml:115
#, no-c-format
-msgid ""
-"Alternatively, event bindings may be specified by annotating the event "
-"notifier injection point:"
+msgid "Alternatively, event bindings may be specified by annotating the event
notifier injection point:"
msgstr ""
#. Tag: programlisting
#: events.xml:118
#, no-c-format
msgid "<![CDATA[@Observable @Updated Event<Document>
documentUpdatedEvent]]>"
-msgstr ""
+msgstr "<![CDATA[@Observable @Updated Event<Document>
documentUpdatedEvent]]>"
#. Tag: para
#: events.xml:120
#, no-c-format
-msgid ""
-"Then every event fired via this instance of <literal>Event</literal>
has the "
-"annotated event binding. The event will be delivered to every observer "
-"method that:"
+msgid "Then every event fired via this instance of
<literal>Event</literal> has the annotated event binding. The event will be
delivered to every observer method that:"
msgstr ""
#. Tag: para
#: events.xml:129
#, no-c-format
-msgid ""
-"does not specify any event binding <emphasis>except</emphasis> for the
event "
-"bindings passed to <literal>fire()</literal> or the annotated event
bindings "
-"of the event notifier injection point."
+msgid "does not specify any event binding <emphasis>except</emphasis>
for the event bindings passed to <literal>fire()</literal> or the annotated
event bindings of the event notifier injection point."
msgstr ""
#. Tag: title
@@ -295,39 +237,30 @@
#. Tag: para
#: events.xml:140
#, no-c-format
-msgid ""
-"It's often useful to register an event observer dynamically. The application
"
-"may implement the <literal>Observer</literal> interface and register an
"
-"instance with an event notifier by calling the
<literal>observe()</literal> "
-"method."
+msgid "It's often useful to register an event observer dynamically. The
application may implement the <literal>Observer</literal> interface and
register an instance with an event notifier by calling the
<literal>observe()</literal> method."
msgstr ""
#. Tag: programlisting
#: events.xml:144
#, no-c-format
-msgid ""
-"<![CDATA[documentEvent.observe( new Observer<Document>() { public void
notify"
-"(Document doc) { ... } } );]]>"
-msgstr ""
+msgid "<![CDATA[documentEvent.observe( new Observer<Document>() { public
void notify(Document doc) { ... } } );]]>"
+msgstr "<![CDATA[documentEvent.observe( new Observer<Document>() { public
void notify(Document doc) { ... } } );]]>"
#. Tag: para
#: events.xml:146
#, no-c-format
-msgid ""
-"Event binding types may be specified by the event notifier injection point "
-"or by passing event binding type instances to the
<literal>observe()</"
-"literal> method:"
+msgid "Event binding types may be specified by the event notifier injection point or
by passing event binding type instances to the <literal>observe()</literal>
method:"
msgstr ""
#. Tag: programlisting
#: events.xml:149
#, no-c-format
msgid ""
-"<![CDATA[documentEvent.observe( new Observer<Document>() { public void
notify"
-"(Document doc) { ... } }, \n"
-" new "
-"AnnotationLiteral<Updated>(){} );]]>"
+"<![CDATA[documentEvent.observe( new Observer<Document>() { public void
notify(Document doc) { ... } }, \n"
+" new
AnnotationLiteral<Updated>(){} );]]>"
msgstr ""
+"<![CDATA[documentEvent.observe( new Observer<Document>() { public void
notify(Document doc) { ... } }, \n"
+" new
AnnotationLiteral<Updated>(){} );]]>"
#. Tag: title
#: events.xml:154
@@ -352,43 +285,41 @@
" RoleType value();\n"
"}]]>"
msgstr ""
+"<![CDATA[@BindingType\n"
+"@Target({PARAMETER, FIELD})\n"
+"@Retention(RUNTIME)\n"
+"public @interface Role {\n"
+" RoleType value();\n"
+"}]]>"
#. Tag: para
#: events.xml:160
#, no-c-format
-msgid ""
-"The member value is used to narrow the messages delivered to the observer:"
+msgid "The member value is used to narrow the messages delivered to the
observer:"
msgstr ""
#. Tag: programlisting
#: events.xml:162
#, no-c-format
-msgid ""
-"<![CDATA[public void adminLoggedIn(@Observes @Role(ADMIN) LoggedIn event)
"
-"{ ... }]]>"
-msgstr ""
+msgid "<![CDATA[public void adminLoggedIn(@Observes @Role(ADMIN) LoggedIn event)
{ ... }]]>"
+msgstr "<![CDATA[public void adminLoggedIn(@Observes @Role(ADMIN) LoggedIn event)
{ ... }]]>"
#. Tag: para
#: events.xml:164
#, no-c-format
-msgid ""
-"Event binding type members may be specified statically by the event "
-"producer, via annotations at the event notifier injection point:"
+msgid "Event binding type members may be specified statically by the event producer,
via annotations at the event notifier injection point:"
msgstr ""
#. Tag: programlisting
#: events.xml:167
#, no-c-format
msgid "<![CDATA[@Observable @Role(ADMIN) Event<LoggedIn>
LoggedInEvent;}}]]>"
-msgstr ""
+msgstr "<![CDATA[@Observable @Role(ADMIN) Event<LoggedIn>
LoggedInEvent;}}]]>"
#. Tag: para
#: events.xml:169
#, no-c-format
-msgid ""
-"Alternatively, the value of the event binding type member may be determined "
-"dynamically by the event producer. We start by writing an abstract subclass "
-"of <literal>AnnotationLiteral</literal>:"
+msgid "Alternatively, the value of the event binding type member may be determined
dynamically by the event producer. We start by writing an abstract subclass of
<literal>AnnotationLiteral</literal>:"
msgstr ""
#. Tag: programlisting
@@ -399,22 +330,21 @@
" extends AnnotationLiteral<Role> \n"
" implements Role {}]]>"
msgstr ""
+"<![CDATA[abstract class RoleBinding \n"
+" extends AnnotationLiteral<Role> \n"
+" implements Role {}]]>"
#. Tag: para
#: events.xml:174
#, no-c-format
-msgid ""
-"The event producer passes an instance of this class to
<literal>fire()</"
-"literal>:"
+msgid "The event producer passes an instance of this class to
<literal>fire()</literal>:"
msgstr ""
#. Tag: programlisting
#: events.xml:176
#, no-c-format
-msgid ""
-"<![CDATA[documentEvent.fire( document, new RoleBinding() { public void
value"
-"() { return user.getRole(); } } );]]>"
-msgstr ""
+msgid "<![CDATA[documentEvent.fire( document, new RoleBinding() { public void
value() { return user.getRole(); } } );]]>"
+msgstr "<![CDATA[documentEvent.fire( document, new RoleBinding() { public void
value() { return user.getRole(); } } );]]>"
#. Tag: title
#: events.xml:181
@@ -434,66 +364,53 @@
msgid ""
"<![CDATA[@Observable @Blog Event<Document> blogEvent;\n"
"...\n"
-"if (document.isBlog()) blogEvent.fire(document, new "
-"AnnotationLiteral<Updated>(){});]]>"
+"if (document.isBlog()) blogEvent.fire(document, new
AnnotationLiteral<Updated>(){});]]>"
msgstr ""
+"<![CDATA[@Observable @Blog Event<Document> blogEvent;\n"
+"...\n"
+"if (document.isBlog()) blogEvent.fire(document, new
AnnotationLiteral<Updated>(){});]]>"
#. Tag: para
#: events.xml:187
#, no-c-format
-msgid ""
-"When this event occurs, all of the following observer methods will be "
-"notified:"
+msgid "When this event occurs, all of the following observer methods will be
notified:"
msgstr ""
#. Tag: programlisting
#: events.xml:189
#, no-c-format
-msgid ""
-"<![CDATA[public void afterBlogUpdate(@Observes @Updated @Blog Document "
-"document) { ... }]]>"
-msgstr ""
+msgid "<![CDATA[public void afterBlogUpdate(@Observes @Updated @Blog Document
document) { ... }]]>"
+msgstr "<![CDATA[public void afterBlogUpdate(@Observes @Updated @Blog Document
document) { ... }]]>"
#. Tag: programlisting
#: events.xml:191
#, no-c-format
-msgid ""
-"<![CDATA[public void onAnyBlogEvent(@Observes @Blog Document document) "
-"{ ... }]]>"
-msgstr ""
+msgid "<![CDATA[public void onAnyBlogEvent(@Observes @Blog Document document) {
... }]]>"
+msgstr "<![CDATA[public void onAnyBlogEvent(@Observes @Blog Document document) {
... }]]>"
#. Tag: programlisting
#: events.xml:192
#, no-c-format
-msgid ""
-"<![CDATA[public void onAnyDocumentEvent(@Observes Document document) "
-"{ ... }}}]]>"
-msgstr ""
+msgid "<![CDATA[public void onAnyDocumentEvent(@Observes Document document) { ...
}}}]]>"
+msgstr "<![CDATA[public void onAnyDocumentEvent(@Observes Document document) {
... }}}]]>"
#. Tag: title
#: events.xml:197
#, no-c-format
msgid "Transactional observers"
-msgstr ""
+msgstr "Osservatori transazionali"
#. Tag: para
#: events.xml:199
#, 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:"
+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 ""
#. Tag: programlisting
#: events.xml:205
#, no-c-format
-msgid ""
-"<![CDATA[public void refreshCategoryTree(@AfterTransactionSuccess @Observes
"
-"CategoryUpdateEvent event) { ... }]]>"
-msgstr ""
+msgid "<![CDATA[public void refreshCategoryTree(@AfterTransactionSuccess
@Observes CategoryUpdateEvent event) { ... }]]>"
+msgstr "<![CDATA[public void refreshCategoryTree(@AfterTransactionSuccess
@Observes CategoryUpdateEvent event) { ... }]]>"
#. Tag: para
#: events.xml:207
@@ -504,51 +421,37 @@
#. Tag: para
#: events.xml:211
#, no-c-format
-msgid ""
-"<literal>@AfterTransactionSuccess</literal> observers are called during
the "
-"after completion phase of the transaction, but only if the transaction "
-"completes successfully"
+msgid "<literal>@AfterTransactionSuccess</literal> observers are called
during the after completion phase of the transaction, but only if the transaction
completes successfully"
msgstr ""
#. Tag: para
#: events.xml:216
#, no-c-format
-msgid ""
-"<literal>@AfterTransactionFailure</literal> observers are called during
the "
-"after completion phase of the transaction, but only if the transaction fails
"
-"to complete successfully"
+msgid "<literal>@AfterTransactionFailure</literal> observers are called
during the after completion phase of the transaction, but only if the transaction fails to
complete successfully"
msgstr ""
#. Tag: para
#: events.xml:221
#, no-c-format
-msgid ""
-"<literal>@AfterTransactionCompletion</literal> observers are called
during "
-"the after completion phase of the transaction"
+msgid "<literal>@AfterTransactionCompletion</literal> observers are
called during the after completion phase of the transaction"
msgstr ""
#. Tag: para
#: events.xml:225
#, no-c-format
-msgid ""
-"<literal>@BeforeTransactionCompletion</literal> observers are called
during "
-"the before completion phase of the transaction"
+msgid "<literal>@BeforeTransactionCompletion</literal> observers are
called during the before completion phase of the transaction"
msgstr ""
#. Tag: para
#: events.xml:230
#, no-c-format
-msgid ""
-"Transactional observers are very important in a stateful object model like "
-"Web Beans, because state is often held for longer than a single atomic "
-"transaction."
+msgid "Transactional observers are very important in a stateful object model like
Web Beans, because state is often held for longer than a single atomic transaction."
msgstr ""
#. Tag: para
#: events.xml:233
#, no-c-format
-msgid ""
-"Imagine that we have cached a JPA query result set in the application scope:"
+msgid "Imagine that we have cached a JPA query result set in the application
scope:"
msgstr ""
#. Tag: programlisting
@@ -565,8 +468,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"
@@ -574,23 +476,34 @@
" \n"
"}]]>"
msgstr ""
+"<![CDATA[@ApplicationScoped @Singleton\n"
+"public class Catalog {\n"
+"\n"
+" @PersistenceContext EntityManager em;\n"
+" \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"
+" \n"
+"}]]>"
#. Tag: para
#: events.xml:237
#, 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!"
+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 ""
#. Tag: para
#: events.xml:242
#, no-c-format
-msgid ""
-"The Web Bean that creates and deletes <literal>Product</literal>s could
"
-"raise events, for example:"
+msgid "The Web Bean that creates and deletes <literal>Product</literal>s
could raise events, for example:"
msgstr ""
#. Tag: programlisting
@@ -617,13 +530,30 @@
" \n"
"}]]>"
msgstr ""
+"<![CDATA[@Stateless\n"
+"public class ProductManager {\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"
+" \n"
+" public void persist(Product product) {\n"
+" em.persist(product);\n"
+" productEvent.fire(product, new
AnnotationLiteral<Created>(){});\n"
+" }\n"
+" \n"
+" ...\n"
+" \n"
+"}]]>"
#. Tag: para
#: events.xml:247
#, no-c-format
-msgid ""
-"And now <literal>Catalog</literal> can observe the events after
successful "
-"completion of the transaction:"
+msgid "And now <literal>Catalog</literal> can observe the events after
successful completion of the transaction:"
msgstr ""
#. Tag: programlisting
@@ -635,15 +565,28 @@
"\n"
" ...\n"
" \n"
-" void addProduct(@AfterTransactionSuccess @Observes @Created Product "
-"product) {\n"
+" void addProduct(@AfterTransactionSuccess @Observes @Created Product product)
{\n"
" products.add(product);\n"
" }\n"
" \n"
-" void addProduct(@AfterTransactionSuccess @Observes @Deleted Product "
-"product) {\n"
+" void addProduct(@AfterTransactionSuccess @Observes @Deleted Product product)
{\n"
" products.remove(product);\n"
" }\n"
" \n"
"}]]>"
msgstr ""
+"<![CDATA[@ApplicationScoped @Singleton\n"
+"public class Catalog {\n"
+"\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"
+"}]]>"
+
Modified: doc/trunk/reference/it-IT/modules/intro.po
===================================================================
--- doc/trunk/reference/it-IT/modules/intro.po 2008-12-19 22:42:07 UTC (rev 611)
+++ doc/trunk/reference/it-IT/modules/intro.po 2008-12-19 23:40:34 UTC (rev 612)
@@ -3,11 +3,11 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: master.xml \n"
+"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:26+0000\n"
-"PO-Revision-Date: 2008-12-19 20:26+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2008-12-19 23:43+0100\n"
+"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -22,12 +22,7 @@
#. Tag: para
#: intro.xml:6
#, no-c-format
-msgid ""
-"So you're already keen to get started writing your first Web Bean? Or "
-"perhaps you're skeptical, wondering what kinds of hoops the Web Beans "
-"specification will make you jump through! The good news is that you've "
-"probably already written and used hundreds, perhaps thousands of Web Beans. "
-"You might not even remember the first Web Bean you wrote."
+msgid "So you're already keen to get started writing your first Web Bean? Or
perhaps you're skeptical, wondering what kinds of hoops the Web Beans specification
will make you jump through! The good news is that you've probably already written and
used hundreds, perhaps thousands of Web Beans. You might not even remember the first Web
Bean you wrote."
msgstr ""
#. Tag: title
@@ -39,25 +34,13 @@
#. Tag: para
#: intro.xml:15
#, no-c-format
-msgid ""
-"With certain, very special exceptions, every Java class with a constructor "
-"that accepts no parameters is a Web Bean. That includes every JavaBean. "
-"Furthermore, every EJB 3-style session bean is a Web Bean. Sure, the "
-"JavaBeans and EJBs you've been writing every day have not been able to take
"
-"advantage of the new services defined by the Web Beans specification, but "
-"you'll be able to use every one of them as Web Beans—injecting them
"
-"into other Web Beans, configuring them via the Web Beans XML configuration "
-"facility, even adding interceptors and decorators to them—without "
-"touching your existing code."
+msgid "With certain, very special exceptions, every Java class with a constructor
that accepts no parameters is a Web Bean. That includes every JavaBean. Furthermore, every
EJB 3-style session bean is a Web Bean. Sure, the JavaBeans and EJBs you've been
writing every day have not been able to take advantage of the new services defined by the
Web Beans specification, but you'll be able to use every one of them as Web
Beans—injecting them into other Web Beans, configuring them via the Web Beans XML
configuration facility, even adding interceptors and decorators to them—without
touching your existing code."
msgstr ""
#. Tag: para
#: intro.xml:25
#, 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:"
+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 ""
#. Tag: programlisting
@@ -68,14 +51,14 @@
" public List<String> parse(String text) { ... }\n"
"}]]>"
msgstr ""
+"<![CDATA[public class SentenceParser {\n"
+" public List<String> parse(String text) { ... }\n"
+"}]]>"
#. Tag: para
#: intro.xml:31
#, 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:"
+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 ""
#. Tag: programlisting
@@ -87,6 +70,10 @@
" public String translate(String sentence) { ... }\n"
"}]]>"
msgstr ""
+"<![CDATA[@Stateless\n"
+"public class SentenceTranslator implements Translator {\n"
+" public String translate(String sentence) { ... }\n"
+"}]]>"
#. Tag: para
#: intro.xml:37
@@ -103,13 +90,15 @@
" public String translate(String sentence);\n"
"}]]>"
msgstr ""
+"<![CDATA[@Local\n"
+"public interface Translator {\n"
+" public String translate(String sentence);\n"
+"}]]>"
#. Tag: para
#: intro.xml:41
#, no-c-format
-msgid ""
-"Unfortunately, we don't have a preexisting class that translates whole text
"
-"documents. So let's write a Web Bean that does this job:"
+msgid "Unfortunately, we don't have a preexisting class that translates whole
text documents. So let's write a Web Bean that does this job:"
msgstr ""
#. Tag: programlisting
@@ -122,8 +111,7 @@
" private Translator sentenceTranslator;\n"
" \n"
" @Initializer\n"
-" TextTranslator(SentenceParser sentenceParser, Translator "
-"sentenceTranslator) {\n"
+" TextTranslator(SentenceParser sentenceParser, Translator sentenceTranslator)
{\n"
" this.sentenceParser = sentenceParser;\n"
" this.sentenceTranslator = sentenceTranslator;\n"
" }\n"
@@ -138,13 +126,31 @@
" \n"
"}]]>"
msgstr ""
+"<![CDATA[public class TextTranslator {\n"
+" \n"
+" private SentenceParser sentenceParser;\n"
+" private Translator sentenceTranslator;\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"
+"}]]>"
#. Tag: para
#: intro.xml:46
#, no-c-format
-msgid ""
-"We may obtain an instance of <literal>TextTranslator</literal> by
injecting "
-"it into a Web Bean, Servlet or EJB:"
+msgid "We may obtain an instance of <literal>TextTranslator</literal> by
injecting it into a Web Bean, Servlet or EJB:"
msgstr ""
#. Tag: programlisting
@@ -156,57 +162,39 @@
" this.textTranslator = textTranslator;\n"
"}]]>"
msgstr ""
+"<![CDATA[@Initializer\n"
+"public setTextTranslator(TextTranslator textTranslator) {\n"
+" this.textTranslator = textTranslator;\n"
+"}]]>"
#. Tag: para
#: intro.xml:51
#, no-c-format
-msgid ""
-"Alternatively, we may obtain an instance by directly calling a method of the
"
-"Web Bean manager:"
+msgid "Alternatively, we may obtain an instance by directly calling a method of the
Web Bean manager:"
msgstr ""
#. Tag: programlisting
#: intro.xml:54
#, no-c-format
-msgid ""
-"<![CDATA[TextTranslator tt = manager.getInstanceByType(TextTranslator."
-"class);]]>"
-msgstr ""
+msgid "<![CDATA[TextTranslator tt =
manager.getInstanceByType(TextTranslator.class);]]>"
+msgstr "<![CDATA[TextTranslator tt =
manager.getInstanceByType(TextTranslator.class);]]>"
#. Tag: para
#: intro.xml:56
#, no-c-format
-msgid ""
-"But wait: <literal>TextTranslator</literal> does not have a constructor
with "
-"no parameters! Is it still a Web Bean? Well, a class that does not have a "
-"constructor with no parameters can still be a Web Bean if it has a "
-"constructor annotated <literal>(a)Initializer</literal>."
+msgid "But wait: <literal>TextTranslator</literal> does not have a
constructor with no parameters! Is it still a Web Bean? Well, a class that does not have a
constructor with no parameters can still be a Web Bean if it has a constructor annotated
<literal>(a)Initializer</literal>."
msgstr ""
#. Tag: para
#: intro.xml:61
#, no-c-format
-msgid ""
-"As you've guessed, the <literal>@Initializer</literal> annotation
has "
-"something to do with dependency injection!
<literal>@Initializer</literal> "
-"may be applied to a constructor or method of a Web Bean, and tells the Web "
-"Bean manager to call that constructor or method when instantiating the Web "
-"Bean. The Web Bean manager will inject other Web Beans to the parameters of "
-"the constructor or method."
+msgid "As you've guessed, the <literal>@Initializer</literal>
annotation has something to do with dependency injection!
<literal>@Initializer</literal> may be applied to a constructor or method of a
Web Bean, and tells the Web Bean manager to call that constructor or method when
instantiating the Web Bean. The Web Bean manager will inject other Web Beans to the
parameters of the constructor or method."
msgstr ""
#. Tag: para
#: intro.xml:68
#, no-c-format
-msgid ""
-"At system initialization time, the Web Bean manager must validate that "
-"exactly one Web Bean exists which satisfies each injection point. In our "
-"example, if no implementation of <literal>Translator</literal> "
-"available—if the <literal>SentenceTranslator</literal> EJB was
not "
-"deployed—the Web Bean manager would throw an "
-"<literal>UnsatisfiedDependencyException</literal>. If more than one
"
-"implementation of <literal>Translator</literal> was available, the Web
Bean "
-"manager would throw an
<literal>AmbiguousDependencyException</literal>."
+msgid "At system initialization time, the Web Bean manager must validate that
exactly one Web Bean exists which satisfies each injection point. In our example, if no
implementation of <literal>Translator</literal> available—if the
<literal>SentenceTranslator</literal> EJB was not deployed—the Web
Bean manager would throw an <literal>UnsatisfiedDependencyException</literal>.
If more than one implementation of <literal>Translator</literal> was
available, the Web Bean manager would throw an
<literal>AmbiguousDependencyException</literal>."
msgstr ""
#. Tag: title
@@ -224,36 +212,19 @@
#. Tag: para
#: intro.xml:84
#, no-c-format
-msgid ""
-"A Web Bean is an application class that contains business logic. A Web Bean "
-"may be called directly from Java code, or it may be invoked via Unified EL. "
-"A Web Bean may access transactional resources. Dependencies between Web "
-"Beans are managed automatically by the Web Bean manager. Most Web Beans are "
-"<emphasis>stateful</emphasis> and
<emphasis>contextual</emphasis>. The "
-"lifecycle of a Web Bean is always managed by the Web Bean manager."
+msgid "A Web Bean is an application class that contains business logic. A Web Bean
may be called directly from Java code, or it may be invoked via Unified EL. A Web Bean may
access transactional resources. Dependencies between Web Beans are managed automatically
by the Web Bean manager. Most Web Beans are <emphasis>stateful</emphasis> and
<emphasis>contextual</emphasis>. The lifecycle of a Web Bean is always managed
by the Web Bean manager."
msgstr ""
#. Tag: para
#: intro.xml:91
#, no-c-format
-msgid ""
-"Let's back up a second. What does it really mean to be
\"contextual\"? Since "
-"Web 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 Web Bean see the Web Bean in "
-"different states. The client-visible state depends upon which instance of "
-"the Web Bean the client has a reference to."
+msgid "Let's back up a second. What does it really mean to be
\"contextual\"? Since Web 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 Web Bean see the Web Bean in
different states. The client-visible state depends upon which instance of the Web Bean the
client has a reference to."
msgstr ""
#. Tag: para
#: intro.xml:98
#, no-c-format
-msgid ""
-"However, like a stateless or singleton model, but
<emphasis>unlike</"
-"emphasis> stateful session beans, the client does not control the lifecycle
"
-"of the instance by explicitly creating and destroying it. Instead, the "
-"<emphasis>scope</emphasis> of the Web Bean determines:"
+msgid "However, like a stateless or singleton model, but
<emphasis>unlike</emphasis> stateful session beans, the client does not
control the lifecycle of the instance by explicitly creating and destroying it. Instead,
the <emphasis>scope</emphasis> of the Web Bean determines:"
msgstr ""
#. Tag: para
@@ -265,41 +236,25 @@
#. Tag: para
#: intro.xml:108
#, no-c-format
-msgid ""
-"which clients share a reference to a particular instance of the Web Bean."
+msgid "which clients share a reference to a particular instance of the Web
Bean."
msgstr ""
#. Tag: para
#: intro.xml:113
#, no-c-format
-msgid ""
-"For a given thread in a Web Beans application, there may be an "
-"<emphasis>active context</emphasis> associated with the scope of the
Web "
-"Bean. This context may be unique to the thread (for example, if the Web Bean
"
-"is request scoped), or it may be shared with certain other threads (for "
-"example, if the Web Bean is session scoped) or even all other threads (if it
"
-"is application scoped)."
+msgid "For a given thread in a Web Beans application, there may be an
<emphasis>active context</emphasis> associated with the scope of the Web Bean.
This context may be unique to the thread (for example, if the Web Bean is request scoped),
or it may be shared with certain other threads (for example, if the Web Bean is session
scoped) or even all other threads (if it is application scoped)."
msgstr ""
#. Tag: para
#: intro.xml:119
#, no-c-format
-msgid ""
-"Clients (for example, other Web Beans) executing in the same context will "
-"see the same instance of the Web Bean. But clients in a different context "
-"will see a different instance."
+msgid "Clients (for example, other Web Beans) executing in the same context will see
the same instance of the Web Bean. But clients in a different context will see a different
instance."
msgstr ""
#. Tag: para
#: intro.xml:123
#, no-c-format
-msgid ""
-"One great advantage of the contextual model is that it allows stateful Web "
-"Beans to be treated like services! The client need not concern itself with "
-"managing the lifecycle of the Web Bean it is using, <emphasis>nor does it
"
-"even need to know what that lifecyle is.</emphasis> Web Beans interact by
"
-"passing messages, and the Web Bean implementations define the lifecycle of "
-"their own state. The Web Beans are loosely coupled because:"
+msgid "One great advantage of the contextual model is that it allows stateful Web
Beans to be treated like services! The client need not concern itself with managing the
lifecycle of the Web Bean it is using, <emphasis>nor does it even need to know what
that lifecyle is.</emphasis> Web Beans interact by passing messages, and the Web
Bean implementations define the lifecycle of their own state. The Web Beans are loosely
coupled because:"
msgstr ""
#. Tag: para
@@ -317,21 +272,13 @@
#. Tag: para
#: intro.xml:139
#, no-c-format
-msgid ""
-"We can replace one Web Bean with a different Web Bean that implements the "
-"same API and has a different lifecycle (a different scope) without affecting
"
-"the other Web Bean implementation. In fact, Web Beans defines a "
-"sophisticated facility for overriding Web Bean implementations at deployment
"
-"time, as we will see in <xref linkend=\"deploymenttypes\"/>."
+msgid "We can replace one Web Bean with a different Web Bean that implements the
same API and has a different lifecycle (a different scope) without affecting the other Web
Bean implementation. In fact, Web Beans defines a sophisticated facility for overriding
Web Bean implementations at deployment time, as we will see in <xref
linkend=\"deploymenttypes\"/>."
msgstr ""
#. Tag: para
#: intro.xml:145
#, no-c-format
-msgid ""
-"Note that not all clients of a Web Bean are Web Beans. Other objects such as
"
-"Servlets or Message-Driven Beans—which are by nature not injectable,
"
-"contextual objects—may also obtain references to Web Beans by
injection."
+msgid "Note that not all clients of a Web Bean are Web Beans. Other objects such as
Servlets or Message-Driven Beans—which are by nature not injectable, contextual
objects—may also obtain references to Web Beans by injection."
msgstr ""
#. Tag: para
@@ -403,10 +350,7 @@
#. Tag: para
#: intro.xml:172
#, no-c-format
-msgid ""
-"Web Beans usually acquire references to other Web Beans via dependency "
-"injection. Any injected attribute specifies a \"contract\" that must be
"
-"satisfied by the Web Bean to be injected. The contract is:"
+msgid "Web Beans usually acquire references to other Web Beans via dependency
injection. Any injected attribute specifies a \"contract\" that must be
satisfied by the Web Bean to be injected. The contract is:"
msgstr ""
#. Tag: para
@@ -424,54 +368,37 @@
#. Tag: para
#: intro.xml:181
#, no-c-format
-msgid ""
-"An API is a user-defined class or interface. (If the Web Bean is an EJB "
-"session bean, the API type is the <literal>@Local</literal> interface
or "
-"bean-class local view). A binding type represents some client-visible "
-"semantic that is satisfied by some implementations of the API and not by "
-"others."
+msgid "An API is a user-defined class or interface. (If the Web Bean is an EJB
session bean, the API type is the <literal>@Local</literal> interface or
bean-class local view). A binding type represents some client-visible semantic that is
satisfied by some implementations of the API and not by others."
msgstr ""
#. Tag: para
#: intro.xml:186
#, no-c-format
-msgid ""
-"Binding types are represented by user-defined annotations that are "
-"themselves annotated <literal>@BindingType</literal>. For example, the
"
-"following injection point has API type
<literal>PaymentProcessor</literal> "
-"and binding type <literal>@CreditCard</literal>:"
+msgid "Binding types are represented by user-defined annotations that are themselves
annotated <literal>@BindingType</literal>. For example, the following
injection point has API type <literal>PaymentProcessor</literal> and binding
type <literal>@CreditCard</literal>:"
msgstr ""
#. Tag: programlisting
#: intro.xml:191
#, no-c-format
msgid "<![CDATA[@CreditCard PaymentProcessor paymentProcessor]]>"
-msgstr ""
+msgstr "<![CDATA[@CreditCard PaymentProcessor paymentProcessor]]>"
#. Tag: para
#: intro.xml:193
#, no-c-format
-msgid ""
-"If no binding type is explicitly specified at an injection point, the "
-"default binding type <literal>@Current</literal> is assumed."
+msgid "If no binding type is explicitly specified at an injection point, the default
binding type <literal>@Current</literal> is assumed."
msgstr ""
#. Tag: para
#: intro.xml:196
#, no-c-format
-msgid ""
-"For each injection point, the Web Bean manager searches for a Web Bean which
"
-"satisfies the contract (implements the API, and has all the binding types), "
-"and injects that Web Bean."
+msgid "For each injection point, the Web Bean manager searches for a Web Bean which
satisfies the contract (implements the API, and has all the binding types), and injects
that Web Bean."
msgstr ""
#. Tag: para
#: intro.xml:200
#, no-c-format
-msgid ""
-"The following Web Bean has the binding type
<literal>@CreditCard</literal> "
-"and implements the API type <literal>PaymentProcessor</literal>. It
could "
-"therefore be injected to the example injection point:"
+msgid "The following Web Bean has the binding type
<literal>@CreditCard</literal> and implements the API type
<literal>PaymentProcessor</literal>. It could therefore be injected to the
example injection point:"
msgstr ""
#. Tag: programlisting
@@ -482,24 +409,20 @@
"public class CreditCardPaymentProcessor \n"
" implements PaymentProcessor { ... }]]>"
msgstr ""
+"<![CDATA[@CreditCard\n"
+"public class CreditCardPaymentProcessor \n"
+" implements PaymentProcessor { ... }]]>"
#. Tag: para
#: intro.xml:206
#, no-c-format
-msgid ""
-"If a Web Bean does not explicitly specify a set of binding types, it has "
-"exactly one binding type: the default binding type
<literal>@Current</"
-"literal>."
+msgid "If a Web Bean does not explicitly specify a set of binding types, it has
exactly one binding type: the default binding type
<literal>(a)Current</literal>."
msgstr ""
#. Tag: para
#: intro.xml:209
#, no-c-format
-msgid ""
-"Web Beans defines a sophisticated but intuitive <emphasis>resolution "
-"algorithm</emphasis> that helps the container decide what to do if there is
"
-"more than one Web Bean that satisfies a particular contract. We'll get into
"
-"the details in <xref linkend=\"injection\"/>."
+msgid "Web Beans defines a sophisticated but intuitive <emphasis>resolution
algorithm</emphasis> that helps the container decide what to do if there is more
than one Web Bean that satisfies a particular contract. We'll get into the details in
<xref linkend=\"injection\"/>."
msgstr ""
#. Tag: title
@@ -511,32 +434,19 @@
#. Tag: para
#: intro.xml:219
#, no-c-format
-msgid ""
-"<emphasis>Deployment types</emphasis> let us classify our Web Beans by
"
-"deployment scenario. A deployment type is an annotation that represents a "
-"particular deployment scenario, for example <literal>@Mock</literal>,
"
-"<literal>@Staging</literal> or
<literal>@AustralianTaxLaw</literal>. We "
-"apply the annotation to Web Beans which should be deployed in that scenario.
"
-"A deployment type allows a whole set of Web Beans to be conditionally "
-"deployed, with a just single line of configuration."
+msgid "<emphasis>Deployment types</emphasis> let us classify our Web
Beans by deployment scenario. A deployment type is an annotation that represents a
particular deployment scenario, for example <literal>@Mock</literal>,
<literal>@Staging</literal> or
<literal>@AustralianTaxLaw</literal>. We apply the annotation to Web Beans
which should be deployed in that scenario. A deployment type allows a whole set of Web
Beans to be conditionally deployed, with a just single line of configuration."
msgstr ""
#. Tag: para
#: intro.xml:226
#, no-c-format
-msgid ""
-"Many Web Beans just use the default deployment type
<literal>@Production</"
-"literal>, in which case no deployment type need be explicitly specified. All
"
-"three Web Bean in our example have the deployment type
<literal>@Production</"
-"literal>."
+msgid "Many Web Beans just use the default deployment type
<literal>@Production</literal>, in which case no deployment type need be
explicitly specified. All three Web Bean in our example have the deployment type
<literal>(a)Production</literal>."
msgstr ""
#. Tag: para
#: intro.xml:230
#, no-c-format
-msgid ""
-"In a testing environment, we might want to replace the "
-"<literal>SentenceTranslator</literal> Web Bean with a \"mock
object\":"
+msgid "In a testing environment, we might want to replace the
<literal>SentenceTranslator</literal> Web Bean with a \"mock
object\":"
msgstr ""
#. Tag: programlisting
@@ -550,22 +460,23 @@
" }\n"
"}]]>"
msgstr ""
+"<![CDATA[@Mock\n"
+"public class MockSentenceTranslator implements Translator {\n"
+" public String translate(String sentence) {\n"
+" return \"Lorem ipsum dolor sit amet\";\n"
+" }\n"
+"}]]>"
#. Tag: para
#: intro.xml:236
#, no-c-format
-msgid ""
-"We would enable the deployment type <literal>@Mock</literal> in our
testing "
-"environment, to indicate that <literal>MockSentenceTranslator</literal>
and "
-"any other Web Bean annotated <literal>@Mock</literal> should be
used."
+msgid "We would enable the deployment type <literal>@Mock</literal> in
our testing environment, to indicate that
<literal>MockSentenceTranslator</literal> and any other Web Bean annotated
<literal>@Mock</literal> should be used."
msgstr ""
#. Tag: para
#: intro.xml:240
#, no-c-format
-msgid ""
-"We'll talk more about this unique and powerful feature in <xref
linkend="
-"\"deploymenttypes\"/>."
+msgid "We'll talk more about this unique and powerful feature in <xref
linkend=\"deploymenttypes\"/>."
msgstr ""
#. Tag: title
@@ -577,20 +488,13 @@
#. Tag: para
#: intro.xml:248
#, no-c-format
-msgid ""
-"The <emphasis>scope</emphasis> defines the lifecycle and visibility of
"
-"instances of the Web Bean. The Web Beans context model is extensible, "
-"accommodating arbitrary scopes. However, certain important scopes are built-"
-"in to the specification, and provided by the Web Bean manager. A scope is "
-"represented by an annotation type."
+msgid "The <emphasis>scope</emphasis> defines the lifecycle and
visibility of instances of the Web Bean. The Web Beans context model is extensible,
accommodating arbitrary scopes. However, certain important scopes are built-in to the
specification, and provided by the Web Bean manager. A scope is represented by an
annotation type."
msgstr ""
#. Tag: para
#: intro.xml:254
#, no-c-format
-msgid ""
-"For example, any web application may have <emphasis>session
scoped</"
-"emphasis> Web Beans:"
+msgid "For example, any web application may have <emphasis>session
scoped</emphasis> Web Beans:"
msgstr ""
#. Tag: programlisting
@@ -600,23 +504,19 @@
"<![CDATA[@SessionScoped\n"
"public class ShoppingCart { ... }]]>"
msgstr ""
+"<![CDATA[@SessionScoped\n"
+"public class ShoppingCart { ... }]]>"
#. Tag: para
#: intro.xml:259
#, no-c-format
-msgid ""
-"An instance of a session scoped Web 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 Web Bean is bound to a user session and is
shared by all requests that execute in the context of that session."
msgstr ""
#. Tag: para
#: intro.xml:262
#, no-c-format
-msgid ""
-"By default, Web Beans belong to a special scope called the "
-"<emphasis>dependent pseudo-scope</emphasis>. Web Beans with this scope
are "
-"pure dependent objects of the object into which they are injected, and their
"
-"lifecycle is bound to the lifecycle of that object."
+msgid "By default, Web Beans belong to a special scope called the
<emphasis>dependent pseudo-scope</emphasis>. Web Beans with this scope are
pure dependent objects of the object into which they are injected, and their lifecycle is
bound to the lifecycle of that object."
msgstr ""
#. Tag: para
@@ -634,9 +534,7 @@
#. Tag: para
#: intro.xml:274
#, no-c-format
-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:"
+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:"
msgstr ""
#. Tag: programlisting
@@ -646,6 +544,8 @@
"<![CDATA[@SessionScoped @Named(\"cart\")\n"
"public class ShoppingCart { ... }]]>"
msgstr ""
+"<![CDATA[@SessionScoped @Named(\"cart\")\n"
+"public class ShoppingCart { ... }]]>"
#. Tag: para
#: intro.xml:280
@@ -661,12 +561,14 @@
" ....\n"
"</h:dataTable>]]>"
msgstr ""
+"<![CDATA[<h:dataTable value=\"#{cart.lineItems}\"
var=\"item\">\n"
+" ....\n"
+"</h:dataTable>]]>"
#. Tag: para
#: intro.xml:284
#, no-c-format
-msgid ""
-"It's even easier to just let the name be defaulted by the Web Bean
manager:"
+msgid "It's even easier to just let the name be defaulted by the Web Bean
manager:"
msgstr ""
#. Tag: programlisting
@@ -676,13 +578,13 @@
"<![CDATA[@SessionScoped @Named\n"
"public class ShoppingCart { ... }]]>"
msgstr ""
+"<![CDATA[@SessionScoped @Named\n"
+"public class ShoppingCart { ... }]]>"
#. Tag: para
#: intro.xml:289
#, no-c-format
-msgid ""
-"In this case, the name defaults to
<literal>shoppingCart</literal>—the "
-"unqualified class name, with the first character changed to lowercase."
+msgid "In this case, the name defaults to
<literal>shoppingCart</literal>—the unqualified class name, with the
first character changed to lowercase."
msgstr ""
#. Tag: title
@@ -694,19 +596,13 @@
#. Tag: para
#: intro.xml:297
#, no-c-format
-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 Beans "
-"provides a new approach to binding interceptors to EJB beans and other Web "
-"Beans."
+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 Beans provides a new
approach to binding interceptors to EJB beans and other Web Beans."
msgstr ""
#. Tag: para
#: intro.xml:302
#, no-c-format
-msgid ""
-"It remains possible to directly specify the interceptor class via use of the
"
-"<literal>@Interceptors</literal> annotation:"
+msgid "It remains possible to directly specify the interceptor class via use of the
<literal>@Interceptors</literal> annotation:"
msgstr ""
#. Tag: programlisting
@@ -717,13 +613,14 @@
"(a)Interceptors(TransactionInterceptor.class)\n"
"public class ShoppingCart { ... }]]>"
msgstr ""
+"<![CDATA[@SessionScoped \n"
+"(a)Interceptors(TransactionInterceptor.class)\n"
+"public class ShoppingCart { ... }]]>"
#. Tag: para
#: intro.xml:307
#, no-c-format
-msgid ""
-"However, it is more elegant, and better practice, to indirect the "
-"interceptor binding through an <emphasis>interceptor binding
type</emphasis>:"
+msgid "However, it is more elegant, and better practice, to indirect the interceptor
binding through an <emphasis>interceptor binding type</emphasis>:"
msgstr ""
#. Tag: programlisting
@@ -733,13 +630,13 @@
"<![CDATA[@SessionScoped @Transactional\n"
"public class ShoppingCart { ... }]]>"
msgstr ""
+"<![CDATA[@SessionScoped @Transactional\n"
+"public class ShoppingCart { ... }]]>"
#. Tag: para
#: intro.xml:313
#, no-c-format
-msgid ""
-"We'll discuss Web Beans interceptors and decorators in <xref linkend="
-"\"interceptors\"/> and <xref
linkend=\"decorators\"/>."
+msgid "We'll discuss Web Beans interceptors and decorators in <xref
linkend=\"interceptors\"/> and <xref
linkend=\"decorators\"/>."
msgstr ""
#. Tag: title
@@ -751,9 +648,7 @@
#. Tag: para
#: intro.xml:323
#, no-c-format
-msgid ""
-"We've already seen that JavaBeans, EJBs and some other Java classes can be
"
-"Web Beans. But exactly what kinds of objects are Web Beans?"
+msgid "We've already seen that JavaBeans, EJBs and some other Java classes can
be Web Beans. But exactly what kinds of objects are Web Beans?"
msgstr ""
#. Tag: title
@@ -765,17 +660,13 @@
#. Tag: para
#: intro.xml:329
#, no-c-format
-msgid ""
-"The Web Beans specification says that a concrete Java class is a "
-"<emphasis>simple</emphasis> Web Bean if:"
+msgid "The Web Beans specification says that a concrete Java class is a
<emphasis>simple</emphasis> Web Bean if:"
msgstr ""
#. Tag: para
#: intro.xml:334
#, no-c-format
-msgid ""
-"it is not an EE container-managed component, like an EJB, a Servlet or a JPA
"
-"entity,"
+msgid "it is not an EE container-managed component, like an EJB, a Servlet or a JPA
entity,"
msgstr ""
#. Tag: para
@@ -793,9 +684,7 @@
#. Tag: para
#: intro.xml:344
#, no-c-format
-msgid ""
-"it has a constructor with no parameters, or a constructor annotated "
-"<literal>(a)Initializer</literal>."
+msgid "it has a constructor with no parameters, or a constructor annotated
<literal>(a)Initializer</literal>."
msgstr ""
#. Tag: para
@@ -807,10 +696,7 @@
#. Tag: para
#: intro.xml:351
#, no-c-format
-msgid ""
-"Every interface implemented directly or indirectly by a simple Web Bean is "
-"an API type of the simple Web Bean. The class and its superclasses are also "
-"API types."
+msgid "Every interface implemented directly or indirectly by a simple Web Bean is an
API type of the simple Web Bean. The class and its superclasses are also API types."
msgstr ""
#. Tag: title
@@ -822,34 +708,19 @@
#. Tag: para
#: intro.xml:360
#, no-c-format
-msgid ""
-"The specification says that all EJB 3-style session and singleton beans are "
-"<emphasis>enterprise</emphasis> Web Beans. Message driven beans are not
Web "
-"Beans—since they are not intended to be injected into other "
-"objects—but they can take advantage of most of the functionality of Web
"
-"Beans, including dependency injection and interceptors."
+msgid "The specification says that all EJB 3-style session and singleton beans are
<emphasis>enterprise</emphasis> Web Beans. Message driven beans are not Web
Beans—since they are not intended to be injected into other objects—but
they can take advantage of most of the functionality of Web Beans, including dependency
injection and interceptors."
msgstr ""
#. Tag: para
#: intro.xml:366
#, no-c-format
-msgid ""
-"Every local interface of an enterprise Web Bean that does not have a "
-"wildcard type parameter or type variable, and every one of its "
-"superinterfaces, is an API type of the enterprise Web Bean. If the EJB bean "
-"has a bean class local view, the bean class, and every one of its "
-"superclasses, is also an API type."
+msgid "Every local interface of an enterprise Web Bean that does not have a wildcard
type parameter or type variable, and every one of its superinterfaces, is an API type of
the enterprise Web Bean. If the EJB bean has a bean class local view, the bean class, and
every one of its superclasses, is also an API type."
msgstr ""
#. Tag: para
#: intro.xml:372
#, no-c-format
-msgid ""
-"Stateful session beans should declare a remove method with no parameters or "
-"a remove method annotated <literal>@Destructor</literal>. The Web Bean
"
-"manager calls this method to destroy the stateful session bean instance at "
-"the end of its lifecycle. This method is called the
<emphasis>destructor</"
-"emphasis> method of the enterprise Web Bean."
+msgid "Stateful session beans should declare a remove method with no parameters or a
remove method annotated <literal>@Destructor</literal>. The Web Bean manager
calls this method to destroy the stateful session bean instance at the end of its
lifecycle. This method is called the <emphasis>destructor</emphasis> method of
the enterprise Web Bean."
msgstr ""
#. Tag: programlisting
@@ -866,14 +737,20 @@
"\n"
"}]]>"
msgstr ""
+"<![CDATA[@Stateful @SessionScoped\n"
+"public class ShoppingCart {\n"
+"\n"
+" ...\n"
+" \n"
+" @Remove\n"
+" public void destroy() {}\n"
+"\n"
+"}]]>"
#. Tag: para
#: intro.xml:380
#, no-c-format
-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 EJB, such
"
-"as:"
+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 EJB, such as:"
msgstr ""
#. Tag: para
@@ -891,9 +768,7 @@
#. Tag: para
#: intro.xml:393
#, 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
@@ -911,48 +786,31 @@
#. Tag: para
#: intro.xml:404
#, no-c-format
-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."
+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."
msgstr ""
#. Tag: para
#: intro.xml:407
#, no-c-format
-msgid ""
-"Many Web Beans (including any session or application scoped Web Bean) are "
-"available for concurrent access. Therefore, the concurrency management "
-"provided by EJB 3.1 is especially useful. Most session and application "
-"scoped Web Beans should be EJBs."
+msgid "Many Web Beans (including any session or application scoped Web Bean) are
available for concurrent access. Therefore, the concurrency management provided by EJB 3.1
is especially useful. Most session and application scoped Web Beans should be EJBs."
msgstr ""
#. Tag: para
#: intro.xml:412
#, no-c-format
-msgid ""
-"Web 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
<literal>@Stateless</literal>/<literal>@Stateful</literal>/"
-"<literal>@Singleton</literal> model, with its support for passivation
and "
-"instance pooling."
+msgid "Web 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
<literal>@Stateless</literal>/<literal>@Stateful</literal>/<literal>@Singleton</literal>
model, with its support for passivation and instance pooling."
msgstr ""
#. Tag: para
#: intro.xml:417
#, 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
#: intro.xml:420
#, no-c-format
-msgid ""
-"It's usually easy to start with simple Web Bean, and then turn it into an
"
-"EJB, just by adding an annotation: <literal>@Stateless</literal>,
"
-"<literal>@Stateful</literal> or
<literal>(a)Singleton</literal>."
+msgid "It's usually easy to start with simple Web Bean, and then turn it into an
EJB, just by adding an annotation: <literal>@Stateless</literal>,
<literal>@Stateful</literal> or
<literal>(a)Singleton</literal>."
msgstr ""
#. Tag: title
@@ -964,12 +822,7 @@
#. Tag: para
#: intro.xml:429
#, no-c-format
-msgid ""
-"A <emphasis>producer method</emphasis> is a method that is called by
the Web "
-"Bean manager to obtain an instance of the Web Bean when no instance exists "
-"in the current context. A producer method lets the application take full "
-"control of the instantiation process, instead of leaving instantiation to "
-"the Web Bean manager. For example:"
+msgid "A <emphasis>producer method</emphasis> is a method that is called
by the Web Bean manager to obtain an instance of the Web Bean when no instance exists in
the current context. A producer method lets the application take full control of the
instantiation process, instead of leaving instantiation to the Web Bean manager. For
example:"
msgstr ""
#. Tag: programlisting
@@ -987,27 +840,33 @@
"\n"
"}]]>"
msgstr ""
+"<![CDATA[@ApplicationScoped\n"
+"public class Generator {\n"
+"\n"
+" private Random random = new Random( System.currentTimeMillis() );\n"
+" \n"
+" @Produces @Random int next() {\n"
+" return random.nextInt(100);\n"
+" }\n"
+"\n"
+"}]]>"
#. Tag: para
#: intro.xml:437
#, no-c-format
-msgid ""
-"The result of a producer method is injected just like any other Web Bean."
+msgid "The result of a producer method is injected just like any other Web
Bean."
msgstr ""
#. Tag: programlisting
#: intro.xml:439
#, no-c-format
msgid "<![CDATA[@Random int randomNumber]]>"
-msgstr ""
+msgstr "<![CDATA[@Random int randomNumber]]>"
#. Tag: para
#: intro.xml:441
#, no-c-format
-msgid ""
-"The method return type and all interfaces it extends/implements directly or "
-"indirectly are API types of the producer method. If the return type is a "
-"class, all superclasses are also API types."
+msgid "The method return type and all interfaces it extends/implements directly or
indirectly are API types of the producer method. If the return type is a class, all
superclasses are also API types."
msgstr ""
#. Tag: para
@@ -1024,13 +883,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
#: intro.xml:449
#, no-c-format
-msgid ""
-"These producer methods may define matching <emphasis>disposal
methods</"
-"emphasis>:"
+msgid "These producer methods may define matching <emphasis>disposal
methods</emphasis>:"
msgstr ""
#. Tag: programlisting
@@ -1041,21 +901,20 @@
" connection.close();\n"
"}]]>"
msgstr ""
+"<![CDATA[void close(@Disposes Connection connection) {\n"
+" connection.close();\n"
+"}]]>"
#. Tag: para
#: intro.xml:453
#, no-c-format
-msgid ""
-"This disposal method is called automatically by the Web Bean manager at the "
-"end of the request."
+msgid "This disposal method is called automatically by the Web Bean manager at the
end of the request."
msgstr ""
#. Tag: para
#: intro.xml:456
#, 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
@@ -1067,9 +926,6 @@
#. Tag: para
#: intro.xml:463
#, no-c-format
-msgid ""
-"Finally, a JMS queue or topic can be a Web Bean. Web Beans relieves the "
-"developer from the tedium of managing the lifecycles of all the various JMS "
-"objects required to send messages to queues and topics. We'll discuss JMS
"
-"endpoints in <xref linkend=\"jms\"/>."
+msgid "Finally, a JMS queue or topic can be a Web Bean. Web Beans relieves the
developer from the tedium of managing the lifecycles of all the various JMS objects
required to send messages to queues and topics. We'll discuss JMS endpoints in
<xref linkend=\"jms\"/>."
msgstr ""
+
Modified: doc/trunk/reference/it-IT/modules/next.po
===================================================================
--- doc/trunk/reference/it-IT/modules/next.po 2008-12-19 22:42:07 UTC (rev 611)
+++ doc/trunk/reference/it-IT/modules/next.po 2008-12-19 23:40:34 UTC (rev 612)
@@ -3,11 +3,11 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: master.xml \n"
+"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:26+0000\n"
-"PO-Revision-Date: 2008-12-19 20:26+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2008-12-19 23:55+0100\n"
+"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -17,33 +17,23 @@
#: next.xml:4
#, no-c-format
msgid "Next steps"
-msgstr ""
+msgstr "Prossimi passi"
#. Tag: para
#: next.xml:6
#, no-c-format
-msgid ""
-"Because Web Beans is so new, there's not yet a lot of information available
"
-"online."
-msgstr ""
+msgid "Because Web Beans is so new, there's not yet a lot of information
available online."
+msgstr "Poiché Web Beans è così nuova, non è ancora disponibile molta informazione
online."
#. Tag: para
#: next.xml:9
#, no-c-format
-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 "
-"the length of this article, and almost as readable. But, of course, it "
-"covers many details that we've skipped over. The spec is available from "
-"<literal>http://jcp.org/en/jsr/detail?id=299</literal>."
-msgstr ""
+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 the length of this article,
and almost as readable. But, of course, it covers many details that we've skipped
over. The spec is available from
<
literal>http://jcp.org/en/jsr/detail?id=299</literal>."
+msgstr "Certamente la specifica Web Beans è la migliore fonte per avere informazioni
su Web Beans. La specifica è lunga circa 100 pagine, solo il doppio di quest'articolo
e per lo più leggibile altrettanto facilmente. Ma sicuramente copre molti dettagli che
sono stati saltati qua. La specifica è disponibile da
<
literal>http://jcp.org/en/jsr/detail?id=299</literal>."
#. Tag: para
#: next.xml:15
#, no-c-format
-msgid ""
-"The Web Beans Reference implementation is being developed at
<literal>http://"
-"seamframework.org/WebBeans</literal>. The RI development team and the Web
"
-"Beans spec lead blog at <literal>http://in.relation.to</literal>. This
"
-"article is substantially based upon a series of blog entries published
there."
-msgstr ""
+msgid "The Web Beans Reference implementation is being developed at
<
literal>http://seamframework.org/WebBeans</literal>. The RI development team
and the Web Beans spec lead blog at <literal>http://in.relation.to</literal>.
This article is substantially based upon a series of blog entries published there."
+msgstr "L'implementazione della documentazione Web Beans è stata sviluppata in
<
literal>http://seamframework.org/WebBeans</literal>. Il team di sviluppo di
RI ed il blog per la specifica Web Beans si trova in
<literal>http://in.relation.to</literal>. Quest'articolo è sostanzialmente
basato su una serie di articoli pubblicati sul blog."
+