[jsword-devel] Adding a transient property to SwordBookMetaData

Martin Denham mjdenham at gmail.com
Mon Nov 2 14:44:37 MST 2015


And Bible adds a temporary property to SwordBookMetaData to identify which
repository a downloadable book came from.  This sort of property is
transient and does not need to be stored.  However, to prevent this
throwing an exception after upgrade to the recent JSword I needed to
specify this as a ui property which is persisted in the jsword-mods.d
folder.

Currently BookMetadata.putproperty takes a boolean property which
determines where the property is persisted.
void putProperty(String key, String value, boolean forFrontend);
Would it be a good idea to make it possible to add transient properties
that are not persisted?  This might be done by using an enum instead of a
boolean for the third property.

Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20151102/802bdd00/attachment.html>


More information about the jsword-devel mailing list