[jboss-cvs] JBossAS SVN: r64450 - in projects/microcontainer/trunk/kernel/src: main/org/jboss/beans/metadata/spi/builder and 5 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Aug 3 09:09:37 EDT 2007
Author: alesj
Date: 2007-08-03 09:09:36 -0400 (Fri, 03 Aug 2007)
New Revision: 64450
Added:
projects/microcontainer/trunk/kernel/src/resources/tests/org/jboss/test/kernel/dependency/test/FromContextXMLTestCase0.xml
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/dependency/test/FromContextAnnotationTestCase.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/dependency/test/FromContextTestCase.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/dependency/test/FromContextXMLTestCase.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/AliasesAwareBean.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/BeanInfoAwareBean.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/BeanNameAwareBean.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/ContextAwareBean.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/MetaDataAwareBean.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/OtherAwareBean.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/ScopeAwareBean.java
Removed:
projects/microcontainer/trunk/kernel/src/resources/tests/org/jboss/test/kernel/deployment/test/NamingBeanTestCase.xml
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/test/NamingBeanTestCase.java
Modified:
projects/microcontainer/trunk/kernel/src/main/org/jboss/beans/metadata/plugins/builder/BeanMetaDataBuilderImpl.java
projects/microcontainer/trunk/kernel/src/main/org/jboss/beans/metadata/spi/builder/BeanMetaDataBuilder.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/dependency/test/DependencyTestSuite.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/dependency/test/KernelControllerContextAwareAnnotationTestCase.java
projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/test/DeploymentTestSuite.java
Log:
Moved FromContext test + added plain MetaData and annotations test.
Modified: projects/microcontainer/trunk/kernel/src/main/org/jboss/beans/metadata/plugins/builder/BeanMetaDataBuilderImpl.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/main/org/jboss/beans/metadata/plugins/builder/BeanMetaDataBuilderImpl.java 2007-08-03 12:15:30 UTC (rev 64449)
+++ projects/microcontainer/trunk/kernel/src/main/org/jboss/beans/metadata/plugins/builder/BeanMetaDataBuilderImpl.java 2007-08-03 13:09:36 UTC (rev 64450)
@@ -91,6 +91,12 @@
return beanMetaData;
}
+ public BeanMetaDataBuilder setAliases(Set<Object> aliases)
+ {
+ beanMetaData.setAliases(aliases);
+ return this;
+ }
+
public BeanMetaDataBuilder setMode(String modeString)
{
return setMode(new ControllerMode(modeString));
Modified: projects/microcontainer/trunk/kernel/src/main/org/jboss/beans/metadata/spi/builder/BeanMetaDataBuilder.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/main/org/jboss/beans/metadata/spi/builder/BeanMetaDataBuilder.java 2007-08-03 12:15:30 UTC (rev 64449)
+++ projects/microcontainer/trunk/kernel/src/main/org/jboss/beans/metadata/spi/builder/BeanMetaDataBuilder.java 2007-08-03 13:09:36 UTC (rev 64450)
@@ -21,6 +21,8 @@
*/
package org.jboss.beans.metadata.spi.builder;
+import java.util.Set;
+
import org.jboss.beans.metadata.spi.BeanMetaData;
import org.jboss.beans.metadata.spi.ValueMetaData;
import org.jboss.dependency.spi.ControllerMode;
@@ -35,6 +37,8 @@
{
BeanMetaData getBeanMetaData();
+ BeanMetaDataBuilder setAliases(Set<Object> aliases);
+
BeanMetaDataBuilder setMode(String modeString);
BeanMetaDataBuilder setMode(ControllerMode mode);
Copied: projects/microcontainer/trunk/kernel/src/resources/tests/org/jboss/test/kernel/dependency/test/FromContextXMLTestCase0.xml (from rev 64445, projects/microcontainer/trunk/kernel/src/resources/tests/org/jboss/test/kernel/deployment/test/NamingBeanTestCase.xml)
===================================================================
--- projects/microcontainer/trunk/kernel/src/resources/tests/org/jboss/test/kernel/dependency/test/FromContextXMLTestCase0.xml (rev 0)
+++ projects/microcontainer/trunk/kernel/src/resources/tests/org/jboss/test/kernel/dependency/test/FromContextXMLTestCase0.xml 2007-08-03 13:09:36 UTC (rev 64450)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <bean name="set_name_bean" class="org.jboss.test.kernel.deployment.support.NameAwareBean">
+ <property name="name"><inject fromContext="name"/></property>
+ </bean>
+
+ <beanfactory name="set_name_factory" class="org.jboss.test.kernel.deployment.support.NameAwareBean">
+ <property name="name"><inject fromContext="name"/></property>
+ </beanfactory>
+
+ <bean name="aliases" class="org.jboss.test.kernel.deployment.support.NameAwareBean">
+ <alias>a1</alias>
+ <alias>a2</alias>
+ <alias>a3</alias>
+ <property name="aliases"><inject fromContext="aliases"/></property>
+ </bean>
+
+ <bean name="metadata" class="org.jboss.test.kernel.deployment.support.NameAwareBean">
+ <property name="metadata"><inject fromContext="metadata"/></property>
+ </bean>
+
+ <bean name="beaninfo" class="org.jboss.test.kernel.deployment.support.NameAwareBean">
+ <property name="beaninfo"><inject fromContext="beaninfo"/></property>
+ </bean>
+
+ <bean name="scopekey" class="org.jboss.test.kernel.deployment.support.NameAwareBean">
+ <property name="scopeKey"><inject fromContext="scope"/></property>
+ </bean>
+
+ <bean name="dynamic" class="org.jboss.test.kernel.deployment.support.NameAwareBean">
+ <property name="dynamic"><inject fromContext="getBeanMetaData"/></property>
+ </bean>
+
+ <bean name="other" class="org.jboss.test.kernel.deployment.support.NameAwareBean">
+ <property name="name"><inject bean="set_name_bean" fromContext="name"/></property>
+ </bean>
+
+ <bean name="context" class="org.jboss.test.kernel.deployment.support.NameAwareBean">
+ <property name="context"><inject bean="set_name_bean" fromContext="context"/></property>
+ </bean>
+
+</deployment>
Deleted: projects/microcontainer/trunk/kernel/src/resources/tests/org/jboss/test/kernel/deployment/test/NamingBeanTestCase.xml
===================================================================
--- projects/microcontainer/trunk/kernel/src/resources/tests/org/jboss/test/kernel/deployment/test/NamingBeanTestCase.xml 2007-08-03 12:15:30 UTC (rev 64449)
+++ projects/microcontainer/trunk/kernel/src/resources/tests/org/jboss/test/kernel/deployment/test/NamingBeanTestCase.xml 2007-08-03 13:09:36 UTC (rev 64450)
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<deployment xmlns="urn:jboss:bean-deployer:2.0">
-
- <bean name="set_name_bean" class="org.jboss.test.kernel.deployment.support.NameAwareBean">
- <property name="name"><inject fromContext="name"/></property>
- </bean>
-
- <beanfactory name="set_name_factory" class="org.jboss.test.kernel.deployment.support.NameAwareBean">
- <property name="name"><inject fromContext="name"/></property>
- </beanfactory>
-
- <bean name="aliases" class="org.jboss.test.kernel.deployment.support.NameAwareBean">
- <alias>a1</alias>
- <alias>a2</alias>
- <alias>a3</alias>
- <property name="aliases"><inject fromContext="aliases"/></property>
- </bean>
-
- <bean name="metadata" class="org.jboss.test.kernel.deployment.support.NameAwareBean">
- <property name="metadata"><inject fromContext="metadata"/></property>
- </bean>
-
- <bean name="beaninfo" class="org.jboss.test.kernel.deployment.support.NameAwareBean">
- <property name="beaninfo"><inject fromContext="beaninfo"/></property>
- </bean>
-
- <bean name="scopekey" class="org.jboss.test.kernel.deployment.support.NameAwareBean">
- <property name="scopeKey"><inject fromContext="scope"/></property>
- </bean>
-
- <bean name="dynamic" class="org.jboss.test.kernel.deployment.support.NameAwareBean">
- <property name="dynamic"><inject fromContext="getBeanMetaData"/></property>
- </bean>
-
- <bean name="other" class="org.jboss.test.kernel.deployment.support.NameAwareBean">
- <property name="name"><inject bean="set_name_bean" fromContext="name"/></property>
- </bean>
-
- <bean name="context" class="org.jboss.test.kernel.deployment.support.NameAwareBean">
- <property name="context"><inject bean="set_name_bean" fromContext="context"/></property>
- </bean>
-
-</deployment>
Modified: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/dependency/test/DependencyTestSuite.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/dependency/test/DependencyTestSuite.java 2007-08-03 12:15:30 UTC (rev 64449)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/dependency/test/DependencyTestSuite.java 2007-08-03 13:09:36 UTC (rev 64450)
@@ -85,6 +85,9 @@
suite.addTest(InstallSelfDependencyTestCase.suite());
suite.addTest(InstallSelfDependencyXMLTestCase.suite());
suite.addTest(InstallSelfDependencyAnnotationTestCase.suite());
+ suite.addTest(FromContextTestCase.suite());
+ suite.addTest(FromContextXMLTestCase.suite());
+ suite.addTest(FromContextAnnotationTestCase.suite());
return suite;
}
}
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/dependency/test/FromContextAnnotationTestCase.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/dependency/test/FromContextAnnotationTestCase.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/dependency/test/FromContextAnnotationTestCase.java 2007-08-03 13:09:36 UTC (rev 64450)
@@ -0,0 +1,107 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.kernel.dependency.test;
+
+import java.util.Set;
+
+import junit.framework.Test;
+import org.jboss.beans.metadata.plugins.AbstractInjectionValueMetaData;
+import org.jboss.beans.metadata.plugins.AbstractPropertyMetaData;
+import org.jboss.beans.metadata.plugins.FromContext;
+import org.jboss.beans.metadata.plugins.builder.BeanMetaDataBuilderFactory;
+import org.jboss.beans.metadata.plugins.factory.GenericBeanFactoryMetaData;
+import org.jboss.beans.metadata.spi.BeanMetaData;
+import org.jboss.beans.metadata.spi.builder.BeanMetaDataBuilder;
+import org.jboss.test.kernel.deployment.support.NameAwareBean;
+import org.jboss.test.kernel.deployment.support.BeanNameAwareBean;
+import org.jboss.test.kernel.deployment.support.AliasesAwareBean;
+import org.jboss.test.kernel.deployment.support.MetaDataAwareBean;
+import org.jboss.test.kernel.deployment.support.BeanInfoAwareBean;
+import org.jboss.test.kernel.deployment.support.ScopeAwareBean;
+import org.jboss.test.kernel.deployment.support.ContextAwareBean;
+import org.jboss.test.kernel.deployment.support.OtherAwareBean;
+import org.jboss.dependency.spi.ControllerContext;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class FromContextAnnotationTestCase extends FromContextTestCase
+{
+ public FromContextAnnotationTestCase(String name)
+ throws Throwable
+ {
+ super(name);
+ }
+
+ public static Test suite()
+ {
+ return suite(FromContextAnnotationTestCase.class);
+ }
+
+ protected void checkAliases(Set<Object> aliases) throws Throwable
+ {
+ assertNull(aliases);
+ ControllerContext c1 = assertContext("a1");
+ ControllerContext c2 = assertContext("a2");
+ ControllerContext c3 = assertContext("a3");
+ assertEquals(c1, c2);
+ assertEquals(c2, c3);
+ }
+
+ protected void setBeanMetaDatas() throws Throwable
+ {
+ BeanMetaDataBuilder b1 = BeanMetaDataBuilderFactory.createBuilder("set_name_bean", BeanNameAwareBean.class.getName());
+
+ GenericBeanFactoryMetaData b2 = new GenericBeanFactoryMetaData("set_name_factory", NameAwareBean.class.getName());
+ AbstractInjectionValueMetaData v2 = new AbstractInjectionValueMetaData();
+ v2.setFromContext(FromContext.NAME);
+ b2.addBeanProperty(new AbstractPropertyMetaData("name", v2));
+
+ BeanMetaDataBuilder b3 = BeanMetaDataBuilderFactory.createBuilder("aliases", AliasesAwareBean.class.getName());
+ BeanMetaDataBuilder b4 = BeanMetaDataBuilderFactory.createBuilder("metadata", MetaDataAwareBean.class.getName());
+ BeanMetaDataBuilder b5 = BeanMetaDataBuilderFactory.createBuilder("beaninfo", BeanInfoAwareBean.class.getName());
+ BeanMetaDataBuilder b6 = BeanMetaDataBuilderFactory.createBuilder("scopekey", ScopeAwareBean.class.getName());
+
+ BeanMetaDataBuilder b7 = BeanMetaDataBuilderFactory.createBuilder("dynamic", NameAwareBean.class.getName());
+ AbstractInjectionValueMetaData v7 = new AbstractInjectionValueMetaData();
+ v7.setFromContext(FromContext.getInstance("getBeanMetaData"));
+ b7.addPropertyMetaData("dynamic", v7);
+
+ BeanMetaDataBuilder b8 = BeanMetaDataBuilderFactory.createBuilder("other", OtherAwareBean.class.getName());
+ BeanMetaDataBuilder b9 = BeanMetaDataBuilderFactory.createBuilder("context", ContextAwareBean.class.getName());
+
+
+ setBeanMetaDatas(new BeanMetaData[]
+ {
+ b1.getBeanMetaData(),
+ b2,
+ b3.getBeanMetaData(),
+ b4.getBeanMetaData(),
+ b5.getBeanMetaData(),
+ b6.getBeanMetaData(),
+ b7.getBeanMetaData(),
+ b8.getBeanMetaData(),
+ b9.getBeanMetaData(),
+ }
+ );
+ }
+}
Copied: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/dependency/test/FromContextTestCase.java (from rev 64445, projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/test/NamingBeanTestCase.java)
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/dependency/test/FromContextTestCase.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/dependency/test/FromContextTestCase.java 2007-08-03 13:09:36 UTC (rev 64450)
@@ -0,0 +1,199 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.kernel.dependency.test;
+
+import java.util.Set;
+import java.util.HashSet;
+import java.util.Arrays;
+
+import junit.framework.Test;
+import org.jboss.beans.metadata.plugins.AbstractInjectionValueMetaData;
+import org.jboss.beans.metadata.plugins.FromContext;
+import org.jboss.beans.metadata.plugins.AbstractPropertyMetaData;
+import org.jboss.beans.metadata.plugins.factory.GenericBeanFactoryMetaData;
+import org.jboss.beans.metadata.plugins.builder.BeanMetaDataBuilderFactory;
+import org.jboss.beans.metadata.spi.BeanMetaData;
+import org.jboss.beans.metadata.spi.builder.BeanMetaDataBuilder;
+import org.jboss.beans.metadata.spi.factory.BeanFactory;
+import org.jboss.dependency.spi.ControllerContext;
+import org.jboss.test.kernel.deployment.support.NameAwareBean;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class FromContextTestCase extends AbstractKernelDependencyTest
+{
+ private boolean isXML;
+
+ public FromContextTestCase(String name)
+ throws Throwable
+ {
+ super(name);
+ }
+
+ public FromContextTestCase(String name, boolean xmltest)
+ throws Throwable
+ {
+ super(name, xmltest);
+ isXML = xmltest;
+ }
+
+ public static Test suite()
+ {
+ return suite(FromContextTestCase.class);
+ }
+
+ protected Object getBean(int number, String name) throws Throwable
+ {
+ ControllerContext context;
+ if (isXML)
+ context = assertContext(name);
+ else
+ context = assertInstall(number, name);
+ assertNotNull(context);
+ return context.getTarget();
+ }
+
+ public void testNameInjection() throws Throwable
+ {
+ setBeanMetaDatas();
+
+ NameAwareBean nsb = (NameAwareBean)getBean(0, "set_name_bean");
+ assertNotNull(nsb);
+ assertEquals("set_name_bean", nsb.getName());
+
+ BeanFactory nsf = (BeanFactory)getBean(1, "set_name_factory");
+ assertNotNull(nsf);
+ NameAwareBean b3 = (NameAwareBean)nsf.createBean();
+ assertNotNull(b3);
+ assertEquals("set_name_factory", b3.getName());
+ NameAwareBean b4 = (NameAwareBean)nsf.createBean();
+ assertNotNull(b4);
+ assertEquals("set_name_factory", b4.getName());
+
+ NameAwareBean alias = (NameAwareBean)getBean(2, "aliases");
+ assertNotNull(alias);
+ Set<Object> aliases = alias.getAliases();
+ checkAliases(aliases);
+
+ NameAwareBean metadata = (NameAwareBean)getBean(3, "metadata");
+ assertNotNull(metadata);
+ assertNotNull(metadata.getMetadata());
+
+ NameAwareBean beaninfo = (NameAwareBean)getBean(4, "beaninfo");
+ assertNotNull(beaninfo);
+ assertNotNull(beaninfo.getBeaninfo());
+
+ NameAwareBean scopekey = (NameAwareBean)getBean(5, "scopekey");
+ assertNotNull(scopekey);
+ assertNotNull(scopekey.getScopeKey());
+
+ NameAwareBean dynamic = (NameAwareBean)getBean(6, "dynamic");
+ assertNotNull(dynamic);
+ assertNotNull(dynamic.getDynamic());
+ assertInstanceOf(dynamic.getDynamic(), BeanMetaData.class);
+
+ NameAwareBean other = (NameAwareBean)getBean(7, "other");
+ assertNotNull(other);
+ assertEquals("set_name_bean", other.getName());
+
+ NameAwareBean context = (NameAwareBean)getBean(8, "context");
+ assertNotNull(context);
+ assertNotNull(context.getContext());
+ }
+
+ protected void checkAliases(Set<Object> aliases) throws Throwable
+ {
+ assertNotNull(aliases);
+ assertFalse(aliases.isEmpty());
+ assertTrue(aliases.contains("a1"));
+ assertTrue(aliases.contains("a2"));
+ assertTrue(aliases.contains("a3"));
+ }
+
+ protected void setBeanMetaDatas() throws Throwable
+ {
+ BeanMetaDataBuilder b1 = BeanMetaDataBuilderFactory.createBuilder("set_name_bean", NameAwareBean.class.getName());
+ AbstractInjectionValueMetaData v1 = new AbstractInjectionValueMetaData();
+ v1.setFromContext(FromContext.NAME);
+ b1.addPropertyMetaData("name", v1);
+
+ GenericBeanFactoryMetaData b2 = new GenericBeanFactoryMetaData("set_name_factory", NameAwareBean.class.getName());
+ AbstractInjectionValueMetaData v2 = new AbstractInjectionValueMetaData();
+ v2.setFromContext(FromContext.NAME);
+ b2.addBeanProperty(new AbstractPropertyMetaData("name", v2));
+
+ BeanMetaDataBuilder b3 = BeanMetaDataBuilderFactory.createBuilder("aliases", NameAwareBean.class.getName());
+ Set<Object> aliases = new HashSet<Object>();
+ aliases.addAll(Arrays.asList("a1", "a2", "a3"));
+ b3.setAliases(aliases);
+ AbstractInjectionValueMetaData v3 = new AbstractInjectionValueMetaData();
+ v3.setFromContext(FromContext.ALIASES);
+ b3.addPropertyMetaData("aliases", v3);
+
+ BeanMetaDataBuilder b4 = BeanMetaDataBuilderFactory.createBuilder("metadata", NameAwareBean.class.getName());
+ AbstractInjectionValueMetaData v4 = new AbstractInjectionValueMetaData();
+ v4.setFromContext(FromContext.METADATA);
+ b4.addPropertyMetaData("metadata", v4);
+
+ BeanMetaDataBuilder b5 = BeanMetaDataBuilderFactory.createBuilder("beaninfo", NameAwareBean.class.getName());
+ AbstractInjectionValueMetaData v5 = new AbstractInjectionValueMetaData();
+ v5.setFromContext(FromContext.BEANINFO);
+ b5.addPropertyMetaData("beaninfo", v5);
+
+ BeanMetaDataBuilder b6 = BeanMetaDataBuilderFactory.createBuilder("scopekey", NameAwareBean.class.getName());
+ AbstractInjectionValueMetaData v6 = new AbstractInjectionValueMetaData();
+ v6.setFromContext(FromContext.SCOPE);
+ b6.addPropertyMetaData("scopeKey", v6);
+
+ BeanMetaDataBuilder b7 = BeanMetaDataBuilderFactory.createBuilder("dynamic", NameAwareBean.class.getName());
+ AbstractInjectionValueMetaData v7 = new AbstractInjectionValueMetaData();
+ v7.setFromContext(FromContext.getInstance("getBeanMetaData"));
+ b7.addPropertyMetaData("dynamic", v7);
+
+ BeanMetaDataBuilder b8 = BeanMetaDataBuilderFactory.createBuilder("other", NameAwareBean.class.getName());
+ AbstractInjectionValueMetaData v8 = new AbstractInjectionValueMetaData();
+ v8.setValue("set_name_bean");
+ v8.setFromContext(FromContext.NAME);
+ b8.addPropertyMetaData("name", v8);
+
+ BeanMetaDataBuilder b9 = BeanMetaDataBuilderFactory.createBuilder("context", NameAwareBean.class.getName());
+ AbstractInjectionValueMetaData v9 = new AbstractInjectionValueMetaData();
+ v9.setFromContext(FromContext.CONTEXT);
+ b9.addPropertyMetaData("context", v9);
+
+
+ setBeanMetaDatas(new BeanMetaData[]
+ {
+ b1.getBeanMetaData(),
+ b2,
+ b3.getBeanMetaData(),
+ b4.getBeanMetaData(),
+ b5.getBeanMetaData(),
+ b6.getBeanMetaData(),
+ b7.getBeanMetaData(),
+ b8.getBeanMetaData(),
+ b9.getBeanMetaData(),
+ }
+ );
+ }
+}
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/dependency/test/FromContextXMLTestCase.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/dependency/test/FromContextXMLTestCase.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/dependency/test/FromContextXMLTestCase.java 2007-08-03 13:09:36 UTC (rev 64450)
@@ -0,0 +1,48 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.kernel.dependency.test;
+
+import junit.framework.Test;
+
+/**
+ * Test FromContext from XML.
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class FromContextXMLTestCase extends FromContextTestCase
+{
+ public FromContextXMLTestCase(String name)
+ throws Throwable
+ {
+ super(name, true);
+ }
+
+ public static Test suite()
+ {
+ return suite(FromContextXMLTestCase.class);
+ }
+
+ protected void setBeanMetaDatas() throws Throwable
+ {
+ deploy(0);
+ }
+}
Modified: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/dependency/test/KernelControllerContextAwareAnnotationTestCase.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/dependency/test/KernelControllerContextAwareAnnotationTestCase.java 2007-08-03 12:15:30 UTC (rev 64449)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/dependency/test/KernelControllerContextAwareAnnotationTestCase.java 2007-08-03 13:09:36 UTC (rev 64450)
@@ -29,8 +29,7 @@
/**
* KernelControllerContextAware Test Case.
*
- * @author <a href="adrian at jboss.com">Adrian Brock</a>
- * @version $Revision: 40727 $
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
*/
public class KernelControllerContextAwareAnnotationTestCase extends KernelControllerContextAwareTestCase
{
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/AliasesAwareBean.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/AliasesAwareBean.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/AliasesAwareBean.java 2007-08-03 13:09:36 UTC (rev 64450)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.kernel.deployment.support;
+
+import java.util.Set;
+
+import org.jboss.beans.metadata.plugins.annotations.Inject;
+import org.jboss.beans.metadata.plugins.annotations.FromContext;
+import org.jboss.beans.metadata.plugins.annotations.Aliases;
+
+/**
+ * A simple bean with awareness
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+ at Aliases({"a1", "a2", "a3"})
+public class AliasesAwareBean extends NameAwareBean
+{
+ @Inject(fromContext = FromContext.ALIASES)
+ public void setAliases(Set<Object> aliases)
+ {
+ super.setAliases(aliases);
+ }
+}
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/BeanInfoAwareBean.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/BeanInfoAwareBean.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/BeanInfoAwareBean.java 2007-08-03 13:09:36 UTC (rev 64450)
@@ -0,0 +1,40 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.kernel.deployment.support;
+
+import org.jboss.beans.info.spi.BeanInfo;
+import org.jboss.beans.metadata.plugins.annotations.Inject;
+import org.jboss.beans.metadata.plugins.annotations.FromContext;
+
+/**
+ * A simple bean with awareness
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class BeanInfoAwareBean extends NameAwareBean
+{
+ @Inject(fromContext = FromContext.BEANINFO)
+ public void setBeaninfo(BeanInfo beaninfo)
+ {
+ super.setBeaninfo(beaninfo);
+ }
+}
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/BeanNameAwareBean.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/BeanNameAwareBean.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/BeanNameAwareBean.java 2007-08-03 13:09:36 UTC (rev 64450)
@@ -0,0 +1,39 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.kernel.deployment.support;
+
+import org.jboss.beans.metadata.plugins.annotations.Inject;
+import org.jboss.beans.metadata.plugins.annotations.FromContext;
+
+/**
+ * A simple bean with awareness
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class BeanNameAwareBean extends NameAwareBean
+{
+ @Inject(fromContext = FromContext.NAME)
+ public void setName(String name)
+ {
+ super.setName(name);
+ }
+}
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/ContextAwareBean.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/ContextAwareBean.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/ContextAwareBean.java 2007-08-03 13:09:36 UTC (rev 64450)
@@ -0,0 +1,40 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.kernel.deployment.support;
+
+import org.jboss.dependency.spi.ControllerContext;
+import org.jboss.beans.metadata.plugins.annotations.Inject;
+import org.jboss.beans.metadata.plugins.annotations.FromContext;
+
+/**
+ * A simple bean with awareness
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class ContextAwareBean extends NameAwareBean
+{
+ @Inject(fromContext = FromContext.CONTEXT)
+ public void setContext(ControllerContext context)
+ {
+ super.setContext(context);
+ }
+}
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/MetaDataAwareBean.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/MetaDataAwareBean.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/MetaDataAwareBean.java 2007-08-03 13:09:36 UTC (rev 64450)
@@ -0,0 +1,40 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.kernel.deployment.support;
+
+import org.jboss.metadata.spi.MetaData;
+import org.jboss.beans.metadata.plugins.annotations.Inject;
+import org.jboss.beans.metadata.plugins.annotations.FromContext;
+
+/**
+ * A simple bean with awareness
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class MetaDataAwareBean extends NameAwareBean
+{
+ @Inject(fromContext = FromContext.METADATA)
+ public void setMetadata(MetaData metadata)
+ {
+ super.setMetadata(metadata);
+ }
+}
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/OtherAwareBean.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/OtherAwareBean.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/OtherAwareBean.java 2007-08-03 13:09:36 UTC (rev 64450)
@@ -0,0 +1,39 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.kernel.deployment.support;
+
+import org.jboss.beans.metadata.plugins.annotations.Inject;
+import org.jboss.beans.metadata.plugins.annotations.FromContext;
+
+/**
+ * A simple bean with awareness
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class OtherAwareBean extends NameAwareBean
+{
+ @Inject(bean = "set_name_bean", fromContext = FromContext.NAME)
+ public void setName(String name)
+ {
+ super.setName(name);
+ }
+}
Added: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/ScopeAwareBean.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/ScopeAwareBean.java (rev 0)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/support/ScopeAwareBean.java 2007-08-03 13:09:36 UTC (rev 64450)
@@ -0,0 +1,40 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.kernel.deployment.support;
+
+import org.jboss.metadata.spi.scope.ScopeKey;
+import org.jboss.beans.metadata.plugins.annotations.Inject;
+import org.jboss.beans.metadata.plugins.annotations.FromContext;
+
+/**
+ * A simple bean with awareness
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class ScopeAwareBean extends NameAwareBean
+{
+ @Inject(fromContext = FromContext.SCOPE)
+ public void setScopeKey(ScopeKey scopeKey)
+ {
+ super.setScopeKey(scopeKey);
+ }
+}
Modified: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/test/DeploymentTestSuite.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/test/DeploymentTestSuite.java 2007-08-03 12:15:30 UTC (rev 64449)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/test/DeploymentTestSuite.java 2007-08-03 13:09:36 UTC (rev 64450)
@@ -60,7 +60,7 @@
suite.addTest(ContextualScopingTestCase.suite());
suite.addTest(InnerBeanScopingTestCase.suite());
suite.addTest(ScopingShutdownTestCase.suite());
- suite.addTest(NamingBeanTestCase.suite());
+ suite.addTest(FromContextUnsupportedTestCase.suite());
return suite;
}
Deleted: projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/test/NamingBeanTestCase.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/test/NamingBeanTestCase.java 2007-08-03 12:15:30 UTC (rev 64449)
+++ projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/test/NamingBeanTestCase.java 2007-08-03 13:09:36 UTC (rev 64450)
@@ -1,96 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.test.kernel.deployment.test;
-
-import java.util.Set;
-
-import junit.framework.Test;
-import org.jboss.beans.metadata.spi.BeanMetaData;
-import org.jboss.beans.metadata.spi.factory.BeanFactory;
-import org.jboss.test.kernel.deployment.support.NameAwareBean;
-
-/**
- * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
- */
-public class NamingBeanTestCase extends AbstractDeploymentTest
-{
- public NamingBeanTestCase(String name)
- throws Throwable
- {
- super(name);
- }
-
- public static Test suite()
- {
- return suite(NamingBeanTestCase.class);
- }
-
- public void testNameInjection() throws Throwable
- {
- NameAwareBean nsb = (NameAwareBean)getBean("set_name_bean");
- assertNotNull(nsb);
- assertEquals("set_name_bean", nsb.getName());
-
- BeanFactory nsf = (BeanFactory)getBean("set_name_factory");
- assertNotNull(nsf);
- NameAwareBean b3 = (NameAwareBean)nsf.createBean();
- assertNotNull(b3);
- assertEquals("set_name_factory", b3.getName());
- NameAwareBean b4 = (NameAwareBean)nsf.createBean();
- assertNotNull(b4);
- assertEquals("set_name_factory", b4.getName());
-
- NameAwareBean alias = (NameAwareBean)getBean("aliases");
- assertNotNull(alias);
- Set<Object> aliases = alias.getAliases();
- assertNotNull(aliases);
- assertFalse(aliases.isEmpty());
- assertTrue(aliases.contains("a1"));
- assertTrue(aliases.contains("a2"));
- assertTrue(aliases.contains("a3"));
-
- NameAwareBean metadata = (NameAwareBean)getBean("metadata");
- assertNotNull(metadata);
- assertNotNull(metadata.getMetadata());
-
- NameAwareBean beaninfo = (NameAwareBean)getBean("beaninfo");
- assertNotNull(beaninfo);
- assertNotNull(beaninfo.getBeaninfo());
-
- NameAwareBean scopekey = (NameAwareBean)getBean("scopekey");
- assertNotNull(scopekey);
- assertNotNull(scopekey.getScopeKey());
-
- NameAwareBean dynamic = (NameAwareBean)getBean("dynamic");
- assertNotNull(dynamic);
- assertNotNull(dynamic.getDynamic());
- assertInstanceOf(dynamic.getDynamic(), BeanMetaData.class);
-
- NameAwareBean other = (NameAwareBean)getBean("other");
- assertNotNull(other);
- assertEquals("set_name_bean", other.getName());
-
- NameAwareBean context = (NameAwareBean)getBean("context");
- assertNotNull(context);
- assertNotNull(context.getContext());
- }
-}
More information about the jboss-cvs-commits
mailing list