Hi again,
I'm still trying out all the features of the Spring Core and there is something I just failed to understand.
If i get it right with PropertyEditor I can do this :
With these classes :<bean id="myBean" class="MyBean">
<property name="UserInfo"><value>belaran/mypassword/admin</value></property>
</bean>
andCode:public class UserInfo { private String login; private String password; private String status; ...}
Code:public class MyBean { public MyBean(UserInfo usr){...} ...}
Now all i have to do is write a class that will translate login/password/status into an objet,
but how i do so ? Wich interface do i have to implements... ?
<bean id="customEditorConfigurer" class="org.springframework.beans.factory.config.Cu stomEditorConfigurer">
<property name="customEditors">
<map>
<entry key="UserInfo">
<bean class="MyBeanEditor">
<!-- what do I put there ? -->
</bean>
</entry>
</map>
</property>
</bean>


Reply With Quote