/** * {@inheritDoc} This implementation checks whether an auto-safe operation * should be performed. This is the case if the event indicates that an * update of the configuration has been performed and currently no load * operation is in progress. */ @Override public void onEvent(final ConfigurationEvent event) { if (autoSaveRequired(event)) { try { builder.save(); } catch (final ConfigurationException ce) { log.warn("Auto save failed!", ce); } } }
PropertiesConfiguration config = builder.getConfiguration(); config.setProperty("workflow-start-date", new DCDate(oldestDate)); builder.save(); } catch (ConfigurationException e) { log.error("Error while storing workflow start date", e);