<?xml version="1.0" encoding="UTF-8"?>

<deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="urn:jboss:bean-deployer:2.0 bean-deployer_2_0.xsd"
            xmlns="urn:jboss:bean-deployer:2.0">

   <bean name="StaticFactoryCreatedBean" class="org.jboss.example.microcontainer.factory.FactoryCreatedBean">
      <constructor factoryMethod="createBean" factoryClass="org.jboss.example.microcontainer.factory.StaticFactory"/>
   </bean>

   <bean name="SingletonFactory" class="org.jboss.example.microcontainer.factory.SingletonFactory">
      <constructor factoryMethod="getInstance" factoryClass="org.jboss.example.microcontainer.factory.SingletonFactory"/>
   </bean>

   <bean name="SingletonFactoryCreatedBean" class="org.jboss.example.microcontainer.factory.FactoryCreatedBean">
      <constructor factoryMethod="createBean">
         <factory bean="SingletonFactory"/>
      </constructor>
   </bean>
      
</deployment>
