Feature #4
Consider allowing default values on StagedPropertyPlaceHolderConfigurer
| Status : | New | Start : | 04/13/2008 | |
| Priority : | Normal | Due date : | ||
| Assigned to : | Kaare Nilsen | % Done : | 0% |
|
| Category : | Code | Spent time : | - | |
| Target version : | 1.2 | Estimated time : | 12.00 hours | |
Description
Perhaps a default value on the StagedPropertyPlaceHolderConfigurer? could be a cool thing. Using e.g. the following syntax . "${placeholder}def:{default-value}"
example usage:
<bean id="myBean" class="no..MyClass">
<property name="myProperty" value="${myKey}def:{This is the default value}"/>
</bean>
Related issues
History
04/13/2008 11:08 PM - Kaare Nilsen
Yes, that seems like a good idea. When using the self-configuring beans approach the default values can readily be added. Something similar is needed for the placeHolder approach.
This would also remove the need for specifying properties without a stage in property files.
It should be made clear which stage these default properties belong to. E.g. when no stage is specified all default properties belong to the Production stage.
(Sherriff)
04/13/2008 11:08 PM - Kaare Nilsen
The default value does not really belong to a stage. It will be used in any stages as long as there is no key defined in the property files