Results 1 to 2 of 2

Thread: Persisting properties

  1. #1
    Join Date
    Sep 2004
    Posts
    13

    Default Persisting properties

    Hi,
    I have a properties file that I read using a PropertiesFactoryBean (I'm using Spring v.1.0.1):
    <bean id="myProperties" class="org.springframework.beans.factory.config.Pr opertiesFactoryBean">
    <property name="location"><value>classpath:my.properties</value></property>
    </bean>

    It's working as expected but now I want to update this props file. I have seen that there's a PropertiesPersister which is initialized with DefaultPropertiesPersister in the PropertiesFactoryBean but I have no idea how can make use of it (it's not exposed by the PropsFactoryBean).
    I could write a specialized bean that adds persistence capabilities to the PropertiesFactoryBean but I'd like to know if there's one already made available by the core framework.

    Thank you,
    florin

  2. #2
    Join Date
    Aug 2004
    Location
    Toronto, Canada
    Posts
    736

    Default

    There's no built-in way to use the PropertiesFactoryBean and have it persist any changes. Right now it's strictly read-only...
    Colin Sampaleanu
    SpringSource - http://www.springsource.com

Similar Threads

  1. FlowExecutionStorage in a DB
    By cacho in forum Web Flow
    Replies: 7
    Last Post: Oct 19th, 2009, 03:36 PM
  2. JMX and persisting bean properties
    By mariuss in forum Container
    Replies: 2
    Last Post: May 31st, 2005, 11:59 AM
  3. Replies: 0
    Last Post: May 8th, 2005, 02:15 AM
  4. Shared properties within application context
    By milosh in forum Architecture
    Replies: 5
    Last Post: Nov 16th, 2004, 08:29 AM
  5. Replies: 19
    Last Post: Oct 20th, 2004, 11:24 PM

Posting Permissions

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