<?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="URL" class="java.net.URL"> 
      <constructor> 
         <parameter>file:${project.build.directory}/client-cl.dir/otherLib/humanResourcesService-1.0.0.jar</parameter>
      </constructor> 
   </bean> 

   <bean name="customCL" class="java.net.URLClassLoader">
      <constructor>
         <parameter>
            <array>
               <inject bean="URL"/>
            </array>
         </parameter>
      </constructor>
   </bean>

   <bean name="HRService" class="org.jboss.example.service.HRManager">
     <classloader><inject bean="customCL"/></classloader>
     <!-- <property name="hiringFreeze">true</property>    
     <property name="salaryStrategy"><inject bean="AgeBasedSalary"/></property> -->
   </bean>
      
   <!-- <bean name="AgeBasedSalary" class="org.jboss.example.service.util.AgeBasedSalaryStrategy">
     <property name="minSalary">1000</property>
     <property name="maxSalary">80000</property>
   </bean>
   
   <bean name="LocationBasedSalary" class="org.jboss.example.service.util.LocationBasedSalaryStrategy">
     <property name="minSalary">2000</property>
     <property name="maxSalary">90000</property>
   </bean> -->
         
</deployment>
