[webbeans-commits] Webbeans SVN: r1282 - doc/trunk/reference/it-IT.
by webbeans-commits@lists.jboss.org
Author: nico.ben
Date: 2009-01-29 05:11:32 -0500 (Thu, 29 Jan 2009)
New Revision: 1282
Modified:
doc/trunk/reference/it-IT/interceptors.po
doc/trunk/reference/it-IT/part2.po
doc/trunk/reference/it-IT/producermethods.po
Log:
Italian translation
Modified: doc/trunk/reference/it-IT/interceptors.po
===================================================================
--- doc/trunk/reference/it-IT/interceptors.po 2009-01-29 10:04:37 UTC (rev 1281)
+++ doc/trunk/reference/it-IT/interceptors.po 2009-01-29 10:11:32 UTC (rev 1282)
@@ -54,7 +54,7 @@
#: interceptors.xml:29
#, no-c-format
msgid "lifecycle callback interception."
-msgstr "intercettazione della chiamata del ciclo di vita."
+msgstr "intercettazione della chiamata del ciclo di vita"
#. Tag: para
#: interceptors.xml:33
@@ -265,7 +265,7 @@
#: interceptors.xml:105
#, no-c-format
msgid "it lets us enable or disable interceptor classes at deployment time."
-msgstr "consente di abilitare o disabilitare le classi di interceptor a deployment time."
+msgstr "consente di abilitare o disabilitare le classi di interceptor a deployment time"
#. Tag: para
#: interceptors.xml:109
Modified: doc/trunk/reference/it-IT/part2.po
===================================================================
--- doc/trunk/reference/it-IT/part2.po 2009-01-29 10:04:37 UTC (rev 1281)
+++ doc/trunk/reference/it-IT/part2.po 2009-01-29 10:11:32 UTC (rev 1282)
@@ -36,7 +36,7 @@
#: part2.xml:18
#, no-c-format
msgid "<emphasis>contextual lifecycle management</emphasis> decouples Web Bean lifecycles."
-msgstr "<emphasis>la gestione contestuale del ciclo di vita</emphasis> disaccoppia i cicli di vita dei Web Bean."
+msgstr "<emphasis>la gestione contestuale del ciclo di vita</emphasis> disaccoppia i cicli di vita dei Web Bean"
#. Tag: para
#: part2.xml:23
@@ -74,7 +74,7 @@
#: part2.xml:47
#, no-c-format
msgid "<emphasis>event notifications</emphasis> decouple event producers from event consumers."
-msgstr "le <emphasis>notifiche degli eventi</emphasis> disaccoppiano i produttori di eventi dai consumatori."
+msgstr "le <emphasis>notifiche degli eventi</emphasis> disaccoppiano i produttori di eventi dai consumatori"
#. Tag: para
#: part2.xml:52
Modified: doc/trunk/reference/it-IT/producermethods.po
===================================================================
--- doc/trunk/reference/it-IT/producermethods.po 2009-01-29 10:04:37 UTC (rev 1281)
+++ doc/trunk/reference/it-IT/producermethods.po 2009-01-29 10:11:32 UTC (rev 1282)
@@ -71,7 +71,7 @@
" } \n"
" }\n"
" \n"
-"}]]></programlisting> <para>Si consideri un punto di iniezione:</para> <programlisting role=\"JAVA\"><![CDATA[@Preferred PaymentStrategy paymentStrat;]]></programlisting> <para>Questo punto di iniezione ha lo stesso tipo e annotazioni di binding del metodo produttore, e quindi risolve i metodi produttori usando le regole di iniezione dei Web Beans. Il metodo produttore verrà chiamato dal manager Web Bean per ottenere un'istanza per per servire questo punto di iniezione.</para>"
+"}]]></programlisting> <para>Si consideri un punto di iniezione:</para> <programlisting role=\"JAVA\"><![CDATA[@Preferred PaymentStrategy paymentStrat;]]></programlisting> <para>Questo punto di iniezione ha lo stesso tipo e annotazioni di binding del metodo produttore, e quindi risolve i metodi produttori usando le regole di iniezione dei Web Beans. Il metodo produttore verrà chiamato dal manager Web Bean per ottenere un'istanza per servire questo punto di iniezione.</para>"
#. Tag: title
#: producermethods.xml:68
@@ -219,5 +219,5 @@
#: producermethods.xml:125
#, no-c-format
msgid "Then a new <emphasis>dependent</emphasis> instance of <literal>CreditCardPaymentStrategy</literal> will be created, passed to the producer method, returned by the producer method and finally bound to the session context. The dependent object won't be destroyed until the <literal>Preferences</literal> object is destroyed, at the end of the session."
-msgstr "Quindi verrebbe creata una nuova istanza <emphasis>dipendente</emphasis> di <literal>CreditCardPaymentStrategy</literal>, passata al metodo produttore, ritornata al metodo produttore ed infine associata al contesto di sessione. L'oggetto dipendente non verrebbe distrutto finché l'oggetto <literal>Preferences</literal> non venga distrutto, cioè a fine sessione."
+msgstr "Quindi verrebbe creata una nuova istanza <emphasis>dipendente</emphasis> di <literal>CreditCardPaymentStrategy</literal>, passata al metodo produttore, ritornata al metodo produttore ed infine associata al contesto di sessione. L'oggetto dipendente non verrebbe distrutto finché l'oggetto <literal>Preferences</literal> non viene distrutto, cioè a fine sessione."
15 years, 12 months
[webbeans-commits] Webbeans SVN: r1281 - doc/trunk/reference/it-IT.
by webbeans-commits@lists.jboss.org
Author: nico.ben
Date: 2009-01-29 05:04:37 -0500 (Thu, 29 Jan 2009)
New Revision: 1281
Modified:
doc/trunk/reference/it-IT/intro.po
doc/trunk/reference/it-IT/producermethods.po
doc/trunk/reference/it-IT/scopescontexts.po
Log:
Italian translation
Modified: doc/trunk/reference/it-IT/intro.po
===================================================================
--- doc/trunk/reference/it-IT/intro.po 2009-01-29 08:21:52 UTC (rev 1280)
+++ doc/trunk/reference/it-IT/intro.po 2009-01-29 10:04:37 UTC (rev 1281)
@@ -365,7 +365,7 @@
#: intro.xml:178
#, no-c-format
msgid "a set of binding types."
-msgstr "un set di tipi di binding."
+msgstr "un set di tipi di binding"
# client-visible semantic =?
#. Tag: para
Modified: doc/trunk/reference/it-IT/producermethods.po
===================================================================
--- doc/trunk/reference/it-IT/producermethods.po 2009-01-29 08:21:52 UTC (rev 1280)
+++ doc/trunk/reference/it-IT/producermethods.po 2009-01-29 10:04:37 UTC (rev 1281)
@@ -54,7 +54,7 @@
" \n"
"}]]></programlisting> <para>Consider an injection point:</para> <programlisting role=\"JAVA\"><![CDATA[@Preferred PaymentStrategy paymentStrat;]]></programlisting> <para>This injection point has the same type and binding annotations as the producer method, so it resolves to the producer method using the usual Web Beans injection rules. The producer method will be called by the Web Bean manager to obtain an instance to service this injection point.</para>."
msgstr ""
-"<blockquote> <para>Un metodo produttore Web Bean agisce come sorgente di oggetti da iniettare, dove:</para> <itemizedlist> <listitem> <para>gli oggetti da iniettare non è richiesto siano istanze di Web Beans,</para> </listitem> <listitem> <para>il tipo concreto di oggetti da iniettare può variare a runtime o</para> </listitem> <listitem> <para>gli oggetti richiedono alcune inizializzazini personalizzate che non vengono eseguite dal costruttore Web Bean</para> </listitem> </itemizedlist> </blockquote> <para>Per esempio un metodo produttore consente di:</para> <itemizedlist> <listitem> <para>esporre un entity JPA comeWeb Bean,</para> </listitem> <listitem> <para>esporre qualsiasi classe JDK comeWeb Bean,</para> </listitem> <listitem> <para>definire Web Beans multipli, con scope o inizializzazione differenti, per la stessa implementazionedi classe, o</para> </listitem> <listitem> <para>variare l'implementazione di un tipo di API a runtime.</para> </listitem> </itemizedlist>!
<para>In particolare, i metodi produttori consentono di usare un polimorfismo a runtime con i Web Beans. Come visto, i tipi di deploy sono soluzioni al problema del polimorfismo durante la fase di deploy. Ma una volta che il sistema viene deployato, l'implementazione del Web Bean viene fissata. Un metodo produttore non ha questi limiti:</para> <programlisting role=\"JAVA\"><![CDATA[@SessionScoped\n"
+"<blockquote> <para>Un metodo produttore Web Bean agisce come sorgente di oggetti da iniettare, dove:</para> <itemizedlist> <listitem> <para>gli oggetti da iniettare non è richiesto siano istanze di Web Beans,</para> </listitem> <listitem> <para>il tipo concreto di oggetti da iniettare può variare a runtime o</para> </listitem> <listitem> <para>gli oggetti richiedono alcune inizializzazini personalizzate che non vengono eseguite dal costruttore Web Bean</para> </listitem> </itemizedlist> </blockquote> <para>Per esempio un metodo produttore consente di:</para> <itemizedlist> <listitem> <para>esporre un entity JPA comeWeb Bean,</para> </listitem> <listitem> <para>esporre qualsiasi classe JDK comeWeb Bean,</para> </listitem> <listitem> <para>definire Web Beans multipli, con scope o inizializzazione differenti, per la stessa implementazionedi classe, o</para> </listitem> <listitem> <para>variare l'implementazione di un tipo di API a runtime</para> </listitem> </itemizedlist> !
<para>In particolare, i metodi produttori consentono di usare un polimorfismo a runtime con i Web Beans. Come visto, i tipi di deploy sono soluzioni al problema del polimorfismo durante la fase di deploy. Ma una volta che il sistema viene deployato, l'implementazione del Web Bean viene fissata. Un metodo produttore non ha questi limiti:</para> <programlisting role=\"JAVA\"><![CDATA[@SessionScoped\n"
"public class Preferences {\n"
" \n"
" private PaymentStrategyType paymentStrategy;\n"
Modified: doc/trunk/reference/it-IT/scopescontexts.po
===================================================================
--- doc/trunk/reference/it-IT/scopescontexts.po 2009-01-29 08:21:52 UTC (rev 1280)
+++ doc/trunk/reference/it-IT/scopescontexts.po 2009-01-29 10:04:37 UTC (rev 1281)
@@ -155,7 +155,7 @@
#: scopescontexts.xml:90
#, no-c-format
msgid "any JSF request has access to an active conversation scope."
-msgstr "qualsiasi richiesta JSF ha accesso allo scope attivo di conversazione."
+msgstr "qualsiasi richiesta JSF ha accesso allo scope attivo di conversazione"
#. Tag: para
#: scopescontexts.xml:94
@@ -221,7 +221,7 @@
#: scopescontexts.xml:133
#, no-c-format
msgid "holds state associated with a particular web browser tab in a JSF application."
-msgstr "mantiene lo stato associato ad un particolare tab del browser in un'applicazione JSF."
+msgstr "mantiene lo stato associato ad un particolare tab del browser in un'applicazione JSF"
#. Tag: para
#: scopescontexts.xml:138
15 years, 12 months
[webbeans-commits] Webbeans SVN: r1280 - ri/trunk/jboss-as/resources.
by webbeans-commits@lists.jboss.org
Author: alesj
Date: 2009-01-29 03:21:52 -0500 (Thu, 29 Jan 2009)
New Revision: 1280
Modified:
ri/trunk/jboss-as/resources/webbeans-ejb-jboss-beans.xml
Log:
[WBRI-121]; fix resolver injection.
Modified: ri/trunk/jboss-as/resources/webbeans-ejb-jboss-beans.xml
===================================================================
--- ri/trunk/jboss-as/resources/webbeans-ejb-jboss-beans.xml 2009-01-29 07:26:05 UTC (rev 1279)
+++ ri/trunk/jboss-as/resources/webbeans-ejb-jboss-beans.xml 2009-01-29 08:21:52 UTC (rev 1280)
@@ -5,14 +5,17 @@
-->
<deployment xmlns="urn:jboss:bean-deployer:2.0">
+ <bean name="WBJBossEjb" class="org.jboss.webbeans.integration.ejb.util.JBossEjb"/>
+
<beanfactory name="JBossEjbResolver" class="org.jboss.webbeans.integration.ejb.JBossEjbResolver">
<property name="controller"><inject bean="jboss.kernel:service=KernelController" /></property>
- <property name="resolver"><inject /></property>
+ <property name="resolver"><inject bean="WBJBossEjb" property="resolver"/></property>
<property name="persistenceUnitDependencyResolver"><inject bean="PersistenceUnitDependencyResolver" /></property>
+ <property name="jbossEjb"><inject bean="WBJBossEjb" /></property>
</beanfactory>
<beanfactory name="JBossEjbDiscovery" class="org.jboss.webbeans.integration.ejb.JBossEjbDiscovery">
- <property name="resolver"><inject /></property>
+ <property name="resolver"><inject bean="WBJBossEjb" property="resolver"/></property>
</beanfactory>
</deployment>
15 years, 12 months
[webbeans-commits] Webbeans SVN: r1279 - tck/trunk/impl.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-01-29 02:26:05 -0500 (Thu, 29 Jan 2009)
New Revision: 1279
Modified:
tck/trunk/impl/tck-audit.xml
Log:
chapter 4 assertions
Modified: tck/trunk/impl/tck-audit.xml
===================================================================
--- tck/trunk/impl/tck-audit.xml 2009-01-29 06:51:30 UTC (rev 1278)
+++ tck/trunk/impl/tck-audit.xml 2009-01-29 07:26:05 UTC (rev 1279)
@@ -1,29 +1,11 @@
<specification xmlns="http://jboss.com/products/webbeans/tck/audit"
name="JSR-299: Java Contexts and Dependency Injection"
version="Revised Public Review Draft">
-
- <section id="3" title="Bean implementation">
- <assertion id="a">
- <text>The container provides built-in support for simple beans (Java classes)</text>
- </assertion>
-
- <assertion id="b">
- <text>The container provides built-in support for session beans</text>
- </assertion>
-
- <assertion id="c">
- <text>The container provides built-in support for producer methods and fields</text>
- </assertion>
-
- <assertion id="d">
- <text>The container provides built-in support for Resources (Java EE resources, persistence contexts, persistence units, remote EJBs and web services)</text>
- </assertion>
-
- <assertion id="e">
- <text>The container provides built-in support for JMS resources (topics and queues)</text>
- </assertion>
+
+ <section id="3" title="Bean Implementation">
+
</section>
-
+
<section id="3.1" title="Restriction upon bean instantiation">
<assertion id="a">
<text>The bean class is a concrete class and is not required to implement any special interface or extend any special superclass</text>
@@ -461,7 +443,7 @@
<section id="3.3.9" title="Session bean proxies">
<assertion id="a">
- <text>EJB local object references do not implement all local interfaces of the EJB. A local object reference may not be typecast to different local interface type, as required by Section 2.2, �Bean types�. Therefore, the container proxies the local object reference. A session bean proxy implements all local interfaces of the EJB.</text>
+ <text>EJB local object references do not implement all local interfaces of the EJB. A local object reference may not be typecast to different local interface type, as required by Section 2.2, "Bean types". Therefore, the container proxies the local object reference. A session bean proxy implements all local interfaces of the EJB.</text>
</assertion>
<assertion id="b">
@@ -1022,5 +1004,301 @@
<text>An application or third party framework may add support for new kinds of beans beyond those defined by the this specification (simple beans, session beans, producer methods and fields, resources and JMS resources) by extending Bean and registering beans with the container, using the mechanism defined in Section 11.3, "Bean registration".</text>
</assertion>
</section>
+
+ <section id="4" title="Inheritance, specialization and realization">
+
+ </section>
+
+ <section id="4.1" title="Inheritance of type-level metadata">
+
+ <assertion id="a">
+ <text>For class X which is extended directly or indirectly by the bean class of a simple or session bean Y, if X is annotated with a binding type, stereotype or interceptor binding type Z then Y inherits the annotation if and only if Z declares the @Inherited meta-annotation and neither Y nor any intermediate class that is a subclass of X and a superclass of Y declares an annotation of type Z.</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>For class X which is extended directly or indirectly by the bean class of a simple or session bean Y, if X is annotated with a scope type Z then Y inherits the annotation if and only if Z declares the @Inherited metaannotation and neither Y nor any intermediate class that is a subclass of X and a superclass of Y declares a scope type.</text>
+ </assertion>
+
+ <assertion id="c">
+ <text>For class X which is extended directly or indirectly by the bean class of a simple or session bean Y, if X is annotated with a deployment type Z then Y inherits the annotation if and only if Z declares the @Inherited meta-annotation and neither Y nor any intermediate class that is a subclass of X and a superclass of Y declares a deployment type.</text>
+ </assertion>
+
+ <assertion id="d">
+ <text>For class X which is extended directly or indirectly by the bean class of a simple or session bean Y, the scope types and deployment types explicitly declared by and inherited from the class X take precedence over default scopes and deployment types declared by stereotypes.</text>
+ </assertion>
+
+ <assertion id="e">
+ <text>For class X which is the bean class of a simple or session bean Y declared using XML, if X is annotated with a binding type, stereotype or interceptor binding type Z then Y inherits the annotation if and only if Z declares the @Inherited meta-annotation and Y does not explicitly declare an annotation of type Z using XML.</text>
+ </assertion>
+
+ <assertion id="f">
+ <text>For class X which is the bean class of a simple or session bean Y declared using XML, if X is annotated with a scope type Z then Y inherits the annotation if and only if Z declares the @Inherited metaannotation and Y does not explicitly declare a scope type using XML.</text>
+ </assertion>
+
+ <assertion id="g">
+ <text>For class X which is the bean class of a simple or session bean Y declared using XML, if X is annotated with a deployment type Z then Y inherits the annotation if and only if Z declares the @Inherited meta-annotation and Y does not explicitly declare a deployment type using XML.</text>
+ </assertion>
+
+ <assertion id="h">
+ <text>For class X which is the bean class of a simple or session bean Y declared using XML, the scope types and deployment types explicitly declared by and inherited from the class X take precedence over default scope and deployment types declared by stereotypes.</text>
+ </assertion>
+
+ <assertion id="i">
+ <text>For annotations defined by the bean specification, all built-in scope types are declared @Inherited</text>
+ </assertion>
+
+ <assertion id="j">
+ <text>For annotations defined by the bean specification, all built-in stereotypes are declared @Inherited</text>
+ </assertion>
+
+ <assertion id="k">
+ <text>For annotations defined by the bean specification, no built-in binding type is declared @Inherited</text>
+ </assertion>
+
+ <assertion id="l">
+ <text>For annotations defined by the bean specification, the built-in deployment type is not declared @Inherited</text>
+ </assertion>
+
+ <assertion id="m">
+ <text>the @Named annotation is not declared @Inherited and bean names are not inherited unless specialization is used</text>
+ </assertion>
+
+ </section>
+
+ <section id="4.2" title="Inheritance of member-level metadata">
+ <assertion id="a">
+ <text>For class X which is extended directly or indirectly by the bean class of a simple or session bean Y, if X declares an injected field x then Y inherits x.</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>For class X which is extended directly or indirectly by the bean class of a simple or session bean Y, if X declares an initializer method, @PostConstruct method or @PreDestroy method x() then Y inherits x() if and only if neither Y nor any intermediate class that is a subclass of X and a superclass of Y overrides the method x()</text>
+ </assertion>
+
+ <assertion id="c">
+ <text>For class X which is extended directly or indirectly by the bean class of a simple or session bean Y, if X declares a non-static method x() annotated with an interceptor binding type Z then Y inherits the binding if and only if neither Y nor any intermediate class that is a subclass of X and a superclass of Y overrides the method x().</text>
+ </assertion>
+
+ <assertion id="d">
+ <text>For class X which is extended directly or indirectly by the bean class of a simple or session bean Y, if X declares a non-static producer, disposal, or observer method x() then Y does not inherit this method unless Y is explicitly declared to specialize or realize X</text>
+ </assertion>
+
+ <assertion id="e">
+ <text>For class X which is extended directly or indirectly by the bean class of a simple or session bean Y, if X declares a non-static producer field x then Y does not inherit this field unless Y is explicitly declared to specialize or realize X.</text>
+ </assertion>
+
+ <assertion id="f">
+ <text>For class X which is extended directly or indirectly by the bean class of a simple or session bean Y, if Y is a decorator and X declares a delegate attribute x then Y inherits x if and only if neither Y nor any intermediate class that is a subclass of X and a superclass of Y defines a delegate attribute</text>
+ </assertion>
+
+ <assertion id="g">
+ <text>For class X which is the bean class of a simple or session bean Y declared using XML, if X declares an injected field x then Y inherits x, unless Y explicitly declares x using XML.</text>
+ </assertion>
+
+ <assertion id="h">
+ <text>For class X which is the bean class of a simple or session bean Y declared using XML, if X declares an initializer method, @PostConstruct method or @PreDestroy method x() then Y inherits x(), unless Y explicitly declares x() using XML</text>
+ </assertion>
+
+ <assertion id="i">
+ <text>For class X which is the bean class of a simple or session bean Y declared using XML, if X declares a non-static method x() annotated with an interceptor binding type Z then Y inherits the binding, unless Y explicitly declares x() using XML.</text>
+ </assertion>
+
+ <assertion id="j">
+ <text>For class X which is the bean class of a simple or session bean Y declared using XML, if X declares a non-static producer, disposal, or observer method x() then Y does not inherit this method, unless Y is explicitly declared to specialize or realize X.</text>
+ </assertion>
+
+ <assertion id="k">
+ <text>For class X which is the bean class of a simple or session bean Y declared using XML, if X declares a non-static producer field x then Y does not inherit this method, unless Y is explicitly declared to specialize or realize X.</text>
+ </assertion>
+
+ <assertion id="l">
+ <text>For class X which is the bean class of a simple or session bean Y declared using XML, if Y is a decorator and X declares a delegate attribute x then Y inherits x, unless Y explicitly declares a delegate attribute using XML.</text>
+ </assertion>
+ </section>
+
+ <section id="4.3" title="Specialization">
+
+ <assertion id="a">
+ <text>If two beans both support a certain bean type, and share at least one binding, then they are both eligible for injection to any injection point with that declared type and binding. The container will choose the bean with the highest priority enabled deployment type.</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>If the bean with the lower priority deployment type declares a binding that is not declared by the bean with the higher priority deployment type, then the bean with the higher priority deployment type will not be eligible for injection to an injection point with that binding.</text>
+ </assertion>
+
+ <assertion id="c">
+ <text>The only way one bean can completely override a lower-priority bean at all injection points is if it implements all the bean types and declares all the bindings of the lower-priority bean. However, if the lower-priority bean declares a producer method, then even this is not enough to ensure that the lower-priority bean is never called</text>
+ </assertion>
+
+ </section>
+
+ <section id="4.3.1" title="Using specialization">
+
+ <assertion id="a">
+ <text>A bean declared using annotations may declare that it specializes a lower-priority bean using the @Specializes annotation</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>A bean declared using XML may declare that it specializes a lower-priority bean using the <Specializes> element</text>
+ </assertion>
+
+ <assertion id="c">
+ <text>The bindings of a bean X that specializes a lower-priority bean Y include all bindings of Y, together with all bindings declared explicitly by X.</text>
+ </assertion>
+
+ <assertion id="d">
+ <text>If a bean X specializes a lower-priority bean Y with a name, the name of X is the same as the name of Y. If X declares a name explicitly, a DefinitionException is thrown by the container at deployment time</text>
+ </assertion>
+
+ <assertion id="e">
+ <text>When an enabled bean specializes a lower-priority bean, we can be certain that the lower-priority bean is never instantiated or called by the container. Even if the lower-priority bean defines a producer method, the method will be called upon an instance of the first bean</text>
+ </assertion>
+
+ <assertion id="f">
+ <text>Specialization applies only to simple beans, as defined in Section 3.2.7, "Specializing a simple bean", session beans, as defined in Section 3.3.7, "Specializing a session bean" and producer methods, as defined in Section 3.4.5, "Specializing a producer method".</text>
+ </assertion>
+ </section>
+
+ <section id="4.3.2" title="Direct and indirect specialization">
+ <assertion id="a">
+ <text>The @javax.inject.Specializes annotation or <Specializes> XML element is used to indicate that one bean directly specializes another bean</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>A bean X is said to specialize another bean Y if X directly specializes Y, or a bean Z exists, such that X directly specializes Z and Z specializes Y</text>
+ </assertion>
+
+ <assertion id="c">
+ <text>Any non-static producer methods (see Section 3.4, "Producer methods"), producer fields (see Section 3.5, "Producer fields"), disposal methods (see Section 3.4.6, "Disposal methods") or observer methods (see Section 7.5, "Observer methods") of any bean are invoked upon an instance of the most specialized enabled bean that specializes the bean, as defined by Section 6.7, "Lifecycle of producer methods", Section 6.8, "Lifecycle of producer fields" and Section 7.4, "Observer notification".</text>
+ </assertion>
+ </section>
+
+ <section id="4.3.3" title="Inconsistent specialization">
+ <assertion id="a">
+ <text>If, in a particular deployment, either some enabled bean X specializes another enabled bean Y and X does not have a higher precedence than Y, or more than one enabled bean directly specializes the same bean we say that inconsistent specialization exists, and an InconsistentSpecializationException is thrown by the container at deployment time</text>
+ </assertion>
+ </section>
+
+ <section id="4.4" title="Realization">
+ <assertion id="a">
+ <text>Any bean that extends a generic class may directly extend the generic class, in the case of a bean declared using annotations</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>Any bean that extends a generic class may declare that the generic class is the bean class, in the case of a bean declared using XML, and then explicitly declare that it realizes the generic class.</text>
+ </assertion>
+
+ </section>
+
+ <section id="4.4.1" title="Using realization">
+ <assertion id="a">
+ <text>A bean declared using annotations may declare that it realizes a generic class by annotating the bean class with the @javax.inject.Realizes annotation</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>A bean declared using XML may declare that it realizes a generic class using the <Realizes> element.</text>
+ </assertion>
+
+ <assertion id="c">
+ <text>If a generic class Y declares a non-static producer method or field with a certain combination of scope, stereotypes, bindings and interceptor bindings, then every bean X that realizes Y also has a producer method or field with the same scope, stereotypes and interceptor bindings. The bindings for this inherited producer method or field consist of all bindings declared by the producer method or field of Y, excluding all bindings of Y, together with the bindings declared explicitly by X. The deployment type of the inherited producer method or field is the deployment type of X</text>
+ </assertion>
+
+ <assertion id="d">
+ <text>If a generic class Y declares a non-static disposal method with a disposed parameter with a certain combination of bindings, then every bean X that realizes Y also has a disposal method. The bindings of the disposed parameter of this
+inherited disposal method consist of all bindings declared by the disposed parameter of the disposal method of Y, excluding all bindings of Y, together with the bindings declared explicitly by X.</text>
+ </assertion>
+
+ <assertion id="e">
+ <text>If a generic class Y declares a non-static observer method with an event parameter with a certain combination of event bindings, then every bean X that realizes Y also has an observer method. The event bindings of the event parameter of
+this inherited observer method consist of all event bindings declared by the event parameter of the observer method of Y.</text>
+ </assertion>
+
+ <assertion id="f">
+ <text>Realization applies only to simple beans and session beans</text>
+ </assertion>
+ </section>
+
+ <section id="5" title="Lookup, dependency injection and EL resolution">
+ <assertion id="a">
+ <text>The container is required to ensure that any injected reference to a contextual instance of a bean may be cast to any bean type of the bean.</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>The container is required to support circularities in the bean dependency graph</text>
+ </assertion>
+ </section>
+
+ <section id="5.1" title="Unsatisfied and ambiguous dependencies">
+ <assertion id="a">
+ <text>The container must validate all injection points of all enabled beans at deployment time to ensure that there are no unsatisfied or ambiguous dependencies. If an unsatisfied or ambiguous dependency exists, an UnsatisfiedDependencyException
+or AmbiguousDependencyException is thrown by the container at deployment time, as defined in Section 5.7.1, "Resolving dependencies".</text>
+ </assertion>
+ </section>
+
+ <section id="5.2" title="Primitive types and null values">
+ <assertion id="a">
+ <text>If an injection point of primitive type resolves to a bean that may be null, such as a producer method with a nonprimitive return type or a producer field with a non-primitive type, a NullableDependencyException is thrown by the container at deployment time</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>The method Bean.isNullable() may be used to detect if a bean has null values</text>
+ </assertion>
+ </section>
+
+ <section id="5.3" title="Injected reference validity">
+ <assertion id="a">
+ <text>Any reference to a bean with a normal scope is valid as long as the application maintains a hard reference to it. However, it may only be invoked when the context associated with the normal scope is active. If it is invoked when the context is inactive, a ContextNotActiveException is thrown by the container</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>Any reference to a bean with a pseudo-scope (such as @Dependent) is valid until the bean instance to which it refers is destroyed. It may be invoked even if the context associated with the pseudo-scope is not active. If the application invokes a method of a reference to an instance that has already been destroyed, the behavior is undefined</text>
+ </assertion>
+ </section>
+
+ <section id="5.4" title="Client proxies">
+
+ </section>
+
+ <section id="5.4.1" title="Unproxyable bean types">
+
+ </section>
+
+ <section id="5.4.2" title="Client proxy invocation">
+
+ </section>
+
+ <section id="5.5" title="The default binding at injection points">
+
+ </section>
+
+ <section id="5.6" title="Injection point metadata">
+
+ </section>
+
+ <section id="5.6.1" title="Injecting InjectionPoint">
+
+ </section>
+
+ <section id="5.7" title="The Manager object">
+
+ </section>
+
+ <section id="5.7.1" title="Resolving dependencies">
+
+ </section>
+
+ <section id="5.7.2" title="Obtaining contextual instances">
+
+ </section>
+
+ <section id="5.8" title="Dynamic lookup">
+
+ </section>
+
+ <section id="5.9" title="Typesafe resolution algorithm">
+
+ </section>
+
+
+
</specification>
15 years, 12 months
[webbeans-commits] Webbeans SVN: r1278 - ri/trunk/jboss-as/resources.
by webbeans-commits@lists.jboss.org
Author: alesj
Date: 2009-01-29 01:51:30 -0500 (Thu, 29 Jan 2009)
New Revision: 1278
Modified:
ri/trunk/jboss-as/resources/webbeans-ejb-jboss-beans.xml
Log:
Add properties.
Modified: ri/trunk/jboss-as/resources/webbeans-ejb-jboss-beans.xml
===================================================================
--- ri/trunk/jboss-as/resources/webbeans-ejb-jboss-beans.xml 2009-01-29 04:53:29 UTC (rev 1277)
+++ ri/trunk/jboss-as/resources/webbeans-ejb-jboss-beans.xml 2009-01-29 06:51:30 UTC (rev 1278)
@@ -5,8 +5,14 @@
-->
<deployment xmlns="urn:jboss:bean-deployer:2.0">
- <beanfactory name="JBossEjbResolver" class="org.jboss.webbeans.integration.ejb.JBossEjbResolver"/>
+ <beanfactory name="JBossEjbResolver" class="org.jboss.webbeans.integration.ejb.JBossEjbResolver">
+ <property name="controller"><inject bean="jboss.kernel:service=KernelController" /></property>
+ <property name="resolver"><inject /></property>
+ <property name="persistenceUnitDependencyResolver"><inject bean="PersistenceUnitDependencyResolver" /></property>
+ </beanfactory>
- <beanfactory name="JBossEjbDiscovery" class="org.jboss.webbeans.integration.ejb.JBossEjbDiscovery"/>
+ <beanfactory name="JBossEjbDiscovery" class="org.jboss.webbeans.integration.ejb.JBossEjbDiscovery">
+ <property name="resolver"><inject /></property>
+ </beanfactory>
</deployment>
15 years, 12 months
[webbeans-commits] Webbeans SVN: r1277 - doc/trunk/reference/ko-KR.
by webbeans-commits@lists.jboss.org
Author: eukim
Date: 2009-01-28 23:53:29 -0500 (Wed, 28 Jan 2009)
New Revision: 1277
Modified:
doc/trunk/reference/ko-KR/intro.po
Log:
updated
Modified: doc/trunk/reference/ko-KR/intro.po
===================================================================
--- doc/trunk/reference/ko-KR/intro.po 2009-01-29 02:08:07 UTC (rev 1276)
+++ doc/trunk/reference/ko-KR/intro.po 2009-01-29 04:53:29 UTC (rev 1277)
@@ -8,7 +8,7 @@
"Project-Id-Version: intro\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-01-06 11:30+0000\n"
-"PO-Revision-Date: 2009-01-23 17:28+1000\n"
+"PO-Revision-Date: 2009-01-29 14:49+1000\n"
"Last-Translator: Eunju Kim <eukim(a)redhat.com>\n"
"Language-Team: Korean <ko(a)li.org>\n"
"MIME-Version: 1.0\n"
@@ -27,6 +27,7 @@
"\n"
"\n"
"\n"
+"\n"
#. Tag: title
#: intro.xml:4
@@ -43,7 +44,7 @@
"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 "첫 번째 Web Bean 작성을 시작해 보시겠습니까? 혹은 어떤 종류의 Web Beans 사양으로 도약하게 될 지를 의아해 하거나 의심하고 계실 수 도 있겠군요! 한 가지 좋은 정보는 여러분은 이미 수백개의 혹은 수천개의 Web Beans을 이미 작성 및 사용하고 계셨다는 것입니다. 아마 여러분은 처음으로 작성하신 Web Beans를 기억하지 못하고 계실 수 도 있습니다. "
+msgstr "첫 번째 Web Bean 작성을 시작해 보시겠습니까? 혹은 어떤 종류의 Web Beans 사양을 통해 도약하게 될 지를 의아해 하거나 의심하고 계실 수 도 있겠군요! 한 가지 좋은 정보는 여러분은 이미 수백개의 혹은 수천개의 Web Beans을 이미 작성 및 사용하고 계셨다는 것입니다. 아마 여러분은 처음으로 작성하신 Web Beans를 기억하지 못하고 계실 수 도 있습니다. "
#. Tag: title
#: intro.xml:13
@@ -64,7 +65,7 @@
"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 "특정한 예외 상항에서 매개 변수가 없는 것을 허용하는 생성자와 함께하는 모든 Java 클래스는 Web Bean입니다. 이에는 모든 JavaBean이 포함됩니다. 이에 더하여 모든 EJB 3-스타일 세션 빈도 Web Bean입니다. 물론 매일 작성하셨던 JavaBeans 및 EJB는 Web Beans 사양에 의해 정의된 새로운 서비스의 장점을 취할 수 없지만, Web Beans으로서 기존 코드를 변경하지 않고 이 모든 것을 사용하실 수 있습니다 — 기타 다른 Web Beans로의 삽입, Web Beans XML 설정 기능을 통한 설정, 인터셉터 및 데코레이터 추가 등— "
+msgstr "특정한 예외 상항에서 매개 변수가 없는 것을 허용하는 생성자와 함께하는 모든 Java 클래스는 Web Bean으로 이에는 모든 JavaBean이 포함됩니다. 이에 더하여 모든 EJB 3-스타일 세션 빈도 Web Bean입니다. 물론 매일 작성하셨던 JavaBeans 및 EJB는 Web Beans 사양에 의해 정의된 새로운 서비스의 장점을 취할 수 없지만, Web Beans으로서 기존 코드를 변경하지 않고 이 모든 것을 사용하실 수 있습니다 — 기타 다른 Web Beans로의 삽입, Web Beans XML 설정 기능을 통한 설정, 인터셉터 및 데코레이터 추가 등— "
#. Tag: para
#: intro.xml:25
@@ -73,7 +74,7 @@
"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 "다양한 애플리케이션에서 오랫동안 사용해 온 두 개의 Java 클래스를 갖고 있다고 가정합니다. 첫 번째 클래스는 문자열을 문장 목록으로 구문 분석합니다: "
+msgstr "다양한 애플리케이션에서 오랫동안 사용해 온 두 개의 Java 클래스를 갖고 있다고 가정합시다. 첫 번째 클래스는 문자열을 문장 목록으로 구문 분석합니다: "
#. Tag: programlisting
#: intro.xml:29
@@ -136,7 +137,7 @@
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 "불행하게도 전체 텍스트 문서를 번역하는 기존 클래스가 없습니다. 따라서 이러한 작업을 실행하는 Web Bean을 작성합시다: "
+msgstr "불행하게도 전체 텍스트 문서를 번역하는 기존 클래스가 없으므로, 이러한 작업을 실행하는 Web Bean을 작성합시다: "
#. Tag: programlisting
#: intro.xml:44
15 years, 12 months
[webbeans-commits] Webbeans SVN: r1276 - doc/trunk/reference/en-US.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-01-28 21:08:07 -0500 (Wed, 28 Jan 2009)
New Revision: 1276
Modified:
doc/trunk/reference/en-US/Book_Info.xml
Log:
new title
Modified: doc/trunk/reference/en-US/Book_Info.xml
===================================================================
--- doc/trunk/reference/en-US/Book_Info.xml 2009-01-29 02:01:33 UTC (rev 1275)
+++ doc/trunk/reference/en-US/Book_Info.xml 2009-01-29 02:08:07 UTC (rev 1276)
@@ -1,12 +1,8 @@
<!DOCTYPE bookinfo PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [ ]>
<bookinfo>
- <title>Introduction to Web Beans</title>
- <productname>master</productname>
- <productnumber>4.3</productnumber>
- <edition>4.3</edition>
- <pubsnumber>1</pubsnumber>
- <subtitle>The new Java standard for dependency injection and contextual state management</subtitle>
+ <title>Web Beans: Java Contexts and Dependency Injection</title>
+ <subtitle>The new standard for dependency injection and contextual state management</subtitle>
<xi:include href="Author_Group.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
</bookinfo>
15 years, 12 months
[webbeans-commits] Webbeans SVN: r1275 - doc/trunk/reference/en-US.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-01-28 21:01:33 -0500 (Wed, 28 Jan 2009)
New Revision: 1275
Modified:
doc/trunk/reference/en-US/Author_Group.xml
doc/trunk/reference/en-US/ri.xml
Log:
Minor, translator credit
Modified: doc/trunk/reference/en-US/Author_Group.xml
===================================================================
--- doc/trunk/reference/en-US/Author_Group.xml 2009-01-29 01:54:23 UTC (rev 1274)
+++ doc/trunk/reference/en-US/Author_Group.xml 2009-01-29 02:01:33 UTC (rev 1275)
@@ -5,7 +5,7 @@
<firstname>Gavin</firstname>
<surname>King</surname>
<affiliation>
- <jobtitle>Web Beans (JSR-299) specification lead</jobtitle>
+ <jobtitle>JSR-299 specification lead</jobtitle>
<orgname>Red Hat Middleware LLC</orgname>
</affiliation>
</author>
@@ -13,7 +13,7 @@
<firstname>Pete</firstname>
<surname>Muir</surname>
<affiliation>
- <jobtitle>Web Beans (JSR-299) Reference Implementation lead
+ <jobtitle>Web Beans (JSR-299 Reference Implementation) lead
</jobtitle>
<orgname>Red Hat Middleware LLC</orgname>
</affiliation>
@@ -23,9 +23,33 @@
<surname>Benaglia</surname>
<contrib>Italian Translation</contrib>
</othercredit>
- <othercredit>
- <firstname>Francesco</firstname>
- <surname>Milesi</surname>
- <contrib>Italian Translation</contrib>
- </othercredit>
+ <othercredit>
+ <firstname>Gladys</firstname>
+ <surname>Guerrero</surname>
+ <contrib>Spanish Translation</contrib>
+ <affiliation>
+ <orgname>Red Hat Middleware LLC</orgname>
+ </affiliation>
+ </othercredit>
+ <othercredit>
+ <firstname>Eun-Ju</firstname>
+ <surname>Ki,</surname>
+ <contrib>Korean Translation</contrib>
+ <affiliation>
+ <orgname>Red Hat Middleware LLC</orgname>
+ </affiliation>
+ </othercredit>
+ <othercredit>
+ <firstname>Terry</firstname>
+ <surname>Chuang</surname>
+ <contrib>Traditional Chinese Translation</contrib>
+ <affiliation>
+ <orgname>Red Hat Middleware LLC</orgname>
+ </affiliation>
+ </othercredit>
+ <othercredit>
+ <firstname>Francesco</firstname>
+ <surname>Milesi</surname>
+ <contrib>Italian Translation</contrib>
+ </othercredit>
</authorgroup>
Modified: doc/trunk/reference/en-US/ri.xml
===================================================================
--- doc/trunk/reference/en-US/ri.xml 2009-01-29 01:54:23 UTC (rev 1274)
+++ doc/trunk/reference/en-US/ri.xml 2009-01-29 02:01:33 UTC (rev 1275)
@@ -137,6 +137,18 @@
ant deploy</programlisting>
<para>
+ Start JBoss AS:
+ </para>
+
+ <programlisting>$ /Application/jboss-5.0.0.GA/bin/run.sh</programlisting>
+
+ <tip>
+ <para>
+ If you use Windows, use the <literal>run.bat</literal>script.
+ </para>
+ </tip>
+
+ <para>
Wait for the application to deploy, and enjoy hours of fun at
<ulink url="http://localhost:8080/webbeans-numberguess" />!
</para>
15 years, 12 months
[webbeans-commits] Webbeans SVN: r1274 - ri/trunk/jboss-as.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-01-28 20:54:23 -0500 (Wed, 28 Jan 2009)
New Revision: 1274
Modified:
ri/trunk/jboss-as/build.xml
Log:
Fix locations of jars
Modified: ri/trunk/jboss-as/build.xml
===================================================================
--- ri/trunk/jboss-as/build.xml 2009-01-29 01:49:34 UTC (rev 1273)
+++ ri/trunk/jboss-as/build.xml 2009-01-29 01:54:23 UTC (rev 1274)
@@ -62,7 +62,6 @@
<fileset dir="target/webbeans.deployer">
<include name="webbeans-ri.jar" />
<include name="webbeans-ri-int-jbossas.jar" />
- <include name="webbeans-api.jar" />
</fileset>
</copy>
@@ -72,6 +71,7 @@
<include name="webbeans-ri-int-microcontainer.jar" />
<include name="webbeans-ri-int-jboss-ejb.jar" />
<include name="webbeans-ri-spi.jar" />
+ <include name="webbeans-api.jar" />
<include name="google*.jar" />
</fileset>
</copy>
15 years, 12 months
[webbeans-commits] Webbeans SVN: r1273 - ri/trunk/dist and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-01-28 20:49:34 -0500 (Wed, 28 Jan 2009)
New Revision: 1273
Modified:
examples/trunk/build.properties
examples/trunk/build.xml
ri/trunk/dist/build.xml
Log:
updates to dist targets for new structure
Modified: examples/trunk/build.properties
===================================================================
--- examples/trunk/build.properties 2009-01-29 01:22:11 UTC (rev 1272)
+++ examples/trunk/build.properties 2009-01-29 01:49:34 UTC (rev 1273)
@@ -1 +1 @@
-jboss.home=/Applications/jboss-5.0.0.GA
+#jboss.home=/Applications/jboss-5.0.0.GA
Modified: examples/trunk/build.xml
===================================================================
--- examples/trunk/build.xml 2009-01-29 01:22:11 UTC (rev 1272)
+++ examples/trunk/build.xml 2009-01-29 01:49:34 UTC (rev 1273)
@@ -4,7 +4,9 @@
<property name="maven.dir" location="${wbexamples.dir}/lib/maven" />
+ <property file="${wbexamples.dir}/../jboss-as/local.build.properties"/>
<property file="${wbexamples.dir}/build.properties"/>
+ <property file="${wbexamples.dir}/../jboss-as/build.properties"/>
<property name="final.url" value="http://localhost:8080/${example.name}" />
Modified: ri/trunk/dist/build.xml
===================================================================
--- ri/trunk/dist/build.xml 2009-01-29 01:22:11 UTC (rev 1272)
+++ ri/trunk/dist/build.xml 2009-01-29 01:49:34 UTC (rev 1273)
@@ -61,14 +61,24 @@
<fileset dir="${basedir}">
<include name="readme.txt"/>
</fileset>
- <fileset dir="${examples.dir}" />
</copy>
- <maven target="compile" basedir="${refdoc.dir}" />
+ <mkdir dir="${dist.dir}/examples"/>
+ <copy todir="${dist.dir}/examples">
+ <fileset dir="${examples.dir}" />
+ </copy>
+ <maven target="jdocbook:translate compile" basedir="${refdoc.dir}" />
+
<mkdir dir="${dist.doc.dir}" />
<copy todir="${dist.doc.dir}">
- <fileset dir="${refdoc.dir}/target/docbook/publish" />
+ <fileset dir="${refdoc.dir}/target/docbook/publish">
+ <include name="en-US"/>
+ <include name="ko-KR"/>
+ <include name="es-ES"/>
+ <include name="it-IT"/>
+ <include name="zh-TW"/>
+ </fileset>
</copy>
<maven target="clean" basedir="${refdoc.dir}" />
15 years, 12 months