Announcement Announcement Module
Collapse
No announcement yet.
Persisting properties Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    There's no built-in way to use the PropertiesFactoryBean and have it persist any changes. Right now it's strictly read-only...

    Comment

    Working...
    X