}
public PropertyConfigurer(EncryptorRegistry registry) {
this(registry.getEncryptor());
}
protected PropertyConfigurer(StringEncryptor encryptor) {
this.propertyPlaceholderConfigurer = encryptor != null ? new EncryptablePropertyPlaceholderConfigurer(encryptor) : new PropertyPlaceholderConfigurer();
// Ensure that system properties override the spring-set properties.
propertyPlaceholderConfigurer.setSystemPropertiesMode(PropertyPlaceholderConfigurer.SYSTEM_PROPERTIES_MODE_OVERRIDE);
PropertiesPersister savingPropertiesPersister = new DefaultPropertiesPersister() {