6 Replies Last post: Feb 7, 2012 8:58 PM by Sam Griffin  
Sam Griffin Newbie 4 posts since
Feb 7, 2012
Currently Being Moderated

Feb 7, 2012 7:54 PM

saving data to module file

I have a persistentstatecomponent where the file property of the storage annotation is set to "$MODULE_FILE$", but no data is saved to the iml. How do I do this? Also, is there a way to force a persistentstatecomponent to be saved?

Dmitry Jemerov Master 12,520 posts since
Aug 19, 2002
Currently Being Moderated
Feb 7, 2012 8:06 PM in response to: Sam Griffin
Re: saving data to module file

A PersistentStateComponent doesn't save any state if its current state is equal to the default one. This behavior is by design, and please don't attempt to override it.

Dmitry Jemerov Master 12,520 posts since
Aug 19, 2002
Currently Being Moderated
Feb 7, 2012 8:21 PM in response to: Sam Griffin
Re: saving data to module file

The default state is the state which is produced by creating the state class (the type parameter you've specified for PersistentStateComponent) with its default constructor.

Dmitry Jemerov Master 12,520 posts since
Aug 19, 2002
Currently Being Moderated
Feb 7, 2012 8:44 PM in response to: Sam Griffin
Re: saving data to module file

Is your PersistentStateComponent a module-level component or service?

More Like This

  • Retrieving data ...