Skip to content

PropertyResourceConfigurer.convertPropertyValue should also include propertyName in the method signature for better handling of property value conversion [SPR-7386] #12044

@spring-projects-issues

Description

@spring-projects-issues

Faisal Feroz opened SPR-7386 and commented

The current signature of PropertyResourceConfigurer.convertPropertyValue is:
protected String convertPropertyValue(String originalValue)

This should also include the "property name" as well so that the overriding method can do a better job of converting property values instead of deducing the conversion logic from the property value.

For example if the values are encrypted for certain properties, a simple check can be coded based on the property names instead of deducing if the value is encrypted or not from the property value.


Referenced from: commits 4d5a9c4

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions