File: classloader-beans.xml

package info (click to toggle)
libjboss-microcontainer-java 2.0.0~Beta16-1
  • links: PTS, VCS
  • area: contrib
  • in suites: lenny
  • size: 15,416 kB
  • ctags: 14,841
  • sloc: java: 88,790; xml: 25,482; makefile: 19; sh: 14
file content (39 lines) | stat: -rw-r--r-- 1,430 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?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>