Results 1 to 3 of 3

Thread: Modify bean configuration in XML using Java

  1. #1
    Join Date
    Dec 2008
    Posts
    2

    Default Modify bean configuration in XML using Java

    Hello,

    I am working on a project that requires modifying XML bean configuration files. I went through some of the spring documents to see how I can implement this feature, but that didn't help me much.

    Actually, I could not figure out the proper way to modify bean configuration. I also want to modify the property values defined for a particular bean (in bean definition). For some cases, I need to remove bean (with given bean id) from bean config file. I also have the need of removing some properties defined for a bean.

    I am developing a web application and these all modifications to bean configuration file needs to be done from java code (using java classes). I could not figure out how this might work.

    If anyone knows the solution to it, can you please provide me with detailed procedure of this to be implemented?

    Thanks a lot in advance.

  2. #2
    Join Date
    Dec 2008
    Location
    Hyderabad, India.
    Posts
    11

    Default

    For updating the properties you can use BeanPostProcessor.

  3. #3
    Join Date
    Dec 2008
    Posts
    2

    Default

    Thanks. I know I have to use bean post processor and mutablepropertyvalues and also, bean factory... But, I don't quite understand how will it be implemented. If you can provide me with an example, it will be great... I would appreciate a quick reply....

    Thanks a lot.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •