geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r443003 - in /geronimo/xbean/trunk: xbean-spring-v2a/src/main/java/org/apache/xbean/spring/context/v2a/ xbean-spring-v2a/src/test/java/org/apache/xbean/spring/context/ xbean-spring-v2a/src/test/java/org/apache/xbean/spring/example/ xbean-sp...
Date Wed, 13 Sep 2006 15:45:55 GMT
Author: gnodet
Date: Wed Sep 13 08:45:55 2006
New Revision: 443003

URL: http://svn.apache.org/viewvc?view=rev&rev=443003
Log:
XBEAN-52: Inner bean definitions are instanciated twice and registered as components

Added:
    geronimo/xbean/trunk/xbean-spring-v2a/src/test/java/org/apache/xbean/spring/context/ComponentTest.java
    geronimo/xbean/trunk/xbean-spring-v2a/src/test/java/org/apache/xbean/spring/example/ContainerBean.java
    geronimo/xbean/trunk/xbean-spring-v2a/src/test/java/org/apache/xbean/spring/example/InnerBean.java
    geronimo/xbean/trunk/xbean-spring-v2a/src/test/resources/META-INF/services/org/apache/xbean/spring/http/xbean.apache.org/schemas/component
    geronimo/xbean/trunk/xbean-spring-v2a/src/test/resources/org/apache/xbean/spring/context/component-spring.xml
    geronimo/xbean/trunk/xbean-spring-v2a/src/test/resources/org/apache/xbean/spring/context/component-xbean.xml
    geronimo/xbean/trunk/xbean-spring-v2b/src/test/java/org/apache/xbean/spring/context/ComponentTest.java
    geronimo/xbean/trunk/xbean-spring-v2b/src/test/java/org/apache/xbean/spring/example/ContainerBean.java
    geronimo/xbean/trunk/xbean-spring-v2b/src/test/java/org/apache/xbean/spring/example/InnerBean.java
    geronimo/xbean/trunk/xbean-spring-v2b/src/test/resources/META-INF/services/org/apache/xbean/spring/http/xbean.apache.org/schemas/component
    geronimo/xbean/trunk/xbean-spring-v2b/src/test/resources/org/apache/xbean/spring/context/component-spring.xml
    geronimo/xbean/trunk/xbean-spring-v2b/src/test/resources/org/apache/xbean/spring/context/component-xbean.xml
Modified:
    geronimo/xbean/trunk/xbean-spring-v2a/src/main/java/org/apache/xbean/spring/context/v2a/XBeanNamespaceHandler.java
    geronimo/xbean/trunk/xbean-spring-v2b/src/main/java/org/apache/xbean/spring/context/v2b/XBeanNamespaceHandler.java

Modified: geronimo/xbean/trunk/xbean-spring-v2a/src/main/java/org/apache/xbean/spring/context/v2a/XBeanNamespaceHandler.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-spring-v2a/src/main/java/org/apache/xbean/spring/context/v2a/XBeanNamespaceHandler.java?view=diff&rev=443003&r1=443002&r2=443003
==============================================================================
--- geronimo/xbean/trunk/xbean-spring-v2a/src/main/java/org/apache/xbean/spring/context/v2a/XBeanNamespaceHandler.java
(original)
+++ geronimo/xbean/trunk/xbean-spring-v2a/src/main/java/org/apache/xbean/spring/context/v2a/XBeanNamespaceHandler.java
Wed Sep 13 08:45:55 2006
@@ -151,9 +151,13 @@
         this.parserContext = parserContext;
         this.qnameHelper = new XBeanQNameHelper(parserContext.getReaderContext());
         BeanDefinitionHolder holder = parseBeanFromExtensionElement(element);
-        BeanDefinitionReaderUtils.registerBeanDefinition(holder, parserContext.getRegistry());
-        BeanComponentDefinition componentDefinition = new BeanComponentDefinition(holder);
-        parserContext.getReaderContext().fireComponentRegistered(componentDefinition);
+        // Only register components: i.e. first level beans (or root element if no <beans>
element
+        if (element.getParentNode() == element.getOwnerDocument() || 
+            element.getParentNode().getParentNode() == element.getOwnerDocument()) {
+            BeanDefinitionReaderUtils.registerBeanDefinition(holder, parserContext.getRegistry());
+            BeanComponentDefinition componentDefinition = new BeanComponentDefinition(holder);
+            parserContext.getReaderContext().fireComponentRegistered(componentDefinition);
+        }
         return holder.getBeanDefinition();
     }
 

Added: geronimo/xbean/trunk/xbean-spring-v2a/src/test/java/org/apache/xbean/spring/context/ComponentTest.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-spring-v2a/src/test/java/org/apache/xbean/spring/context/ComponentTest.java?view=auto&rev=443003
==============================================================================
--- geronimo/xbean/trunk/xbean-spring-v2a/src/test/java/org/apache/xbean/spring/context/ComponentTest.java
(added)
+++ geronimo/xbean/trunk/xbean-spring-v2a/src/test/java/org/apache/xbean/spring/context/ComponentTest.java
Wed Sep 13 08:45:55 2006
@@ -0,0 +1,49 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.apache.xbean.spring.context;
+
+import junit.framework.TestCase;
+
+import org.apache.xbean.spring.context.ClassPathXmlApplicationContext;
+import org.springframework.beans.factory.BeanFactory;
+
+import org.apache.xbean.spring.example.ContainerBean;
+import org.apache.xbean.spring.example.InnerBean;
+
+public class ComponentTest extends TestCase {
+
+    protected void setUp() throws Exception {
+        InnerBean.INSTANCE = null;
+    }
+    
+    public void test1() {
+        test("org/apache/xbean/spring/context/component-spring.xml");
+    }
+
+    public void test2() {
+        test("org/apache/xbean/spring/context/component-xbean.xml");
+    }
+    
+    protected void test(String file) {
+        BeanFactory f = new ClassPathXmlApplicationContext(file);
+        ContainerBean container = (ContainerBean) f.getBean("container");
+        assertNotNull(container);
+        assertNotNull(container.getBeans());
+        assertEquals(1, container.getBeans().length);
+    }
+
+}

Added: geronimo/xbean/trunk/xbean-spring-v2a/src/test/java/org/apache/xbean/spring/example/ContainerBean.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-spring-v2a/src/test/java/org/apache/xbean/spring/example/ContainerBean.java?view=auto&rev=443003
==============================================================================
--- geronimo/xbean/trunk/xbean-spring-v2a/src/test/java/org/apache/xbean/spring/example/ContainerBean.java
(added)
+++ geronimo/xbean/trunk/xbean-spring-v2a/src/test/java/org/apache/xbean/spring/example/ContainerBean.java
Wed Sep 13 08:45:55 2006
@@ -0,0 +1,37 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.apache.xbean.spring.example;
+
+public class ContainerBean {
+
+    InnerBean[] beans;
+
+    /**
+     * @return the beans
+     */
+    public InnerBean[] getBeans() {
+        return beans;
+    }
+
+    /**
+     * @param beans the beans to set
+     */
+    public void setBeans(InnerBean[] beans) {
+        this.beans = beans;
+    }
+    
+}

Added: geronimo/xbean/trunk/xbean-spring-v2a/src/test/java/org/apache/xbean/spring/example/InnerBean.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-spring-v2a/src/test/java/org/apache/xbean/spring/example/InnerBean.java?view=auto&rev=443003
==============================================================================
--- geronimo/xbean/trunk/xbean-spring-v2a/src/test/java/org/apache/xbean/spring/example/InnerBean.java
(added)
+++ geronimo/xbean/trunk/xbean-spring-v2a/src/test/java/org/apache/xbean/spring/example/InnerBean.java
Wed Sep 13 08:45:55 2006
@@ -0,0 +1,31 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.apache.xbean.spring.example;
+
+public class InnerBean {
+
+    public static InnerBean INSTANCE = null;
+    
+    public InnerBean() {
+        Thread.dumpStack();
+        if (INSTANCE == null) {
+            INSTANCE = this;
+        } else {
+            throw new IllegalStateException("Already instanciated");
+        }
+    }
+}

Added: geronimo/xbean/trunk/xbean-spring-v2a/src/test/resources/META-INF/services/org/apache/xbean/spring/http/xbean.apache.org/schemas/component
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-spring-v2a/src/test/resources/META-INF/services/org/apache/xbean/spring/http/xbean.apache.org/schemas/component?view=auto&rev=443003
==============================================================================
--- geronimo/xbean/trunk/xbean-spring-v2a/src/test/resources/META-INF/services/org/apache/xbean/spring/http/xbean.apache.org/schemas/component
(added)
+++ geronimo/xbean/trunk/xbean-spring-v2a/src/test/resources/META-INF/services/org/apache/xbean/spring/http/xbean.apache.org/schemas/component
Wed Sep 13 08:45:55 2006
@@ -0,0 +1,2 @@
+container=org.apache.xbean.spring.example.ContainerBean
+inner=org.apache.xbean.spring.example.InnerBean

Added: geronimo/xbean/trunk/xbean-spring-v2a/src/test/resources/org/apache/xbean/spring/context/component-spring.xml
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-spring-v2a/src/test/resources/org/apache/xbean/spring/context/component-spring.xml?view=auto&rev=443003
==============================================================================
--- geronimo/xbean/trunk/xbean-spring-v2a/src/test/resources/org/apache/xbean/spring/context/component-spring.xml
(added)
+++ geronimo/xbean/trunk/xbean-spring-v2a/src/test/resources/org/apache/xbean/spring/context/component-spring.xml
Wed Sep 13 08:45:55 2006
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<beans>
+  <bean id="container" class="org.apache.xbean.spring.example.ContainerBean">
+    <property name="beans">
+      <list>
+        <bean id="inner" class="org.apache.xbean.spring.example.InnerBean" />
+      </list>
+    </property>
+  </bean>
+</beans>

Added: geronimo/xbean/trunk/xbean-spring-v2a/src/test/resources/org/apache/xbean/spring/context/component-xbean.xml
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-spring-v2a/src/test/resources/org/apache/xbean/spring/context/component-xbean.xml?view=auto&rev=443003
==============================================================================
--- geronimo/xbean/trunk/xbean-spring-v2a/src/test/resources/org/apache/xbean/spring/context/component-xbean.xml
(added)
+++ geronimo/xbean/trunk/xbean-spring-v2a/src/test/resources/org/apache/xbean/spring/context/component-xbean.xml
Wed Sep 13 08:45:55 2006
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<beans xmlns:tns="http://xbean.apache.org/schemas/component">
+  <tns:container id="container">
+    <tns:beans>
+      <tns:inner id="inner" />
+    </tns:beans>
+  </tns:container>
+</beans>

Modified: geronimo/xbean/trunk/xbean-spring-v2b/src/main/java/org/apache/xbean/spring/context/v2b/XBeanNamespaceHandler.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-spring-v2b/src/main/java/org/apache/xbean/spring/context/v2b/XBeanNamespaceHandler.java?view=diff&rev=443003&r1=443002&r2=443003
==============================================================================
--- geronimo/xbean/trunk/xbean-spring-v2b/src/main/java/org/apache/xbean/spring/context/v2b/XBeanNamespaceHandler.java
(original)
+++ geronimo/xbean/trunk/xbean-spring-v2b/src/main/java/org/apache/xbean/spring/context/v2b/XBeanNamespaceHandler.java
Wed Sep 13 08:45:55 2006
@@ -151,9 +151,13 @@
         this.parserContext = parserContext;
         this.qnameHelper = new XBeanQNameHelper(parserContext.getReaderContext());
         BeanDefinitionHolder holder = parseBeanFromExtensionElement(element);
-        BeanDefinitionReaderUtils.registerBeanDefinition(holder, parserContext.getRegistry());
-        BeanComponentDefinition componentDefinition = new BeanComponentDefinition(holder);
-        parserContext.getReaderContext().fireComponentRegistered(componentDefinition);
+        // Only register components: i.e. first level beans (or root element if no <beans>
element
+        if (element.getParentNode() == element.getOwnerDocument() || 
+            element.getParentNode().getParentNode() == element.getOwnerDocument()) {
+            BeanDefinitionReaderUtils.registerBeanDefinition(holder, parserContext.getRegistry());
+            BeanComponentDefinition componentDefinition = new BeanComponentDefinition(holder);
+            parserContext.getReaderContext().fireComponentRegistered(componentDefinition);
+        }
         return holder.getBeanDefinition();
     }
 

Added: geronimo/xbean/trunk/xbean-spring-v2b/src/test/java/org/apache/xbean/spring/context/ComponentTest.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-spring-v2b/src/test/java/org/apache/xbean/spring/context/ComponentTest.java?view=auto&rev=443003
==============================================================================
--- geronimo/xbean/trunk/xbean-spring-v2b/src/test/java/org/apache/xbean/spring/context/ComponentTest.java
(added)
+++ geronimo/xbean/trunk/xbean-spring-v2b/src/test/java/org/apache/xbean/spring/context/ComponentTest.java
Wed Sep 13 08:45:55 2006
@@ -0,0 +1,49 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.apache.xbean.spring.context;
+
+import junit.framework.TestCase;
+
+import org.apache.xbean.spring.context.ClassPathXmlApplicationContext;
+import org.springframework.beans.factory.BeanFactory;
+
+import org.apache.xbean.spring.example.ContainerBean;
+import org.apache.xbean.spring.example.InnerBean;
+
+public class ComponentTest extends TestCase {
+
+    protected void setUp() throws Exception {
+        InnerBean.INSTANCE = null;
+    }
+    
+    public void test1() {
+        test("org/apache/xbean/spring/context/component-spring.xml");
+    }
+
+    public void test2() {
+        test("org/apache/xbean/spring/context/component-xbean.xml");
+    }
+    
+    protected void test(String file) {
+        BeanFactory f = new ClassPathXmlApplicationContext(file);
+        ContainerBean container = (ContainerBean) f.getBean("container");
+        assertNotNull(container);
+        assertNotNull(container.getBeans());
+        assertEquals(1, container.getBeans().length);
+    }
+
+}

Added: geronimo/xbean/trunk/xbean-spring-v2b/src/test/java/org/apache/xbean/spring/example/ContainerBean.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-spring-v2b/src/test/java/org/apache/xbean/spring/example/ContainerBean.java?view=auto&rev=443003
==============================================================================
--- geronimo/xbean/trunk/xbean-spring-v2b/src/test/java/org/apache/xbean/spring/example/ContainerBean.java
(added)
+++ geronimo/xbean/trunk/xbean-spring-v2b/src/test/java/org/apache/xbean/spring/example/ContainerBean.java
Wed Sep 13 08:45:55 2006
@@ -0,0 +1,37 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.apache.xbean.spring.example;
+
+public class ContainerBean {
+
+    InnerBean[] beans;
+
+    /**
+     * @return the beans
+     */
+    public InnerBean[] getBeans() {
+        return beans;
+    }
+
+    /**
+     * @param beans the beans to set
+     */
+    public void setBeans(InnerBean[] beans) {
+        this.beans = beans;
+    }
+    
+}

Added: geronimo/xbean/trunk/xbean-spring-v2b/src/test/java/org/apache/xbean/spring/example/InnerBean.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-spring-v2b/src/test/java/org/apache/xbean/spring/example/InnerBean.java?view=auto&rev=443003
==============================================================================
--- geronimo/xbean/trunk/xbean-spring-v2b/src/test/java/org/apache/xbean/spring/example/InnerBean.java
(added)
+++ geronimo/xbean/trunk/xbean-spring-v2b/src/test/java/org/apache/xbean/spring/example/InnerBean.java
Wed Sep 13 08:45:55 2006
@@ -0,0 +1,31 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.apache.xbean.spring.example;
+
+public class InnerBean {
+
+    public static InnerBean INSTANCE = null;
+    
+    public InnerBean() {
+        Thread.dumpStack();
+        if (INSTANCE == null) {
+            INSTANCE = this;
+        } else {
+            throw new IllegalStateException("Already instanciated");
+        }
+    }
+}

Added: geronimo/xbean/trunk/xbean-spring-v2b/src/test/resources/META-INF/services/org/apache/xbean/spring/http/xbean.apache.org/schemas/component
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-spring-v2b/src/test/resources/META-INF/services/org/apache/xbean/spring/http/xbean.apache.org/schemas/component?view=auto&rev=443003
==============================================================================
--- geronimo/xbean/trunk/xbean-spring-v2b/src/test/resources/META-INF/services/org/apache/xbean/spring/http/xbean.apache.org/schemas/component
(added)
+++ geronimo/xbean/trunk/xbean-spring-v2b/src/test/resources/META-INF/services/org/apache/xbean/spring/http/xbean.apache.org/schemas/component
Wed Sep 13 08:45:55 2006
@@ -0,0 +1,2 @@
+container=org.apache.xbean.spring.example.ContainerBean
+inner=org.apache.xbean.spring.example.InnerBean

Added: geronimo/xbean/trunk/xbean-spring-v2b/src/test/resources/org/apache/xbean/spring/context/component-spring.xml
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-spring-v2b/src/test/resources/org/apache/xbean/spring/context/component-spring.xml?view=auto&rev=443003
==============================================================================
--- geronimo/xbean/trunk/xbean-spring-v2b/src/test/resources/org/apache/xbean/spring/context/component-spring.xml
(added)
+++ geronimo/xbean/trunk/xbean-spring-v2b/src/test/resources/org/apache/xbean/spring/context/component-spring.xml
Wed Sep 13 08:45:55 2006
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<beans>
+  <bean id="container" class="org.apache.xbean.spring.example.ContainerBean">
+    <property name="beans">
+      <list>
+        <bean id="inner" class="org.apache.xbean.spring.example.InnerBean" />
+      </list>
+    </property>
+  </bean>
+</beans>

Added: geronimo/xbean/trunk/xbean-spring-v2b/src/test/resources/org/apache/xbean/spring/context/component-xbean.xml
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-spring-v2b/src/test/resources/org/apache/xbean/spring/context/component-xbean.xml?view=auto&rev=443003
==============================================================================
--- geronimo/xbean/trunk/xbean-spring-v2b/src/test/resources/org/apache/xbean/spring/context/component-xbean.xml
(added)
+++ geronimo/xbean/trunk/xbean-spring-v2b/src/test/resources/org/apache/xbean/spring/context/component-xbean.xml
Wed Sep 13 08:45:55 2006
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<beans xmlns:tns="http://xbean.apache.org/schemas/component">
+  <tns:container id="container">
+    <tns:beans>
+      <tns:inner id="inner" />
+    </tns:beans>
+  </tns:container>
+</beans>



Mime
View raw message