[webbeans-commits] Webbeans SVN: r1734 - tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/inheritance/realization.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-02-27 06:16:07 -0500 (Fri, 27 Feb 2009)
New Revision: 1734
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/inheritance/realization/AbstractKennel.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/inheritance/realization/RealizationTest.java
Log:
WBTCK-21
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/inheritance/realization/AbstractKennel.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/inheritance/realization/AbstractKennel.java 2009-02-27 11:09:51 UTC (rev 1733)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/inheritance/realization/AbstractKennel.java 2009-02-27 11:16:07 UTC (rev 1734)
@@ -2,6 +2,7 @@
import javax.inject.Produces;
+@AnotherDeploymentType
class AbstractKennel
{
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/inheritance/realization/RealizationTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/inheritance/realization/RealizationTest.java 2009-02-27 11:09:51 UTC (rev 1733)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/inheritance/realization/RealizationTest.java 2009-02-27 11:16:07 UTC (rev 1734)
@@ -65,11 +65,10 @@
assert annotationSetMatches(getCurrentManager().resolveByType(CowDung.class, SMELLY_LITERAL, TAME_LITERAL).iterator().next().getBindings(), Smelly.class, Tame.class);
}
- @Test(groups = "ri-broken")
+ @Test
@SpecAssertion(section = "4.4.1", id = "c")
public void testRealizedBeanWithProducerMethodHasSameStereotypes()
{
- // WBRI-148
assert getCurrentManager().resolveByType(Dog.class).size() == 1;
assert getCurrentManager().resolveByType(Dog.class).iterator().next().getScopeType().equals(RequestScoped.class);
}
15 years, 9 months
[webbeans-commits] Webbeans SVN: r1733 - tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating and 1 other directories.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-02-27 06:09:51 -0500 (Fri, 27 Feb 2009)
New Revision: 1733
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/unserializableSimpleInjectedIntoPassivatingEnterpriseBean/
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/unserializableSimpleInjectedIntoPassivatingEnterpriseBean/District.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/unserializableSimpleInjectedIntoPassivatingEnterpriseBean/EspooLocal_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/unserializableSimpleInjectedIntoPassivatingEnterpriseBean/Espoo_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/unserializableSimpleInjectedIntoPassivatingEnterpriseBean/UnserializableSimpleInjectedIntoPassivatingEnterpriseBeanTest.java
Removed:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/EspooLocal_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Espoo_Broken.java
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/BeanValidator.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/PassivatingContextTest.java
Log:
WBRI-150
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/BeanValidator.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/BeanValidator.java 2009-02-27 05:50:05 UTC (rev 1732)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/BeanValidator.java 2009-02-27 11:09:51 UTC (rev 1733)
@@ -98,6 +98,10 @@
{
throw new NullableDependencyException("The injection point " + injectionPoint + " has nullable dependencies");
}
+ if (Beans.isPassivatingBean(bean) && !resolvedBean.isSerializable())
+ {
+ throw new UnserializableDependencyException("The bean " + bean + " declares a passivating scopes but has non-serializable dependencies");
+ }
}
else
{
@@ -120,10 +124,6 @@
specializedBeans.add(abstractBean.getSpecializedBean());
}
}
- if (Beans.isPassivatingBean(bean) && !bean.isSerializable())
- {
- throw new UnserializableDependencyException("The bean " + bean + " declares a passivating scopes but has non-serializable dependencies");
- }
boolean normalScoped = MetaDataCache.instance().getScopeModel(bean.getScopeType()).isNormal();
if (normalScoped && !Beans.isBeanProxyable(bean))
{
Deleted: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/EspooLocal_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/EspooLocal_Broken.java 2009-02-27 05:50:05 UTC (rev 1732)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/EspooLocal_Broken.java 2009-02-27 11:09:51 UTC (rev 1733)
@@ -1,9 +0,0 @@
-package org.jboss.jsr299.tck.unit.context.passivating;
-
-import javax.ejb.Local;
-
-@Local
-public interface EspooLocal_Broken
-{
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Espoo_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Espoo_Broken.java 2009-02-27 05:50:05 UTC (rev 1732)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Espoo_Broken.java 2009-02-27 11:09:51 UTC (rev 1733)
@@ -1,18 +0,0 @@
-package org.jboss.jsr299.tck.unit.context.passivating;
-
-import javax.context.SessionScoped;
-import javax.ejb.Remove;
-import javax.ejb.Stateful;
-import javax.inject.Current;
-
-@Stateful
-@SessionScoped
-class Espoo_Broken implements EspooLocal_Broken
-{
- @Current
- Violation reference;
-
- @Remove
- public void bye() {
- }
-}
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/PassivatingContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/PassivatingContextTest.java 2009-02-27 05:50:05 UTC (rev 1732)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/PassivatingContextTest.java 2009-02-27 11:09:51 UTC (rev 1733)
@@ -8,7 +8,6 @@
import javax.context.SessionScoped;
import javax.inject.AnnotationLiteral;
import javax.inject.IllegalProductException;
-import javax.inject.UnserializableDependencyException;
import javax.inject.manager.Bean;
import org.hibernate.tck.annotations.SpecAssertion;
@@ -94,14 +93,6 @@
assert testSerialize(vaasaBeans.iterator().next());
}
- @Test(groups = { "contexts", "passivation" , "ri-broken"}, expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "8.4", id = "k")
- public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoStatefulSessionBeanFails()
- {
- // WBRI-150
- getCurrentManager().getInstanceByType(EspooLocal_Broken.class);
- }
-
@Test(groups = { "contexts", "passivation" })
@SpecAssertion(section = "8.4", id = "l")
public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoTransientFieldOK()
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/unserializableSimpleInjectedIntoPassivatingEnterpriseBean/District.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/unserializableSimpleInjectedIntoPassivatingEnterpriseBean/District.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/unserializableSimpleInjectedIntoPassivatingEnterpriseBean/District.java 2009-02-27 11:09:51 UTC (rev 1733)
@@ -0,0 +1,14 @@
+package org.jboss.jsr299.tck.unit.context.passivating.unserializableSimpleInjectedIntoPassivatingEnterpriseBean;
+
+import javax.context.Dependent;
+
+@Dependent
+class District
+{
+
+ public void ping()
+ {
+
+ }
+
+}
Property changes on: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/unserializableSimpleInjectedIntoPassivatingEnterpriseBean/District.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Copied: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/unserializableSimpleInjectedIntoPassivatingEnterpriseBean/EspooLocal_Broken.java (from rev 1724, tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/EspooLocal_Broken.java)
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/unserializableSimpleInjectedIntoPassivatingEnterpriseBean/EspooLocal_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/unserializableSimpleInjectedIntoPassivatingEnterpriseBean/EspooLocal_Broken.java 2009-02-27 11:09:51 UTC (rev 1733)
@@ -0,0 +1,9 @@
+package org.jboss.jsr299.tck.unit.context.passivating.unserializableSimpleInjectedIntoPassivatingEnterpriseBean;
+
+import javax.ejb.Local;
+
+@Local
+public interface EspooLocal_Broken
+{
+
+}
Property changes on: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/unserializableSimpleInjectedIntoPassivatingEnterpriseBean/EspooLocal_Broken.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Copied: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/unserializableSimpleInjectedIntoPassivatingEnterpriseBean/Espoo_Broken.java (from rev 1724, tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Espoo_Broken.java)
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/unserializableSimpleInjectedIntoPassivatingEnterpriseBean/Espoo_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/unserializableSimpleInjectedIntoPassivatingEnterpriseBean/Espoo_Broken.java 2009-02-27 11:09:51 UTC (rev 1733)
@@ -0,0 +1,18 @@
+package org.jboss.jsr299.tck.unit.context.passivating.unserializableSimpleInjectedIntoPassivatingEnterpriseBean;
+
+import javax.context.SessionScoped;
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.inject.Current;
+
+@Stateful
+@SessionScoped
+class Espoo_Broken implements EspooLocal_Broken
+{
+ @Current
+ District district;
+
+ @Remove
+ public void bye() {
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/unserializableSimpleInjectedIntoPassivatingEnterpriseBean/UnserializableSimpleInjectedIntoPassivatingEnterpriseBeanTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/unserializableSimpleInjectedIntoPassivatingEnterpriseBean/UnserializableSimpleInjectedIntoPassivatingEnterpriseBeanTest.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/unserializableSimpleInjectedIntoPassivatingEnterpriseBean/UnserializableSimpleInjectedIntoPassivatingEnterpriseBeanTest.java 2009-02-27 11:09:51 UTC (rev 1733)
@@ -0,0 +1,27 @@
+package org.jboss.jsr299.tck.unit.context.passivating.unserializableSimpleInjectedIntoPassivatingEnterpriseBean;
+
+import javax.inject.UnserializableDependencyException;
+
+import org.hibernate.tck.annotations.SpecAssertion;
+import org.jboss.jsr299.tck.AbstractDeclarativeTest;
+import org.jboss.jsr299.tck.impl.packaging.Artifact;
+import org.jboss.jsr299.tck.impl.packaging.ExpectedDeploymentException;
+import org.jboss.jsr299.tck.impl.packaging.Packaging;
+import org.jboss.jsr299.tck.impl.packaging.PackagingType;
+import org.testng.annotations.Test;
+
+@Artifact
+(a)Packaging(PackagingType.EAR)
+(a)ExpectedDeploymentException(UnserializableDependencyException.class)
+public class UnserializableSimpleInjectedIntoPassivatingEnterpriseBeanTest extends AbstractDeclarativeTest
+{
+
+ @Test(groups = { "contexts", "passivation"})
+ @SpecAssertion(section = "8.4", id = "k")
+ public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoStatefulSessionBeanFails()
+ {
+ // WBRI-150
+ getCurrentManager().getInstanceByType(EspooLocal_Broken.class);
+ }
+
+}
Property changes on: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/unserializableSimpleInjectedIntoPassivatingEnterpriseBean/UnserializableSimpleInjectedIntoPassivatingEnterpriseBeanTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 9 months
[webbeans-commits] Webbeans SVN: r1732 - doc/trunk/reference/de-DE.
by webbeans-commits@lists.jboss.org
Author: jdimanos
Date: 2009-02-27 00:50:05 -0500 (Fri, 27 Feb 2009)
New Revision: 1732
Modified:
doc/trunk/reference/de-DE/ri-spi.po
Log:
update
Modified: doc/trunk/reference/de-DE/ri-spi.po
===================================================================
--- doc/trunk/reference/de-DE/ri-spi.po 2009-02-27 04:36:55 UTC (rev 1731)
+++ doc/trunk/reference/de-DE/ri-spi.po 2009-02-27 05:50:05 UTC (rev 1732)
@@ -7,7 +7,7 @@
"Project-Id-Version: ri-spi\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-02-01 21:16+0000\n"
-"PO-Revision-Date: 2009-01-24 15:37+1100\n"
+"PO-Revision-Date: 2009-02-27 16:49+1100\n"
"Last-Translator: \n"
"Language-Team: <en(a)li.org>\n"
"MIME-Version: 1.0\n"
@@ -19,7 +19,7 @@
#: ri-spi.xml:4
#, no-c-format
msgid "Integrating the Web Beans RI into other environments"
-msgstr ""
+msgstr "Integration der Web Beans RI in andere Umgebungen"
#. Tag: para
#: ri-spi.xml:6
@@ -31,6 +31,10 @@
"EJB3.1 implementation is fairly easy. In this Appendix we will briefly "
"discuss the steps needed."
msgstr ""
+"Derzeit läuft die Web Beans RI nur in JBoss AS 5; die Implementierung der RI in "
+"andere EE-Umgebungen (zum Beispiel einen anderen Applikationsserver wie "
+"Glassfish) in einen Servlet-Container (wie Tomcat) oder eine Embedded "
+"EJB3.1 Implementierung ist recht einfach. In diesem Anhang gehen wir kurz auf die notwendigen Schritte ein."
#. Tag: para
#: ri-spi.xml:15
@@ -41,12 +45,15 @@
"currently doesn't expose lifecycle extension points, so you would have to "
"code directly against Web Beans RI classes."
msgstr ""
+"Es sollte möglich sein, Web Beans in einer SE Umgebung auszuführen, aber Sie werden mehr Arbeit durchführen müssen indem Sie Ihre eigenen Kontexte und Lebenszyklus hinzufügen. Die Web Beans RI "
+"legt derzeit keine Lebenszyklus-Erweiterungspunkte offen, weswegen Sie direkt gegen "
+"Web Beans RI-Klassen kodieren müssten."
#. Tag: title
#: ri-spi.xml:24
#, no-c-format
msgid "The Web Beans RI SPI"
-msgstr ""
+msgstr "Das Web Beans RI SPI"
#. Tag: para
#: ri-spi.xml:26
@@ -56,6 +63,8 @@
"and packaged as <literal>webbeans-ri-spi.jar</literal>. Some SPIs are "
"optional, if you need to override the default behavior, others are required."
msgstr ""
+"Das Web Beans SPI befindet sich im <literal>webbeans-ri-spi</literal>-Modul und ist als <literal>webbeans-ri-spi.jar</literal> verpackt. Einige SPIs sind "
+"optional, wenn Sie das standardmäßige Verhalten außer Kraft setzen möchten, sind andere erforderlich."
#. Tag: para
#: ri-spi.xml:33
@@ -67,6 +76,9 @@
"interface; all property values are the fully qualified class name of the "
"implementation class."
msgstr ""
+"Sie können die Implementierung eines SPI entweder als System-Property oder "
+"in einer Properties-Datei <literal>META-INF/web-beans-ri.properties</literal> festlegen. "
+"Alle Property-Namen sind die vollständig definierten Klassennamen des implementierten Interface; alle Property-Werte sind der vollständig definierte Klassenname der Implementierungsklasse."
#. Tag: para
#: ri-spi.xml:42
@@ -75,12 +87,14 @@
"All interfaces in the SPI support the decorator pattern and provide a "
"<literal>Forwarding</literal> class."
msgstr ""
+"Alle Interfaces im SPI unterstützen das Dekorator-Muster und liefern eine "
+"<literal>Forwarding</literal>-Klasse."
#. Tag: title
#: ri-spi.xml:48
#, no-c-format
msgid "Web Bean Discovery"
-msgstr ""
+msgstr "Web Bean Discovery"
#. Tag: programlisting
#: ri-spi.xml:50
@@ -140,16 +154,19 @@
"webbeans.bootstrap.spi.WebBeanDiscovery</literal> with the fully qualified "
"class name as the value. For example:"
msgstr ""
+"Der Web Beans RI kann mitgeteilt werden, dass Ihre Implementierung von "
+"<literal>WebBeanDiscovery</literal> unter Verwendung der Property <literal>org.jboss."
+"webbeans.bootstrap.spi.WebBeanDiscovery</literal> mit dem vollständig definierten Klassennamen als Wert geladen werden soll. Zum Beispiel:"
#. Tag: programlisting
#: ri-spi.xml:65
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"org.jboss.webbeans.bootstrap.spi.WebBeanDiscovery= \\ \n"
" org.jboss.webbeans.integration.jbossas.WebBeanDiscoveryImpl"
msgstr ""
-"org.jboss.webbeans.bootstrap.spi.WebBeanDiscovery=org.jboss.webbeans."
-"integration.jbossas.WebBeanDiscoveryImpl"
+"org.jboss.webbeans.bootstrap.spi.WebBeanDiscovery= \\ \n"
+" org.jboss.webbeans.integration.jbossas.WebBeanDiscoveryImpl"
#. Tag: para
#: ri-spi.xml:67 ri-spi.xml:113 ri-spi.xml:146 ri-spi.xml:179
@@ -157,15 +174,13 @@
msgid ""
"If the Web Beans RI is being used in a servlet container, it expects a "
"constructor of the form:"
-msgstr ""
+msgstr "Wird die Web Beans RI in einem Servlet Container verwendet, so wird ein Konstruktor folgender Form erwartet:"
#. Tag: programlisting
#: ri-spi.xml:72
#, no-c-format
-msgid ""
-"<![CDATA[public WebBeanDiscoveryImpl(ServletContext servletContext) {}]]>"
-msgstr ""
-"<![CDATA[public WebBeanDiscoveryImpl(ServletContext servletContext) {}]]>"
+msgid "<![CDATA[public WebBeanDiscoveryImpl(ServletContext servletContext) {}]]>"
+msgstr "<![CDATA[public WebBeanDiscoveryImpl(ServletContext servletContext) {}]]>"
#. Tag: para
#: ri-spi.xml:74
@@ -174,6 +189,8 @@
"The servlet context can be used to allow your implementation of "
"<literal>WebBeanDiscovery</literal> to interact with the container."
msgstr ""
+"Der Servlet-Kontext kann verwendet werden, um es Ihrer Implementierung von "
+"<literal>WebBeanDiscovery</literal> zu gestatten, mit dem Container zu interagieren."
#. Tag: title
#: ri-spi.xml:82
@@ -386,16 +403,19 @@
"webbeans.bootstrap.spi.EjbDiscovery</literal> with the fully qualified class "
"name as the value. For example:"
msgstr ""
+"Der Web Beans RI kann mitgeteilt werden, Ihre Implementierung von "
+"<literal>EjbDiscovery</literal> unter Verwendung der Property <literal>org.jboss."
+"webbeans.bootstrap.spi.EjbDiscovery</literal> mit vollständig definierten Klassennamen als Wert zu laden. Zum Beispiel:"
#. Tag: programlisting
#: ri-spi.xml:111
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"org.jboss.webbeans.bootstrap.spi.EjbDiscovery= \\\n"
" org.jboss.webbeans.integration.jbossas.EjbDiscoveryImpl"
msgstr ""
-"org.jboss.webbeans.bootstrap.spi.EjbDiscovery=org.jboss.webbeans.integration."
-"jbossas.EjbDiscoveryImpl"
+"org.jboss.webbeans.bootstrap.spi.EjbDiscovery= \\\n"
+" org.jboss.webbeans.integration.jbossas.EjbDiscoveryImpl"
#. Tag: programlisting
#: ri-spi.xml:118
@@ -410,6 +430,8 @@
"The servlet context can be used to allow your implementation of "
"<literal>EjbDiscovery</literal> to interact with the container."
msgstr ""
+"Der Servlet-Kontext kann dazu verwendet werden, Ihrer Implementierung von "
+"<literal>EjbDiscovery</literal> die Interaktion mit dem Container zu gestatten."
#. Tag: title
#: ri-spi.xml:128
@@ -479,14 +501,13 @@
#: ri-spi.xml:140 ri-spi.xml:173
#, no-c-format
msgid "and tell the RI to use it:"
-msgstr ""
+msgstr "und Mitteilung an die RI, diese zu verwenden:"
#. Tag: programlisting
#: ri-spi.xml:144
#, no-c-format
msgid "org.jboss.webbeans.resources.spi.NamingContext=com.acme.MyNamingContext"
-msgstr ""
-"org.jboss.webbeans.resources.spi.NamingContext=com.acme.MyNamingContext"
+msgstr "org.jboss.webbeans.resources.spi.NamingContext=com.acme.MyNamingContext"
#. Tag: programlisting
#: ri-spi.xml:151
@@ -501,12 +522,14 @@
"The servlet context can be used to allow your implementation of "
"<literal>NamingContext</literal> to interact with the container."
msgstr ""
+"Der Servlet-Kontext kann dazu verwendet werden, Ihrer Implementierung von "
+"<literal>NamingContext</literal> die Interaktion mit dem Container zu gestatten."
#. Tag: title
#: ri-spi.xml:161
#, no-c-format
msgid "Resource loading"
-msgstr ""
+msgstr "Laden von Ressourcen"
#. Tag: para
#: ri-spi.xml:163
@@ -587,8 +610,7 @@
#: ri-spi.xml:177
#, no-c-format
msgid "org.jboss.webbeans.resources.spi.ResourceLoader=com.acme.ResourceLoader"
-msgstr ""
-"org.jboss.webbeans.resources.spi.ResourceLoader=com.acme.ResourceLoader"
+msgstr "org.jboss.webbeans.resources.spi.ResourceLoader=com.acme.ResourceLoader"
#. Tag: programlisting
#: ri-spi.xml:184
@@ -603,12 +625,14 @@
"The servlet context can be used to allow your implementation of "
"<literal>ResourceLoader</literal> to interact with the container."
msgstr ""
+"Der Servlet-Kontext kann dazu verwendet werden, Ihrer Implementierung von "
+"<literal>ResourceLoader</literal> die Interaktion mit dem Container zu gestatten."
#. Tag: title
#: ri-spi.xml:196
#, no-c-format
msgid "The contract with the container"
-msgstr ""
+msgstr "Der Vertrag mit dem Container"
#. Tag: para
#: ri-spi.xml:198
@@ -622,7 +646,7 @@
#: ri-spi.xml:206
#, no-c-format
msgid "Classloader isolation"
-msgstr ""
+msgstr "Klassenlader-Isolierung"
#. Tag: para
#: ri-spi.xml:210
@@ -638,7 +662,7 @@
#: ri-spi.xml:219
#, no-c-format
msgid "Servlet listener"
-msgstr ""
+msgstr "Servlet-Listener"
#. Tag: para
#: ri-spi.xml:223
@@ -654,7 +678,7 @@
#: ri-spi.xml:234
#, no-c-format
msgid "Session Bean Interceptor"
-msgstr ""
+msgstr "Session Bean Interzeptor"
#. Tag: para
#: ri-spi.xml:238
@@ -682,3 +706,4 @@
"literal> into the applications isolated classloader. It cannot be loaded "
"from a shared classloader."
msgstr ""
+
15 years, 9 months
[webbeans-commits] Webbeans SVN: r1731 - doc/trunk/reference/de-DE.
by webbeans-commits@lists.jboss.org
Author: jdimanos
Date: 2009-02-26 23:36:55 -0500 (Thu, 26 Feb 2009)
New Revision: 1731
Modified:
doc/trunk/reference/de-DE/ri.po
Log:
update
Modified: doc/trunk/reference/de-DE/ri.po
===================================================================
--- doc/trunk/reference/de-DE/ri.po 2009-02-26 21:21:49 UTC (rev 1730)
+++ doc/trunk/reference/de-DE/ri.po 2009-02-27 04:36:55 UTC (rev 1731)
@@ -7,7 +7,7 @@
"Project-Id-Version: ri\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-02-01 21:16+0000\n"
-"PO-Revision-Date: 2009-02-26 22:18+1100\n"
+"PO-Revision-Date: 2009-02-27 15:36+1100\n"
"Last-Translator: \n"
"Language-Team: <en(a)li.org>\n"
"MIME-Version: 1.0\n"
@@ -156,7 +156,7 @@
msgid ""
"To install the update, you'll need Ant 1.7.0 installed, and the "
"<literal>ANT_HOME</literal> environment variable set. For example:"
-msgstr ""
+msgstr "Um das Update zu installieren, muss Ant 1.7.0 installiert und die <literal>ANT_HOME</literal> Umgebungsvariable gesetzt sein. Zum Beispiel:"
#. Tag: programlisting
#: ri.xml:79
@@ -174,7 +174,7 @@
msgid ""
"Then, you can install the update. The update script will use Maven to "
"download the Web Beans and EJB3 automatically."
-msgstr ""
+msgstr "Dann können Sie das Update installieren. Das Update-Skript verwendet Maven, um die Web Beans und EJB3 automatisch herunterzuladen."
#. Tag: programlisting
#: ri.xml:86
@@ -190,19 +190,19 @@
#: ri.xml:88
#, no-c-format
msgid "Now, you're ready to deploy your first example!"
-msgstr ""
+msgstr "Jetzt können Sie Ihr erstes Beispiel deployen!"
#. Tag: para
#: ri.xml:93
#, no-c-format
msgid "The build scripts for the examples offer a number of targets, these are:"
-msgstr ""
+msgstr "Die Build-Skripte für die Beispiele bieten zahlreiche Ziele, diese sind:"
#. Tag: para
#: ri.xml:99
#, no-c-format
msgid "<literal>ant restart</literal> - deploy the example in exploded format"
-msgstr ""
+msgstr "<literal>ant restart</literal> - Deployment des Beispiels in ausgeklapptem Format"
#. Tag: para
#: ri.xml:105
@@ -210,31 +210,31 @@
msgid ""
"<literal>ant explode</literal> - update an exploded example, without "
"restarting the deployment"
-msgstr ""
+msgstr "<literal>ant explode</literal> - Aktualisierung eines ausgeklappten Beispiels ohne Neustart des Deployments"
#. Tag: para
#: ri.xml:111
#, no-c-format
msgid "<literal>ant deploy</literal> - deploy the example in compressed jar format"
-msgstr ""
+msgstr "<literal>ant deploy</literal> - Deployment des Beispiels in komprimiertem jar-Format"
#. Tag: para
#: ri.xml:116
#, no-c-format
msgid "<literal>ant undeploy</literal> - remove the example from the server"
-msgstr ""
+msgstr "<literal>ant undeploy</literal> - das Beispiel vom Server entfernen"
#. Tag: para
#: ri.xml:121
#, no-c-format
msgid "<literal>ant clean</literal> - clean the example"
-msgstr ""
+msgstr "<literal>ant clean</literal> - Das Beispiel bereinigen"
#. Tag: para
#: ri.xml:128
#, no-c-format
msgid "To deploy the numberguess example:"
-msgstr ""
+msgstr "Um das numberguess Beispiel zu deployen:"
#. Tag: programlisting
#: ri.xml:132
@@ -250,7 +250,7 @@
#: ri.xml:134
#, no-c-format
msgid "Start JBoss AS:"
-msgstr ""
+msgstr "JBoss AS starten:"
#. Tag: programlisting
#: ri.xml:138
@@ -262,7 +262,7 @@
#: ri.xml:141
#, no-c-format
msgid "If you use Windows, use the <literal>run.bat</literal>script."
-msgstr ""
+msgstr "Falls Sie Windows verwenden, verwenden Sie das <literal>run.bat</literal>-Skript."
#. Tag: para
#: ri.xml:146
@@ -271,6 +271,8 @@
"Wait for the application to deploy, and enjoy hours of fun at <ulink url="
"\"http://localhost:8080/webbeans-numberguess\"></ulink>!"
msgstr ""
+"Deployen Sie die Anwendung und genießen Sie stundenlangen Spaß unter <ulink url="
+"\"http://localhost:8080/webbeans-numberguess\"></ulink>!"
#. Tag: para
#: ri.xml:151
@@ -280,7 +282,7 @@
"text into Latin. The numberguess example is a war example, and uses only "
"simple beans; the translator example is an ear example, and includes "
"enterprise beans, packaged in an EJB module. To try it out:"
-msgstr ""
+msgstr "Die Web Beans RI enthält ein zweites einfaches Beispiel, das Ihren Text ins Lateinische übersetzt. Beim numberguess Beispiel handelt es sich um ein war-Beispiel und es verwendet nur einfache Beans; das translator-Beispiel ist ein ear-Beispiel, das in einem EJB-Modul verpackte Enterprise Beans enthält . Um dies auszuprobieren:"
#. Tag: programlisting
#: ri.xml:158
@@ -299,12 +301,14 @@
"Wait for the application to deploy, and visit <ulink url=\"http://"
"localhost:8080/webbeans-translator\"></ulink>!"
msgstr ""
+"Warten Sie, bis die Anwendung deployt ist und besuchen Sie <ulink url=\"http://"
+"localhost:8080/webbeans-translator\"></ulink>!"
#. Tag: title
#: ri.xml:166
#, no-c-format
msgid "The numberguess example"
-msgstr ""
+msgstr "Das numberguess-Beispiel"
#. Tag: para
#: ri.xml:168
@@ -314,6 +318,8 @@
"between 1 and 100. After each attempt, you will be told whether you are too "
"high, or too low."
msgstr ""
+"In der numberguess-Anwendung haben Sie 10 Versuche, eine Zahl zwischen "
+"1 und 100 zu erraten. Nach jedem Versuch wird Ihnen mitgeteilt, ob Sie zu hoch oder zu niedrig liegen."
#. Tag: para
#: ri.xml:174
@@ -322,7 +328,7 @@
"The numberguess example is comprised of a number of Web Beans, configuration "
"files, and Facelet JSF pages, packaged as a war. Let's start with the "
"configuration files."
-msgstr ""
+msgstr "Das numberguess-Beispiel besteht aus einer Reihe von Web Beans, Konfigurationsdateien und Facelet JSF-Seiten, die als eine war verpackt sind. Fangen wir mit den Konfigurationsdateien an."
#. Tag: para
#: ri.xml:180
@@ -333,6 +339,9 @@
"tree. First, we have <literal>faces-config.xml</literal>, in which we tell "
"JSF to use Facelets:"
msgstr ""
+"Alle Konfigurationsdateien für dieses Beispiel befinden sich in <literal>WEB-INF/"
+"</literal>, das in <literal>WebContent</literal> im Quell-Baum gespeichert ist. Zunächst haben wir <literal>faces-config.xml</literal>, in dem wir "
+"JSF anweisen, Facelets zu verwenden:"
#. Tag: programlisting
#: ri.xml:188
@@ -370,13 +379,13 @@
msgid ""
"There is an empty <literal>web-beans.xml</literal> file, which marks this "
"application as a Web Beans application."
-msgstr ""
+msgstr "Es existiert eine leere <literal>web-beans.xml</literal>-Datei, die diese Anwendung als Web Beans Applikation kennzeichnet."
#. Tag: para
#: ri.xml:195
#, no-c-format
msgid "Finally there is <literal>web.xml</literal>:"
-msgstr ""
+msgstr "Und schließlich gibt es noch <literal>web.xml</literal>:"
#. Tag: section
#: ri.xml:197
@@ -624,6 +633,8 @@
"First, there is the <literal>@Random</literal> binding type, used for "
"injecting a random number:"
msgstr ""
+"Das Beispiel besteht aus 4 Klassen, wobei die ersten beiden Binding-Typen sind. "
+"Zunächst gibt es den <literal>@Random</literal> Binding-Typ, der zur Einspeisung einer zufälligen Zahl dient:"
#. Tag: programlisting
#: ri.xml:305
@@ -647,7 +658,7 @@
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for "
"injecting the maximum number that can be injected:"
-msgstr ""
+msgstr "Es gibt außerdem den <literal>@MaxNumber</literal> Binding-Typ, der zur Einspeisung der maximalen Zahl, die eingespeist werden kann, verwendet wird:"
#. Tag: programlisting
#: ri.xml:312
@@ -674,7 +685,7 @@
"The <literal>Generator</literal> class is responsible for creating the "
"random number, via a producer method. It also exposes the maximum possible "
"number via a producer method:"
-msgstr ""
+msgstr "Die <literal>Generator</literal>-Klasse ist verantwortlich für die Erstellung der zufälligen Zahl via einer Producer-Methode. Sie legt auch die mögliche Maximalzahl via einer maximum Producer-Methode offen:"
#. Tag: programlisting
#: ri.xml:320
@@ -735,6 +746,8 @@
"You'll notice that the <literal>Generator</literal> is application scoped; "
"therefore we don't get a different random each time."
msgstr ""
+"Sie werden feststellen, dass der <literal>Generator</literal> anwendungsbegrenzt ist; "
+"daher erhalten wir nicht jedes Mal ein anderes Zufallsergebnis."
#. Tag: para
#: ri.xml:327
@@ -743,6 +756,8 @@
"The final Web Bean in the application is the session scoped <literal>Game</"
"literal>."
msgstr ""
+"Das letzte Web Bean in der Anwendung ist das sessionbegrenzte <literal>Game</"
+"literal>."
#. Tag: para
#: ri.xml:332
@@ -753,7 +768,7 @@
"constructor injection to initialize the game with a random number. And of "
"course, we need to tell the player when they've won, so we give feedback "
"with a <literal>FacesMessage</literal>."
-msgstr ""
+msgstr "Sie werden bemerken, dass wir die <literal>@Named</literal>-Annotation verwendet haben, damit wir das Bean durch EL in der JSF-Seite verwenden können. Zu guter Letzt haben wir Konstruktor-Einspeisung zur Initialisierung des Spiels mit Zufallszahl verwendet. Und natürlich müssen wir dem Spieler mitteilen, wenn er gewonnen hat, daher bieten wir Feedback mittels einer <literal>FacesMessage</literal>."
#. Tag: programlisting
#: ri.xml:340
@@ -957,7 +972,7 @@
#: ri.xml:344
#, no-c-format
msgid "The translator example"
-msgstr ""
+msgstr "Das translator-Beispiel"
#. Tag: para
#: ri.xml:346
@@ -965,7 +980,7 @@
msgid ""
"The translator example will take any sentences you enter, and translate them "
"to Latin."
-msgstr ""
+msgstr "Beim translator-Beispiel werden die von Ihnen eingegebenen Sätze ins Lateinische übersetzt."
#. Tag: para
#: ri.xml:351
@@ -974,6 +989,8 @@
"The translator example is built as an ear, and contains EJBs. As a result, "
"it's structure is more complex than the numberguess example."
msgstr ""
+"Das translator-Beispiel ist eine ear und enthält EJBs. Als Folge ist seine Struktur komplexer als die des"
+"numberguess-Beispiels."
#. Tag: para
#: ri.xml:357
@@ -981,7 +998,7 @@
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
"this structure much simpler!"
-msgstr ""
+msgstr "EJB 3.1 und Jave EE 6 gestatten es Ihnen EJBs in eine war zu verpacken, wodurch diese Struktur wesentlich einfacher wird!"
#. Tag: para
#: ri.xml:363
@@ -991,6 +1008,8 @@
"<literal>webbeans-translator-ear</literal> module. Maven automatically "
"generates the <literal>application.xml</literal> for us:"
msgstr ""
+"Werfen wir zunächst einen Blick auf den ear-Aggregator, das sich im "
+"<literal>webbeans-translator-ear</literal>-Modul befindet. Maven generiert automatisch die <literal>application.xml</literal> für uns:"
#. Tag: programlisting
#: ri.xml:369
@@ -1032,6 +1051,9 @@
"localhost:8080/webbeans-translator\">http://localhost:8080/webbeans-"
"translator</ulink>)."
msgstr ""
+"Hier setzen wir den Kontextpfad, der uns eine schöne url liefert (<ulink url=\"http://"
+"localhost:8080/webbeans-translator\">http://localhost:8080/webbeans-"
+"translator</ulink>)."
#. Tag: para
#: ri.xml:377
@@ -1039,7 +1061,7 @@
msgid ""
"If you aren't using Maven to generate these files, you would need "
"<literal>META-INF/application.xml</literal>:"
-msgstr ""
+msgstr "Falls Sie zur Generierung dieser Dateien nicht Maven verwendet haben, benötigen Sie <literal>META-INF/application.xml</literal>:"
#. Tag: programlisting
#: ri.xml:382
@@ -1095,6 +1117,9 @@
"<literal>faces-config.xml</literal> (to enabled Facelets) and a <literal>web."
"xml</literal> (to enable JSF) in <literal>WebContent/WEB-INF</literal>."
msgstr ""
+"Als nächstes schauen wir uns die war an. Genau wie im numberguess Beispiel haben wir eine "
+"<literal>faces-config.xml</literal> (zur Aktivierung von Facelets) und eine <literal>web."
+"xml</literal> (zur Aktivierung von JSF) in <literal>WebContent/WEB-INF</literal>."
#. Tag: para
#: ri.xml:392
@@ -1104,6 +1129,8 @@
"numberguess example we have a template, which surrounds the form (ommitted "
"here for brevity):"
msgstr ""
+"Interessanter ist das zur Übersetzung des Texts verwendete Facelet. Ganz wie im "
+"numberguess-Beispiel besitzen wir eine Vorlage, die das Formular umgibt (hier der Kürze wegen weggelassen):"
#. Tag: programlisting
#: ri.xml:398
@@ -1171,7 +1198,7 @@
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate "
"button to see the result to the right."
-msgstr ""
+msgstr "Der Benutzer kann Text im Textbereich links eingeben und dann die translate-Schaltfläche drücken (zur Übersetzung), um auf der rechten Seite das Ergebnis zu sehen."
#. Tag: para
#: ri.xml:405
@@ -1182,6 +1209,8 @@
"empty <literal>web-beans.xml</literal>, used to mark the archive as "
"containing Web Beans."
msgstr ""
+"Sehen wir uns schließlich noch das ejb-Modul <literal>webbeans-translator-ejb</"
+"literal> an. In <literal>src/main/resources/META-INF</literal> existiert nur eine leere <literal>web-beans.xml</literal>, die dazu dient das Archiv als Web Beans enthaltend zu markieren."
#. Tag: para
#: ri.xml:413
@@ -1194,6 +1223,9 @@
"quite familiar with what a Web Bean looks like by now, so we'll just "
"highlight the most interesting bits here."
msgstr ""
+"Wir haben uns das Interessanteste bis zuletzt aufgehoben, nämlich den Code! Das Projekt besitzt zwei einfache Beans, <literal>SentenceParser</literal> und <literal>TextTranslator</"
+"literal> und zwei Enterprise Beans, <literal>TranslatorControllerBean</"
+"literal> und <literal>SentenceTranslator</literal>. Sie sind wahrscheinlich schon weitehend vertraut damit, wie Web Bean aussehen, daher gehen wir hier nur auf die interessantesten Aspekte ein."
#. Tag: para
#: ri.xml:423
@@ -1203,6 +1235,8 @@
"are dependent beans, and <literal>TextTranslator</literal> uses constructor "
"initialization:"
msgstr ""
+"Sowohl bei <literal>SentenceParser</literal> als auch bei <literal>TextTranslator</literal> "
+"handelt es sich um abhängige Beans und <literal>TextTranslator</literal> verwendet Konstruktor-Initialisierung :"
#. Tag: programlisting
#: ri.xml:429
@@ -1237,7 +1271,7 @@
"<literal>TextTranslator</literal> is a stateless bean (with a local business "
"interface), where the magic happens - of course, we couldn't develop a full "
"translator, but we gave it a good go!"
-msgstr ""
+msgstr "<literal>TextTranslator</literal> ist ein stateless Bean (mit einem lokalen Business-Interface), wo alles passiert - natürlich konnten wir keinen kompletten Übersetzer entwickeln,, aber wir haben uns Mühe gegeben!"
#. Tag: para
#: ri.xml:437
@@ -1247,6 +1281,8 @@
"user, and dispatches it to the translator. This is a request scoped, named, "
"stateful session bean, which injects the translator."
msgstr ""
+"Schließlich gibt es noch den UI-orientierten Kontroller, der den Text vom Benutzer nimmt und ihn an den translator (Übersetzer) weitergibt. Hierbei handelt es sich um ein anfragenbegrenztes, benanntes, "
+"stateful Session Bean, das den translator einspeist."
#. Tag: programlisting
#: ri.xml:443
@@ -1272,13 +1308,13 @@
#: ri.xml:445
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
-msgstr ""
+msgstr "Das Bean besitzt auch Getter und Setter für alle Felder auf der Seite."
#. Tag: para
#: ri.xml:449
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
-msgstr ""
+msgstr "Da es sich um ein stateful Session Bean handelt, müssen wir eine remove-Methode besitzen:"
#. Tag: programlisting
#: ri.xml:453
@@ -1302,7 +1338,7 @@
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
"destroyed; in this case at the end of the request."
-msgstr ""
+msgstr "Der Web Beans Manager ruft die remove-Methode für Sie auf, wenn das Bean gelöscht wird, in diesem Fall am Ende der Anfrage."
#. Tag: para
#: ri.xml:461
@@ -1313,6 +1349,10 @@
"WebBeans/Development\">http://www.seamframework.org/WebBeans/Development</"
"ulink>."
msgstr ""
+"Dies beendet unsere kurze Tour von Web Beans RI Beispielen. Falls Sie weitere Informationen zur "
+"RI wünschen oder falls Sie helfen möchten, besuchen SIe bitte <ulink url=\"http://www.seamframework.org/"
+"WebBeans/Development\">http://www.seamframework.org/WebBeans/Development</"
+"ulink>."
#. Tag: para
#: ri.xml:467
@@ -1320,5 +1360,5 @@
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
"examples and translating this reference guide."
-msgstr ""
+msgstr "Wir brauche Unterstützung auf allen Gebieten - Fehlerbehebung, Schreiben neuer Features, Schreiben neuer Beispiele und bei der Übersetzung dieses Referenzhandbuchs."
15 years, 9 months
[webbeans-commits] Webbeans SVN: r1730 - doc/trunk/reference/en-US.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-02-26 16:21:49 -0500 (Thu, 26 Feb 2009)
New Revision: 1730
Modified:
doc/trunk/reference/en-US/ri-spi.xml
Log:
Update for new Bootstrap api
Modified: doc/trunk/reference/en-US/ri-spi.xml
===================================================================
--- doc/trunk/reference/en-US/ri-spi.xml 2009-02-26 21:19:44 UTC (rev 1729)
+++ doc/trunk/reference/en-US/ri-spi.xml 2009-02-26 21:21:49 UTC (rev 1730)
@@ -29,15 +29,6 @@
SPIs are optional, if you need to override the default behavior,
others are required.
</para>
-
- <para>
- You can specify the implementation of an SPI either as a system
- property, or in a properties file
- <literal>META-INF/web-beans-ri.properties</literal>. All property names
- are the fully qualified class name of the implemented interface; all
- property values are the fully qualified class name of the
- implementation class.
- </para>
<para>
All interfaces in the SPI support the decorator pattern and provide a
@@ -70,28 +61,6 @@
of the JSR-299 specification, and isn't repeated here).
</para>
- <para>
- The Web Beans RI can be told to load your implementation of
- <literal>WebBeanDiscovery</literal> using the property
- <literal>org.jboss.webbeans.bootstrap.spi.WebBeanDiscovery</literal> with the
- fully qualified class name as the value. For example:
- </para>
-
- <programlisting>org.jboss.webbeans.bootstrap.spi.WebBeanDiscovery= \
- org.jboss.webbeans.integration.jbossas.WebBeanDiscoveryImpl</programlisting>
-
- <para>
- If the Web Beans RI is being used in a servlet container, it
- expects a constructor of the form:
- </para>
-
- <programlisting><![CDATA[public WebBeanDiscoveryImpl(ServletContext servletContext) {}]]></programlisting>
-
- <para>
- The servlet context can be used to allow your implementation of
- <literal>WebBeanDiscovery</literal> to interact with the container.
- </para>
-
</section>
<section>
@@ -193,32 +162,93 @@
local business interface (encapsulating the interface class and
jndi name used to look up an instance of the EJB).
</para>
-
- <para>
- The Web Beans RI can be told to load your implementation of
- <literal>EjbDiscovery</literal> using the property
- <literal>org.jboss.webbeans.bootstrap.spi.EjbDiscovery</literal> with the
- fully qualified class name as the value. For example:
- </para>
-
- <programlisting>org.jboss.webbeans.bootstrap.spi.EjbDiscovery= \
- org.jboss.webbeans.integration.jbossas.EjbDiscoveryImpl</programlisting>
-
- <para>
- If the Web Beans RI is being used in a servlet container, it
- expects a constructor of the form:
- </para>
-
- <programlisting><![CDATA[public EjbDiscoveryImpl(ServletContext servletContext) {}]]></programlisting>
-
- <para>
- The servlet context can be used to allow your implementation of
- <literal>EjbDiscovery</literal> to interact with the container.
- </para>
</section>
<section>
+ <title><literal>@EJB</literal>, <literal>@PersistenceContext</literal> and <literal>@Resource</literal> resolution</title>
+
+ <para>
+ The resolution of <literal>@EJB</literal>,
+ <literal>@PersistenceContext</literal> and
+ <literal>@Resource</literal> is delegated to the container. You must
+ provide an implementation of
+ <literal>org.jboss.webbeans.ejb.spi.EjbResolver</literal> which
+ provides these operations. Web Beans passes in the
+ <literal>javax.inject.manager.InjectionPoint</literal> the
+ resolution is for, as well as the <literal>NamingContext</literal>
+ in use for each resolution request.
+ </para>
+
+ </section>
+
+ <section>
+ <title>The application context</title>
+
+ <para>
+ Web Beans expects the Application Server or other container to
+ provide the storage for each application's context. The
+ <literal>org.jboss.webbeans.context.api.BeanStore</literal> should
+ be implemented to provide an application scoped storage. You may
+ find
+ <literal>org.jboss.webbeans.context.api.helpers.ConcurrentHashMapBeanStore</literal>
+ useful.
+ </para>
+
+ </section>
+
+ <section>
+ <title>Bootstrap and shutdown</title>
+ <para>
+ The <literal>org.jboss.webbeans.bootstrap.api.Bootstrap</literal>
+ interface defines the bootstrap for Web Beans. To boot Web Beans,
+ you must obtain an instance of
+ <literal>org.jboss.webbeans.bootstrap.WebBeansBootstrap</literal>
+ (which implements <literal>Boostrap</literal>), tell it about the
+ SPIs in use, and then request the container start.
+ </para>
+
+ <para>
+ The bootstrap is split into phases, bootstrap initialization and
+ bootstrap. Initialization will create a manager, and add the
+ standard (specification defined) contexts. Bootstrap will discover
+ EJBs, classes and XML; add beans defined using annotations; add
+ beans defined using XML; and validate all beans.
+ </para>
+
+ <para>
+ To initialize the bootstrap you call
+ <literal>Bootstrap.initialize()</literal>. Before calling
+ <literal>initialize()</literal> you must have called
+ <literal>Bootstrap.setEjbResolver()</literal>. If you are not using
+ the built in <literal>DefaultNamingContext</literal> or the built in
+ <literal>DefaultResourceLoader</literal> you must set these before
+ calling <literal>initialize()</literal>.
+ </para>
+
+ <para>
+ Having called <literal>initialize()</literal>, the
+ <literal>Manager</literal> can be obtained by calling
+ <literal>Bootstrap.getManager()</literal>.
+ </para>
+
+ <para>
+ To boot the container you call <literal>Bootstrap.boot()</literal>.
+ Before calling <literal>boot()</literal> you must have called
+ <literal>Bootstrap.setWebBeanDiscovery()</literal>,
+ <literal>Bootstrap.setEjbDiscovery()</literal> and
+ <literal>Bootstrap.setApplicationContext()</literal>.
+ </para>
+
+ <para>
+ To shutdown the container you call
+ <literal>Bootstrap.shutdown()</literal>. This allows the container
+ to perform any cleanup operations needed.
+ </para>
+
+ </section>
+
+ <section>
<title>JNDI</title>
<para>
@@ -226,7 +256,7 @@
standards, however you may want to alter the binding and lookup (for
example in an environment where JNDI isn't available). To do this,
implement
- <literal>org.jboss.webbeans.spi.resources.NamingContext</literal>:
+ <literal>org.jboss.webbeans.resources.spi.NamingContext</literal>:
</para>
<programlisting role="JAVA"><![CDATA[public interface NamingContext extends Serializable {
@@ -251,24 +281,6 @@
}]]></programlisting>
- <para>
- and tell the RI to use it:
- </para>
-
- <programlisting>org.jboss.webbeans.resources.spi.NamingContext=com.acme.MyNamingContext</programlisting>
-
- <para>
- If the Web Beans RI is being used in a servlet container, it
- expects a constructor of the form:
- </para>
-
- <programlisting><![CDATA[public MyNamingContext(ServletContext servletContext) {}]]></programlisting>
-
- <para>
- The servlet context can be used to allow your implementation of
- <literal>NamingContext</literal> to interact with the container.
- </para>
-
</section>
<section>
@@ -312,24 +324,6 @@
}
]]></programlisting>
- <para>
- and tell the RI to use it:
- </para>
-
- <programlisting>org.jboss.webbeans.resources.spi.ResourceLoader=com.acme.ResourceLoader</programlisting>
-
- <para>
- If the Web Beans RI is being used in a servlet container, it
- expects a constructor of the form:
- </para>
-
- <programlisting><![CDATA[public MyResourceLoader(ServletContext servletContext) {}]]></programlisting>
-
- <para>
- The servlet context can be used to allow your implementation of
- <literal>ResourceLoader</literal> to interact with the container.
- </para>
-
</section>
</section>
15 years, 9 months
[webbeans-commits] Webbeans SVN: r1729 - in ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans: context/api/helpers and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-02-26 16:19:44 -0500 (Thu, 26 Feb 2009)
New Revision: 1729
Added:
ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/bootstrap/api/helpers/ForwardingBootstrap.java
ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/context/api/helpers/ForwardingBeanStore.java
Log:
decorator pattern
Added: ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/bootstrap/api/helpers/ForwardingBootstrap.java
===================================================================
--- ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/bootstrap/api/helpers/ForwardingBootstrap.java (rev 0)
+++ ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/bootstrap/api/helpers/ForwardingBootstrap.java 2009-02-26 21:19:44 UTC (rev 1729)
@@ -0,0 +1,86 @@
+package org.jboss.webbeans.bootstrap.api.helpers;
+
+import javax.inject.manager.Manager;
+
+import org.jboss.webbeans.bootstrap.api.Bootstrap;
+import org.jboss.webbeans.bootstrap.spi.EjbDiscovery;
+import org.jboss.webbeans.bootstrap.spi.WebBeanDiscovery;
+import org.jboss.webbeans.context.api.BeanStore;
+import org.jboss.webbeans.ejb.spi.EjbResolver;
+import org.jboss.webbeans.resources.spi.NamingContext;
+import org.jboss.webbeans.resources.spi.ResourceLoader;
+
+public abstract class ForwardingBootstrap implements Bootstrap
+{
+
+ protected abstract Bootstrap delegate();
+
+ public void boot()
+ {
+ delegate().boot();
+ }
+
+ public Manager getManager()
+ {
+ return delegate().getManager();
+ }
+
+ public void initialize()
+ {
+ delegate().initialize();
+ }
+
+ public void setApplicationContext(BeanStore beanStore)
+ {
+ delegate().setApplicationContext(beanStore);
+ }
+
+ public void setEjbDiscovery(EjbDiscovery ejbDiscovery)
+ {
+ delegate().setEjbDiscovery(ejbDiscovery);
+ }
+
+ public void setEjbResolver(EjbResolver ejbResolver)
+ {
+ delegate().setEjbResolver(ejbResolver);
+ }
+
+ public void setNamingContext(NamingContext namingContext)
+ {
+ delegate().setNamingContext(namingContext);
+ }
+
+ public void setResourceLoader(ResourceLoader resourceLoader)
+ {
+ delegate().setResourceLoader(resourceLoader);
+ }
+
+ public void setWebBeanDiscovery(WebBeanDiscovery webBeanDiscovery)
+ {
+ delegate().setWebBeanDiscovery(webBeanDiscovery);
+ }
+
+ public void shutdown()
+ {
+ delegate().shutdown();
+ }
+
+ @Override
+ public String toString()
+ {
+ return delegate().toString();
+ }
+
+ @Override
+ public int hashCode()
+ {
+ return delegate().hashCode();
+ }
+
+ @Override
+ public boolean equals(Object obj)
+ {
+ return delegate().equals(obj);
+ }
+
+}
Property changes on: ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/bootstrap/api/helpers/ForwardingBootstrap.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/context/api/helpers/ForwardingBeanStore.java
===================================================================
--- ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/context/api/helpers/ForwardingBeanStore.java (rev 0)
+++ ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/context/api/helpers/ForwardingBeanStore.java 2009-02-26 21:19:44 UTC (rev 1729)
@@ -0,0 +1,55 @@
+package org.jboss.webbeans.context.api.helpers;
+
+import javax.context.Contextual;
+
+import org.jboss.webbeans.context.api.BeanStore;
+
+public abstract class ForwardingBeanStore implements BeanStore
+{
+
+ protected abstract BeanStore delegate();
+
+ public void clear()
+ {
+ delegate().clear();
+ }
+
+ public <T> T get(Contextual<? extends T> bean)
+ {
+ return delegate().get(bean);
+ }
+
+ public Iterable<Contextual<? extends Object>> getBeans()
+ {
+ return delegate().getBeans();
+ }
+
+ public <T> void put(Contextual<? extends T> bean, T instance)
+ {
+ delegate().put(bean, instance);
+ }
+
+ public <T> T remove(Contextual<? extends T> bean)
+ {
+ return delegate().remove(bean);
+ }
+
+ @Override
+ public String toString()
+ {
+ return delegate().toString();
+ }
+
+ @Override
+ public int hashCode()
+ {
+ return delegate().hashCode();
+ }
+
+ @Override
+ public boolean equals(Object obj)
+ {
+ return delegate().equals(obj);
+ }
+
+}
Property changes on: ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/context/api/helpers/ForwardingBeanStore.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 9 months
[webbeans-commits] Webbeans SVN: r1728 - ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/servlet.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-02-26 16:10:20 -0500 (Thu, 26 Feb 2009)
New Revision: 1728
Removed:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/servlet/ServletInitialization.java
Log:
add shutdown, remove old code
Deleted: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/servlet/ServletInitialization.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/servlet/ServletInitialization.java 2009-02-26 21:07:39 UTC (rev 1727)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/servlet/ServletInitialization.java 2009-02-26 21:10:20 UTC (rev 1728)
@@ -1,144 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.jboss.webbeans.servlet;
-
-import java.lang.reflect.Constructor;
-
-import javax.servlet.ServletContext;
-
-import org.jboss.webbeans.bootstrap.PropertiesBasedInitialization;
-import org.jboss.webbeans.bootstrap.WebBeansBootstrap;
-import org.jboss.webbeans.bootstrap.spi.EjbDiscovery;
-import org.jboss.webbeans.bootstrap.spi.WebBeanDiscovery;
-import org.jboss.webbeans.ejb.spi.EjbResolver;
-import org.jboss.webbeans.resources.DefaultNamingContext;
-import org.jboss.webbeans.resources.DefaultResourceLoader;
-import org.jboss.webbeans.resources.spi.NamingContext;
-import org.jboss.webbeans.resources.spi.ResourceLoader;
-import org.jboss.webbeans.util.DeploymentProperties;
-
-/**
- * Bootstrapper for usage within servlet environments
- *
- * @author Pete Muir
- */
-public class ServletInitialization extends PropertiesBasedInitialization
-{
-
- // The deployment properties
- private final DeploymentProperties deploymentProperties;
- private final ResourceLoader resourceLoader;
-
- private final WebBeansBootstrap bootstrap;
-
- public ServletInitialization(ServletContext servletContext)
- {
- bootstrap = new WebBeansBootstrap();
-
- // Create a simple resource loader based for initial loading
- ResourceLoader temporaryResourceLoader = new DefaultResourceLoader();
- this.deploymentProperties = new DeploymentProperties(temporaryResourceLoader);
- this.resourceLoader = createResourceLoader(servletContext, temporaryResourceLoader);
-
- bootstrap.setResourceLoader(resourceLoader);
- bootstrap.setNamingContext(createNaming(servletContext));
- bootstrap.setEjbResolver(createEjbResolver(servletContext));
- bootstrap.setEjbDiscovery(createEjbDiscovery(servletContext));
- bootstrap.setWebBeanDiscovery(createWebBeanDiscovery(servletContext));
- }
-
- protected NamingContext createNaming(ServletContext servletContext)
- {
- Constructor<? extends NamingContext> namingConstructor = getClassConstructor(deploymentProperties, resourceLoader, NamingContext.PROPERTY_NAME, NamingContext.class, ServletContext.class);
- if (namingConstructor != null)
- {
- return newInstance(namingConstructor, servletContext);
- }
- else
- {
- return new DefaultNamingContext();
- }
- }
-
- protected EjbResolver createEjbResolver(ServletContext servletContext)
- {
- Constructor<? extends EjbResolver> constructor = getClassConstructor(deploymentProperties, resourceLoader, EjbResolver.PROPERTY_NAME, EjbResolver.class, ServletContext.class);
- if (constructor != null)
- {
- return newInstance(constructor, servletContext);
- }
- else
- {
- throw new IllegalStateException("Unable to find a EjbResolver, check Web Beans is correctly installed in your container");
- }
- }
-
- protected EjbDiscovery createEjbDiscovery(ServletContext servletContext)
- {
- Constructor<? extends EjbDiscovery> constructor = getClassConstructor(deploymentProperties, resourceLoader, EjbDiscovery.PROPERTY_NAME, EjbDiscovery.class, ServletContext.class);
- if (constructor != null)
- {
- return newInstance(constructor, servletContext);
- }
- else
- {
- throw new IllegalStateException("Unable to find a EjbDiscovery, check Web Beans is correctly installed in your container");
- }
- }
-
- protected WebBeanDiscovery createWebBeanDiscovery(ServletContext servletContext)
- {
- // Attempt to create a plugin web beans discovery
- Constructor<? extends WebBeanDiscovery> webBeanDiscoveryConstructor = getClassConstructor(deploymentProperties, resourceLoader, WebBeanDiscovery.PROPERTY_NAME, WebBeanDiscovery.class, ServletContext.class);
- if (webBeanDiscoveryConstructor == null)
- {
- throw new IllegalStateException("Cannot load Web Bean discovery plugin! Check if Web Beans is properly installed into your container");
- }
- else
- {
- return newInstance(webBeanDiscoveryConstructor, servletContext);
- }
- }
-
- protected ResourceLoader createResourceLoader(ServletContext servletContext, ResourceLoader defaultResourceLoader)
- {
- // Attempt to create a plugin resource loader
- Constructor<? extends ResourceLoader> resourceLoaderConstructor = getClassConstructor(deploymentProperties, defaultResourceLoader, ResourceLoader.PROPERTY_NAME, ResourceLoader.class, ServletContext.class);
- if (resourceLoaderConstructor != null)
- {
- return newInstance(resourceLoaderConstructor, servletContext);
- }
- else
- {
- return defaultResourceLoader;
- }
- }
-
- public ServletInitialization initialize()
- {
- bootstrap.initialize();
- return this;
- }
-
- public ServletInitialization start()
- {
- bootstrap.boot();
- return this;
- }
-
-}
15 years, 9 months
[webbeans-commits] Webbeans SVN: r1727 - in ri/trunk: webbeans-ri-spi/src/main/java/org/jboss/webbeans/bootstrap/api and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-02-26 16:07:39 -0500 (Thu, 26 Feb 2009)
New Revision: 1727
Removed:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/PropertiesBasedInitialization.java
Modified:
ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/bootstrap/api/Bootstrap.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java
Log:
add shutdown, remove old code
Deleted: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/PropertiesBasedInitialization.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/PropertiesBasedInitialization.java 2009-02-26 20:24:44 UTC (rev 1726)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/PropertiesBasedInitialization.java 2009-02-26 21:07:39 UTC (rev 1727)
@@ -1,102 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.jboss.webbeans.bootstrap;
-
-import java.lang.reflect.Constructor;
-import java.lang.reflect.InvocationTargetException;
-
-import javax.inject.ExecutionException;
-
-import org.jboss.webbeans.log.LogProvider;
-import org.jboss.webbeans.log.Logging;
-import org.jboss.webbeans.resources.spi.ResourceLoader;
-import org.jboss.webbeans.servlet.ServletInitialization;
-import org.jboss.webbeans.util.DeploymentProperties;
-import org.jboss.webbeans.util.Reflections;
-
-/**
- * An abstract extension of Bootstrap which uses deployment properties for
- * configuring the application
- *
- * @author Pete Muir
- *
- */
-public abstract class PropertiesBasedInitialization
-{
-
- // The log provider
- private static final LogProvider log = Logging.getLogProvider(ServletInitialization.class);
-
- /**
- * Returns any class constructor from the merged list defined by the
- * specified property.
- * No guarantee is made about which item in the list will returned.
- *
- * @param <T> The class type
- * @param deploymentProperties The deployment properties to be used
- * @param resourceLoader The resourceLoader to use for class and resource loading
- * @param propertyName The name of the property to find in the deployment properties
- * @param expectedType The expected type or super type of the class
- * @param constructorArguments The arguments of the constructor to select
- * @return
- */
- protected static <T> Constructor<? extends T> getClassConstructor(DeploymentProperties deploymentProperties, ResourceLoader resourceLoader, String propertyName, Class<T> expectedType, Class<?> ... constructorArguments)
- {
- for (Class<? extends T> clazz : DeploymentProperties.getClasses(deploymentProperties, resourceLoader, propertyName, expectedType))
- {
- Constructor<? extends T> constructor = Reflections.getConstructor((Class<? extends T>) clazz, constructorArguments);
- if (constructor != null)
- {
- return constructor;
- }
- }
- return null;
- }
-
- /**
- * Creates an instance of the type
- *
- * @param constructor The constructor to use
- * @param parameters The parameters to pass to the constructor
- * @return An instance of the type
- */
- protected static <T> T newInstance(Constructor<T> constructor, Object... parameters)
- {
- try
- {
- return constructor.newInstance(parameters);
- }
- catch (IllegalArgumentException e)
- {
- throw new ExecutionException("Error instantiating " + constructor, e);
- }
- catch (InstantiationException e)
- {
- throw new ExecutionException("Error instantiating " + constructor, e);
- }
- catch (IllegalAccessException e)
- {
- throw new ExecutionException("Error instantiating " + constructor, e);
- }
- catch (InvocationTargetException e)
- {
- throw new ExecutionException("Error instantiating " + constructor, e);
- }
- }
-
-}
\ No newline at end of file
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java 2009-02-26 20:24:44 UTC (rev 1726)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java 2009-02-26 21:07:39 UTC (rev 1727)
@@ -209,5 +209,10 @@
ApplicationContext.INSTANCE.setActive(false);
ApplicationContext.INSTANCE.setBeanStore(null);
}
+
+ public void shutdown()
+ {
+ endApplication(getApplicationContext());
+ }
}
Modified: ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/bootstrap/api/Bootstrap.java
===================================================================
--- ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/bootstrap/api/Bootstrap.java 2009-02-26 20:24:44 UTC (rev 1726)
+++ ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/bootstrap/api/Bootstrap.java 2009-02-26 21:07:39 UTC (rev 1727)
@@ -85,4 +85,10 @@
*/
public void boot();
+ /**
+ * Causes the container to clean up and shutdown
+ *
+ */
+ public void shutdown();
+
}
15 years, 9 months
[webbeans-commits] Webbeans SVN: r1726 - doc/trunk/reference.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-02-26 15:24:44 -0500 (Thu, 26 Feb 2009)
New Revision: 1726
Modified:
doc/trunk/reference/pom.xml
Log:
eclipse plugin is unchecked
Modified: doc/trunk/reference/pom.xml
===================================================================
--- doc/trunk/reference/pom.xml 2009-02-26 20:24:18 UTC (rev 1725)
+++ doc/trunk/reference/pom.xml 2009-02-26 20:24:44 UTC (rev 1726)
@@ -130,6 +130,10 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ </plugin>
</plugins>
<pluginManagement>
<plugins>
@@ -143,6 +147,92 @@
<artifactId>maven-jdocbook-plugin</artifactId>
<version>${mpjdocbook.version}</version>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifest>
+ <addDefaultImplementationEntries>
+ true
+ </addDefaultImplementationEntries>
+ <addDefaultSpecificationEntries>
+ true
+ </addDefaultSpecificationEntries>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-report-plugin</artifactId>
+ <version>2.4.3</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.4.3</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <version>2.4</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-install-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>2.0-beta-6</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.0.4</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>1.0-alpha-4</version>
+ <executions>
+ <execution>
+ <id>enforce</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireMavenVersion>
+ <version>2.0.9</version>
+ </requireMavenVersion>
+ <requirePluginVersions>
+ <unCheckedPlugins>
+ <unCheckedPlugin>org.apache.maven.plugins:maven-eclipse-plugin</unCheckedPlugin>
+ </unCheckedPlugins>
+ </requirePluginVersions>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</pluginManagement>
<extensions>
15 years, 9 months
[webbeans-commits] Webbeans SVN: r1725 - tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-02-26 15:24:18 -0500 (Thu, 26 Feb 2009)
New Revision: 1725
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/ContextTest.java
Log:
WBTCK-20
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java 2009-02-26 20:13:57 UTC (rev 1724)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java 2009-02-26 20:24:18 UTC (rev 1725)
@@ -537,7 +537,7 @@
}
if (activeContexts.size() > 1)
{
- throw new IllegalArgumentException("More than one context active for scope type " + scopeType.getName());
+ throw new IllegalStateException("More than one context active for scope type " + scopeType.getName());
}
return activeContexts.iterator().next();
}
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/ContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/ContextTest.java 2009-02-26 20:13:57 UTC (rev 1724)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/ContextTest.java 2009-02-26 20:24:18 UTC (rev 1725)
@@ -63,7 +63,7 @@
getCurrentManager().getContext(RequestScoped.class);
}
- @Test(expectedExceptions = { IllegalArgumentException.class }, groups = { "manager" })
+ @Test(expectedExceptions = { IllegalStateException.class }, groups = { "manager" })
@SpecAssertion(section = "8.6", id = "d")
public void testGetContextWithTooManyActiveContextsFails()
{
15 years, 9 months