J'utilise actuellement le framework spring pour la gestion de certain bean de mon application.

je voudrais passer des paramettres à la method et je n'arrive pas ecq qlq à une idée comment je dois faire.

voici mon fichier de conf.xml

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
40
41
42
43
44
45
46
 
 
 
 
<?xml version="1.0" encoding="UTF-8"?>
 
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
 
 
<beans default-lazy-init="true">
 
 
  <!--  AccessRghitService  -->
 
  <bean id="testSpring" class="test.spring.od.testSpring">
 
 	<property name="authManager">
	      		<ref local="authManager"/>
	 </property>    
 
     <property name="x">
	    		<value>1</value>
	 </property>
	 <property name="y"> 
	    		<value>2</value> 
	 </property>   
 
	 <property name="z"> 
	    		<value>3</value> 
	 </property>   
 
	   <property name="login">
	    		<value>mdehbi</value>
	    </property>
	    <property name="password"> 
	    		<value>joana123</value> 
	    </property>    
  </bean>
 
 
   <bean id="authManager"  factory-bean="testSpring"
   factory-method="getISVNAuthenticationManager">
   		   </bean>
 
  <!--  AccessRghitService  -->
</beans>