Boolean includeParameterValues() { Boolean logParameterValues = optionsRepository.get(Boolean.class, INCLUDE_PARAMETER_VALUES); return logParameterValues == null ? false : logParameterValues; } }
private synchronized void fireDelayedOptionChanges() { if (null == delayedOptionChanges) { return; } for (DelayedOptionChange delayedOption : delayedOptionChanges) { for (P6OptionChangedListener listener : listeners) { listener.optionChanged(delayedOption.getKey(), delayedOption.getOldValue(), delayedOption.getNewValue()); } } // make sure the delayed options get cleared to continue normal processing delayedOptionChanges = null; }
void fireOptionChanged(final String key, final Object oldValue, final Object newValue) { if (initCompleted) { fireDelayedOptionChanges(); for (P6OptionChangedListener listener : listeners) { listener.optionChanged(key, oldValue, newValue); } } else { delayedOptionChanges.add(new DelayedOptionChange(key, oldValue, newValue)); } }
@Override public void postInit(P6ModuleManager p6moduleManager) { reloader = new SpyDotPropertiesReloader(this, p6moduleManager); } }
@Override public Set<Category> getExcludeCategoriesSet() { return optionsRepository.getSet(Category.class, EXCLUDECATEGORIES_SET); } }
String remoteServiceName() { return optionsRepository.get(String.class, REMOTE_SERVICE_NAME); }
/** * Sets the databaseDialectDateFormat. * * @param databaseDialectBooleanFormat The databaseDialectBooleanFormat to set */ @Override public void setDatabaseDialectBooleanFormat(String databaseDialectBooleanFormat) { optionsRepository.set(String.class, DATABASE_DIALECT_BOOLEAN_FORMAT, databaseDialectBooleanFormat); }
/** * Returns the customLogMessageFormat. * * @return String */ @Override public String getCustomLogMessageFormat() { return optionsRepository.get(String.class, CUSTOM_LOG_MESSAGE_FORMAT); }
/** * Returns the databaseDialectDateFormat. * * @return String */ @Override public String getDatabaseDialectDateFormat() { return optionsRepository.get(String.class, DATABASE_DIALECT_DATE_FORMAT); }
/** * Sets the databaseDialectDateFormat. * * @param databaseDialectDateFormat The databaseDialectDateFormat to set */ @Override public void setDatabaseDialectDateFormat(String databaseDialectDateFormat) { optionsRepository.set(String.class, DATABASE_DIALECT_DATE_FORMAT, databaseDialectDateFormat); }
/** * Returns the databaseDialectTimestampFormat. * * @return String */ @Override public String getDatabaseDialectTimestampFormat() { return optionsRepository.get(String.class, DATABASE_DIALECT_TIMESTAMP_FORMAT); }
@Override public boolean getReloadProperties() { return optionsRepository.get(Boolean.class, RELOADPROPERTIES); } @Override
@Override public long getReloadPropertiesInterval() { return optionsRepository.get(Long.class, RELOADPROPERTIESINTERVAL); } @Override
/** * Sets the customLogMessageFormat. * * @param customLogMessageFormat The CustomLogMessageFormat to set */ @Override public void setCustomLogMessageFormat(String customLogMessageFormat) { optionsRepository.set(String.class, CUSTOM_LOG_MESSAGE_FORMAT, customLogMessageFormat); }
/** * Returns the databaseDialectBooleanFormat. * * @return String */ @Override public String getDatabaseDialectBooleanFormat() { return optionsRepository.get(String.class, DATABASE_DIALECT_BOOLEAN_FORMAT); }
/** * Sets the databaseDialectTimestampFormat. * * @param databaseDialectTimestampFormat The databaseDialectTimestampFormat to set */ @Override public void setDatabaseDialectTimestampFormat(String databaseDialectTimestampFormat) { optionsRepository.set(String.class, DATABASE_DIALECT_TIMESTAMP_FORMAT, databaseDialectTimestampFormat); }