You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/08/23 20:05:25 UTC

[camel-kamelets-examples] 01/02: Bean order should not matter

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets-examples.git

commit 080c56081db4795a0d7ce518d35368a14948036e
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Aug 23 16:11:29 2023 +0200

    Bean order should not matter
---
 jbang/xml-to-yaml/order-spring.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/jbang/xml-to-yaml/order-spring.xml b/jbang/xml-to-yaml/order-spring.xml
index 33f613e..29e0f81 100644
--- a/jbang/xml-to-yaml/order-spring.xml
+++ b/jbang/xml-to-yaml/order-spring.xml
@@ -2,14 +2,14 @@
 
     <!-- embedded spring-xml beans -->
     <beans xmlns="http://www.springframework.org/schema/beans">
-        <bean id="office" class="com.foo.Address">
-           <property name="zip" value="1234"/>
-           <property name="street" value="Gardenstreet 444"/>
-       </bean>        
        <bean id="orderService" class="com.foo.OrderService">
            <property name="customer" value="Acme"/>
            <property name="address" ref="office"/>
        </bean> 
+       <bean id="office" class="com.foo.Address">
+           <property name="zip" value="1234"/>
+           <property name="street" value="Gardenstreet 444"/>
+       </bean>
     </beans>
 
     <route>