BAEL-3965: Corrected XML formatting in code examples

This commit is contained in:
Justin Albano 2020-04-22 06:18:31 -04:00
parent 553e4f1a04
commit 56153d65d8
4 changed files with 38 additions and 44 deletions

View File

@ -1,19 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" <beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util" xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation=" xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd"> http://www.springframework.org/schema/util/spring-util.xsd">
<bean id="instanceBarFactory" <bean id="instanceBarFactory"
class="com.baeldung.factorymethod.InstanceBarFactory" /> class="com.baeldung.factorymethod.InstanceBarFactory" />
<bean id="bar" <bean id="bar"
factory-bean="instanceBarFactory" factory-bean="instanceBarFactory"
factory-method="createInstance"> factory-method="createInstance">
<constructor-arg value="someName" /> <constructor-arg value="someName" />
</bean> </bean>

View File

@ -1,18 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" <beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util" xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation=" xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd"> http://www.springframework.org/schema/util/spring-util.xsd">
<bean id="instanceFooFactory" <bean id="instanceFooFactory"
class="com.baeldung.factorymethod.InstanceFooFactory" /> class="com.baeldung.factorymethod.InstanceFooFactory" />
<bean id="foo" <bean id="foo"
factory-bean="instanceFooFactory" factory-bean="instanceFooFactory"
factory-method="createInstance" /> factory-method="createInstance" />
</beans> </beans>

View File

@ -1,19 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" <beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util"
xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="
xsi:schemaLocation=" http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/util
http://www.springframework.org/schema/context http://www.springframework.org/schema/util/spring-util.xsd">
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd">
<bean id="bar" <bean id="bar"
class="com.baeldung.factorymethod.SingletonBarFactory" class="com.baeldung.factorymethod.SingletonBarFactory"
factory-method="createInstance"> factory-method="createInstance">
<constructor-arg value="someName" /> <constructor-arg value="someName" />
</bean> </bean>

View File

@ -1,18 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" <beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util"
xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="
xsi:schemaLocation=" http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/util
http://www.springframework.org/schema/context http://www.springframework.org/schema/util/spring-util.xsd">
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd">
<bean id="foo" <bean id="foo"
class="com.baeldung.factorymethod.SingletonFooFactory" class="com.baeldung.factorymethod.SingletonFooFactory"
factory-method="createInstance" /> factory-method="createInstance" />
</beans> </beans>