<!--AVOID: Using nested 'value' elements can make the configuration file difficult to read-->
<bean id="serviceRegistry" class="documentation.examples.spring.ServiceRegistry">
	<constructor-arg type="java.lang.String">
		<value>main_service_registry</value>
	</constructor-arg>
	<property name="description">
		<value>Top-level registry for services</value>
	</property>
	<property name="serviceMap">
		<map>
			<entry>
				<key>
					<value>orderService</value>
				</key>
				<value>com.foo.bar.OrderService</value>
			</entry>
			<entry>
				<key>
					<value>billingService</value>
				</key>
				<value>com.foo.bar.BillingService</value>
			</entry>
		</map>
	</property>
</bean>


<!--GOOD: Shortcut forms (Spring 1.2) result in more concise bean definitions-->
<bean id="serviceRegistry" class="documentation.examples.spring.ServiceRegistry">
	<constructor-arg type="java.lang.String" value="main_service_registry"/>
	<property name="description" value="Top-level registry for services"/>
	<property name="serviceMap">
		<map>
			<entry key="orderService" value="com.foo.bar.OrderService"/>
			<entry key="billingService" value="com.foo.bar.BillingService"/>
		</map>
	</property>
</bean>
